Changeset 9406 in orxonox.OLD for trunk/src/lib/graphics/text_engine
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- Location:
- trunk/src/lib/graphics/text_engine
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/limited_width_text.cc
r8981 r9406 160 160 void LimitedWidthText::debug() const 161 161 { 162 printf("Debug %s::%s \n", this->getClass Name(), this->getName() );162 printf("Debug %s::%s \n", this->getClassCName(), this->getCName() ); 163 163 } -
trunk/src/lib/graphics/text_engine/multi_line_text.cc
r8768 r9406 152 152 void MultiLineText::debug() const 153 153 { 154 printf("Debug %s::%s: %d lines\n", this->getClass Name(), this->getName(), this->getLineCount());154 printf("Debug %s::%s: %d lines\n", this->getClassCName(), this->getCName(), this->getLineCount()); 155 155 156 156 std::string tmpText = this->text(); -
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 } -
trunk/src/lib/graphics/text_engine/text_engine.cc
r8761 r9406 26 26 #include "font.h" 27 27 28 using namespace std; 28 29 29 30 30 #include <stdlib.h> … … 122 122 void TextEngine::debug() const 123 123 { 124 const list<BaseObject*>* textList = ClassList::getList(CL_TEXT);124 const std::list<BaseObject*>* textList = ClassList::getList(CL_TEXT); 125 125 if (textList != NULL) 126 126 { … … 130 130 PRINT(0)("Reference: %p; Text Counts: %d\n", this, textList->size()); 131 131 132 list<BaseObject*>::const_iterator text;132 std::list<BaseObject*>::const_iterator text; 133 133 for ( text = textList->begin(); text != textList->end(); text++) 134 134 dynamic_cast<Text*>(*text)->debug();
Note: See TracChangeset
for help on using the changeset viewer.