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

A PainterBrushShader represents a shader for performing a custom brush coloring. More...

#include <painter_brush_shader.hpp>

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

Public Member Functions

 PainterBrushShader (unsigned int num_sub_shaders=1)
 
 PainterBrushShader (reference_counted_ptr< PainterBrushShader > 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 PainterBrushShader represents a shader for performing a custom brush coloring.

Definition at line 36 of file painter_brush_shader.hpp.

Constructor & Destructor Documentation

◆ PainterBrushShader() [1/2]

fastuidraw::PainterBrushShader::PainterBrushShader ( unsigned int  num_sub_shaders = 1)
inlineexplicit

Ctor for creating a PainterBrushShader which has multiple sub-shaders. The purpose of sub-shaders is for the case where multiple shaders have 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 48 of file painter_brush_shader.hpp.

◆ PainterBrushShader() [2/2]

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

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

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

Definition at line 58 of file painter_brush_shader.hpp.


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