FastUIDraw
|
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) | |
PainterGlyphShader & | operator= (const PainterGlyphShader &rhs) |
const reference_counted_ptr< PainterItemShader > & | shader (enum glyph_type tp) const |
PainterGlyphShader & | shader (enum glyph_type tp, const reference_counted_ptr< PainterItemShader > &sh) |
unsigned int | shader_count (void) const |
void | swap (PainterGlyphShader &obj) |
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.
fastuidraw::PainterGlyphShader::PainterGlyphShader | ( | void | ) |
Ctor, inits as return value from shader(enum glyph_type) as a nullptr for each glyph_type value.
fastuidraw::PainterGlyphShader::PainterGlyphShader | ( | const PainterGlyphShader & | obj | ) |
Copy ctor.
PainterGlyphShader& fastuidraw::PainterGlyphShader::operator= | ( | const PainterGlyphShader & | rhs | ) |
Assignment operator.
const reference_counted_ptr<PainterItemShader>& fastuidraw::PainterGlyphShader::shader | ( | enum glyph_type | tp | ) | const |
Return the PainterItemShader for a given glyph_type.
tp | glyph type to render |
PainterGlyphShader& fastuidraw::PainterGlyphShader::shader | ( | enum glyph_type | tp, |
const reference_counted_ptr< PainterItemShader > & | sh | ||
) |
Set the PainterItemShader for a given glyph_type.
tp | glyph type to render |
sh | PainterItemShader to use for the glyph type |
unsigned int fastuidraw::PainterGlyphShader::shader_count | ( | void | ) | const |
Returns the one plus the largest value for which shader(enum glyph_type, PainterItemShader) was called.
void fastuidraw::PainterGlyphShader::swap | ( | PainterGlyphShader & | obj | ) |
Swap operation
obj | object with which to swap |