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.PositionColored Struct Reference

A fixed-function vertex format that stores position and color. Using this format hints the engine that that no lighting is to be used. More...

Public Member Functions

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

Public Attributes

const VertexFormat Format = VertexFormat.Position | VertexFormat.Diffuse
 The fixed-function format of this vertex structure. More...
 
const int StrideSize = 4 * 4
 The length of this vertex structure in bytes. More...
 
Vector3 Position
 The position of the vertex in entity-space More...
 
int Color
 The color of the vertex More...
 

Properties

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

Detailed Description

A fixed-function vertex format that stores position and color. Using this format hints the engine that that no lighting is to be used.

Constructor & Destructor Documentation

OmegaEngine.Graphics.VertexDecl.PositionColored.PositionColored ( Vector3  position,
int  color 
)
inline

Creates a new positioned, colored vertex

Parameters
positionThe position of the vertex in entity-space
colorThe color of the vertex
OmegaEngine.Graphics.VertexDecl.PositionColored.PositionColored ( float  xvalue,
float  yvalue,
float  zvalue,
int  color 
)
inline

Creates a new positioned, colored vertex

Parameters
xvalueThe X-component of the position of the vertex in entity-space
yvalueThe Y-component of the position of the vertex in entity-space
zvalueThe Z-component of the position of the vertex in entity-space
colorThe color of the vertex

Member Data Documentation

int OmegaEngine.Graphics.VertexDecl.PositionColored.Color

The color of the vertex

const VertexFormat OmegaEngine.Graphics.VertexDecl.PositionColored.Format = VertexFormat.Position | VertexFormat.Diffuse

The fixed-function format of this vertex structure.

Vector3 OmegaEngine.Graphics.VertexDecl.PositionColored.Position

The position of the vertex in entity-space

const int OmegaEngine.Graphics.VertexDecl.PositionColored.StrideSize = 4 * 4

The length of this vertex structure in bytes.

Property Documentation

float OmegaEngine.Graphics.VertexDecl.PositionColored.X
getset

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

float OmegaEngine.Graphics.VertexDecl.PositionColored.Y
getset

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

float OmegaEngine.Graphics.VertexDecl.PositionColored.Z
getset

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


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