Skip to content

OpenGLMesh::StagedGeometry ​

struct · #include <rayrai/OpenGLMesh.hpp>

Where staging buffers (persistently mapped, OpenGL 4.4) hold this mesh's vertices and indices as uploadPreparedGeometry() stores them. Internal.

Public attributes ​

vertexBuffer ​

cpp
unsigned int vertexBuffer

The staging buffer holding vertices,.

vertexOffset ​

cpp
size_t vertexOffset

at this offset.

indexBuffer ​

cpp
unsigned int indexBuffer

The staging buffer holding the indices.

indexOffset ​

cpp
size_t indexOffset

(16-bit when uploadsCompactIndices()), at this offset.

RaiSim — physics for robotics and AI.