#include <sdlsurfacecontainer.h>
Inheritance diagram for SdlSurfaceContainer:
Public Member Functions | |
DECLSPEC | SdlSurfaceContainer (const char *name) |
const char * | getName () const |
| |
DECLSPEC SdlSurface * | getSurface (unsigned int i) |
unsigned int | numSurfaces () |
| |
bool | isFailed () |
| |
Protected Member Functions | |
virtual void | onRefresh () |
DECLSPEC void | failed () |
sets the fail-state of the resource | |
Protected Attributes | |
vector< SdlSurface * > | lSurfaces |
list of all surfaces in the container |
This is the base class of a container of surface resources.
SdlSurfaceContainer::SdlSurfaceContainer | ( | const char * | name | ) |
Constructor. Registers itself in SdlManager with the given name.
name | the container's name |
SdlSurface * SdlSurfaceContainer::getSurface | ( | unsigned int | i | ) |
Gets a surface, which is stored in the container.
i | the number of the surface |
virtual void SdlSurfaceContainer::onRefresh | ( | ) | [inline, protected, virtual] |
Should refresh the containing surfaces in a derived class. In this base class, nothing is done.
Reimplemented in SdlFileSurfaces, and SdlFontSurfaces.