Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 28, 2007, 1:25:21 AM (17 years ago)
Author:
stefalie
Message:

blink: another bug committed suicide

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/blink/src/world_entities/effects/billboard.cc

    r10425 r10426  
    149149//v += this->getAbsCoor();
    150150    //PRINTF(0)("sizeX: %f sizeY: %f\n", sizeX, sizeY);
     151
     152  // changes the color of the texture (if any is set)
    151153  if(this->texColor != NULL)
    152   {
    153     //glColor4ub((int)(this->texColor->r() * 255), (int)(this->texColor->g() * 255), (int)(this->texColor->b() * 255), (int)(this->texColor->a() * 255));
    154154    glColor4ub((GLubyte)this->texColor->r()*255, (GLubyte)this->texColor->g()*255, (GLubyte)this->texColor->b()*255, 255);
    155     PRINTF(0)("\n\n\n\n::%f,%f,%f\n\n\n\n", this->texColor->r()*255, this->texColor->g()*255, this->texColor->b()*255);
    156 
    157   }
    158155
    159156  glBegin(GL_QUADS);
     
    187184 * @param col color for the texture
    188185 */
    189 void Billboard::colorTexture(Color col)
     186void Billboard::colorTexture(const Color col)
    190187{
    191   this->texColor = &col;
     188  this->texColor = new Color(col.r(), col.g(), col.b(), col.a());
    192189}
Note: See TracChangeset for help on using the changeset viewer.