2 |
==================== |
==================== |
3 |
renderman.h |
renderman.h |
4 |
==================== |
==================== |
5 |
version 0.0.5 |
version 0.0.7 |
6 |
==================== |
==================== |
7 |
|
|
8 |
This is the master user interface class. Anything that has to do with graphics or display |
This is the master user interface class. Anything that has to do with graphics or display |
20 |
|
|
21 |
CHANGELOG: |
CHANGELOG: |
22 |
---------------------- |
---------------------- |
23 |
|
0.0.7 - September 20, 2003 |
24 |
|
- added the color depth optional command line parameter |
25 |
|
- added a color depth private data member to keep track of what is used for the current instance of the game |
26 |
0.0.6 - September 19, 2003 |
0.0.6 - September 19, 2003 |
27 |
- modified the implementation file to intialize screen settings to always use 16-bit color depth, rather than the current system settings |
- modified the implementation file to intialize screen settings to always use 16-bit color depth, rather than the current system settings |
28 |
0.0.5 - September 5, 2003 |
0.0.5 - September 5, 2003 |
106 |
|
|
107 |
class RenderMan: public PG_EventObject, public PointerHub { |
class RenderMan: public PG_EventObject, public PointerHub { |
108 |
public: |
public: |
109 |
RenderMan(int x, int y, bool fullscreen); //< x/y screen window width |
RenderMan(int x, int y, bool fullscreen, Uint8 colorDepth = 0); //< x/y screen window width |
110 |
virtual ~RenderMan(); |
virtual ~RenderMan(); |
111 |
|
|
112 |
|
|
140 |
int GetXRes(); |
int GetXRes(); |
141 |
int GetYRes(); |
int GetYRes(); |
142 |
|
|
143 |
|
/** Returns the color depth (int bits) used for the main screen SDL_Surface */ |
144 |
|
inline Uint8 GetColorDepth() { return color_depth; } |
145 |
|
|
146 |
string IntToChar(int x); // used to convert integers to char* for outputting into paragui labls. |
string IntToChar(int x); // used to convert integers to char* for outputting into paragui labls. |
147 |
// ----Basic functions-------/\------------------- |
// ----Basic functions-------/\------------------- |
148 |
|
|
168 |
|
|
169 |
int XRES; //< X screen resolution |
int XRES; //< X screen resolution |
170 |
int YRES; //< Y screen resolution |
int YRES; //< Y screen resolution |
171 |
|
Uint8 color_depth; //< The color depth on the system |
172 |
int tile_size; //< size of map tiles (32 or 64 px) |
int tile_size; //< size of map tiles (32 or 64 px) |
173 |
|
|
174 |
PG_Application* app; //< the running paragui app |
PG_Application* app; //< the running paragui app |