Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 27, 2007, 4:01:42 PM (17 years ago)
Author:
stefalie
Message:

some changes…

File:
1 edited

Legend:

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

    r10114 r10407  
    2424
    2525
    26 
     26#include "debug.h"
    2727
    2828
     
    6666  //this->setVisibiliy(true);
    6767  this->setSize(5, 5);
     68
     69  this->texColor = NULL;
    6870}
    6971
     
    147149//v += this->getAbsCoor();
    148150    //PRINTF(0)("sizeX: %f sizeY: %f\n", sizeX, sizeY);
     151  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));
     154    glColor4ub(255, 0, 0, 255);
     155  }
     156
    149157  glBegin(GL_QUADS);
    150158  glTexCoord2f(0.0f, 0.0f);
     
    171179  glPopAttrib();
    172180}
     181
     182
     183/**
     184 * changes the texture color
     185 * @param col color for the texture
     186 */
     187void Billboard::colorTexture(Color col)
     188{
     189  this->texColor = &col;
     190}
Note: See TracChangeset for help on using the changeset viewer.