|
HDK
|
#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 ShaderNode * | get (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< T > | asA () |
| Return this object cast to a templated type. More... | |
| template<class T > | |
| shared_ptr< const T > | asA () 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 () | |
Hardware light shader user data
Definition at line 248 of file HwShaderGenerator.h.
|
inline |
Bind a light shader to a light type id.
Definition at line 258 of file HwShaderGenerator.h.
|
inline |
Clear all light shaders previously bound.
Definition at line 270 of file HwShaderGenerator.h.
|
inlinestatic |
Create and return a new instance.
Definition at line 252 of file HwShaderGenerator.h.
|
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 277 of file HwShaderGenerator.h.
|
inline |
Return the map of bound light shaders.
Definition at line 284 of file HwShaderGenerator.h.
Unbind a light shader previously bound to a light type id.
Definition at line 264 of file HwShaderGenerator.h.
|
protected |
Definition at line 290 of file HwShaderGenerator.h.