Class IndexBuffer
Represents an index buffer.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class IndexBuffer : GraphicBuffer, IDisposable
Constructors
IndexBuffer(Buffer, IndexFormat, int, int, bool, IntPtr)
Initializes a new instance of the IndexBuffer class.
Declaration
public IndexBuffer(Buffer buffer, IndexFormat indexFormat = IndexFormat.UInt16, int offset = 0, int size = -1, bool flipWinding = false, IntPtr data = default)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | The buffer. |
IndexFormat | indexFormat | Index buffer format. |
int | offset | The offset respect the buffer. |
int | size | The size of the vertex buffer. |
bool | flipWinding | Flip the winding order. |
IntPtr | data | The raw data. |
Fields
FlipWinding
Flip the winding order.
Declaration
public bool FlipWinding
Field Value
Type | Description |
---|---|
bool |
IndexCount
The index count.
Declaration
public readonly int IndexCount
Field Value
Type | Description |
---|---|
int |
IndexFormat
The vertex layout.
Declaration
public readonly IndexFormat IndexFormat
Field Value
Type | Description |
---|---|
IndexFormat |
Properties
ElementSizeInBytes
Gets the size in bytes per index.
Declaration
public int ElementSizeInBytes { get; }
Property Value
Type | Description |
---|---|
int |