20 #ifndef FASTUIDRAW_PAINTER_GRADIENT_BRUSH_SHADER_HPP 21 #define FASTUIDRAW_PAINTER_GRADIENT_BRUSH_SHADER_HPP 24 #include <fastuidraw/painter/painter_custom_brush.hpp> static uint32_t sub_shader_id(enum spread_type_t, enum gradient_type_t)
#define FASTUIDRAW_MASK(BIT0, NUMBITS)
A PainterPackedValuePool can be used to create PainterPackedValue objects.
A PainterGradientBrushShaderData defines the PainterBrushShaderData that the shaders of a PainterGrad...
all classes and functions of FastUIDraw are in the namespace fastuidraw.
A wrapper over a pointer to implement reference counting.
file painter_brush_shader.hpp
PainterGradientBrushShader(const reference_counted_ptr< PainterBrushShader > &generic, const reference_counted_ptr< PainterBrushShader > &linear, const reference_counted_ptr< PainterBrushShader > &radial, const reference_counted_ptr< PainterBrushShader > &sweep, const reference_counted_ptr< PainterBrushShader > &white)
const reference_counted_ptr< PainterBrushShader > & sweep_sub_shader(enum spread_type_t) const
A PainterCustomBrush is just a conveniance to wrap a pointer to a PainterBrushShader together with a ...
file painter_gradient_brush_shader_data.hpp
sub_shader_bits
Enumeration describing the roles of the bits for the sub-shader ID's.
Defines default reference counting base classes.
const reference_counted_ptr< PainterBrushShader > & linear_sub_shader(enum spread_type_t) const
const reference_counted_ptr< PainterBrushShader > & radial_sub_shader(enum spread_type_t) const
Class to contain various enumerations needed for describing a brush.
A PainterGradientBrushShader represents a set of brush shaders to to perform a gradient. Internally it containts four generic parent shaders:
const reference_counted_ptr< PainterBrushShader > & white_shader(void) const
PainterCustomBrush create_brush(PainterPackedValuePool &pool, const PainterGradientBrushShaderData &brush_data, enum spread_type_t spread) const
const reference_counted_ptr< PainterBrushShader > & sub_shader(enum spread_type_t, enum gradient_type_t) const