Changeset 8448 in orxonox.OLD for trunk/src/lib/graphics/text_engine/text.cc
- Timestamp:
- Jun 15, 2006, 12:48:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/text.cc
r8037 r8448 37 37 this->size = textSize; 38 38 this->setSizeY2D(size); 39 this->blending = TEXT_DEFAULT_BLENDING;40 39 this->color = TEXT_DEFAULT_COLOR; 41 40 … … 73 72 this->size == text.size && 74 73 this->font == text.font && 75 this->color == text.color && 76 this->blending == text.blending); 74 this->color == text.color); 77 75 } 78 76 … … 95 93 { 96 94 this->size = text.size; 97 this->blending = text.blending;98 95 this->color = text.color; 99 96 this->setAlignment(text.getAlignment()); … … 224 221 // drawing this Text. 225 222 // setting the Blending effects 226 glColor4f (this->color.x, this->color.y, this->color.z, this->blending);223 glColor4fv(&this->color[0]); 227 224 228 225 … … 231 228 glEnable(GL_BLEND); 232 229 glEnable(GL_TEXTURE_2D); 233 glBlendFunc(GL_SRC_ALPHA, GL_ONE );230 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 234 231 glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, GL_MODULATE ); 235 232 … … 285 282 { 286 283 PRINT(0)("=== TEXT: %s (with Font:'%s') displaying %s ===\n", this->getName(), this->font->getName(), this->text.c_str()); 287 PRINT(0)("Color: %0.2f %0.2f %0.2f\n", this->color.x, this->color.y, this->color.z);288 } 289 284 PRINT(0)("Color: r=%0.2f g=%0.2f b=%0.2f a=%0.2f\n", this->color.r(), this->color.g(), this->color.b(), this->color.a()); 285 } 286
Note: See TracChangeset
for help on using the changeset viewer.