Bubba-3D
0.9.0
Awesome game engine!
|
ResourceManager for all resources that can be shared. More...
#include <ResourceManager.h>
Static Public Member Functions | |
static void | loadShader (const std::string &vertexShader, const std::string &fragmentShader, std::string name) |
static ShaderProgram * | getShader (std::string name) |
static Texture * | loadAndFetchTexture (const std::string &fileName) |
static Mesh * | loadAndFetchMesh (const std::string &fileName) |
template<typename Type > | |
static Type * | getItemFromMap (std::map< std::string, Type > *map, std::string id) |
ResourceManager for all resources that can be shared.
The purpose of this class is to only maintain one copy of each resource in memory and then distribute a pointer to that allocation.
Definition at line 33 of file ResourceManager.h.