Struct VertexPositionColor
A vertex format structure containing the vertex position and color.
Namespace: Evergine.Common.Graphics.VertexFormats
Assembly: Evergine.Common.dll
Syntax
public struct VertexPositionColor
Constructors
VertexPositionColor(Vector3, Color)
Initializes a new instance of the VertexPositionColor struct.
Declaration
public VertexPositionColor(Vector3 position, Color color)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position. |
Color | color | The color. |
Fields
Color
Vertex's color.
Declaration
public Color Color
Field Value
Type | Description |
---|---|
Color |
Position
The vertex position.
Declaration
public Vector3 Position
Field Value
Type | Description |
---|---|
Vector3 |
VertexFormat
Vertex format for this vertex.
Declaration
public static readonly LayoutDescription VertexFormat
Field Value
Type | Description |
---|---|
LayoutDescription |