Creates a new instance of IndexBuffer.
Declaration Syntax
C# |
public IndexBuffer( IRenderSystemProvider renderSystem, IndexFormat format, int indexCount, ResourceUsage usage )
Parameters
- renderSystem (IRenderSystemProvider)
- Render system used to create the underlying implementation.
- format (IndexFormat)
- The index format.
- indexCount (Int32)
- The number of indices the buffer will contain.
- usage (ResourceUsage)
- The resource usage specifying the type of memory the buffer should use.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if the render system is null. |
TeslaException | Thrown if creating underlying buffer fails. |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)