Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_SetVectorOperation.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_SETVECTOROPERATION_H__ | #pragma once | ||||
| #define __COM_SETVECTOROPERATION_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 SetVectorOperation : public NodeOperation { | class SetVectorOperation : public NodeOperation { | ||||
| private: | private: | ||||
| ▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | public: | ||||
| void setVector(const float vector[3]) | void setVector(const float vector[3]) | ||||
| { | { | ||||
| setX(vector[0]); | setX(vector[0]); | ||||
| setY(vector[1]); | setY(vector[1]); | ||||
| setZ(vector[2]); | setZ(vector[2]); | ||||
| } | } | ||||
| }; | }; | ||||
| #endif | |||||