All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kanzi::GlShaderRenderer Struct Reference

Shader property storage. More...

#include <kanzi/rendering/gl_shader_renderer.hpp>

Public Member Functions

void addPropertyListener (Node *node, GlRenderState &renderState, AbstractPropertyType propertyType)
 Add a listener for given property. More...
 
void attach (MaterialSharedPtr materialResource, Node *node, GlRenderState &renderState)
 Attach to a combination of nodes. More...
 
void update (GlRenderState &renderState, Object &object, Material &material)
 Apply changes into render state. More...
 
void setAllPropertiesDirty ()
 Flag all properties as being dirty and needing an update. More...
 

Detailed Description

Shader property storage.

Member Function Documentation

void kanzi::GlShaderRenderer::addPropertyListener ( Node node,
GlRenderState renderState,
AbstractPropertyType  propertyType 
)

Add a listener for given property.

Parameters
propertyTypeProperty type to listen.
void kanzi::GlShaderRenderer::attach ( MaterialSharedPtr  materialResource,
Node node,
GlRenderState renderState 
)

Attach to a combination of nodes.

Parameters
materialResourceMaterial to use.
objectObject to use (mesh, brush).
nodeNode to listen property changes on.
renderStateRender state that will be updated on changes.
void kanzi::GlShaderRenderer::update ( GlRenderState renderState,
Object object,
Material material 
)

Apply changes into render state.

Parameters
renderStateRender state to write changes to.
objectFallback object for property value.
materialFallback material for property value.
void kanzi::GlShaderRenderer::setAllPropertiesDirty ( )

Flag all properties as being dirty and needing an update.


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