Changeset 9406 in orxonox.OLD for trunk/src/lib/graphics/text_engine/text.cc
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/text.cc
r8769 r9406 28 28 */ 29 29 Text::Text(const std::string& fontFile, unsigned int textSize) 30 : _font(fontFile, FONT_DEFAULT_RENDER_SIZE)30 // : _font(fontFile, FONT_DEFAULT_RENDER_SIZE) 31 31 { 32 32 this->setClassID(CL_TEXT, "Text"); 33 33 34 34 // initialize this Text 35 this->setFont(fontFile, FONT_DEFAULT_RENDER_SIZE); 35 36 this->_size = textSize; 36 37 this->setSizeY2D(textSize); … … 278 279 void Text::debug() const 279 280 { 280 PRINT(0)("=== TEXT: %s (with Font:'%s') displaying %s ===\n", this->get Name(), this->_font.getName(), this->_text.c_str());281 PRINT(0)("=== TEXT: %s (with Font:'%s') displaying %s ===\n", this->getCName(), this->_font.getCName(), this->_text.c_str()); 281 282 // 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()); 282 283 }
Note: See TracChangeset
for help on using the changeset viewer.