Changeset 4746 in orxonox.OLD for orxonox/trunk/src/lib/graphics/text_engine.cc
- Timestamp:
- Jul 1, 2005, 12:48:48 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/text_engine.cc
r4709 r4746 71 71 This also ereases the text from the textList of the TextEngine 72 72 */ 73 Text::~Text( void)73 Text::~Text() 74 74 { 75 75 TextEngine::getInstance()->deleteText(this); … … 167 167 this is only for TEXT_STATIC-mode 168 168 */ 169 void Text::createTexture( void)169 void Text::createTexture() 170 170 { 171 171 SDL_Surface* tmpSurf; … … 187 187 \brief draws the Font 188 188 */ 189 void Text::draw( void) const189 void Text::draw() const 190 190 { 191 191 // setting the Position of this Text. … … 271 271 \brief prints out some nice debug information about this text 272 272 */ 273 void Text::debug( void) const273 void Text::debug() const 274 274 { 275 275 PRINT(0)("=== TEXT: %s ===\n", this->text); … … 415 415 \brief destructs a font 416 416 */ 417 Font::~Font( void)417 Font::~Font() 418 418 { 419 419 // deleting the List of all Texts … … 509 509 \returns the maximum height of the Font, if the font was initialized, 0 otherwise 510 510 */ 511 int Font::getMaxHeight( void)511 int Font::getMaxHeight() 512 512 { 513 513 if (likely (this->font != NULL)) … … 522 522 the ascent is the pixels of the font above the baseline 523 523 */ 524 int Font::getMaxAscent( void)524 int Font::getMaxAscent() 525 525 { 526 526 if (likely(this->font != NULL)) … … 535 535 the descent is the pixels of the font below the baseline 536 536 */ 537 int Font::getMaxDescent( void)537 int Font::getMaxDescent() 538 538 { 539 539 if (likely(this->font != NULL)) … … 568 568 } 569 569 570 GLuint Font::createFastTexture( void)570 GLuint Font::createFastTexture() 571 571 { 572 572 /* interesting GLYPHS: … … 730 730 openGL-version < 1.2 compatibility ( and because it is realy easy like this :)) 731 731 */ 732 int Font::findOptimalFastTextureSize( void)732 int Font::findOptimalFastTextureSize() 733 733 { 734 734 int i; … … 775 775 \brief a simple function to get some interesting information about this class 776 776 */ 777 void Font::debug( void)777 void Font::debug() 778 778 { 779 779 // print the loaded font's style … … 832 832 \brief function to enable TTF_Fonts 833 833 */ 834 void TextEngine::enableFonts( void)834 void TextEngine::enableFonts() 835 835 { 836 836 if (!TTF_WasInit()) … … 848 848 \brief function to disable TTF_fonts 849 849 */ 850 void TextEngine::disableFonts( void)850 void TextEngine::disableFonts() 851 851 { 852 852 if (TTF_WasInit()) … … 900 900 \brief deletes all the Text, and tries to delete all allocated fonts 901 901 */ 902 void TextEngine::flush( void)902 void TextEngine::flush() 903 903 { 904 904 tIterator<Text>* textIterator = textList->getIterator(); … … 915 915 \brief draws all the Texts that have been initialized 916 916 */ 917 void TextEngine::draw( void) const917 void TextEngine::draw() const 918 918 { 919 919 // entering 3D-mode … … 937 937 \todo there should also be something outputted about Font 938 938 */ 939 void TextEngine::debug( void) const939 void TextEngine::debug() const 940 940 { 941 941 PRINT(0)("+-------------------------------+\n"); … … 960 960 \returns true if match, false otherwise 961 961 */ 962 bool TextEngine::checkVersion( void)962 bool TextEngine::checkVersion() 963 963 { 964 964 SDL_version compile_version;
Note: See TracChangeset
for help on using the changeset viewer.