Kanzi 3.9.10
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.
 
bool isValid () const
 Returns whether the morph weights construct is valid.
 

Static Public Member Functions

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

Protected Member Functions

 MorphHandles (GlRenderState &renderState)
 Constructor.
 

Protected Attributes

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

Detailed Description

Cached morph handles.

Since
Kanzi 3.9.7

Constructor & Destructor Documentation

◆ MorphHandles()

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

Constructor.

Parameters
renderStateRender state from which to acquire the morph handles.

Member Function Documentation

◆ create()

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.

◆ applyMorphRuntime()

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.

◆ isValid()

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

◆ m_morphWeightLocation

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

Location of morph weights for the current shader.

◆ m_morphWeightArraySize

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

Size of the morph weight array for the current shader.

◆ m_morphIndicesLocation

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

Location of morph indices for the current shader.

◆ m_morphDataTextureLocation

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

Location of morph data texture for the current shader.

◆ m_morphDataPositionOffsetLocation

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

Location of morph data position offset for the current shader.

◆ m_morphDataNormalOffsetLocation

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

Location of morph data normal offset for the current shader.

◆ m_morphDataTangentOffsetLocation

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

Location of morph data tangent offset for the current shader.

◆ m_morphDataSizeLocation

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: