Class GorgonDrawIndexCall
A draw call that draws using an index buffer.
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public class GorgonDrawIndexCall : GorgonDrawCallCommon
Remarks
A draw call is an immutable object that contains all of the state required to render mesh information. For each mesh an application needs to render, an single draw call should be issued via the Submit(GorgonDrawIndexCall, in GorgonColor?, int, int) method.
State management is handled internally by Gorgon so that duplicate states are not set and thus, performance is not impacted by redundant states.
Because a draw call is immutable, it is not possible to modify a draw call after it's been created. However, a copy of a draw call can be created using the ResetTo(TDc) method on the GorgonDrawIndexCallBuilder object. Or, the builder can be modified after the creation of your draw call that needs to be updated and a new call may be built then.
Properties
| Edit this page View SourceBaseVertexIndex
Property to set or return the base vertex index in the vertex buffer to use when drawing.
Declaration
public int BaseVertexIndex { get; set; }
Property Value
Type | Description |
---|---|
int |
See Also
| Edit this page View SourceIndexBuffer
Property to return the index buffer
Declaration
public GorgonIndexBuffer IndexBuffer { get; }
Property Value
Type | Description |
---|---|
GorgonIndexBuffer |
See Also
| Edit this page View SourceIndexCount
Property to set or return the number of indices to draw.
Declaration
public int IndexCount { get; set; }
Property Value
Type | Description |
---|---|
int |
See Also
| Edit this page View SourceIndexStart
Property to set or return the index to start at within the index buffer.
Declaration
public int IndexStart { get; set; }
Property Value
Type | Description |
---|---|
int |