Class IndexBuffer
Represents an index buffer.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class IndexBuffer : GraphicBuffer
Constructors
IndexBuffer(Buffer, IndexFormat, int, int, bool, nint)
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, nint data = 0)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | The buffer. |
IndexFormat | indexFormat | Index buffer format. |
int | offset | The offset from the buffer. |
int | size | The size of the vertex buffer. |
bool | flipWinding | The option to flip the winding order. |
nint | data | The raw data. |
Fields
FlipWinding
Flips the winding order.
Declaration
public bool FlipWinding
Field Value
Type | Description |
---|---|
bool |
IndexCount
The count of indexes.
Declaration
public readonly int IndexCount
Field Value
Type | Description |
---|---|
int |
IndexFormat
Represents 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 |