Changeset 8475 in orxonox.OLD for branches/gui/src/lib/graphics
- Timestamp:
- Jun 15, 2006, 4:00:04 PM (18 years ago)
- Location:
- branches/gui/src/lib/graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/graphics/graphics_engine.cc
r8316 r8475 397 397 this->setResolution(this->resolutionX, this->resolutionY, this->bitsPerPixel); 398 398 } 399 400 void GraphicsEngine::toggleFullscreen() 401 { 402 if (this->fullscreenFlag == SDL_FULLSCREEN) 403 this->fullscreenFlag = 0; 404 else 405 this->fullscreenFlag = SDL_FULLSCREEN; 406 this->setResolution(this->resolutionX, this->resolutionY, this->bitsPerPixel); 407 } 408 399 409 400 410 /** -
branches/gui/src/lib/graphics/graphics_engine.h
r8316 r8475 44 44 int setResolution(int width, int height, int bpp); 45 45 void setFullscreen(bool fullscreen = false); 46 void toggleFullscreen(); 46 47 static void setBackgroundColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha = 1.0); 47 48
Note: See TracChangeset
for help on using the changeset viewer.