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

Class which encorporates a number of different functions for asset loading and content management. More...

Public Member Functions

Load< T > (string path)
 Loads a graphical asset.
 
LoadJson< T > (string path)
 Loads a json content file.
 
void SetActiveContentManager (ContentManager contentManager)
 
vxMesh LoadMesh (string path)
 This Loads Models at Run time performing a number of functions. See remarks for full details.
 
void LoadModelTextures (vxMesh model, string ModelPath, ContentManager Content, string TexturePath="", bool IsBeingImported=false)
 Loads the textures for a given model and/or mesh.
 

Properties

static vxContentManager Instance [get]
 Content Manager Instance.
 

Detailed Description

Class which encorporates a number of different functions for asset loading and content management.

Member Function Documentation

◆ Load< T >()

T VerticesEngine.ContentManagement.vxContentManager.Load< T > ( string path)

Loads a graphical asset.

Template Parameters
T
Parameters
path
Returns

◆ LoadJson< T >()

T VerticesEngine.ContentManagement.vxContentManager.LoadJson< T > ( string path)

Loads a json content file.

Template Parameters
T
Parameters
path
Returns

◆ LoadMesh()

vxMesh VerticesEngine.ContentManagement.vxContentManager.LoadMesh ( string path)

This Loads Models at Run time performing a number of functions. See remarks for full details.

Model Loading

This loads a vxModel with a Specified Effect as well as applies the CascadeShadowEffect to the vxModel's internal Shadow Model as well. XNA and potentially other back ends do not allow multiple loading of the same asset, therefore if a Shadow Model.xnb is not found, then it is created from a copy of the main model as 'mainmodelname_shdw.xnb'.

Texture Loading

Furthermore, Textures are loaded based off of the name of the model mesh name.

For Example

ModelMesh Name = "ship"

Then the content importer will look for textures under the following names:

Diffuse Texture: ship_dds Normal Map: ship_nm Specular Map: ship_sm

The path to each of these is saved in the vxModel as well too allow for reloading of other resolution packs later on.

Returns
The loaded model.

◆ LoadModelTextures()

void VerticesEngine.ContentManagement.vxContentManager.LoadModelTextures ( vxMesh model,
string ModelPath,
ContentManager Content,
string TexturePath = "",
bool IsBeingImported = false )

Loads the textures for a given model and/or mesh.

Parameters
ContentContent.
TexturePathTexture path.

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