Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-05-18 02:55:28 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-18 02:55:28 +0400
commit7862b2fa13c0437d9c17eae78e7b79a421dacf05 (patch)
tree08f9c26af3e71795d0f65803a415b5612d6b53ab /source/blender/compositor/operations/COM_SetColorOperation.cpp
parent69b95e1a8a00c9ff146d803b8ec11183d7a68908 (diff)
style cleanup: compositor, pointer syntax, function brace placement, line length
Diffstat (limited to 'source/blender/compositor/operations/COM_SetColorOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_SetColorOperation.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_SetColorOperation.cpp b/source/blender/compositor/operations/COM_SetColorOperation.cpp
index 729a8073d7a..50ff2a87a72 100644
--- a/source/blender/compositor/operations/COM_SetColorOperation.cpp
+++ b/source/blender/compositor/operations/COM_SetColorOperation.cpp
@@ -22,18 +22,21 @@
#include "COM_SetColorOperation.h"
-SetColorOperation::SetColorOperation(): NodeOperation() {
+SetColorOperation::SetColorOperation(): NodeOperation()
+{
this->addOutputSocket(COM_DT_COLOR);
}
-void SetColorOperation::executePixel(float* outputValue, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) {
+void SetColorOperation::executePixel(float *outputValue, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[])
+{
outputValue[0] = this->channel1;
outputValue[1] = this->channel2;
outputValue[2] = this->channel3;
outputValue[3] = this->channel4;
}
-void SetColorOperation::determineResolution(unsigned int resolution[], unsigned int preferredResolution[]) {
+void SetColorOperation::determineResolution(unsigned int resolution[], unsigned int preferredResolution[])
+{
resolution[0] = preferredResolution[0];
resolution[1] = preferredResolution[1];
}