diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-18 02:55:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-18 02:55:28 +0400 |
commit | 7862b2fa13c0437d9c17eae78e7b79a421dacf05 (patch) | |
tree | 08f9c26af3e71795d0f65803a415b5612d6b53ab /source/blender/compositor/operations/COM_FogGlowImageOperation.cpp | |
parent | 69b95e1a8a00c9ff146d803b8ec11183d7a68908 (diff) |
style cleanup: compositor, pointer syntax, function brace placement, line length
Diffstat (limited to 'source/blender/compositor/operations/COM_FogGlowImageOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_FogGlowImageOperation.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_FogGlowImageOperation.cpp b/source/blender/compositor/operations/COM_FogGlowImageOperation.cpp index a81597322a0..600bfde64d9 100644 --- a/source/blender/compositor/operations/COM_FogGlowImageOperation.cpp +++ b/source/blender/compositor/operations/COM_FogGlowImageOperation.cpp @@ -23,10 +23,12 @@ #include "COM_FogGlowImageOperation.h" #include "BLI_math.h" -FogGlowImageOperation::FogGlowImageOperation(): NodeOperation() { +FogGlowImageOperation::FogGlowImageOperation(): NodeOperation() +{ this->addOutputSocket(COM_DT_COLOR); } -void FogGlowImageOperation::executePixel(float* color, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) { +void FogGlowImageOperation::executePixel(float *color, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) +{ const float cs_r = 1.f, cs_g = 1.f, cs_b = 1.f; float u, v, w, d, r; @@ -42,7 +44,8 @@ void FogGlowImageOperation::executePixel(float* color, float x, float y, PixelSa color[3] = 1.0f; } -void FogGlowImageOperation::determineResolution(unsigned int resolution[], unsigned int preferredResolution[]) { +void FogGlowImageOperation::determineResolution(unsigned int resolution[], unsigned int preferredResolution[]) +{ resolution[0] = 512; resolution[1] = 512; } |