FastUIDraw
|
A PainterEffectBrush represents applying a brush. The PainterEffectParams derived object to use with a PainterEffectBrush is PainterEffectBrushParams. More...
#include <painter_effect_brush.hpp>
Public Member Functions | |
virtual PainterData::brush_value | brush (unsigned pass, const reference_counted_ptr< const Image > &image, const Rect &brush_rect, PainterEffectParams ¶ms) const override |
virtual unsigned int | number_passes (void) const override |
Public Member Functions inherited from fastuidraw::reference_counted_base< T, Counter > | |
reference_counted_base (void) | |
Additional Inherited Members | |
Static Public Member Functions inherited from fastuidraw::reference_counted_base< T, Counter > | |
static void | add_reference (const reference_counted_base< T, Counter > *p) |
static void | remove_reference (const reference_counted_base< T, Counter > *p) |
A PainterEffectBrush represents applying a brush. The PainterEffectParams derived object to use with a PainterEffectBrush is PainterEffectBrushParams.
Definition at line 39 of file painter_effect_brush.hpp.
|
overridevirtual |
To be implemented by a derived class to return the brush made from the passed Image value. The returned PainterData::brush_value value needs to be valid until the PainterEffectParams dtor is called or the next call to brush() {called on from PainterEffect} passing the same PainterEffectParams. The passed image is guaranteed to have Image::type() as value Image::bindless_texture2d or Image::context_texture2d. The method brush() is to be thread safe with respect to the PainterEffect object, but NOT with respect to the PainterEffectParams object.
pass | the effect pass |
image | the image to which the effect is applied |
brush_rect | the brush coordinates of the rect drawn |
params | the parameters of the effect |
Implements fastuidraw::PainterEffect.
|
overridevirtual |
To be implemented by a derived class to return the number of passes the PainterEffect has.
Implements fastuidraw::PainterEffect.