Kanzi 4.0.0
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, size_t indexCount, MaterialSharedPtr material, string_view materialURL)
 Constructor.
 
size_t getIndexCount () const
 Compatibility helper method that returns the index count.
 

Public Attributes

size_t indexCount
 Index count.
 
size_t indexOffset
 Index buffer offset in bytes.
 
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/2]

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

Default constructor.

◆ Cluster() [2/2]

kanzi::Mesh::CreateInfo::Cluster::Cluster ( GraphicsPrimitiveType primitiveType,
size_t indexCount,
MaterialSharedPtr material,
string_view materialURL )
inlineexplicit

Constructor.

Parameters
primitiveTypePrimitive type for cluster.
indexCountNumber of indices for cluster.
materialMaterial (pointer).
materialURLURL to material resource.
Since
Kanzi 4.0.0 changed the type of the indexCount parameter to size_t.
Kanzi 4.0.0 removed the indexType parameter.

Member Function Documentation

◆ getIndexCount()

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

Compatibility helper method that returns the index count.

Returns
Index count.
Since
Kanzi 4.0.0 changed the type of the return value to size_t.

Member Data Documentation

◆ primitiveType

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

Primitive type for the cluster.

◆ indexCount

size_t kanzi::Mesh::CreateInfo::Cluster::indexCount

Index count.

Since
Kanzi 3.9.6
Kanzi 4.0.0 changed the type to size_t.

◆ indexOffset

size_t kanzi::Mesh::CreateInfo::Cluster::indexOffset

Index buffer offset in bytes.

Since
Kanzi 4.0.0

◆ 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: