deImageManager Class Reference

Image Resource Manager. More...

#include <deImageManager.h>

Inheritance diagram for deImageManager:
deFileResourceManager deResourceManager

List of all members.

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.
deImageGetImageAt (int index) const
 Retrieves the image at the given index.
deImageGetImageWith (const char *filename) const
 Retrieves the image with the given filename or NULL if not loaded yet.
deImageCreateImage (int width, int height, int depth, int componentCount, int bitCount)
 Creates a new image with the given parameters.
deImageLoadImage (const char *filename, const char *basePath)
 Loads a image from the given file relative to the given base path.
deImageLoadDefault ()
 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.

Detailed Description

Image Resource Manager.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

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.


Member Function Documentation

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.


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