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

A Model Class which loads and processes all data at runtime. Although this add's to load times, it allows for more control as well as modding for any and all models which are used in the game. Using three different models to handle different types of rendering does add too over all installation size, it is necessary to allow the shaders to be compiled for cross platform use. More...

Static Public Member Functions

static BoundingBox GetModelBoundingBox (vxMesh model, Matrix worldTransform)
 Get's the Bounding Box for a Model.
 
static void GetVerticesAndIndicesFromModel (vxMesh model, out Vector3[] vertices, out int[] indices)
 Get Vertices and Indies from a vxMesh.
 
static vxMesh FromXNAModel (string pathToModel, ContentManager content, string texturePath="")
 Converts an XNA Model into a vxMesh.
 
static vxImportResult Import (string filepath)
 

Detailed Description

A Model Class which loads and processes all data at runtime. Although this add's to load times, it allows for more control as well as modding for any and all models which are used in the game. Using three different models to handle different types of rendering does add too over all installation size, it is necessary to allow the shaders to be compiled for cross platform use.

The vxMesh Helper Class helps.

Member Function Documentation

◆ FromXNAModel()

static vxMesh VerticesEngine.Graphics.vxMeshHelper.FromXNAModel ( string pathToModel,
ContentManager content,
string texturePath = "" )
static

Converts an XNA Model into a vxMesh.

Parameters
pathToModel
content
texturePath
Returns

◆ GetModelBoundingBox()

static BoundingBox VerticesEngine.Graphics.vxMeshHelper.GetModelBoundingBox ( vxMesh model,
Matrix worldTransform )
static

Get's the Bounding Box for a Model.

Parameters
model
worldTransform
Returns

◆ GetVerticesAndIndicesFromModel()

static void VerticesEngine.Graphics.vxMeshHelper.GetVerticesAndIndicesFromModel ( vxMesh model,
out Vector3[] vertices,
out int[] indices )
static

Get Vertices and Indies from a vxMesh.

Parameters
model
vertices
indices

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