FastUIDraw
Public Member Functions | List of all members
fastuidraw::PainterFillShader Class Reference

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
 
PainterFillShaderaa_fuzz_shader (const reference_counted_ptr< PainterItemShader > &sh)
 
const reference_counted_ptr< PainterItemShader > & item_shader (void) const
 
PainterFillShaderitem_shader (const reference_counted_ptr< PainterItemShader > &sh)
 
PainterFillShaderoperator= (const PainterFillShader &rhs)
 
void swap (PainterFillShader &obj)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PainterFillShader() [1/2]

fastuidraw::PainterFillShader::PainterFillShader ( void  )

Ctor

◆ PainterFillShader() [2/2]

fastuidraw::PainterFillShader::PainterFillShader ( const PainterFillShader obj)

Copy ctor.

Member Function Documentation

◆ aa_fuzz_shader() [1/2]

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.

◆ aa_fuzz_shader() [2/2]

PainterFillShader& fastuidraw::PainterFillShader::aa_fuzz_shader ( const reference_counted_ptr< PainterItemShader > &  sh)

Set the value returned by aa_fuzz_shader(void) const.

Parameters
shvalue to use

◆ item_shader() [1/2]

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().

◆ item_shader() [2/2]

PainterFillShader& fastuidraw::PainterFillShader::item_shader ( const reference_counted_ptr< PainterItemShader > &  sh)

Set the value returned by item_shader(void) const.

Parameters
shvalue to use

◆ operator=()

PainterFillShader& fastuidraw::PainterFillShader::operator= ( const PainterFillShader rhs)

Assignment operator.

◆ swap()

void fastuidraw::PainterFillShader::swap ( PainterFillShader obj)

Swap operation

Parameters
objobject with which to swap

The documentation for this class was generated from the following file: