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

A PainterItemCoverageShader represents a shader to draw an item to a coverage buffer (see PainterSurface::deferred_coverage_buffer_type). Typically such a shader represents both a vertex and fragment shader. More...

#include <painter_item_coverage_shader.hpp>

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

Public Member Functions

 PainterItemCoverageShader (void)
 
 PainterItemCoverageShader (unsigned int num_sub_shaders)
 
 PainterItemCoverageShader (reference_counted_ptr< PainterItemCoverageShader > parent, unsigned int sub_shader)
 
- Public Member Functions inherited from fastuidraw::PainterShader
 PainterShader (unsigned int num_sub_shaders=1)
 
 PainterShader (reference_counted_ptr< PainterShader > parent, unsigned int sub_shader)
 
uint32_t group (const PainterShaderRegistrar &) const
 
uint32_t ID (const PainterShaderRegistrar &) const
 
unsigned int number_sub_shaders (void) const
 
const reference_counted_ptr< PainterShader > & parent (void) const
 
bool registered_to (const PainterShaderRegistrar &) const
 
uint32_t sub_shader (void) const
 
Tag tag (const PainterShaderRegistrar &) 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 PainterItemCoverageShader represents a shader to draw an item to a coverage buffer (see PainterSurface::deferred_coverage_buffer_type). Typically such a shader represents both a vertex and fragment shader.

Definition at line 37 of file painter_item_coverage_shader.hpp.

Constructor & Destructor Documentation

◆ PainterItemCoverageShader() [1/3]

fastuidraw::PainterItemCoverageShader::PainterItemCoverageShader ( void  )
inline

Ctor for a PainterItemCoverageShader with no sub-shaders.

Definition at line 43 of file painter_item_coverage_shader.hpp.

◆ PainterItemCoverageShader() [2/3]

fastuidraw::PainterItemCoverageShader::PainterItemCoverageShader ( unsigned int  num_sub_shaders)
inlineexplicit

Ctor for creating a PainterItemCoverageShader which has multiple sub-shaders. The purpose of sub-shaders is for the case where multiple shaders almost same code and those code differences can be realized by examining a sub-shader ID.

Parameters
num_sub_shadersnumber of sub-shaders

Definition at line 56 of file painter_item_coverage_shader.hpp.

◆ PainterItemCoverageShader() [3/3]

fastuidraw::PainterItemCoverageShader::PainterItemCoverageShader ( reference_counted_ptr< PainterItemCoverageShader parent,
unsigned int  sub_shader 
)
inline

Ctor to create a PainterItemCoverageShader realized as a sub-shader of an existing PainterItemCoverageShader

Parameters
parentparent PainterItemCoverageShader that has sub-shaders
sub_shaderwhich sub-shader of the parent PainterItemCoverageShader

Definition at line 66 of file painter_item_coverage_shader.hpp.


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