Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_SetValueOperation.cc
| Show All 28 Lines | |||||
| void SetValueOperation::executePixelSampled(float output[4], | void SetValueOperation::executePixelSampled(float output[4], | ||||
| float /*x*/, | float /*x*/, | ||||
| float /*y*/, | float /*y*/, | ||||
| PixelSampler /*sampler*/) | PixelSampler /*sampler*/) | ||||
| { | { | ||||
| output[0] = this->m_value; | output[0] = this->m_value; | ||||
| } | } | ||||
| void SetValueOperation::determineResolution(unsigned int resolution[2], | void SetValueOperation::determine_canvas(const rcti &preferred_area, rcti &r_area) | ||||
| unsigned int preferredResolution[2]) | |||||
| { | { | ||||
| resolution[0] = preferredResolution[0]; | r_area = preferred_area; | ||||
| resolution[1] = preferredResolution[1]; | |||||
| } | } | ||||
| } // namespace blender::compositor | } // namespace blender::compositor | ||||