Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8518 in orxonox.OLD for trunk/src/lib/graphics


Ignore:
Timestamp:
Jun 16, 2006, 10:23:05 AM (19 years ago)
Author:
bensch
Message:

merged the gui back to the trunk

Location:
trunk/src/lib/graphics
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/graphics_engine.cc

    r8490 r8518  
    405405  this->setResolution(this->resolutionX, this->resolutionY, this->bitsPerPixel);
    406406}
     407
     408void GraphicsEngine::toggleFullscreen()
     409{
     410  if (this->fullscreenFlag == SDL_FULLSCREEN)
     411    this->fullscreenFlag = 0;
     412  else
     413    this->fullscreenFlag = SDL_FULLSCREEN;
     414  this->setResolution(this->resolutionX, this->resolutionY, this->bitsPerPixel);
     415}
     416
    407417
    408418/**
  • trunk/src/lib/graphics/graphics_engine.h

    r8490 r8518  
    4444    int setResolution(int width, int height, int bpp);
    4545    void setFullscreen(bool fullscreen = false);
     46    void toggleFullscreen();
    4647    static void setBackgroundColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha = 1.0);
    4748
  • trunk/src/lib/graphics/text_engine/text.cc

    r8448 r8518  
    159159}
    160160
     161
     162/**
     163 * @brief clears the Text Line (empies it).
     164 */
     165void Text::clear()
     166{
     167  text.clear();
     168  this->setupTextWidth();
     169}
    161170
    162171/**
  • trunk/src/lib/graphics/text_engine/text.h

    r8448 r8518  
    4040    const std::string& operator<<(const std::string& appendText);
    4141    void removeCharacters(unsigned int chars);
     42    void clear();
    4243
    4344    /// SETUP
Note: See TracChangeset for help on using the changeset viewer.