Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5373 in orxonox.OLD


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
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/material.cc

    r5308 r5373  
    9191    {
    9292      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);
    9494      glBlendFunc(GL_SRC_ALPHA, GL_ONE);
    9595    }
     
    9797    {
    9898      glDisable(GL_BLEND);
    99       glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
     99      glColor4f(*(this->diffuse), *(this->diffuse+1), *(this->diffuse+2), 1);
    100100    }
    101101
  • trunk/src/lib/gui/gl_gui/glmenu/glmenu_imagescreen.cc

    r5312 r5373  
    3838  this->backMat = new Material("load_screen");
    3939  this->barMat = new Material("bar");
     40  this->barMat->setDiffuse(1,1,1);
     41  this->backMat->setDiffuse(1,1,1);
    4042  this->maxValue = 10;
    4143  this->currentValue = 0;
  • 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.