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

A PainterGlyphShader holds a shader for each glyph_type. The shaders are to handle attribute data as packed by Glyph::pack_glyph(). More...

#include <painter_glyph_shader.hpp>

Public Member Functions

 PainterGlyphShader (void)
 
 PainterGlyphShader (const PainterGlyphShader &obj)
 
PainterGlyphShaderoperator= (const PainterGlyphShader &rhs)
 
const reference_counted_ptr< PainterItemShader > & shader (enum glyph_type tp) const
 
PainterGlyphShadershader (enum glyph_type tp, const reference_counted_ptr< PainterItemShader > &sh)
 
unsigned int shader_count (void) const
 
void swap (PainterGlyphShader &obj)
 

Detailed Description

A PainterGlyphShader holds a shader for each glyph_type. The shaders are to handle attribute data as packed by Glyph::pack_glyph().

Definition at line 39 of file painter_glyph_shader.hpp.

Constructor & Destructor Documentation

◆ PainterGlyphShader() [1/2]

fastuidraw::PainterGlyphShader::PainterGlyphShader ( void  )

Ctor, inits as return value from shader(enum glyph_type) as a nullptr for each glyph_type value.

◆ PainterGlyphShader() [2/2]

fastuidraw::PainterGlyphShader::PainterGlyphShader ( const PainterGlyphShader obj)

Copy ctor.

Member Function Documentation

◆ operator=()

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

Assignment operator.

◆ shader() [1/2]

const reference_counted_ptr<PainterItemShader>& fastuidraw::PainterGlyphShader::shader ( enum glyph_type  tp) const

Return the PainterItemShader for a given glyph_type.

Parameters
tpglyph type to render

◆ shader() [2/2]

PainterGlyphShader& fastuidraw::PainterGlyphShader::shader ( enum glyph_type  tp,
const reference_counted_ptr< PainterItemShader > &  sh 
)

Set the PainterItemShader for a given glyph_type.

Parameters
tpglyph type to render
shPainterItemShader to use for the glyph type

◆ shader_count()

unsigned int fastuidraw::PainterGlyphShader::shader_count ( void  ) const

Returns the one plus the largest value for which shader(enum glyph_type, PainterItemShader) was called.

◆ swap()

void fastuidraw::PainterGlyphShader::swap ( PainterGlyphShader obj)

Swap operation

Parameters
objobject with which to swap

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