Parameters for Mesh::Cluster creation.
More...
#include <kanzi/core.ui/graphics3d/mesh_create_info.hpp>
Parameters for Mesh::Cluster creation.
◆ Cluster() [1/3]
| kanzi::Mesh::CreateInfo::Cluster::Cluster |
( |
| ) |
|
|
explicitdefault |
◆ Cluster() [2/3]
Constructor.
- Parameters
-
| primitiveType | Primitive type for cluster. |
| indexCount | Number of indices for cluster. |
| indexType | Data type of the index buffer: UInt16 or UInt32. |
| material | Material (pointer). |
| materialURL | URL to material resource. |
- Since
- Kanzi 4.0.0 changed the type of the indexCount parameter to size_t.
◆ Cluster() [3/3]
Constructor.
- Parameters
-
| primitiveType | Primitive type for cluster. |
| indexCount | Number of indices for cluster. |
| indexType | Data type of the index buffer: UInt16 or UInt32. |
| indexBufferHandle | Native handle for the index buffer. |
| material | Material (pointer). |
| materialURL | URL to material resource. |
- Since
- Kanzi 3.9.6
-
Kanzi 4.0.0 changed the type of the indexCount parameter to size_t and indexBufferHandle to BufferHandleGuard.
◆ 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.
◆ setIndexCount()
| byte * kanzi::Mesh::CreateInfo::Cluster::setIndexCount |
( |
size_t | count | ) |
|
|
inline |
Sets the index count.
- Parameters
-
- Returns
- Pointer to the index data after resizing the array, or, if count was 0, nullptr.
- Since
- Kanzi 4.0.0 changed the type of the count parameter to size_t.
◆ primitiveType
Primitive type for the cluster.
◆ indexType
The data type of the index buffer: UInt16 or UInt32.
◆ 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.
◆ indexData
| vector<byte> kanzi::Mesh::CreateInfo::Cluster::indexData |
◆ indexBufferHandle
Kanzi graphics handle to the index buffer.
- Since
- Kanzi 3.9.6
-
Kanzi 4.0.0 changed the type to BufferHandleGuard.
◆ material
◆ 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: