OmegaEngine API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Public Attributes | Properties | List of all members
OmegaEngine.Graphics.VertexDecl.TransformedColoredTextured Struct Reference

A fixed-function vertex format that stores a transformed position, color and texture coordinates. More...

Public Member Functions

 TransformedColoredTextured (Vector3 position, float rhw, int color, float tu, float tv)
 Creates a new transformed, colored and textured vertex More...
 
 TransformedColoredTextured (float xvalue, float yvalue, float zvalue, float rhw, int color, float tu, float tv)
 Creates a new transformed, colored and textured vertex More...
 
override string ToString ()
 

Public Attributes

const VertexFormat Format = VertexFormat.PositionRhw | VertexFormat.Diffuse | VertexFormat.Texture1
 The fixed-function format of this vertex structure. More...
 
const int StrideSize = 7 * 4
 The length of this vertex structure in bytes. More...
 
Vector3 Position
 The position of the vertex in screen-space More...
 
float Rhw
 The reciprocal of homogeneous W (the depth-value) More...
 
int Color
 A color by which the texture will be multiplied More...
 
float Tu
 The U-component of the texture coordinates More...
 
float Tv
 The V-component of the texture coordinates More...
 

Properties

float X [get, set]
 The X-component of the position of the vertex in screen-space More...
 
float Y [get, set]
 The Y-component of the position of the vertex in screen-space More...
 
float Z [get, set]
 The Z-component of the position of the vertex in screen-space More...
 

Detailed Description

A fixed-function vertex format that stores a transformed position, color and texture coordinates.

Constructor & Destructor Documentation

OmegaEngine.Graphics.VertexDecl.TransformedColoredTextured.TransformedColoredTextured ( Vector3  position,
float  rhw,
int  color,
float  tu,
float  tv 
)
inline

Creates a new transformed, colored and textured vertex

Parameters
positionThe position of the vertex in screen-space
rhwThe reciprocal of homogeneous W (the depth-value)
colorA color by which the texture will be multiplied
tuThe U-component of the texture coordinates
tvThe V-component of the texture coordinates
OmegaEngine.Graphics.VertexDecl.TransformedColoredTextured.TransformedColoredTextured ( float  xvalue,
float  yvalue,
float  zvalue,
float  rhw,
int  color,
float  tu,
float  tv 
)
inline

Creates a new transformed, colored and textured vertex

Parameters
xvalueThe X-component of the position of the vertex in screen-space
yvalueThe Y-component of the position of the vertex in screen-space
zvalueThe Z-component of the position of the vertex in screen-space
rhwThe reciprocal of homogeneous W (the depth-value)
colorA color by which the texture will be multiplied
tuThe U-component of the texture coordinates
tvThe V-component of the texture coordinates

Member Data Documentation

int OmegaEngine.Graphics.VertexDecl.TransformedColoredTextured.Color

A color by which the texture will be multiplied

const VertexFormat OmegaEngine.Graphics.VertexDecl.TransformedColoredTextured.Format = VertexFormat.PositionRhw | VertexFormat.Diffuse | VertexFormat.Texture1

The fixed-function format of this vertex structure.

Vector3 OmegaEngine.Graphics.VertexDecl.TransformedColoredTextured.Position

The position of the vertex in screen-space

float OmegaEngine.Graphics.VertexDecl.TransformedColoredTextured.Rhw

The reciprocal of homogeneous W (the depth-value)

const int OmegaEngine.Graphics.VertexDecl.TransformedColoredTextured.StrideSize = 7 * 4

The length of this vertex structure in bytes.

float OmegaEngine.Graphics.VertexDecl.TransformedColoredTextured.Tu

The U-component of the texture coordinates

float OmegaEngine.Graphics.VertexDecl.TransformedColoredTextured.Tv

The V-component of the texture coordinates

Property Documentation

float OmegaEngine.Graphics.VertexDecl.TransformedColoredTextured.X
getset

The X-component of the position of the vertex in screen-space

float OmegaEngine.Graphics.VertexDecl.TransformedColoredTextured.Y
getset

The Y-component of the position of the vertex in screen-space

float OmegaEngine.Graphics.VertexDecl.TransformedColoredTextured.Z
getset

The Z-component of the position of the vertex in screen-space


The documentation for this struct was generated from the following file: