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

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

Default constructor.

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.
materialMaterial (pointer).
materialURLURL to material resource.

Member Function Documentation

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.

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

Member Data Documentation

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

Primitive type for the cluster.

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

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

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

Index data.

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

Material for this cluster.

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: