/[projectaxis]/projectaxis/projectAxis/src/visual/renderman.h
ViewVC logotype

Diff of /projectaxis/projectAxis/src/visual/renderman.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by vovansim, Sat Sep 20 03:34:06 2003 UTC revision 1.8 by vovansim, Sun Sep 21 02:58:24 2003 UTC
# Line 2  Line 2 
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
# Line 20  included in any screen, as well as scree Line 20  included in any screen, as well as scree
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
# Line 103  enum screen_type { Line 106  enum screen_type {
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    
# Line 137  public: Line 140  public:
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    
# Line 162  private: Line 168  private:
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

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26