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

Public Attributes

GPUBuffer::NativeHandle indexBufferHandle
 Native handle to the index buffer.
 
unsigned int indexCount
 Index count.
 
vector< byteindexData
 Index data.
 
IndexBufferType indexType
 The data type of the index buffer: UInt16 or UInt32.
 
MaterialSharedPtr material
 Material for this cluster.
 
string materialURL
 Temporary resource URL from which Kanzi acquires the material resource during finishing of loading.
 
GraphicsPrimitiveType primitiveType
 Primitive type for the cluster.
 

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()

unsigned int kanzi::Mesh::CreateInfo::Cluster::getIndexCount ( ) const
inline

Compatibility helper method that returns the index count.

◆ setIndexCount()

byte * kanzi::Mesh::CreateInfo::Cluster::setIndexCount ( unsigned int 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: