#include <sdlpp_graphics.h>
Public Member Functions | |
virtual void | shutdown () |
void | initialize (int width, int height, bool full_screen) |
void | flip () |
Uint32 | MapRGB (Uint8 r, Uint8 g, Uint8 b) |
void | GetRGB (Uint32 color, Uint8 &r, Uint8 &g, Uint8 &b) |
Bitmap & | get_screen () |
Static Public Member Functions | |
static GraphicsManager * | instance (bool destroy=false) |
Singleton graphics management object. This object maintains the screen surface and any other graphics system resources. It is initialized from the Application::init_graphics function.
void SDLPP::GraphicsManager::initialize | ( | int | width, | |
int | height, | |||
bool | full_screen | |||
) | [inline] |
Initialize the screen. This is called from the Application::init_graphics function.
static GraphicsManager* SDLPP::GraphicsManager::instance | ( | bool | destroy = false |
) | [inline, static] |
Returns a pointer to the graphics management object
virtual void SDLPP::GraphicsManager::shutdown | ( | ) | [inline, virtual] |
Destroys the graphics management object. This is called automatically before program exit.
Implements SDLPP::Singleton.