A view into a Mesh object.
More...
#include <candlewick/core/Mesh.h>
|
bool | isIndexed () const |
|
| MeshView (const MeshView &parent, Uint32 subVertexOffset, Uint32 vertexSubCount, Uint32 subIndexOffset, Uint32 indexSubCount) |
|
A view into a Mesh object.
Objects of this class are copyable and movable, since they only "borrow" the buffers.
- Warning
- A MeshView is expected to be non-empty: positive vertex count and index count (if initial Mesh is indexed).
- See also
- Mesh
◆ MeshView()
candlewick::MeshView::MeshView |
( |
const MeshView & | parent, |
|
|
Uint32 | subVertexOffset, |
|
|
Uint32 | vertexSubCount, |
|
|
Uint32 | subIndexOffset, |
|
|
Uint32 | indexSubCount ) |
◆ isIndexed()
bool candlewick::MeshView::isIndexed |
( |
| ) |
const |
|
inline |
◆ Mesh
◆ indexBuffer
SDL_GPUBuffer* candlewick::MeshView::indexBuffer |
◆ indexCount
Uint32 candlewick::MeshView::indexCount |
Number of indices in the mesh view.
◆ indexOffset
Uint32 candlewick::MeshView::indexOffset |
Index offset (in elements).
◆ vertexBuffers
std::vector<SDL_GPUBuffer *> candlewick::MeshView::vertexBuffers |
◆ vertexCount
Uint32 candlewick::MeshView::vertexCount |
Number of vertices in the mesh view.
◆ vertexOffset
Uint32 candlewick::MeshView::vertexOffset |
Vertex offsets, expressed in elements.
The documentation for this class was generated from the following file: