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

The model mesh part which holds the Geometry data such as Vertices, Normal, UV Texture Coordinates, Binormal and Tangent data. More...

Inheritance diagram for VerticesEngine.Graphics.vxModelMeshPart:
VerticesEngine.Graphics.vxTerrainMeshPart

Public Member Functions

 vxModelMeshPart (string modelPath, ModelMeshPart part)
 Initializes a new instance of the T:VerticesEngine.Base.vxModelMeshPart class.
 
 vxModelMeshPart (vxMeshVertex[] vertices, ushort[] indices, int primitiveCount)
 Initializes a new instance of the T:VerticesEngine.Graphics.vxModelMeshPart class.
 
 vxModelMeshPart (Vector3[] vertices, ushort[] indices, int primitiveCount)
 
virtual void SetData (vxMeshVertex[] vertices, ushort[] indices)
 
virtual void GetData (out vxMeshVertex[] vertices, out ushort[] indices)
 
virtual void Draw (Effect drawEffect)
 Draws this mesh with the given effect.
 
void Dispose ()
 

Public Attributes

int TriangleCount = 0
 
int VertexCount
 
VertexBuffer VertexBuffer
 The vertex buffer.
 
IndexBuffer IndexBuffer
 The index buffer.
 
object Tag
 Mesh Name.
 
int StartIndex = 0
 
int VertexOffset = 0
 

Properties

int NumVertices [get]
 Gets the number vertices.
 

Detailed Description

The model mesh part which holds the Geometry data such as Vertices, Normal, UV Texture Coordinates, Binormal and Tangent data.

Constructor & Destructor Documentation

◆ vxModelMeshPart() [1/2]

VerticesEngine.Graphics.vxModelMeshPart.vxModelMeshPart ( string modelPath,
ModelMeshPart part )

Initializes a new instance of the T:VerticesEngine.Base.vxModelMeshPart class.

Parameters
EngineEngine.
partThe part to extract the Position, Normal, UV, Tangent and BiNormal data from.

◆ vxModelMeshPart() [2/2]

VerticesEngine.Graphics.vxModelMeshPart.vxModelMeshPart ( vxMeshVertex[] vertices,
ushort[] indices,
int primitiveCount )

Initializes a new instance of the T:VerticesEngine.Graphics.vxModelMeshPart class.

Parameters
EngineEngine.
verticesVertices.
indicesIndices.
primitiveCountPrimitive count.

Member Function Documentation

◆ Draw()

virtual void VerticesEngine.Graphics.vxModelMeshPart.Draw ( Effect drawEffect)
virtual

Draws this mesh with the given effect.

Parameters
drawEffectDraw effect.

Property Documentation

◆ NumVertices

int VerticesEngine.Graphics.vxModelMeshPart.NumVertices
get

Gets the number vertices.

The number vertices.


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