19 #ifndef FASTUIDRAW_PAINTER_DATA_HPP 20 #define FASTUIDRAW_PAINTER_DATA_HPP 26 #include <fastuidraw/painter/painter_custom_brush.hpp> 31 class PainterPackedValuePool;
62 m_brush_shader(nullptr)
99 m_brush_shader_data = v;
100 m_brush_shader =
nullptr;
109 m_brush_shader_data = br.m_data;
110 m_brush_shader = br.m_shader;
119 m_brush_shader_data = brush_data;
120 m_brush_shader =
nullptr;
131 return m_brush_shader;
141 return m_brush_shader_data;
150 m_brush_shader_data.make_packed(pool);
162 return m_brush_shader_data.packed();
190 template<
typename T1>
205 template<
typename T1,
typename T2>
224 template<
typename T1,
typename T2,
typename T3>
293 m_item_shader_data = value;
303 m_blend_shader_data = value;
brush_value(const PainterCustomBrush &br)
A PainterPackedValuePool can be used to create PainterPackedValue objects.
PainterData(const T1 &r1, const T2 &r2, const T3 &r3)
A PainterData provides the data for how for a Painter to draw content.
void make_packed(PainterPackedValuePool &pool)
all classes and functions of FastUIDraw are in the namespace fastuidraw.
brush_value(const PainterDataValue< PainterBrushShaderData > &brush_data)
void set(const PainterBrush *v)
file painter_data_value.hpp
PainterData(const T1 &r1)
void make_packed(PainterPackedValuePool &pool)
file painter_shader_data.hpp
file painter_brush_shader_data.hpp
A PainterCustomBrush is just a conveniance to wrap a pointer to a PainterBrushShader together with a ...
PainterData(const T1 &r1, const T2 &r2)
void make_packed(PainterPackedValuePool &pool)
A brush_value stores the brush applied; it stores a pointer to a PainterBrushShader together with a P...
brush_value(const PainterBrush *v)
PainterDataValue< PainterBlendShaderData > m_blend_shader_data
A PainterBrush defines a brush for painting via Painter.
const PainterDataValue< PainterBrushShaderData > & brush_shader_data(void) const
A PainterBrushShader represents a shader for performing a custom brush coloring.
PainterDataValue< PainterItemShaderData > m_item_shader_data
Element of PainterData to hold shader data either reference directly to unpacked data or to reuseable...
const PainterBrushShader * brush_shader(void) const
#define FASTUIDRAWassert(X)
file reference_counted.hpp