Store vertices and triangles data on the GPU, linked by an array object.
More...
#include <GPUObjects.hpp>
|
|
std::unique_ptr< Buffer > | vertexBuffer |
| | Vertex data buffer.
|
| |
|
std::unique_ptr< Buffer > | indexBuffer |
| | Index element buffer.
|
| |
|
size_t | count = 0 |
| | The number of vertices (cached).
|
| |
|
State | state |
| | Internal GPU layout.
|
| |
Store vertices and triangles data on the GPU, linked by an array object.
◆ GPUMesh() [1/3]
◆ GPUMesh() [2/3]
| GPUMesh::GPUMesh |
( |
const GPUMesh & |
| ) |
|
|
delete |
Copy constructor (disabled).
◆ GPUMesh() [3/3]
◆ clean()
Clean internal GPU buffers.
◆ isEquivalent()
| bool GPUMesh::isEquivalent |
( |
const GPUMesh & |
other | ) |
const |
Test if two meshes have the same input configuration (attributes,...)
- Parameters
-
| other | the mesh to compare to |
- Returns
- true if the two are equivalent for a pipeline
◆ operator=() [1/2]
Copy assignment operator (disabled).
- Returns
- a reference to the object assigned to
◆ operator=() [2/2]
Move assignment operator .
- Returns
- a reference to the object assigned to
The documentation for this class was generated from the following files: