Changeset 5373 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Oct 13, 2005, 12:45:13 PM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r5372 r5373 219 219 { 220 220 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;225 221 this->backgroundMaterial->setTransparency(a); 226 222 } … … 445 441 446 442 this->backgroundMaterial->select(); 447 glColor4f(*(this->backgroundColor),448 *(this->backgroundColor+1),449 *(this->backgroundColor+2),450 *(this->backgroundColor+3));451 452 443 453 444 glBegin(GL_TRIANGLE_STRIP); -
trunk/src/lib/shell/shell.h
r5372 r5373 97 97 char* fontFile; //!< The file containing the font. 98 98 Material* backgroundMaterial; //!< A material for the background. 99 float backgroundColor[4]; //!< The color of the background [r,g,b,a].100 99 101 100 // HANDLING TEXT INPUT
Note: See TracChangeset
for help on using the changeset viewer.