Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_MixOperation.h
| Show All 10 Lines | |||||
| * | * | ||||
| * You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| * | * | ||||
| * Copyright 2011, Blender Foundation. | * Copyright 2011, Blender Foundation. | ||||
| */ | */ | ||||
| #ifndef __COM_MIXOPERATION_H__ | #pragma once | ||||
| #define __COM_MIXOPERATION_H__ | |||||
| #include "COM_NodeOperation.h" | #include "COM_NodeOperation.h" | ||||
| /** | /** | ||||
| * All this programs converts an input color to an output value. | * All this programs 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 MixBaseOperation : public NodeOperation { | class MixBaseOperation : public NodeOperation { | ||||
| ▲ Show 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | public: | ||||
| void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); | void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); | ||||
| }; | }; | ||||
| class MixValueOperation : public MixBaseOperation { | class MixValueOperation : public MixBaseOperation { | ||||
| public: | public: | ||||
| MixValueOperation(); | MixValueOperation(); | ||||
| void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); | void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); | ||||
| }; | }; | ||||
| #endif | |||||