FastUIDraw
|
A PainterData provides the data for how for a Painter to draw content. More...
#include <painter_data.hpp>
Classes | |
class | brush_value |
A brush_value stores the brush applied; it stores a pointer to a PainterBrushShader together with a PainterDataValue<PainterBrushShaderData>. If the pointer to the PainterBrushShader is null, then it indicates to use the standard brush shader, PainterBrushShaderSet::standard_brush(). More... | |
Public Member Functions | |
PainterData (void) | |
template<typename T1 > | |
PainterData (const T1 &r1) | |
template<typename T1 , typename T2 > | |
PainterData (const T1 &r1, const T2 &r2) | |
template<typename T1 , typename T2 , typename T3 > | |
PainterData (const T1 &r1, const T2 &r2, const T3 &r3) | |
void | make_packed (PainterPackedValuePool &pool) |
PainterData & | set (const brush_value &value) |
PainterData & | set (const PainterBrush *value) |
PainterData & | set (const PainterCustomBrush &value) |
PainterData & | set (const PainterDataValue< PainterBrushShaderData > &value) |
PainterData & | set (const PainterDataValue< PainterItemShaderData > &value) |
PainterData & | set (const PainterDataValue< PainterBlendShaderData > &value) |
Public Attributes | |
PainterDataValue< PainterBlendShaderData > | m_blend_shader_data |
brush_value | m_brush |
PainterDataValue< PainterItemShaderData > | m_item_shader_data |
A PainterData provides the data for how for a Painter to draw content.
Definition at line 42 of file painter_data.hpp.
|
inline |
Ctor. Intitializes all fields as default nothings.
Definition at line 181 of file painter_data.hpp.
|
inline |
Ctor to initialize one field.
r1 | calls one of the set() functions relying on C++ conversion and template logic to select the correct field to set. |
Definition at line 191 of file painter_data.hpp.
|
inline |
Ctor to initialize two fields.
r1 | calls one of the set() functions relying on C++ conversion and template logic to select the correct field to set. |
r2 | calls one of the set() functions relying on C++ conversion and template logic to select the correct field to set. |
Definition at line 206 of file painter_data.hpp.
|
inline |
Ctor to initialize three fields.
r1 | calls one of the set() functions relying on C++ conversion and template logic to select the correct field to set. |
r2 | calls one of the set() functions relying on C++ conversion and template logic to select the correct field to set. |
r3 | calls one of the set() functions relying on C++ conversion and template logic to select the correct field to set. |
Definition at line 225 of file painter_data.hpp.
|
inline |
Call value::make_packed() on m_brush, m_item_shader_data, and m_blend_shader_data.
pool | PainterPackedValuePool from which to create the packed value |
Definition at line 315 of file painter_data.hpp.
|
inline |
Sets m_brush
Definition at line 251 of file painter_data.hpp.
|
inline |
Sets m_brush
Definition at line 261 of file painter_data.hpp.
|
inline |
Sets m_brush
Definition at line 271 of file painter_data.hpp.
|
inline |
Sets m_brush
Definition at line 281 of file painter_data.hpp.
|
inline |
Sets m_item_shader_data
Definition at line 291 of file painter_data.hpp.
|
inline |
Sets m_blend_shader_data
Definition at line 301 of file painter_data.hpp.
PainterDataValue<PainterBlendShaderData> fastuidraw::PainterData::m_blend_shader_data |
value for blend shader data
Definition at line 245 of file painter_data.hpp.
brush_value fastuidraw::PainterData::m_brush |
value for brush (fixed-function or custom brush shading).
Definition at line 235 of file painter_data.hpp.
PainterDataValue<PainterItemShaderData> fastuidraw::PainterData::m_item_shader_data |
value for item shader data
Definition at line 240 of file painter_data.hpp.