Kanzi  3.9.7
Kanzi Engine API
kanzi::RenderEntry3D::MorphHandles Class Reference

Cached morph handles. More...

#include <kanzi/core.ui/graphics3d/render_entry_3d.hpp>

Public Member Functions

void applyMorphRuntime (const Morph::DataTextureInfo *dataTextureInfo, MorphRuntime &morphRuntime, GlRenderState &renderState)
 Applies a given morph runtime. More...
 
bool isValid () const
 Returns whether the morph weights construct is valid. More...
 

Static Public Member Functions

static unique_ptr< MorphHandlescreate (GlRenderState &renderState)
 Creates a structure of morph handles. More...
 

Protected Member Functions

 MorphHandles (GlRenderState &renderState)
 Constructor. More...
 

Protected Attributes

GlRenderState::HandleType m_morphDataNormalOffsetLocation
 Location of morph data normal offset for the current shader. More...
 
GlRenderState::HandleType m_morphDataPositionOffsetLocation
 Location of morph data position offset for the current shader. More...
 
GlRenderState::HandleType m_morphDataSizeLocation
 Location of morph data size for the current shader. More...
 
GlRenderState::HandleType m_morphDataTangentOffsetLocation
 Location of morph data tangent offset for the current shader. More...
 
GlRenderState::HandleType m_morphDataTextureLocation
 Location of morph data texture for the current shader. More...
 
GlRenderState::HandleType m_morphIndicesLocation
 Location of morph indices for the current shader. More...
 
size_t m_morphWeightArraySize
 Size of the morph weight array for the current shader. More...
 
GlRenderState::HandleType m_morphWeightLocation
 Location of morph weights for the current shader. More...
 

Detailed Description

Cached morph handles.

Since
Kanzi 3.9.7

Constructor & Destructor Documentation

kanzi::RenderEntry3D::MorphHandles::MorphHandles ( GlRenderState renderState)
explicitprotected

Constructor.

Parameters
renderStateRender state from which to acquire the morph handles.

Member Function Documentation

static unique_ptr<MorphHandles> kanzi::RenderEntry3D::MorphHandles::create ( GlRenderState renderState)
inlinestatic

Creates a structure of morph handles.

Parameters
renderStateRender state from which to acquire the morph handles.
Returns
Morph handles.
void kanzi::RenderEntry3D::MorphHandles::applyMorphRuntime ( const Morph::DataTextureInfo dataTextureInfo,
MorphRuntime morphRuntime,
GlRenderState renderState 
)

Applies a given morph runtime.

Parameters
dataTextureInfoInfo regarding data texture, may be nullptr.
morphRuntimeMorph runtime to apply.
renderStateRender state to which to apply the morph runtime.
bool kanzi::RenderEntry3D::MorphHandles::isValid ( ) const
inline

Returns whether the morph weights construct is valid.

Returns
If the construct is valid and Kanzi can use it to render morphs, true, otherwise false.

Member Data Documentation

GlRenderState::HandleType kanzi::RenderEntry3D::MorphHandles::m_morphWeightLocation
protected

Location of morph weights for the current shader.

size_t kanzi::RenderEntry3D::MorphHandles::m_morphWeightArraySize
protected

Size of the morph weight array for the current shader.

GlRenderState::HandleType kanzi::RenderEntry3D::MorphHandles::m_morphIndicesLocation
protected

Location of morph indices for the current shader.

GlRenderState::HandleType kanzi::RenderEntry3D::MorphHandles::m_morphDataTextureLocation
protected

Location of morph data texture for the current shader.

GlRenderState::HandleType kanzi::RenderEntry3D::MorphHandles::m_morphDataPositionOffsetLocation
protected

Location of morph data position offset for the current shader.

GlRenderState::HandleType kanzi::RenderEntry3D::MorphHandles::m_morphDataNormalOffsetLocation
protected

Location of morph data normal offset for the current shader.

GlRenderState::HandleType kanzi::RenderEntry3D::MorphHandles::m_morphDataTangentOffsetLocation
protected

Location of morph data tangent offset for the current shader.

GlRenderState::HandleType kanzi::RenderEntry3D::MorphHandles::m_morphDataSizeLocation
protected

Location of morph data size for the current shader.


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