Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_SetValueOperation.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_SETVALUEOPERATION_H__ | #pragma once | ||||
| #define __COM_SETVALUEOPERATION_H__ | |||||
| #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 SetValueOperation : public NodeOperation { | class SetValueOperation : public NodeOperation { | ||||
| private: | private: | ||||
| Show All 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); | ||||
| void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]); | void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]); | ||||
| bool isSetOperation() const | bool isSetOperation() const | ||||
| { | { | ||||
| return true; | return true; | ||||
| } | } | ||||
| }; | }; | ||||
| #endif | |||||