Changeset 5373 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Oct 13, 2005, 12:45:13 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/material.cc
r5308 r5373 91 91 { 92 92 glEnable(GL_BLEND); 93 glColor4f( 1.0f, 1.0f, 1.0f, this->transparency);93 glColor4f(*(this->diffuse), *(this->diffuse+1), *(this->diffuse+2), this->transparency); 94 94 glBlendFunc(GL_SRC_ALPHA, GL_ONE); 95 95 } … … 97 97 { 98 98 glDisable(GL_BLEND); 99 glColor4f( 1.0f, 1.0f, 1.0f, 1.0f);99 glColor4f(*(this->diffuse), *(this->diffuse+1), *(this->diffuse+2), 1); 100 100 } 101 101 -
trunk/src/lib/gui/gl_gui/glmenu/glmenu_imagescreen.cc
r5312 r5373 38 38 this->backMat = new Material("load_screen"); 39 39 this->barMat = new Material("bar"); 40 this->barMat->setDiffuse(1,1,1); 41 this->backMat->setDiffuse(1,1,1); 40 42 this->maxValue = 10; 41 43 this->currentValue = 0; -
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.