Image Resource Manager. More...
#include <deImageManager.h>
Public Member Functions | |
Constructors and Destructors | |
| deImageManager (deEngine *engine) | |
| Creates a new image resource manager linked to the given engine. | |
| ~deImageManager () | |
| Cleans up the image resource manager and reports leaking resources. | |
Management | |
| int | GetImageCount () const |
| retrieves the count of images. | |
| deImage * | GetImageAt (int index) const |
| Retrieves the image at the given index. | |
| deImage * | GetImageWith (const char *filename) const |
| Retrieves the image with the given filename or NULL if not loaded yet. | |
| deImage * | CreateImage (int width, int height, int depth, int componentCount, int bitCount) |
| Creates a new image with the given parameters. | |
| deImage * | LoadImage (const char *filename, const char *basePath) |
| Loads a image from the given file relative to the given base path. | |
| deImage * | LoadDefault () |
| Loads default image. | |
| void | SaveImage (deImage *image, const char *filename) |
| Saves image to the given file. | |
| void | AddLoadedImage (deImage *image) |
| Adds a loaded and fully prepared image. | |
System Peer Management | |
| void | SystemGraphicLoad () |
| Graphic System Peers of all stored resources have to be created. | |
| void | SystemGraphicUnload () |
| Graphic System Peers of all stored resources have to be freed. | |
Resource only Functions | |
Those functions are only for resource objects and should never be called directly from an application. | |
| void | RemoveResource (deResource *resource) |
| Removes the given resource from the manager without freeing it. | |
Image Resource Manager.
| deImageManager::deImageManager | ( | deEngine * | engine ) |
Creates a new image resource manager linked to the given engine.
| deImageManager::~deImageManager | ( | ) |
Cleans up the image resource manager and reports leaking resources.
| void deImageManager::AddLoadedImage | ( | deImage * | image ) |
Adds a loaded and fully prepared image.
This method is to be used only by the resource loader to add an image that has been loaded asynchronously.
| deImage* deImageManager::CreateImage | ( | int | width, |
| int | height, | ||
| int | depth, | ||
| int | componentCount, | ||
| int | bitCount | ||
| ) |
Creates a new image with the given parameters.
| deImage* deImageManager::GetImageAt | ( | int | index ) | const |
Retrieves the image at the given index.
| int deImageManager::GetImageCount | ( | ) | const |
retrieves the count of images.
| deImage* deImageManager::GetImageWith | ( | const char * | filename ) | const |
Retrieves the image with the given filename or NULL if not loaded yet.
| deImage* deImageManager::LoadDefault | ( | ) |
Loads default image.
| deImage* deImageManager::LoadImage | ( | const char * | filename, |
| const char * | basePath | ||
| ) |
Loads a image from the given file relative to the given base path.
| void deImageManager::RemoveResource | ( | deResource * | resource ) | [virtual] |
Removes the given resource from the manager without freeing it.
Implements deResourceManager.
| void deImageManager::SaveImage | ( | deImage * | image, |
| const char * | filename | ||
| ) |
Saves image to the given file.
| void deImageManager::SystemGraphicLoad | ( | ) | [virtual] |
Graphic System Peers of all stored resources have to be created.
Reimplemented from deResourceManager.
| void deImageManager::SystemGraphicUnload | ( | ) | [virtual] |
Graphic System Peers of all stored resources have to be freed.
Reimplemented from deResourceManager.
1.7.2