FastUIDraw
|
A PainterFillShader holds the shaders for drawing filled paths. Anti-aliasing is accomplished by drawing 1-pixel thick rects about the boundary of the filled path. More...
#include <painter_fill_shader.hpp>
Public Member Functions | |
PainterFillShader (void) | |
PainterFillShader (const PainterFillShader &obj) | |
const reference_counted_ptr< PainterItemShader > & | aa_fuzz_shader (void) const |
PainterFillShader & | aa_fuzz_shader (const reference_counted_ptr< PainterItemShader > &sh) |
const reference_counted_ptr< PainterItemShader > & | item_shader (void) const |
PainterFillShader & | item_shader (const reference_counted_ptr< PainterItemShader > &sh) |
PainterFillShader & | operator= (const PainterFillShader &rhs) |
void | swap (PainterFillShader &obj) |
A PainterFillShader holds the shaders for drawing filled paths. Anti-aliasing is accomplished by drawing 1-pixel thick rects about the boundary of the filled path.
Definition at line 39 of file painter_fill_shader.hpp.
fastuidraw::PainterFillShader::PainterFillShader | ( | void | ) |
Ctor
fastuidraw::PainterFillShader::PainterFillShader | ( | const PainterFillShader & | obj | ) |
Copy ctor.
const reference_counted_ptr<PainterItemShader>& fastuidraw::PainterFillShader::aa_fuzz_shader | ( | void | ) | const |
Returns the PainterItemShader to use to draw the anti-alias fuzz via the deferred coverage buffer. This shader will draw the aa-fuzz in two passes: the first pass draws the coverage as computed by a fragment shader to the deferred coverage buffer (via the PainterItemShader::coverage_shader()) and the 2nd pass reads from the deferred coverage buffer to emit the alpha value.
PainterFillShader& fastuidraw::PainterFillShader::aa_fuzz_shader | ( | const reference_counted_ptr< PainterItemShader > & | sh | ) |
Set the value returned by aa_fuzz_shader(void) const.
sh | value to use |
const reference_counted_ptr<PainterItemShader>& fastuidraw::PainterFillShader::item_shader | ( | void | ) | const |
Returns the PainterItemShader to use to draw the filled path triangles. The expected format of the attributes is as found in the PainterAttributeData returned by FilledPath::Subset::painter_data().
PainterFillShader& fastuidraw::PainterFillShader::item_shader | ( | const reference_counted_ptr< PainterItemShader > & | sh | ) |
Set the value returned by item_shader(void) const.
sh | value to use |
PainterFillShader& fastuidraw::PainterFillShader::operator= | ( | const PainterFillShader & | rhs | ) |
Assignment operator.
void fastuidraw::PainterFillShader::swap | ( | PainterFillShader & | obj | ) |
Swap operation
obj | object with which to swap |