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

A fixed-function vertex format that stores position and texture coordinates. Using this format hints the engine that normals and tangents still need to be calculated. More...

Public Member Functions

 PositionTextured (Vector3 position, float tu, float tv)
 Creates a new positioned, textured vertex More...
 
 PositionTextured (float xvalue, float yvalue, float zvalue, float tu, float tv)
 Creates a new positioned, textured vertex More...
 
override string ToString ()
 

Public Attributes

const VertexFormat Format = VertexFormat.Position | VertexFormat.Texture1
 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 entity-space 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 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 texture coordinates. Using this format hints the engine that normals and tangents still need to be calculated.

Constructor & Destructor Documentation

OmegaEngine.Graphics.VertexDecl.PositionTextured.PositionTextured ( Vector3  position,
float  tu,
float  tv 
)
inline

Creates a new positioned, textured vertex

Parameters
positionThe position of the vertex in entity-space
tuThe U-component of the texture coordinates
tvThe V-component of the texture coordinates
OmegaEngine.Graphics.VertexDecl.PositionTextured.PositionTextured ( float  xvalue,
float  yvalue,
float  zvalue,
float  tu,
float  tv 
)
inline

Creates a new positioned, textured 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
tuThe U-component of the texture coordinates
tvThe V-component of the texture coordinates

Member Data Documentation

const VertexFormat OmegaEngine.Graphics.VertexDecl.PositionTextured.Format = VertexFormat.Position | VertexFormat.Texture1

The fixed-function format of this vertex structure.

Vector3 OmegaEngine.Graphics.VertexDecl.PositionTextured.Position

The position of the vertex in entity-space

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

The length of this vertex structure in bytes.

float OmegaEngine.Graphics.VertexDecl.PositionTextured.Tu

The U-component of the texture coordinates

float OmegaEngine.Graphics.VertexDecl.PositionTextured.Tv

The V-component of the texture coordinates

Property Documentation

float OmegaEngine.Graphics.VertexDecl.PositionTextured.X
getset

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

float OmegaEngine.Graphics.VertexDecl.PositionTextured.Y
getset

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

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