Kanzi 4.0.0-beta2
kanzi::RenderEntry3D::MorphHandles Class Reference

Cached morph handles. More...

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

Public Member Functions

void apply (const Mesh &mesh, GlRenderState &renderState) const
 Applies morph handles into a render state.
 
bool isValid () const
 Returns whether the morph weights construct is valid.
 
 MorphHandles ()=default
 Default constructor.
 
 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.
 

Detailed Description

Cached morph handles.

Since
Kanzi 3.9.7
Kanzi 4.0.0 removed the m_morphDataTextureLocation, m_morphIndicesLocation, m_morphWeightArraySize and m_morphWeightLocation fields.

Constructor & Destructor Documentation

◆ MorphHandles() [1/2]

kanzi::RenderEntry3D::MorphHandles::MorphHandles ( )
explicitdefault

Default constructor.

◆ MorphHandles() [2/2]

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

Constructor.

Parameters
renderStateRender state from which to acquire the morph handles.

Member Function Documentation

◆ apply()

void kanzi::RenderEntry3D::MorphHandles::apply ( const Mesh & mesh,
GlRenderState & renderState ) const

Applies morph handles into a render state.

Parameters
meshMesh to read relevant information from.
renderStateRender state to which to apply the morph runtime.
Since
Kanzi 4.0.0
  • Removed the dataTextureInfo and morphRuntime parameters.
  • Added the mesh parameter.

◆ 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_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: