Bubba-3D  0.9.0
Awesome game engine!
Static Public Member Functions | List of all members
ResourceManager Class Reference

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 ShaderProgramgetShader (std::string name)
 
static TextureloadAndFetchTexture (const std::string &fileName)
 
static MeshloadAndFetchMesh (const std::string &fileName)
 
template<typename Type >
static Type * getItemFromMap (std::map< std::string, Type > *map, std::string id)
 

Detailed Description

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.


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