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

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

Public Member Functions

 PositionNormalTextured (Vector3 position, Vector3 normal, float tu, float tv)
 Creates a new position, textured vertex with normal information More...
 
override string ToString ()
 

Public Attributes

const VertexFormat Format = VertexFormat.Position | VertexFormat.Normal | VertexFormat.Texture1
 The fixed-function format of this vertex structure. More...
 
const int StrideSize = 8 * 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...
 

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 tangents (and maybe normals) still need to be calculated.

Constructor & Destructor Documentation

◆ PositionNormalTextured()

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

Creates a new position, textured vertex with normal information

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

Member Data Documentation

◆ Format

const VertexFormat OmegaEngine.Graphics.VertexDecl.PositionNormalTextured.Format = VertexFormat.Position | VertexFormat.Normal | VertexFormat.Texture1

The fixed-function format of this vertex structure.

◆ Normal

Vector3 OmegaEngine.Graphics.VertexDecl.PositionNormalTextured.Normal

The normal of the vertex in entity-space

◆ Position

Vector3 OmegaEngine.Graphics.VertexDecl.PositionNormalTextured.Position

The position of the vertex in entity-space

◆ StrideSize

const int OmegaEngine.Graphics.VertexDecl.PositionNormalTextured.StrideSize = 8 * 4

The length of this vertex structure in bytes.

◆ Tu

float OmegaEngine.Graphics.VertexDecl.PositionNormalTextured.Tu

The U-component of the texture coordinates

◆ Tv

float OmegaEngine.Graphics.VertexDecl.PositionNormalTextured.Tv

The V-component of the texture coordinates

Property Documentation

◆ Nx

float OmegaEngine.Graphics.VertexDecl.PositionNormalTextured.Nx
getset

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

◆ Ny

float OmegaEngine.Graphics.VertexDecl.PositionNormalTextured.Ny
getset

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

◆ Nz

float OmegaEngine.Graphics.VertexDecl.PositionNormalTextured.Nz
getset

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

◆ X

float OmegaEngine.Graphics.VertexDecl.PositionNormalTextured.X
getset

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

◆ Y

float OmegaEngine.Graphics.VertexDecl.PositionNormalTextured.Y
getset

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

◆ Z

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