Vertices Engine  v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
Loading...
Searching...
No Matches
VerticesEngine.Graphics.vxMeshVertex Struct Reference

The vertex structure for drawing Models in the Vertices Engine. It uses Position, Normal, UV, Tangent and BiNormal. More...

Inheritance diagram for VerticesEngine.Graphics.vxMeshVertex:

Static Public Member Functions

static vxMeshVertex Transform (vxMeshVertex vertex, Matrix matrix)
 Transform the specified vertex by the given matrix.
 

Public Attributes

Vector3 Position
 
Vector3 Normal
 
Vector2 TextureCoordinate
 
Vector3 Tangent
 
Vector3 BiNormal
 

Static Public Attributes

static int SizeInBytes = (3 + 3 + 2 + 3 + 3) * 4
 
static VertexDeclaration VertexDeclaration
 

Properties

VertexDeclaration IVertexType. VertexDeclaration [get]
 

Detailed Description

The vertex structure for drawing Models in the Vertices Engine. It uses Position, Normal, UV, Tangent and BiNormal.

Member Function Documentation

◆ Transform()

static vxMeshVertex VerticesEngine.Graphics.vxMeshVertex.Transform ( vxMeshVertex vertex,
Matrix matrix )
static

Transform the specified vertex by the given matrix.

Returns
The transform.
Parameters
vertexVertex struct.
matrixTransformation Matrix.

Member Data Documentation

◆ VertexDeclaration

VertexDeclaration VerticesEngine.Graphics.vxMeshVertex.VertexDeclaration
static
Initial value:
= new VertexDeclaration
(
new VertexElement(0, VertexElementFormat.Vector3, VertexElementUsage.Position, 0),
new VertexElement(sizeof(float) * 3, VertexElementFormat.Vector3, VertexElementUsage.Normal, 0),
new VertexElement(sizeof(float) * 6, VertexElementFormat.Vector2, VertexElementUsage.TextureCoordinate, 0),
new VertexElement(sizeof(float) * 8, VertexElementFormat.Vector3, VertexElementUsage.Tangent, 0),
new VertexElement(sizeof(float) * 11, VertexElementFormat.Vector3, VertexElementUsage.Binormal, 0)
)

The documentation for this struct was generated from the following file: