Kanzi Framework  3.9.0
Kanzi Engine API
kanzi::Mesh::CreateInfo::Cluster Struct Reference

Parameters for Mesh::Cluster creation. More...

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

Public Member Functions

 Cluster ()
 Default constructor. More...
 
 Cluster (GraphicsPrimitiveType primitiveType, unsigned int indexCount, IndexBufferType indexType, MaterialSharedPtr material, string_view materialURL)
 Constructor. More...
 
size_t getIndexCount () const
 A helper method that returns the index count as defined by the index data size divided by the stride. More...
 
bytesetIndexCount (size_t count)
 

Public Attributes

vector< byteindexData
 Index data. More...
 
IndexBufferType indexType
 The data type of the index buffer. UInt8, UInt16, or UInt32. More...
 
MaterialSharedPtr material
 Material for this cluster. More...
 
string materialURL
 Temporary resource URL during loading, from which the material resource is acquired during finishing of loading. More...
 
GraphicsPrimitiveType primitiveType
 Primitive type for the cluster. More...
 

Detailed Description

Parameters for Mesh::Cluster creation.

Constructor & Destructor Documentation

◆ Cluster() [1/2]

kanzi::Mesh::CreateInfo::Cluster::Cluster ( )
inlineexplicit

Default constructor.

◆ Cluster() [2/2]

kanzi::Mesh::CreateInfo::Cluster::Cluster ( GraphicsPrimitiveType  primitiveType,
unsigned int  indexCount,
IndexBufferType  indexType,
MaterialSharedPtr  material,
string_view  materialURL 
)
inlineexplicit

Constructor.

Parameters
primitiveTypePrimitive type for cluster.
indexCountNumber of indices for cluster.
indexTypeThe data type of the index buffer. UInt8, UInt16, or UInt32.
materialMaterial (pointer).
materialURLURL to material resource.

Member Function Documentation

◆ getIndexCount()

size_t kanzi::Mesh::CreateInfo::Cluster::getIndexCount ( ) const
inline

A helper method that returns the index count as defined by the index data size divided by the stride.

◆ setIndexCount()

byte* kanzi::Mesh::CreateInfo::Cluster::setIndexCount ( size_t  count)
inline

Member Data Documentation

◆ primitiveType

GraphicsPrimitiveType kanzi::Mesh::CreateInfo::Cluster::primitiveType

Primitive type for the cluster.

◆ indexType

IndexBufferType kanzi::Mesh::CreateInfo::Cluster::indexType

The data type of the index buffer. UInt8, UInt16, or UInt32.

◆ indexData

vector<byte> kanzi::Mesh::CreateInfo::Cluster::indexData

Index data.

◆ material

MaterialSharedPtr kanzi::Mesh::CreateInfo::Cluster::material

Material for this cluster.

◆ materialURL

string kanzi::Mesh::CreateInfo::Cluster::materialURL

Temporary resource URL during loading, from which the material resource is acquired during finishing of loading.


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