Struct TransformedColoredTextured
- Namespace
- OmegaEngine.Graphics.VertexDecl
- Assembly
- OmegaEngine.dll
A fixed-function vertex format that stores a transformed position, color and texture coordinates.
public struct TransformedColoredTextured
- Inherited Members
- Extension Methods
Constructors
TransformedColoredTextured(Vector3, float, int, float, float)
Creates a new transformed, colored and textured vertex
public TransformedColoredTextured(Vector3 position, float rhw, int color, float tu, float tv)
Parameters
position
Vector3The position of the vertex in screen-space
rhw
floatThe reciprocal of homogeneous W (the depth-value)
color
intA color by which the texture will be multiplied
tu
floatThe U-component of the texture coordinates
tv
floatThe V-component of the texture coordinates
TransformedColoredTextured(float, float, float, float, int, float, float)
Creates a new transformed, colored and textured vertex
public TransformedColoredTextured(float xvalue, float yvalue, float zvalue, float rhw, int color, float tu, float tv)
Parameters
xvalue
floatThe X-component of the position of the vertex in screen-space
yvalue
floatThe Y-component of the position of the vertex in screen-space
zvalue
floatThe Z-component of the position of the vertex in screen-space
rhw
floatThe reciprocal of homogeneous W (the depth-value)
color
intA color by which the texture will be multiplied
tu
floatThe U-component of the texture coordinates
tv
floatThe V-component of the texture coordinates
Fields
Color
A color by which the texture will be multiplied
public int Color
Field Value
Format
The fixed-function format of this vertex structure.
public const VertexFormat Format = PositionRhw | Diffuse | Texture1
Field Value
- VertexFormat
Position
The position of the vertex in screen-space
public Vector3 Position
Field Value
- Vector3
Rhw
The reciprocal of homogeneous W (the depth-value)
public float Rhw
Field Value
StrideSize
The length of this vertex structure in bytes.
public const int StrideSize = 28
Field Value
Tu
The U-component of the texture coordinates
public float Tu
Field Value
Tv
The V-component of the texture coordinates
public float Tv
Field Value
Properties
X
The X-component of the position of the vertex in screen-space
public float X { get; set; }
Property Value
Y
The Y-component of the position of the vertex in screen-space
public float Y { get; set; }
Property Value
Z
The Z-component of the position of the vertex in screen-space
public float Z { get; set; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.