Motoko::ResourcesManager Class Reference

Class to handle the library resources. More...

#include <Resources.h>

List of all members.

Public Member Functions

 ResourcesManager ()
 ResourcesManager (const ResourcesManager &obj)
virtual ResourcesManageroperator= (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.


Detailed Description

Class to handle the library resources.


Constructor & Destructor Documentation

Motoko::ResourcesManager::ResourcesManager (  ) 

ResourcesManager constructor.

Motoko::ResourcesManager::ResourcesManager ( const ResourcesManager obj  ) 

ResourcesManager copy constructor.

Motoko::ResourcesManager::~ResourcesManager (  ) 

ResourcesManager destructor.


Member Function Documentation

void Motoko::ResourcesManager::FreeFonts ( void   ) 

Unload the themes.

See also:
AddFont(), RemoveFont().

void Motoko::ResourcesManager::FreeTextures ( void   ) 

Unload the textures.

See also:
AddTexture(), RemoveTexture().

CRM32Pro_CFont * Motoko::ResourcesManager::GetFont ( int  i  ) 

Get a pointer to a font.

Parameters:
i Number of font in the vector.
Returns:
If no error a pointer to the font, else NULL.

CRM32Pro_CFont * Motoko::ResourcesManager::GetFont ( const char *  name  ) 

Get a pointer to a font.

Parameters:
name Name of the font.
Returns:
If no error a pointer to the font, else NULL.

SDL_Surface * Motoko::ResourcesManager::GetTexture ( int  i  ) 

Get a pointer to a texture.

Parameters:
i Number of texture in the vector.
Returns:
If no error a pointer to the texture, else NULL.

SDL_Surface * Motoko::ResourcesManager::GetTexture ( const char *  name  ) 

Get a pointer to a texture.

Parameters:
name Name of the texture.
Returns:
If no error a pointer to the texture, else NULL.

CRM32Pro_CFont * Motoko::ResourcesManager::LoadFont ( const char *  file,
const char *  fileDPF 
)

Add a Font.

Parameters:
file Name of the font.
fileDPF File with with the font.
See also:
RemoveFont(), FreeFonts().
Returns:
If no error a pointer to the font, else NULL.

SDL_Surface * Motoko::ResourcesManager::LoadTexture ( const char *  file,
const char *  fileDPF = NULL 
)

Add a texture.

Parameters:
file Name of the texture.
fileDPF File with with the texture.
See also:
RemoveTexture(), FreeTextures().
Returns:
If no error a pointer to the texture, else NULL.

ResourcesManager & Motoko::ResourcesManager::operator= ( const ResourcesManager obj  )  [virtual]

ResourcesManager operator =.

void Motoko::ResourcesManager::RemoveFont ( const char *  name  ) 

Remove a font.

See also:
AddFont(), FreeFonts().

void Motoko::ResourcesManager::RemoveTexture ( const char *  name  ) 

Remove a texture.

See also:
AddTexture(), FreeTextures().


The documentation for this class was generated from the following files:
Generated on Mon Jul 17 18:33:50 2006 for Motoko by  doxygen 1.4.7