Struct PositionColored
- Namespace
- OmegaEngine.Graphics.VertexDecl
- Assembly
- OmegaEngine.dll
A fixed-function vertex format that stores position and color. Using this format hints the engine that no lighting is to be used.
public struct PositionColored
- Inherited Members
Constructors
PositionColored(Vector3, int)
A fixed-function vertex format that stores position and color. Using this format hints the engine that no lighting is to be used.
public PositionColored(Vector3 position, int color)
Parameters
positionVector3The position of the vertex in entity-space
colorintThe color of the vertex
PositionColored(float, float, float, int)
Creates a new positioned, colored vertex
public PositionColored(float xvalue, float yvalue, float zvalue, int color)
Parameters
xvaluefloatThe X-component of the position of the vertex in entity-space
yvaluefloatThe Y-component of the position of the vertex in entity-space
zvaluefloatThe Z-component of the position of the vertex in entity-space
colorintThe color of the vertex
Fields
Color
The color of the vertex
public int Color
Field Value
Format
The fixed-function format of this vertex structure.
public const VertexFormat Format = Position | Diffuse
Field Value
- VertexFormat
Position
The position of the vertex in entity-space
public Vector3 Position
Field Value
- Vector3
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.