#include <display.h>
Public Member Functions | ||||
void | reset () | |||
Reset values to default. | ||||
Resolution methods | ||||
bool | fullscreen () const | |||
| ||||
void | fullscreen (const bool set) | |||
| ||||
int | width () const | |||
| ||||
bool | width (int x) | |||
| ||||
int | height () const | |||
| ||||
bool | height (int y) | |||
| ||||
int | depth () const | |||
| ||||
bool | depth (int d) | |||
| ||||
Static Public Member Functions | ||||
static CDisplay * | instance () | |||
Get pointer to current display. | ||||
Load methods | ||||
static bool | load (const std::string &filename, const std::string &path) | |||
Load in the display description from a file. | ||||
static bool | load (const std::string &filename) | |||
Load in the display description from a file. | ||||
static bool | load (CXMLNode &node) | |||
Load display descriptions from an XML node. |
(c) 2007-2008 oP group Germany GbR. All rights reserved.
This source code is provided "as is" with no warranty and must not be distributed without written permission.
CDisplay * CDisplay::instance | ( | ) | [static] |
Get pointer to current display.
bool CDisplay::load | ( | const std::string & | filename, | |
const std::string & | path | |||
) | [static] |
Load in the display description from a file.
filename | Name of the XML file containing the Display node. | |
path | Path containing the XML file. |
bool CDisplay::load | ( | const std::string & | filename | ) | [static] |
Load in the display description from a file.
filename | Name of the file containing the Display node. |
bool CDisplay::load | ( | CXMLNode & | node | ) | [static] |
Load display descriptions from an XML node.
node | XML node |