Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_IDMaskOperation.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_IDMASKOPERATION_H__ | #pragma once | ||||
| #define __COM_IDMASKOPERATION_H__ | |||||
| #include "COM_NodeOperation.h" | #include "COM_NodeOperation.h" | ||||
| class IDMaskOperation : public NodeOperation { | class IDMaskOperation : public NodeOperation { | ||||
| private: | private: | ||||
| float m_objectIndex; | float m_objectIndex; | ||||
| public: | public: | ||||
| IDMaskOperation(); | IDMaskOperation(); | ||||
| void *initializeTileData(rcti *rect); | void *initializeTileData(rcti *rect); | ||||
| void executePixel(float output[4], int x, int y, void *data); | void executePixel(float output[4], int x, int y, void *data); | ||||
| void setObjectIndex(float objectIndex) | void setObjectIndex(float objectIndex) | ||||
| { | { | ||||
| this->m_objectIndex = objectIndex; | this->m_objectIndex = objectIndex; | ||||
| } | } | ||||
| }; | }; | ||||
| #endif | |||||