Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5373 in orxonox.OLD for trunk/src/lib/shell


Ignore:
Timestamp:
Oct 13, 2005, 12:45:13 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: now the Shell's background-render pathc is in the Material

Location:
trunk/src/lib/shell
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell.cc

    r5372 r5373  
    219219{
    220220  this->backgroundMaterial->setDiffuse(r, g, b);
    221   this->backgroundColor[0] = r;
    222   this->backgroundColor[1] = g;
    223   this->backgroundColor[2] = b;
    224   this->backgroundColor[3] = a;
    225221  this->backgroundMaterial->setTransparency(a);
    226222}
     
    445441
    446442  this->backgroundMaterial->select();
    447   glColor4f(*(this->backgroundColor),
    448             *(this->backgroundColor+1),
    449             *(this->backgroundColor+2),
    450             *(this->backgroundColor+3));
    451 
    452443
    453444  glBegin(GL_TRIANGLE_STRIP);
  • trunk/src/lib/shell/shell.h

    r5372 r5373  
    9797    char*                    fontFile;               //!< The file containing the font.
    9898    Material*                backgroundMaterial;     //!< A material for the background.
    99     float                    backgroundColor[4];     //!< The color of the background [r,g,b,a].
    10099
    101100    // HANDLING TEXT INPUT
Note: See TracChangeset for help on using the changeset viewer.