OmegaEngine API  1.0.3
Public Member Functions | Public Attributes | Properties | List of all members
OmegaEngine.Graphics.VertexDecl.TransformedColored Struct Reference

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

Public Member Functions

 TransformedColored (Vector3 position, float rhw, int color)
 Creates a new transformed, colored vertex More...
 
 TransformedColored (float xvalue, float yvalue, float zvalue, float rhw, int color)
 Creates a new transformed, colored vertex More...
 
override string ToString ()
 

Public Attributes

const VertexFormat Format = VertexFormat.PositionRhw | VertexFormat.Diffuse
 The fixed-function format of this vertex structure. More...
 
const int StrideSize = 5 * 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
 The color of the vertex 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 and color.

Constructor & Destructor Documentation

◆ TransformedColored() [1/2]

OmegaEngine.Graphics.VertexDecl.TransformedColored.TransformedColored ( Vector3  position,
float  rhw,
int  color 
)
inline

Creates a new transformed, colored vertex

Parameters
positionThe position of the vertex in screen-space
rhwThe reciprocal of homogeneous W (the depth-value)
colorThe color of the vertex

◆ TransformedColored() [2/2]

OmegaEngine.Graphics.VertexDecl.TransformedColored.TransformedColored ( float  xvalue,
float  yvalue,
float  zvalue,
float  rhw,
int  color 
)
inline

Creates a new transformed, colored 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)
colorThe color of the vertex

Member Data Documentation

◆ Color

int OmegaEngine.Graphics.VertexDecl.TransformedColored.Color

The color of the vertex

◆ Format

const VertexFormat OmegaEngine.Graphics.VertexDecl.TransformedColored.Format = VertexFormat.PositionRhw | VertexFormat.Diffuse

The fixed-function format of this vertex structure.

◆ Position

Vector3 OmegaEngine.Graphics.VertexDecl.TransformedColored.Position

The position of the vertex in screen-space

◆ Rhw

float OmegaEngine.Graphics.VertexDecl.TransformedColored.Rhw

The reciprocal of homogeneous W (the depth-value)

◆ StrideSize

const int OmegaEngine.Graphics.VertexDecl.TransformedColored.StrideSize = 5 * 4

The length of this vertex structure in bytes.

Property Documentation

◆ X

float OmegaEngine.Graphics.VertexDecl.TransformedColored.X
getset

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

◆ Y

float OmegaEngine.Graphics.VertexDecl.TransformedColored.Y
getset

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

◆ Z

float OmegaEngine.Graphics.VertexDecl.TransformedColored.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: