#include <ImageManager.h>
Collaboration diagram for Graphics::ImageManager:

Public Methods | |
| SDL_Surface * | getImage (const string &str) |
| void | freeAll () |
| void | freeBMP (const string &str) |
| void | freeBMP (SDL_Surface *surf) |
Static Public Methods | |
| ImageManager * | getInstance () |
| void | destroy () |
Notes for usage:
Read this article if you want information on singletons Singleton Texture Manager . The article covers using textures in OpenGL but the concept is the same.
Definition at line 55 of file ImageManager.h.
|
|
Definition at line 35 of file ImageManager.cpp. |
|
|
Definition at line 110 of file ImageManager.cpp. |
|
|
Destroys sole instance of ImageManager class, deallocating all memory and freeing all surfaces Definition at line 85 of file ImageManager.cpp. |
|
|
Frees all stored surfaces, but does not delete instance of class Definition at line 89 of file ImageManager.cpp. |
|
|
Frees single image pointed by surf Definition at line 61 of file ImageManager.cpp. |
|
|
Frees single image referred to by str Definition at line 72 of file ImageManager.cpp. |
|
|
Returns image stored by ImageManager with given filename.
Definition at line 39 of file ImageManager.cpp. |
|
|
Return pointer to sole ImageManager instantion Definition at line 26 of file ImageManager.cpp. |
1.2.12 written by Dimitri van Heesch,
© 1997-2001