Creates a new instance of VertexBuffer.
Declaration Syntax
C# |
public VertexBuffer( IRenderSystemProvider renderSystem, VertexDeclaration declaration, ResourceUsage usage, params DataBuffer[] data )
Parameters
- renderSystem (IRenderSystemProvider)
- Render system used to create the underlying implementation.
- declaration (VertexDeclaration)
- Vertex declaration that defines the vertex data of this buffer
- usage (ResourceUsage)
- Buffer usage, either static or dynamic
- data (array<DataBuffer>[]()[][])
- Vertex store arrays, one for each vertex element of the vertex declaration
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if the render system is null. |
TeslaException | Thrown if creating or writing to the underlying buffer fails. |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)