kanzi::Mesh::Cluster Struct Reference

Parameters for Mesh::Cluster creation. More...

#include <kanzi/core.ui/platform/graphics_backend/gl/mesh.hpp>

Public Member Functions

 Cluster ()
 Default constructor. More...
 
 Cluster (GraphicsPrimitiveType primitiveType, unsigned int indexCount, MaterialSharedPtr material, string_view materialURL)
 Constructor. More...
 
 Cluster ()
 
 Cluster (KZ_RV_REF(Cluster) other)
 
Clusteroperator= (KZ_RV_REF(Cluster) other)
 

Public Attributes

GraphicsPrimitiveType primitiveType
 Primitive type for the cluster. More...
 
vector< uint16_t > indexData
 Index data. 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...
 
unsigned int indexCount
 Number of indices. Stored in a separate variable since indexData array can be freed to save memory. More...
 
BufferUniquePtr indexBuffer
 Handle for GPU memory buffer where primitive indices are stored. More...
 

Detailed Description

Parameters for Mesh::Cluster creation.

Cluster has a material, primitive type (currently always triangles), and handle for GPU memory buffer where primitive indices are stored.

Constructor & Destructor Documentation

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

Default constructor.

kanzi::Mesh::Cluster::Cluster ( GraphicsPrimitiveType  primitiveType,
unsigned int  indexCount,
MaterialSharedPtr  material,
string_view  materialURL 
)
inlineexplicit

Constructor.

Parameters
primitiveTypePrimitive type for cluster.
indexCountNumber of indices for cluster.
materialMaterial (pointer).
materialURLURL to material resource.
kanzi::Mesh::Cluster::Cluster ( )
inlineexplicit
kanzi::Mesh::Cluster::Cluster ( KZ_RV_REF(Cluster other)
inline

Member Function Documentation

Cluster& kanzi::Mesh::Cluster::operator= ( KZ_RV_REF(Cluster other)
inline

Member Data Documentation

GraphicsPrimitiveType kanzi::Mesh::Cluster::primitiveType

Primitive type for the cluster.

Primitive type for this cluster.

vector< uint16_t > kanzi::Mesh::Cluster::indexData

Index data.

Vector containing the index data. May be empty.

MaterialSharedPtr kanzi::Mesh::Cluster::material

Material for this cluster.

string kanzi::Mesh::Cluster::materialURL

Temporary resource URL during loading, from which the material resource is acquired during finishing of loading.

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

Number of indices. Stored in a separate variable since indexData array can be freed to save memory.

BufferUniquePtr kanzi::Mesh::Cluster::indexBuffer

Handle for GPU memory buffer where primitive indices are stored.


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