Kanzi  3.9.7
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...
 
unsigned int getIndexCount () const
 Compatibility helper method that returns the index count. More...
 
bytesetIndexCount (unsigned int 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

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

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

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

Compatibility helper method that returns the index count.

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

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

Index count.

Since
Kanzi 3.9.6
vector<byte> kanzi::Mesh::CreateInfo::Cluster::indexData

Index data.

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

Native handle to the index buffer.

Since
Kanzi 3.9.6
MaterialSharedPtr kanzi::Mesh::CreateInfo::Cluster::material

Material for this cluster.

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: