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

A ShaderFilledPath represents a path that is drawn as a rectangle where the fragment shader acting on the rectangle performs the coverage computation of each pixel. Generally speaking, one should only fill paths via a ShaderFilledPath when a filled path when drawn has very high density of edges. More...

#include <shader_filled_path.hpp>

Inheritance diagram for fastuidraw::ShaderFilledPath:
Inheritance graph
[legend]

Classes

class  Builder
 

Public Member Functions

 ShaderFilledPath (const Builder &B)
 
void render_data (GlyphAtlas &glyph_atlas, enum PainterEnums::fill_rule_t fill_rule, c_array< const PainterAttribute > *out_attribs, c_array< const PainterIndex > *out_indices) const
 
enum glyph_type render_type (void) const
 
- 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)
 

Detailed Description

A ShaderFilledPath represents a path that is drawn as a rectangle where the fragment shader acting on the rectangle performs the coverage computation of each pixel. Generally speaking, one should only fill paths via a ShaderFilledPath when a filled path when drawn has very high density of edges.

Definition at line 52 of file shader_filled_path.hpp.

Constructor & Destructor Documentation

◆ ShaderFilledPath()

fastuidraw::ShaderFilledPath::ShaderFilledPath ( const Builder B)
explicit

Ctor.

Parameters
BBuilder object specifying the contours of the ShaderFilledPath constructed.

Member Function Documentation

◆ render_data()

void fastuidraw::ShaderFilledPath::render_data ( GlyphAtlas glyph_atlas,
enum PainterEnums::fill_rule_t  fill_rule,
c_array< const PainterAttribute > *  out_attribs,
c_array< const PainterIndex > *  out_indices 
) const

Returns the Painter Attribute and PainterIndex data to draw the filled path. The attribute data is packed so that it is to be shaded by a PainterGlyphShader.

Parameters
glyph_atlasGlyphAtlas to place GPU data
fill_rulefull rule with which to fill the path
out_attribslocation to which to write attributes
out_indiceslocation to which to write indices

◆ render_type()

enum glyph_type fastuidraw::ShaderFilledPath::render_type ( void  ) const

Returns the glyph_type of the ShaderFilledPath. Any PainterGlyphShader that accepts the returned glyph_type can then also be used to draw the ShaderFilledPath.


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