Class GorgonDrawCall
A draw call that draws only using a set of vertices.
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public class GorgonDrawCall : 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(GorgonDrawCall, in GorgonColor?, int, int) methods.
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 this 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 SourceVertexCount
Property to return the number of vertices to draw.
Declaration
public int VertexCount { get; set; }
Property Value
Type | Description |
---|---|
int |
See Also
| Edit this page View SourceVertexStartIndex
Property to return the vertex index to start at within the vertex buffer.
Declaration
public int VertexStartIndex { get; set; }
Property Value
Type | Description |
---|---|
int |