#include <Resources.h>
Public Member Functions | |
ResourcesManager () | |
ResourcesManager (const ResourcesManager &obj) | |
virtual ResourcesManager & | operator= (const ResourcesManager &obj) |
~ResourcesManager () | |
SDL_Surface * | LoadTexture (const char *file, const char *fileDPF=NULL) |
Add a texture. | |
void | RemoveTexture (const char *name) |
Remove a texture. | |
void | FreeTextures (void) |
Unload the textures. | |
SDL_Surface * | GetTexture (const char *name) |
Get a pointer to a texture. | |
SDL_Surface * | GetTexture (int i) |
Get a pointer to a texture. | |
CRM32Pro_CFont * | LoadFont (const char *file, const char *fileDPF) |
Add a Font. | |
void | RemoveFont (const char *name) |
Remove a font. | |
void | FreeFonts (void) |
Unload the themes. | |
CRM32Pro_CFont * | GetFont (const char *name) |
Get a pointer to a font. | |
CRM32Pro_CFont * | GetFont (int i) |
Get a pointer to a font. | |
void | Free (void) |
Unload the resources manager. |
Motoko::ResourcesManager::ResourcesManager | ( | ) |
ResourcesManager constructor.
Motoko::ResourcesManager::ResourcesManager | ( | const ResourcesManager & | obj | ) |
ResourcesManager copy constructor.
Motoko::ResourcesManager::~ResourcesManager | ( | ) |
ResourcesManager destructor.
void Motoko::ResourcesManager::FreeFonts | ( | void | ) |
void Motoko::ResourcesManager::FreeTextures | ( | void | ) |
CRM32Pro_CFont * Motoko::ResourcesManager::GetFont | ( | int | i | ) |
Get a pointer to a font.
i | Number of font in the vector. |
CRM32Pro_CFont * Motoko::ResourcesManager::GetFont | ( | const char * | name | ) |
Get a pointer to a font.
name | Name of the font. |
SDL_Surface * Motoko::ResourcesManager::GetTexture | ( | int | i | ) |
Get a pointer to a texture.
i | Number of texture in the vector. |
SDL_Surface * Motoko::ResourcesManager::GetTexture | ( | const char * | name | ) |
Get a pointer to a texture.
name | Name of the texture. |
CRM32Pro_CFont * Motoko::ResourcesManager::LoadFont | ( | const char * | file, | |
const char * | fileDPF | |||
) |
Add a Font.
file | Name of the font. | |
fileDPF | File with with the font. |
SDL_Surface * Motoko::ResourcesManager::LoadTexture | ( | const char * | file, | |
const char * | fileDPF = NULL | |||
) |
Add a texture.
file | Name of the texture. | |
fileDPF | File with with the texture. |
ResourcesManager & Motoko::ResourcesManager::operator= | ( | const ResourcesManager & | obj | ) | [virtual] |
ResourcesManager operator =.
void Motoko::ResourcesManager::RemoveFont | ( | const char * | name | ) |
void Motoko::ResourcesManager::RemoveTexture | ( | const char * | name | ) |