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

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
 
PainterBlendShaderSetoperator= (const PainterBlendShaderSet &rhs)
 
const reference_counted_ptr< PainterBlendShader > & shader (enum PainterEnums::blend_mode_t tp) const
 
PainterBlendShaderSetshader (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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PainterBlendShaderSet() [1/2]

fastuidraw::PainterBlendShaderSet::PainterBlendShaderSet ( void  )

Ctor, inits as all return value from shader(enum glyph_type) return a PainterItemShader with no shaders

◆ PainterBlendShaderSet() [2/2]

fastuidraw::PainterBlendShaderSet::PainterBlendShaderSet ( const PainterBlendShaderSet obj)

Copy ctor.

Member Function Documentation

◆ blend_mode()

BlendMode fastuidraw::PainterBlendShaderSet::blend_mode ( enum PainterEnums::blend_mode_t  tp) const

Returns the BlendMode for a given PainterEnums::blend_mode_t.

Parameters
tpblend mode

◆ operator=()

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

Assignment operator.

◆ shader() [1/2]

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.

Parameters
tpblend mode

◆ shader() [2/2]

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.

Parameters
tpblend shader being specified
mode3D API BlendMode to use
shPainterShader to use for the blend mode

◆ shader_count()

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.

◆ swap()

void fastuidraw::PainterBlendShaderSet::swap ( PainterBlendShaderSet obj)

Swap operation

Parameters
objobject with which to swap

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