|
Ritchie's Abstractions 0.2
Platform abstractions that make Toolbox work
|
A buffer of graphics memory containing structured vertex data. More...
Public Member Functions | |
| VertexBuffer (int size, BufferUsage usage) | |
| Creates a new VertexBuffer<TElement>. | |
| void | SetData (in ReadOnlySpan< TElement > data) |
| Change the data inside the vertex buffer. | |
Public Member Functions inherited from GraphicsObject | |
| void | Dispose () |
Protected Member Functions | |||
| override void | Dispose (bool disposing) | ||
Called when it's time to throw out the trash.
| |||
Protected Member Functions inherited from GraphicsObject | |||
| GraphicsObject () | |||
| Creates a new GraphicsObject instance. | |||
Properties | |
| int | Count [get] |
| Gets the amount of vertices stored within this buffer. | |
Properties inherited from GraphicsObject | |
| GraphicsDevice | GraphicsDevice [get] |
| Gets the GraphicsDevice instance this GraphicsObject belongs to. | |
A buffer of graphics memory containing structured vertex data.
| TElement | A structure representing the data contained in each vertex. |
| TElement | : | unmanaged |
|
inlineprotectedvirtual |
Called when it's time to throw out the trash.
| disposing | If true, please throw away your trash. Skunks! |
Reimplemented from GraphicsObject.
|
inline |
Change the data inside the vertex buffer.
| data | A slice of memory containing new vertex data. Must be the same length as the buffer itself. |
|
inline |
Creates a new VertexBuffer<TElement>.
| size | The amount of vertices to store within the buffer. |
| usage | A value indicating how the buffer should be treated by the graphics platform. |