Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
May 29, 2005, 11:24:12 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: ability to change background color

Location:
orxonox/trunk/src/lib/graphics
Files:
2 edited

Legend:

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

    r4320 r4374  
    170170  this->setResolution(this->resolutionX, this->resolutionY, this->bitsPerPixel);
    171171}
     172
     173void GraphicsEngine::setBackgroundColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
     174{
     175  glClearColor(red, green, blue, alpha);
     176}
     177
    172178
    173179/**
  • orxonox/trunk/src/lib/graphics/graphics_engine.h

    r4245 r4374  
    2727  int setResolution(int width, int height, int bpp);
    2828  void setFullscreen(bool fullscreen = false);
     29  static void setBackgroundColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha = 1.0);
     30
    2931  /** \returns the x resolution */
    3032  inline int getResolutionX(void) {return this->resolutionX;}
Note: See TracChangeset for help on using the changeset viewer.