Kanzi  3.9.6
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
 Default constructor. More...
 
 Cluster (GraphicsPrimitiveType primitiveType, unsigned int indexCount, IndexBufferType indexType, MaterialSharedPtr material, string_view materialURL)
 Constructor. More...
 
 Cluster (GraphicsPrimitiveType primitiveType, unsigned int indexCount, IndexBufferType indexType, GPUBuffer::NativeHandle indexBufferHandle, MaterialSharedPtr material, string_view materialURL)
 Constructor. More...
 
size_t getIndexCount () const
 Compatibility helper method that returns the index count. More...
 
bytesetIndexCount (size_t count)
 

Public Attributes

GPUBuffer::NativeHandle indexBufferHandle
 Native handle to the index buffer. More...
 
unsigned int indexCount
 Index count. More...
 
vector< byteindexData
 Index data. More...
 
IndexBufferType indexType
 The data type of the index buffer: UInt16 or UInt32. More...
 
MaterialSharedPtr material
 Material for this cluster. More...
 
string materialURL
 Temporary resource URL from which Kanzi acquires the material resource 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/3]

kanzi::Mesh::CreateInfo::Cluster::Cluster ( )
explicitdefault

Default constructor.

◆ Cluster() [2/3]

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.
indexTypeData type of the index buffer: UInt16 or UInt32.
materialMaterial (pointer).
materialURLURL to material resource.

◆ Cluster() [3/3]

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

Constructor.

Parameters
primitiveTypePrimitive type for cluster.
indexCountNumber of indices for cluster.
indexTypeData type of the index buffer: UInt16 or UInt32.
indexBufferHandleNative handle for the index buffer.
materialMaterial (pointer).
materialURLURL to material resource.
Since
Kanzi 3.9.6

Member Function Documentation

◆ getIndexCount()

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

Compatibility helper method that returns the index count.

◆ 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: UInt16 or UInt32.

◆ indexCount

unsigned int kanzi::Mesh::CreateInfo::Cluster::indexCount

Index count.

Since
Kanzi 3.9.6

◆ indexData

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

Index data.

◆ indexBufferHandle

GPUBuffer::NativeHandle kanzi::Mesh::CreateInfo::Cluster::indexBufferHandle

Native handle to the index buffer.

Since
Kanzi 3.9.6

◆ material

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

Material for this cluster.

◆ materialURL

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

Temporary resource URL from which Kanzi acquires the material resource during finishing of loading.


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