Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10426 in orxonox.OLD for branches/blink/src/world_entities/effects


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

blink: another bug committed suicide

Location:
branches/blink/src/world_entities/effects
Files:
3 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}
  • branches/blink/src/world_entities/effects/billboard.h

    r10407 r10426  
    2424    void setSize(float sizeX, float sizeY);
    2525    void setTexture(const std::string& textureFile);
    26     void colorTexture(Color col);
     26    void colorTexture(const Color col);
    2727
    2828    virtual void tick(float dt);
  • branches/blink/src/world_entities/effects/blink.cc

    r10425 r10426  
    8989  this->setAbsCoor(0, 0, 0);
    9090  this->position = Vector(0, 0, 0); ///remove
    91   this->color = Color(1, 1, 0);
     91  this->color = Color(1, 0, 0);
    9292  this->size = 10;
    9393  this->omega = 10;
     
    194194
    195195  //this->material->select();
    196   PRINTF(0)("\n\n\n\n::%f,%f,%f\n\n\n\n", color.r(), color.g(), color.b());
     196//   PRINTF(0)("\n\n\n\n::%f,%f,%f\n\n\n\n", color.r(), color.g(), color.b());
    197197  this->bBoard->colorTexture(Color(color.r(), color.g(), color.b(), 1));
    198198
Note: See TracChangeset for help on using the changeset viewer.