Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_SetAlphaReplaceOperation.h
- This file was moved from source/blender/compositor/operations/COM_SetAlphaOperation.h.
| Show All 18 Lines | |||||
| #pragma once | #pragma once | ||||
| #include "COM_NodeOperation.h" | #include "COM_NodeOperation.h" | ||||
| /** | /** | ||||
| * this program converts an input color to an output value. | * this program converts an input color to an output value. | ||||
| * it assumes we are in sRGB color space. | * it assumes we are in sRGB color space. | ||||
| */ | */ | ||||
| class SetAlphaOperation : public NodeOperation { | class SetAlphaReplaceOperation : public NodeOperation { | ||||
| private: | private: | ||||
| SocketReader *m_inputColor; | SocketReader *m_inputColor; | ||||
| SocketReader *m_inputAlpha; | SocketReader *m_inputAlpha; | ||||
| public: | public: | ||||
| /** | /** | ||||
| * Default constructor | * Default constructor | ||||
| */ | */ | ||||
| SetAlphaOperation(); | SetAlphaReplaceOperation(); | ||||
| /** | /** | ||||
| * the inner loop of this program | * the inner loop of this program | ||||
| */ | */ | ||||
| void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); | void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); | ||||
| void initExecution(); | void initExecution(); | ||||
| void deinitExecution(); | void deinitExecution(); | ||||
| }; | }; | ||||