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.
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.
Member Name | Summary |
---|---|
Clear | Clear all vertices and indices, and resets Default. |
Init | Initializes the vertex buffer, optionally using an index buffer. |
Add | Adds a vertex to the buffer. |
AddIndex | Adds an index to the buffer. |
AddTriangleIndex | Adds a triangle index to the buffer using three indices. |
AddRawIndex | Adds a raw index to the buffer. |
Indexed | Indicates whether this vertex buffer has any indexes. This is set by Init. |
Default | The default vertex used in the buffer. |