Changeset 10407 in orxonox.OLD for branches/blink/src/world_entities/effects/billboard.cc
- Timestamp:
- Jan 27, 2007, 4:01:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blink/src/world_entities/effects/billboard.cc
r10114 r10407 24 24 25 25 26 26 #include "debug.h" 27 27 28 28 … … 66 66 //this->setVisibiliy(true); 67 67 this->setSize(5, 5); 68 69 this->texColor = NULL; 68 70 } 69 71 … … 147 149 //v += this->getAbsCoor(); 148 150 //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 149 157 glBegin(GL_QUADS); 150 158 glTexCoord2f(0.0f, 0.0f); … … 171 179 glPopAttrib(); 172 180 } 181 182 183 /** 184 * changes the texture color 185 * @param col color for the texture 186 */ 187 void Billboard::colorTexture(Color col) 188 { 189 this->texColor = &col; 190 }
Note: See TracChangeset
for help on using the changeset viewer.