19 #ifndef FASTUIDRAW_PAINTER_EFFECT_BRUSH_HPP 20 #define FASTUIDRAW_PAINTER_EFFECT_BRUSH_HPP 50 const Rect &brush_rect,
82 const vec2 &start_p,
const vec2 &end_p,
101 const vec2 &start_p,
float start_r,
102 const vec2 &end_p,
float end_r,
143 const vec2 &p,
float theta,
float F,
167 const vec2 &p,
float theta,
173 rotation_orientation, F, spread);
196 const vec2 &p,
float theta,
202 rotation_orientation, spread);
PainterEffectBrushParams & apply_matrix(const float2x2 &m)
PainterEffectBrushParams & radial_gradient(const reference_counted_ptr< const ColorStopSequence > &cs, const vec2 &p, float r, enum PainterBrush::spread_type_t spread)
A PainterEffect represents the interface to define and effect to apply to image data. At its core, it is made up of a sequence of passes.
PainterEffectBrushParams & no_repeat_window(void)
screen_orientation
Enumeration to indicate in what direction the y-coordinate increases.
all classes and functions of FastUIDraw are in the namespace fastuidraw.
PainterEffectBrushParams & transformation_translate(const vec2 &p)
A wrapper over a pointer to implement reference counting.
PainterEffectBrushParams & radial_gradient(const reference_counted_ptr< const ColorStopSequence > &cs, const vec2 &start_p, float start_r, const vec2 &end_p, float end_r, enum PainterBrush::spread_type_t spread)
PainterEffectBrushParams & no_transformation(void)
PainterEffectBrushParams & no_transformation_matrix(void)
PainterEffectBrushParams & no_gradient(void)
PainterEffectBrushParams & linear_gradient(const reference_counted_ptr< const ColorStopSequence > &cs, const vec2 &start_p, const vec2 &end_p, enum PainterBrush::spread_type_t spread)
PainterEffectBrushParams & apply_rotate(float angle)
PainterEffectBrushParams & sweep_gradient(const reference_counted_ptr< const ColorStopSequence > &cs, const vec2 &p, float theta, float F, enum PainterBrush::spread_type_t spread)
PainterEffectBrushParams & apply_translate(const vec2 &p)
PainterEffectBrushParams & repeat_window(const vec2 &pos, const vec2 &size, enum PainterBrush::spread_type_t x_mode=PainterBrush::spread_repeat, enum PainterBrush::spread_type_t y_mode=PainterBrush::spread_repeat)
PainterEffectBrushParams & sweep_gradient(const reference_counted_ptr< const ColorStopSequence > &cs, const vec2 &p, float theta, enum PainterEnums::screen_orientation orientation, enum PainterEnums::rotation_orientation_t rotation_orientation, enum PainterBrush::spread_type_t spread)
PainterEffectBrushParams & sweep_gradient(const reference_counted_ptr< const ColorStopSequence > &cs, const vec2 &p, float theta, enum PainterEnums::screen_orientation orientation, enum PainterEnums::rotation_orientation_t rotation_orientation, float F, enum PainterBrush::spread_type_t spread)
PainterEffectBrushParams & transformation(const vec2 &p, const float2x2 &m)
virtual PainterData::brush_value brush(unsigned pass, const reference_counted_ptr< const Image > &image, const Rect &brush_rect, PainterEffectParams ¶ms) const override
A brush_value stores the brush applied; it stores a pointer to a PainterBrushShader together with a P...
PainterEffectBrushParams & apply_shear(float sx, float sy)
virtual unsigned int number_passes(void) const override
PainterEffectBrushParams & no_transformation_translation(void)
rotation_orientation_t
Enumeration to specify orientation of a rotation.
A PainterBrush defines a brush for painting via Painter.
PainterEffectBrushParams & color(const vec4 &v)
A PainterEffectBrush represents applying a brush. The PainterEffectParams derived object to use with ...
PainterEffectBrushParams & transformation_matrix(const float2x2 &m)