FastUIDraw
|
A PainterBlendShaderSet represents a set of shaders for the blend modes enumerated by PainterEnums::blend_mode_t. More...
#include <painter_blend_shader_set.hpp>
Public Member Functions | |
PainterBlendShaderSet (void) | |
PainterBlendShaderSet (const PainterBlendShaderSet &obj) | |
BlendMode | blend_mode (enum PainterEnums::blend_mode_t tp) const |
PainterBlendShaderSet & | operator= (const PainterBlendShaderSet &rhs) |
const reference_counted_ptr< PainterBlendShader > & | shader (enum PainterEnums::blend_mode_t tp) const |
PainterBlendShaderSet & | shader (enum PainterEnums::blend_mode_t tp, const BlendMode &mode, const reference_counted_ptr< PainterBlendShader > &sh) |
unsigned int | shader_count (void) const |
void | swap (PainterBlendShaderSet &obj) |
A PainterBlendShaderSet represents a set of shaders for the blend modes enumerated by PainterEnums::blend_mode_t.
Definition at line 39 of file painter_blend_shader_set.hpp.
fastuidraw::PainterBlendShaderSet::PainterBlendShaderSet | ( | void | ) |
Ctor, inits as all return value from shader(enum glyph_type) return a PainterItemShader with no shaders
fastuidraw::PainterBlendShaderSet::PainterBlendShaderSet | ( | const PainterBlendShaderSet & | obj | ) |
Copy ctor.
BlendMode fastuidraw::PainterBlendShaderSet::blend_mode | ( | enum PainterEnums::blend_mode_t | tp | ) | const |
Returns the BlendMode for a given PainterEnums::blend_mode_t.
tp | blend mode |
PainterBlendShaderSet& fastuidraw::PainterBlendShaderSet::operator= | ( | const PainterBlendShaderSet & | rhs | ) |
Assignment operator.
const reference_counted_ptr<PainterBlendShader>& fastuidraw::PainterBlendShaderSet::shader | ( | enum PainterEnums::blend_mode_t | tp | ) | const |
Return the PainterShader for a given PainterEnums::blend_mode_t.
tp | blend mode |
PainterBlendShaderSet& fastuidraw::PainterBlendShaderSet::shader | ( | enum PainterEnums::blend_mode_t | tp, |
const BlendMode & | mode, | ||
const reference_counted_ptr< PainterBlendShader > & | sh | ||
) |
Set the PainterShader for a given PainterEnums::blend_mode_t.
tp | blend shader being specified |
mode | 3D API BlendMode to use |
sh | PainterShader to use for the blend mode |
unsigned int fastuidraw::PainterBlendShaderSet::shader_count | ( | void | ) | const |
Returns the one plus the largest value for which shader(enum PainterEnums::blend_mode_t, const reference_counted_ptr<PainterShader>&) was called.
void fastuidraw::PainterBlendShaderSet::swap | ( | PainterBlendShaderSet & | obj | ) |
Swap operation
obj | object with which to swap |