Loading external resources into the game. More...
Detailed Description
Loading external resources into the game.
The user is able to load external resources into the game via the LoadResources.cpp an its IonEngine::LoadResources() function. Inside the function the user can use the Asset Manager classes to load resources from the Assets folder. The Asset Managers include:
These three can be used like so for loading assets:
LoadResources.cpp:
As you can see, the Asset Managers use their Load() functions to create and store instances of objects based off the given file path under a specified key. Later, these objects can be retrived using the Asset Managers' Get() functions with the spefified key. That would look something like this:
Tank.cpp
Classes | |
class | ImageAssets |
System manager for saving and accessing Images from external resources. More... | |
class | ModelAssets |
System manager for saving and accessing external model resources. More... | |
class | ShaderAssets |
System manager for saving and accessing external shader resources. More... | |
class | SkyBoxAssets |
System manager for for creating and accessing SkyBox objects from external resources. More... | |
class | TerrainAssets |
System manager for for creating and accessing Terrain objects from external resources. More... | |
class | TextureAssets |
System manager for saving and accessing external texture resources. More... | |
Functions | |
void | IonEngine::LoadResources () |
Public engine function for loading assets/resources. More... | |
Function Documentation
|
private |
Public engine function for loading assets/resources.
Within the LoadResources() function the user is able to load external resources like Models, Textures, Shaders, etc using the appropriate Asset Managers (ModelAssets, TextureAssets, ImageAssets, ShaderAssets, TerrainAssets, and SkyBoxAssets).