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

A fixed-function vertex format that stores position, normals and texture coordinates. Using this format hints the engine that that lighting is to be used. More...

Public Member Functions

 PositionNormalColored (Vector3 position, Vector3 normal, int color)
 Creates a new positioned, colored vertex with normal information More...
 
override string ToString ()
 

Public Attributes

const VertexFormat Format = VertexFormat.Position | VertexFormat.Normal | VertexFormat.Diffuse
 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 entity-space More...
 
Vector3 Normal
 The normal 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...
 
float Nx [get, set]
 The X-component of the normal of the vertex in entity-space More...
 
float Ny [get, set]
 The X-component of the normal of the vertex in entity-space More...
 
float Nz [get, set]
 The X-component of the normal of the vertex in entity-space More...
 

Detailed Description

A fixed-function vertex format that stores position, normals and texture coordinates. Using this format hints the engine that that lighting is to be used.

Constructor & Destructor Documentation

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

Creates a new positioned, colored vertex with normal information

Parameters
positionThe position of the vertex in entity-space
normalThe normal of the vertex in entity-space
colorThe color of the vertex

Member Data Documentation

int OmegaEngine.Graphics.VertexDecl.PositionNormalColored.Color

The color of the vertex

const VertexFormat OmegaEngine.Graphics.VertexDecl.PositionNormalColored.Format = VertexFormat.Position | VertexFormat.Normal | VertexFormat.Diffuse

The fixed-function format of this vertex structure.

Vector3 OmegaEngine.Graphics.VertexDecl.PositionNormalColored.Normal

The normal of the vertex in entity-space

Vector3 OmegaEngine.Graphics.VertexDecl.PositionNormalColored.Position

The position of the vertex in entity-space

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

The length of this vertex structure in bytes.

Property Documentation

float OmegaEngine.Graphics.VertexDecl.PositionNormalColored.Nx
getset

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

float OmegaEngine.Graphics.VertexDecl.PositionNormalColored.Ny
getset

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

float OmegaEngine.Graphics.VertexDecl.PositionNormalColored.Nz
getset

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

float OmegaEngine.Graphics.VertexDecl.PositionNormalColored.X
getset

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

float OmegaEngine.Graphics.VertexDecl.PositionNormalColored.Y
getset

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

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