OmegaEngine API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
OmegaEngine.Graphics.VertexDecl.PositionNormalMultiTextured Struct Reference

A custom vertex format that stores position, normals, shadow information, texture blending weights and texture coordinates. Using this format hints the engine that tangents (and maybe normals) still need to be calculated. More...

Public Member Functions

 PositionNormalMultiTextured (Vector3 position, Vector3 normal, float tu, float tv, Vector4 occlusionIntervals, float[] texWeights, Color4 color)
 Creates a new multi-textured vertex 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 = 30 * 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...
 
Vector4 OcclusionIntervals
 The angles at which the global light source occlusion begins and ends More...
 
Vector4 TexWeights1
 Texture blending weights More...
 
Vector4 TexWeights2
 
Vector4 TexWeights3
 
Vector4 TexWeights4
 
Color4 Color
 A color by which the texture will be multiplied 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 custom vertex format that stores position, normals, shadow information, texture blending weights and texture coordinates. Using this format hints the engine that tangents (and maybe normals) still need to be calculated.

Constructor & Destructor Documentation

OmegaEngine.Graphics.VertexDecl.PositionNormalMultiTextured.PositionNormalMultiTextured ( Vector3  position,
Vector3  normal,
float  tu,
float  tv,
Vector4  occlusionIntervals,
float[]  texWeights,
Color4  color 
)
inline

Creates a new multi-textured vertex

Parameters
positionThe position of the vertex in entity-space
normalThe normal vector
tuThe U-component of the texture coordinates
tvThe V-component of the texture coordinates
occlusionIntervalsThe angles at which the global light source occlusion begins and ends
texWeightsA 16-element array of texture blending weight
colorA color by which the texture will be multiplied

Member Function Documentation

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

Returns an array describing the usage of the vertex fields

Member Data Documentation

Color4 OmegaEngine.Graphics.VertexDecl.PositionNormalMultiTextured.Color

A color by which the texture will be multiplied

Vector3 OmegaEngine.Graphics.VertexDecl.PositionNormalMultiTextured.Normal

The normal of the vertex in entity-space

Vector4 OmegaEngine.Graphics.VertexDecl.PositionNormalMultiTextured.OcclusionIntervals

The angles at which the global light source occlusion begins and ends

Vector3 OmegaEngine.Graphics.VertexDecl.PositionNormalMultiTextured.Position

The position of the vertex in entity-space

const int OmegaEngine.Graphics.VertexDecl.PositionNormalMultiTextured.StrideSize = 30 * 4

The length of this vertex structure in bytes.

Vector4 OmegaEngine.Graphics.VertexDecl.PositionNormalMultiTextured.TexWeights1

Texture blending weights

float OmegaEngine.Graphics.VertexDecl.PositionNormalMultiTextured.Tu

The U-component of the texture coordinates

float OmegaEngine.Graphics.VertexDecl.PositionNormalMultiTextured.Tv

The V-component of the texture coordinates

Property Documentation

float OmegaEngine.Graphics.VertexDecl.PositionNormalMultiTextured.Nx
getset

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

float OmegaEngine.Graphics.VertexDecl.PositionNormalMultiTextured.Ny
getset

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

float OmegaEngine.Graphics.VertexDecl.PositionNormalMultiTextured.Nz
getset

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

float OmegaEngine.Graphics.VertexDecl.PositionNormalMultiTextured.X
getset

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

float OmegaEngine.Graphics.VertexDecl.PositionNormalMultiTextured.Y
getset

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

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