Kanzi  3.9.9
Kanzi Engine C++ API
kanzi::Morph::DataTextureInfo Class Reference

Data texture information structure. More...

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

Public Member Functions

size_t getDataSize () const
 Gets the data size. More...
 
TextureSharedPtr getDataTexture () const
 Gets the data texture. More...
 
size_t getNormalOffset () const
 Gets the normal offset. More...
 
size_t getPositionOffset () const
 Gets the position offset. More...
 
size_t getTangentOffset () const
 Gets the tangent offset. More...
 

Static Public Member Functions

static unique_ptr< DataTextureInfocreate (size_t dataSize, TextureSharedPtr dataTexture, size_t positionOffset, size_t normalOffset, size_t tangentOffset)
 Creates a new data texture info structure. More...
 

Protected Member Functions

 DataTextureInfo (size_t dataSize, TextureSharedPtr dataTexture, size_t positionOffset, size_t normalOffset, size_t tangentOffset)
 Constructor. More...
 

Protected Attributes

size_t m_dataSize
 Morph data size. More...
 
TextureSharedPtr m_dataTexture
 Data texture containing the morph data. More...
 
size_t m_normalOffset
 Normal offset. More...
 
size_t m_positionOffset
 Position offset. More...
 
size_t m_tangentOffset
 Position offset. More...
 

Detailed Description

Data texture information structure.

Since
Kanzi 3.9.7

Constructor & Destructor Documentation

kanzi::Morph::DataTextureInfo::DataTextureInfo ( size_t  dataSize,
TextureSharedPtr  dataTexture,
size_t  positionOffset,
size_t  normalOffset,
size_t  tangentOffset 
)
inlineexplicitprotected

Constructor.

Parameters
dataSizeSize of one morph data block.
dataTextureData texture container.
positionOffsetPosition data offset.
normalOffsetNormal data offset.
tangentOffsetTangent data offset.

Member Function Documentation

static unique_ptr<DataTextureInfo> kanzi::Morph::DataTextureInfo::create ( size_t  dataSize,
TextureSharedPtr  dataTexture,
size_t  positionOffset,
size_t  normalOffset,
size_t  tangentOffset 
)
inlinestatic

Creates a new data texture info structure.

Parameters
dataSizeSize of one morph data block.
dataTextureData texture container.
positionOffsetPosition data offset.
normalOffsetNormal data offset.
tangentOffsetTangent data offset.
size_t kanzi::Morph::DataTextureInfo::getDataSize ( ) const
inline

Gets the data size.

Returns
Data size for the morph data block.
TextureSharedPtr kanzi::Morph::DataTextureInfo::getDataTexture ( ) const
inline

Gets the data texture.

Returns
Data texture containing morph data.
size_t kanzi::Morph::DataTextureInfo::getPositionOffset ( ) const
inline

Gets the position offset.

Returns
Position offset into the data texture.
size_t kanzi::Morph::DataTextureInfo::getNormalOffset ( ) const
inline

Gets the normal offset.

Returns
Normal offset into the data texture.
size_t kanzi::Morph::DataTextureInfo::getTangentOffset ( ) const
inline

Gets the tangent offset.

Returns
Tangent offset into the data texture.

Member Data Documentation

size_t kanzi::Morph::DataTextureInfo::m_dataSize
protected

Morph data size.

TextureSharedPtr kanzi::Morph::DataTextureInfo::m_dataTexture
protected

Data texture containing the morph data.

size_t kanzi::Morph::DataTextureInfo::m_positionOffset
protected

Position offset.

size_t kanzi::Morph::DataTextureInfo::m_normalOffset
protected

Normal offset.

size_t kanzi::Morph::DataTextureInfo::m_tangentOffset
protected

Position offset.


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