Struct DrawRequest
Holds data for 2D drawing requests A drawing request is comprised of indexed vertices arranged in a triangle list
Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public struct DrawRequest
Fields
Colour
Colour to apply to all vertices
Declaration
public Colour Colour
Field Value
| Type | Description |
|---|---|
| Colour |
CoordinateSpace
Screen or World coordinate spaces. Triangles in World space are transformed by a camera2D's position of focus and zoom factor
Declaration
public CoordinateSpace CoordinateSpace
Field Value
| Type | Description |
|---|---|
| CoordinateSpace |
Depth
Z depth of vertices defining ordering within a layer (0.0 [front] to 1.0 [back])
Declaration
public float Depth
Field Value
| Type | Description |
|---|---|
| System.Single |
FillType
Triangle filltype - Solid Colour, Single Textured or Dual Textured
Declaration
public FillType FillType
Field Value
| Type | Description |
|---|---|
| FillType |
Indices
Triangle indices data, referencing array positions of vertex data. Array length must be divisible by 3
Declaration
public int[] Indices
Field Value
| Type | Description |
|---|---|
| System.Int32[] |
Layer
= 0. The layer that these vertices belong too, lower layers are drawn behind higher layers
Declaration
public int Layer
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Texture0
Primary Texture Reference (texture used for single texturing) Note: If you are using ulong references, there is helper function in IDrawing that will WrapTextureId() into a reference object
Declaration
public ITexture Texture0
Field Value
| Type | Description |
|---|---|
| ITexture |
Texture1
Secondary Texture Reference (testure used for dual texturing) Note: If you are using ulong references, there is helper function in IDrawing that will WrapTextureId() into a reference object
Declaration
public ITexture Texture1
Field Value
| Type | Description |
|---|---|
| ITexture |
TextureWrap0
Primary Texture Coordinate Wrap behaviour (Wrap or Mirror is the only defined behaviour)
Declaration
public TextureCoordinateMode TextureWrap0
Field Value
| Type | Description |
|---|---|
| TextureCoordinateMode |
TextureWrap1
Secondary Texture Coordinate Wrap behaviour (Wrap or Mirror is the only defined behaviour)
Declaration
public TextureCoordinateMode TextureWrap1
Field Value
| Type | Description |
|---|---|
| TextureCoordinateMode |
Vertices
Vertex Data
Declaration
public Vertex2D[] Vertices
Field Value
| Type | Description |
|---|---|
| Vertex2D[] |