bool m_pixel_data_dirty
Flag: pixel data changed since last GPU upload.
NodeContext & get_last_context() override
Get the last created context object.
std::array< float, 4 > get_pixel(uint32_t x, uint32_t y) const
Get pixel color at (x, y)
std::vector< float > m_saved_pixel_buffer
void restore_state() override
Restore saved pixel state.
std::vector< float > m_pixel_buffer
TextureNode(uint32_t width, uint32_t height)
void update_context(double value) override
Updates the context object with the current node state.
void fill(float r, float g, float b, float a=1.0F)
Fill entire texture with solid color.
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)
void save_state() override
Save current pixel state.
Base context class for node callbacks.