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

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

Public Member Functions

 PositionMultiTextured (Vector3 position, 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 = 27 * 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...
 
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...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ PositionMultiTextured()

OmegaEngine.Graphics.VertexDecl.PositionMultiTextured.PositionMultiTextured ( Vector3  position,
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
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

◆ GetVertexElements()

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

Returns an array describing the usage of the vertex fields

Member Data Documentation

◆ Color

Color4 OmegaEngine.Graphics.VertexDecl.PositionMultiTextured.Color

A color by which the texture will be multiplied

◆ OcclusionIntervals

Vector4 OmegaEngine.Graphics.VertexDecl.PositionMultiTextured.OcclusionIntervals

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

◆ Position

Vector3 OmegaEngine.Graphics.VertexDecl.PositionMultiTextured.Position

The position of the vertex in entity-space

◆ StrideSize

const int OmegaEngine.Graphics.VertexDecl.PositionMultiTextured.StrideSize = 27 * 4

The length of this vertex structure in bytes.

◆ TexWeights1

Vector4 OmegaEngine.Graphics.VertexDecl.PositionMultiTextured.TexWeights1

Texture blending weights

◆ Tu

float OmegaEngine.Graphics.VertexDecl.PositionMultiTextured.Tu

The U-component of the texture coordinates

◆ Tv

float OmegaEngine.Graphics.VertexDecl.PositionMultiTextured.Tv

The V-component of the texture coordinates

Property Documentation

◆ X

float OmegaEngine.Graphics.VertexDecl.PositionMultiTextured.X
getset

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

◆ Y

float OmegaEngine.Graphics.VertexDecl.PositionMultiTextured.Y
getset

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

◆ Z

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