Struct Vertex2D
Vertex data used in 2D drawing operations
Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public struct Vertex2D
Properties
Colour
Additional mixing colour for vertex
Declaration
public Colour Colour { get; set; }
Property Value
| Type | Description |
|---|---|
| Colour |
Position
X, Y position
Declaration
public Vector2 Position { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
TexCoord0
Texture Coordinates for the primary texture reference
Declaration
public Vector2 TexCoord0 { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
TexCoord1
Texture Coordinates for the secondary texture reference
Declaration
public Vector2 TexCoord1 { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
TexWeighting
Weighting of primary texture in dual texturing scenarios (0 to 1) Secondary texture gets weighting 1 - value
Declaration
public float TexWeighting { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |