MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ fill()

void MayaFlux::Nodes::GpuSync::TextureNode::fill ( float  r,
float  g,
float  b,
float  a = 1.0F 
)
protected

Fill entire texture with solid color.

Parameters
rRed channel
gGreen channel
bBlue channel
aAlpha channel (default: 1.0)

Definition at line 57 of file TextureNode.cpp.

58{
59 for (uint32_t y = 0; y < m_height; y++) {
60 for (uint32_t x = 0; x < m_width; x++) {
61 set_pixel(x, y, r, g, b, a);
62 }
63 }
64
65 m_pixel_data_dirty = true;
66}
bool m_pixel_data_dirty
Flag: pixel data changed since last GPU upload.
void set_pixel(uint32_t x, uint32_t y, float r, float g, float b, float a=1.0F)
Set pixel color at (x, y)

References m_height, m_pixel_data_dirty, m_width, and set_pixel().

+ Here is the call graph for this function: