class VertexBuffer

book_4_sparkGenerated
code_blocksInput

Description

The VertexBuffer class in the Sandbox namespace is used to manage a collection of vertices and indices for rendering purposes. It provides methods to initialize, clear, and manipulate vertex data efficiently.

Members

Instance Members

Member NameSummary
ClearClear all vertices and indices, and resets Default.
InitInitializes the vertex buffer, optionally using an index buffer.
AddAdds a vertex to the buffer.
AddIndexAdds an index to the buffer.
AddTriangleIndexAdds a triangle index to the buffer using three indices.
AddRawIndexAdds a raw index to the buffer.
IndexedIndicates whether this vertex buffer has any indexes. This is set by Init.
DefaultThe default vertex used in the buffer.