NE::SpriteLoader Class Reference

SpriteLoader interface. More...

#include <NEngine/SpriteLoader.h>

Inheritance diagram for NE::SpriteLoader:
NE::SDL_SpriteLoader NE::SDL_SpriteLoaderSDLI

List of all members.

Public Member Functions

SpriteloadSpriteFromFile (const std::string &fileName)
 load a Sprite from a file, or return the corresponding Sprite if already loaded

Protected Member Functions

virtual SpriteloadSprite (const std::string &fileName)=0
 load a Sprite from a file

Detailed Description

SpriteLoader interface.

The SpriteLoader class gives an interface to implement new platform specific Sprite loading functions. To save loading time, the loader is using a bank to keep the Sprite already loaded. The second advantage of this, is that the memory deallocation has not to be done by the user.


Member Function Documentation

Sprite * NE::SpriteLoader::loadSprite ( const std::string &  fileName  )  [protected, pure virtual]

load a Sprite from a file

Parameters:
fileName the name of the file to load
Returns:
a pointer to the newly loaded Sprite

Implemented in NE::SDL_SpriteLoader, and NE::SDL_SpriteLoaderSDLI.

Sprite * NE::SpriteLoader::loadSpriteFromFile ( const std::string &  fileName  ) 

load a Sprite from a file, or return the corresponding Sprite if already loaded

Parameters:
fileName the name of the file to load
Returns:
a pointer to the newly loaded Sprite

The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs
Generated on Thu Oct 6 22:11:38 2011 for WE_Kit by  doxygen 1.6.3