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

A fixed-function vertex format that stores position, normals, binormals, tangents and texture coordinates. Using this format hints the engine that all necessary data is already present. More...

Public Member Functions

 PositionNormalBinormalTangentTextured (Vector3 position, Vector3 normal, Vector3 binormal, Vector3 tangent, float tu, float tv)
 Creates a new positioned, textured vertex with normal, binormal and tangent information More...
 
override string ToString ()
 

Static Public Member Functions

static VertexElement [] GetVertexElements ()
 Returns an array describing the usage of the vertex fields More...
 

Public Attributes

const int StrideSize = 14 * 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...
 
float Tu
 The U-component of the texture coordinates More...
 
float Tv
 The V-component of the texture coordinates More...
 
Vector3 Binormal
 The binormal of the vertex in entity-space More...
 
Vector3 Tangent
 The tangent of the vertex in entity-space 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, binormals, tangents and texture coordinates. Using this format hints the engine that all necessary data is already present.

Constructor & Destructor Documentation

◆ PositionNormalBinormalTangentTextured()

OmegaEngine.Graphics.VertexDecl.PositionNormalBinormalTangentTextured.PositionNormalBinormalTangentTextured ( Vector3  position,
Vector3  normal,
Vector3  binormal,
Vector3  tangent,
float  tu,
float  tv 
)
inline

Creates a new positioned, textured vertex with normal, binormal and tangent information

Parameters
positionThe position of the vertex in entity-space
normalThe normal of the vertex in entity-space
binormalThe binormal of the vertex in entity-space
tangentThe tangent of the vertex in entity-space
tuThe U-component of the texture coordinates
tvThe V-component of the texture coordinates

Member Function Documentation

◆ GetVertexElements()

static VertexElement [] OmegaEngine.Graphics.VertexDecl.PositionNormalBinormalTangentTextured.GetVertexElements ( )
inlinestatic

Returns an array describing the usage of the vertex fields

Member Data Documentation

◆ Binormal

Vector3 OmegaEngine.Graphics.VertexDecl.PositionNormalBinormalTangentTextured.Binormal

The binormal of the vertex in entity-space

◆ Normal

Vector3 OmegaEngine.Graphics.VertexDecl.PositionNormalBinormalTangentTextured.Normal

The normal of the vertex in entity-space

◆ Position

Vector3 OmegaEngine.Graphics.VertexDecl.PositionNormalBinormalTangentTextured.Position

The position of the vertex in entity-space

◆ StrideSize

const int OmegaEngine.Graphics.VertexDecl.PositionNormalBinormalTangentTextured.StrideSize = 14 * 4

The length of this vertex structure in bytes.

◆ Tangent

Vector3 OmegaEngine.Graphics.VertexDecl.PositionNormalBinormalTangentTextured.Tangent

The tangent of the vertex in entity-space

◆ Tu

float OmegaEngine.Graphics.VertexDecl.PositionNormalBinormalTangentTextured.Tu

The U-component of the texture coordinates

◆ Tv

float OmegaEngine.Graphics.VertexDecl.PositionNormalBinormalTangentTextured.Tv

The V-component of the texture coordinates

Property Documentation

◆ Nx

float OmegaEngine.Graphics.VertexDecl.PositionNormalBinormalTangentTextured.Nx
getset

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

◆ Ny

float OmegaEngine.Graphics.VertexDecl.PositionNormalBinormalTangentTextured.Ny
getset

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

◆ Nz

float OmegaEngine.Graphics.VertexDecl.PositionNormalBinormalTangentTextured.Nz
getset

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

◆ X

float OmegaEngine.Graphics.VertexDecl.PositionNormalBinormalTangentTextured.X
getset

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

◆ Y

float OmegaEngine.Graphics.VertexDecl.PositionNormalBinormalTangentTextured.Y
getset

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

◆ Z

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