Vertices Engine
v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
|
Class which encorporates a number of different functions for asset loading and content management. More...
Public Member Functions | |
T | Load< T > (string path) |
Loads a graphical asset. | |
T | 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. | |
Class which encorporates a number of different functions for asset loading and content management.
T VerticesEngine.ContentManagement.vxContentManager.Load< T > | ( | string | path | ) |
Loads a graphical asset.
T |
path |
T VerticesEngine.ContentManagement.vxContentManager.LoadJson< T > | ( | string | path | ) |
Loads a json content file.
T |
path |
vxMesh VerticesEngine.ContentManagement.vxContentManager.LoadMesh | ( | string | path | ) |
This Loads Models at Run time performing a number of functions. See remarks for full details.
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'.
Furthermore, Textures are loaded based off of the name of the model mesh name.
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.
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.
Content | Content. |
TexturePath | Texture path. |