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) | |
Cluster & | operator= (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... | |
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.
|
inlineexplicit |
Default constructor.
|
inlineexplicit |
Constructor.
primitiveType | Primitive type for cluster. |
indexCount | Number of indices for cluster. |
material | Material (pointer). |
materialURL | URL to material resource. |
|
inlineexplicit |
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.