Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_GlareBaseOperation.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_GLAREBASEOPERATION_H__ | #pragma once | ||||
| #define __COM_GLAREBASEOPERATION_H__ | |||||
| #include "COM_SingleThreadedOperation.h" | #include "COM_SingleThreadedOperation.h" | ||||
| #include "DNA_node_types.h" | #include "DNA_node_types.h" | ||||
| /* utility functions used by glare, tonemap and lens distortion */ | /* utility functions used by glare, tonemap and lens distortion */ | ||||
| /* soms macros for color handling */ | /* soms macros for color handling */ | ||||
| typedef float fRGB[4]; | typedef float fRGB[4]; | ||||
| Show All 40 Lines | |||||
| protected: | protected: | ||||
| GlareBaseOperation(); | GlareBaseOperation(); | ||||
| virtual void generateGlare(float *data, MemoryBuffer *inputTile, NodeGlare *settings) = 0; | virtual void generateGlare(float *data, MemoryBuffer *inputTile, NodeGlare *settings) = 0; | ||||
| MemoryBuffer *createMemoryBuffer(rcti *rect); | MemoryBuffer *createMemoryBuffer(rcti *rect); | ||||
| }; | }; | ||||
| #endif | |||||