#include <sdlfilesurfaces.h>
Public Member Functions | |
DECLSPEC bool | load (const char *fn) |
DECLSPEC bool | save (const char *fn) |
bool | isLoaded () |
| |
DECLSPEC const char * | getBitmapFN () const |
Uint32 | getTransparentColor () const |
DECLSPEC const SDL_Rect * | getFirstRect () |
DECLSPEC const SDL_Rect * | getNextRect () |
int | numRects () |
This class supports loading initialisation data from a text-based file and methods to get the data in the necessary type.
bool SdlFileSurfacesInfo::load | ( | const char * | fn | ) |
Loads the data from a text based file. If some data could not be read, it is not availible, though true is returned.
fn | the filename, where to load from |
bool SdlFileSurfacesInfo::save | ( | const char * | fn | ) |
(Obsolete)
Save data in non text based format, which cannot be used for loading. So you should not need it.
fn | the filename to save to |
const char * SdlFileSurfacesInfo::getBitmapFN | ( | ) | const |
Uint32 SdlFileSurfacesInfo::getTransparentColor | ( | ) | const [inline] |
const SDL_Rect * SdlFileSurfacesInfo::getFirstRect | ( | ) |
const SDL_Rect * SdlFileSurfacesInfo::getNextRect | ( | ) |
int SdlFileSurfacesInfo::numRects | ( | ) | [inline] |