Changeset 4831 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- Jul 11, 2005, 5:44:41 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/graphics_engine.cc
r4830 r4831 75 75 return -1; 76 76 this->initVideo(640, 480, 16); 77 this->isInit = true;78 77 } 79 78 -
orxonox/trunk/src/lib/graphics/graphics_engine.h
r4817 r4831 34 34 35 35 void setWindowName(const char* windowName, const char* icon); 36 int setGLattribs(); 36 37 37 int setResolution(int width, int height, int bpp); 38 38 void setFullscreen(bool fullscreen = false); 39 39 static void setBackgroundColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha = 1.0); 40 40 41 41 42 /** \returns the x resolution */ … … 47 48 48 49 int resolutionChanged(const SDL_ResizeEvent& resizeInfo); 50 51 52 static void showMouse(bool show) { (show)?SDL_ShowCursor(SDL_ENABLE):SDL_ShowCursor(SDL_DISABLE); }; 53 static bool isMouseVisible() {return (SDL_ShowCursor(SDL_QUERY) == SDL_ENABLE)?true:false; }; 54 static void stealWMEvents(bool steal) { (steal)?SDL_WM_GrabInput(SDL_GRAB_ON):SDL_WM_GrabInput(SDL_GRAB_OFF); }; 49 55 50 56 static void enter2DMode(); … … 69 75 GraphicsEngine(); 70 76 int initVideo(unsigned int resX, unsigned int resY, unsigned int bbp); 77 int setGLattribs(); 71 78 72 79 public:
Note: See TracChangeset
for help on using the changeset viewer.