MayaFlux 0.3.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 59 of file TextureNode.cpp.

60{
61 for (uint32_t y = 0; y < m_height; y++) {
62 for (uint32_t x = 0; x < m_width; x++) {
63 set_pixel(x, y, r, g, b, a);
64 }
65 }
66
67 m_pixel_data_dirty = true;
68}
size_t a
size_t b
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 a, b, m_height, m_pixel_data_dirty, m_width, and set_pixel().

+ Here is the call graph for this function: