Cluster has a material, primitive type (currently always triangles), and handle for GPU memory buffer where primitive indices are stored. More...
#include <kanzi/core.ui/graphics3d/mesh.hpp>
Public Member Functions | |
| Cluster ()=default | |
| Default constructor. | |
| Cluster (Cluster &&)=default | |
| Default move constructor. | |
| Cluster (const Cluster &)=delete | |
| Deleted copy constructor. | |
| unsigned int | getCPUMemoryUsage () const |
| Get RAM usage of cluster. | |
| Cluster & | operator= (Cluster &&)=default |
| Default move assignment. | |
| Cluster & | operator= (const Cluster &)=delete |
| Deleted move operator. | |
Public Attributes | |
| GPUBufferUniquePtr | indexBuffer |
| Handle for GPU memory buffer where primitive indices are stored. | |
| size_t | indexCount |
| Number of indices. | |
| vector< byte > | indexData |
| Vector containing the index data. May be empty. | |
| IndexBufferType | indexType |
| Type of indices: UInt16 or UInt32. | |
| MaterialSharedPtr | material |
| Material for this cluster. | |
| GraphicsPrimitiveType | primitiveType |
| Primitive type for this cluster. | |
Cluster has a material, primitive type (currently always triangles), and handle for GPU memory buffer where primitive indices are stored.
|
explicitdefault |
Default constructor.
|
default |
Default move constructor.
Get RAM usage of cluster.
| GraphicsPrimitiveType kanzi::Mesh::Cluster::primitiveType |
Primitive type for this cluster.
| size_t kanzi::Mesh::Cluster::indexCount |
Number of indices.
Stored in a separate variable since indexData array can be freed to save memory.
| IndexBufferType kanzi::Mesh::Cluster::indexType |
Type of indices: UInt16 or UInt32.
| vector<byte> kanzi::Mesh::Cluster::indexData |
Vector containing the index data. May be empty.
| MaterialSharedPtr kanzi::Mesh::Cluster::material |
Material for this cluster.
| GPUBufferUniquePtr kanzi::Mesh::Cluster::indexBuffer |
Handle for GPU memory buffer where primitive indices are stored.