Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_SetColorOperation.cc
| Show All 28 Lines | |||||
| void SetColorOperation::executePixelSampled(float output[4], | void SetColorOperation::executePixelSampled(float output[4], | ||||
| float /*x*/, | float /*x*/, | ||||
| float /*y*/, | float /*y*/, | ||||
| PixelSampler /*sampler*/) | PixelSampler /*sampler*/) | ||||
| { | { | ||||
| copy_v4_v4(output, this->m_color); | copy_v4_v4(output, this->m_color); | ||||
| } | } | ||||
| void SetColorOperation::determineResolution(unsigned int resolution[2], | void SetColorOperation::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 | ||||