Struct PositionNormalColored
- Namespace
- OmegaEngine.Graphics.VertexDecl
- Assembly
- OmegaEngine.dll
A fixed-function vertex format that stores position, normals and color. Using this format hints the engine that that lighting is to be used.
public struct PositionNormalColored
- Inherited Members
- Extension Methods
Constructors
PositionNormalColored(Vector3, Vector3, int)
Creates a new positioned, colored vertex with normal information
public PositionNormalColored(Vector3 position, Vector3 normal, int color)
Parameters
position
Vector3The position of the vertex in entity-space
normal
Vector3The normal of the vertex in entity-space
color
intThe 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 = PositionNormal | Diffuse
Field Value
- VertexFormat
Normal
The normal of the vertex in entity-space
public Vector3 Normal
Field Value
- Vector3
Position
The position of the vertex in entity-space
public Vector3 Position
Field Value
- Vector3
StrideSize
The length of this vertex structure in bytes.
public const int StrideSize = 28
Field Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.