Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_SunBeamsOperation.h
| Show All 11 Lines | |||||
| * 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 2014, Blender Foundation. | * Copyright 2014, Blender Foundation. | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include "COM_NodeOperation.h" | #include "COM_FullFrameBufferedOperation.h" | ||||
| namespace blender::compositor { | namespace blender::compositor { | ||||
| class SunBeamsOperation : public NodeOperation { | class SunBeamsOperation : public FullFrameBufferedOperation { | ||||
| public: | public: | ||||
| SunBeamsOperation(); | SunBeamsOperation(); | ||||
| void executePixel(float output[4], int x, int y, void *data) override; | |||||
| void initExecution() override; | void initExecution() override; | ||||
| void *initializeTileData(rcti *rect) override; | virtual void update_memory_buffer(MemoryBuffer *output_buffer, | ||||
| rcti *output_rect, | |||||
| bool determineDependingAreaOfInterest(rcti *input, | blender::Span<MemoryBuffer *> inputs) override; | ||||
| ReadBufferOperation *readOperation, | void get_input_area_of_interest(int input_index, const rcti *rect, rcti *r_input_area) override; | ||||
| rcti *output) override; | |||||
| void setData(const NodeSunBeams &data) | void setData(const NodeSunBeams &data) | ||||
| { | { | ||||
| m_data = data; | m_data = data; | ||||
| } | } | ||||
| private: | private: | ||||
| NodeSunBeams m_data; | NodeSunBeams m_data; | ||||
| float m_source_px[2]; | float m_source_px[2]; | ||||
| float m_ray_length_px; | float m_ray_length_px; | ||||
| }; | }; | ||||
| } // namespace blender::compositor | } // namespace blender::compositor | ||||