Slippers Engine
 
Loading...
Searching...
No Matches
Assets

Examples for Asset Loading. More...

Classes

class  FontManager
 Singleton responisble for loading and retrieving Fonts. More...
 
class  ImageManager
 Singleton responisble for loading and retrieving images. More...
 
class  ModelManager
 Singleton responisble for loading and retrieving models. More...
 
class  ShaderManager
 Singleton responisble for loading and retrieving shaders. More...
 
class  TextureManager
 Singleton responisble for loading and retrieving textures. More...
 

Detailed Description

Examples for Asset Loading.

//Models
ModelManager::LoadModel("Plane", 400, 2, 2);
ModelManager::LoadModel("Demo Model", "demo_model.azul");
ModelManager::LoadModel("Unit Sphere", Model::UnitSphere);
//Textures
TextureManager::LoadTexture("Demo Texture", "demo_texture.tga");
TextureManager::LoadTexture("Grid", "grid.tga");
//Shaders
ShaderManager::LoadShader("ColorNoText", "colorNoTextureRender");
//Images
ImageManager::Load("Demo Image", TextureManager::GetTexture("Demo Texture"));
//Fonts
FontManager::LoadFont("Demo Font", "ComicSans30");
SceneManager::SetStartScene(new SceneDemo());
}
static void LoadFont(const MapKey &key, const std::string &path)
Load Font with KEY and FILE PATH.
Definition FontManager.h:60
void LoadResources()
Fill LoadResources.cpp with assets you want to load.
static void Load(const MapKey &key, Texture *tex)
Image Model with KEY and TEXTURE.
Definition ImageManager.h:63
static void LoadModel(const MapKey &key, const std::string &path)
Load Model with KEY and FILE PATH.
Definition ModelManager.h:69
static void SetStartScene(Scene *start)
Sets pointer to start scene.
Definition SceneManager.h:64
static void LoadShader(const MapKey &key, const std::string &path)
Load Shader with KEY and FILE PATH.
Definition ShaderManager.h:63
static Texture * GetTexture(const MapKey &key)
Returns texture pointer with given KEY.
Definition TextureManager.h:134
static void LoadTexture(const MapKey &key, const std::string &path)
Load Texture with KEY and FILE PATH.
Definition TextureManager.h:100