HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HwLightShaders Class Reference

#include <HwShaderGenerator.h>

+ Inheritance diagram for HwLightShaders:

Public Member Functions

void bind (unsigned int type, ShaderNodePtr shader)
 Bind a light shader to a light type id. More...
 
void unbind (unsigned int type)
 Unbind a light shader previously bound to a light type id. More...
 
void clear ()
 Clear all light shaders previously bound. More...
 
const ShaderNodeget (unsigned int type) const
 
const std::unordered_map
< unsigned int, ShaderNodePtr > & 
get () const
 Return the map of bound light shaders. More...
 
- Public Member Functions inherited from GenUserData
virtual ~GenUserData ()
 
GenUserDataPtr getSelf ()
 Return a shared pointer for this object. More...
 
ConstGenUserDataPtr getSelf () const
 Return a shared pointer for this object. More...
 
template<class T >
shared_ptr< TasA ()
 Return this object cast to a templated type. More...
 
template<class T >
shared_ptr< const TasA () const
 Return this object cast to a templated type. More...
 

Static Public Member Functions

static HwLightShadersPtr create ()
 Create and return a new instance. More...
 

Protected Attributes

std::unordered_map< unsigned
int, ShaderNodePtr
_shaders
 

Additional Inherited Members

- Protected Member Functions inherited from GenUserData
 GenUserData ()
 

Detailed Description

Hardware light shader user data

Definition at line 243 of file HwShaderGenerator.h.

Member Function Documentation

void HwLightShaders::bind ( unsigned int  type,
ShaderNodePtr  shader 
)
inline

Bind a light shader to a light type id.

Definition at line 253 of file HwShaderGenerator.h.

void HwLightShaders::clear ( )
inline

Clear all light shaders previously bound.

Definition at line 265 of file HwShaderGenerator.h.

static HwLightShadersPtr HwLightShaders::create ( )
inlinestatic

Create and return a new instance.

Definition at line 247 of file HwShaderGenerator.h.

const ShaderNode* HwLightShaders::get ( unsigned int  type) const
inline

Return the light shader bound to the given light type, or nullptr if not light shader is bound to this type.

Definition at line 272 of file HwShaderGenerator.h.

const std::unordered_map<unsigned int, ShaderNodePtr>& HwLightShaders::get ( ) const
inline

Return the map of bound light shaders.

Definition at line 279 of file HwShaderGenerator.h.

void HwLightShaders::unbind ( unsigned int  type)
inline

Unbind a light shader previously bound to a light type id.

Definition at line 259 of file HwShaderGenerator.h.

Member Data Documentation

std::unordered_map<unsigned int, ShaderNodePtr> HwLightShaders::_shaders
protected

Definition at line 285 of file HwShaderGenerator.h.


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