Changeset 8753 in orxonox.OLD for branches/fontdata/src/lib/graphics/text_engine/font.h
- Timestamp:
- Jun 23, 2006, 6:38:05 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fontdata/src/lib/graphics/text_engine/font.h
r8751 r8753 43 43 44 44 /** @returns the default Font */ 45 inline static Font* getDefaultFont() { if (Font::defaultFont == NULL) initDefaultFont(); return Font::defaultFont; }; 45 //inline static Font* getDefaultFont() { if (Font::defaultFont == NULL) initDefaultFont(); return Font::defaultFont; }; 46 47 46 48 47 49 void createAsciiImage(const std::string& fileName, unsigned int size) const; 48 static void initDefaultFont();49 static void removeDefaultFont();50 50 51 51 void debug() const ; 52 52 private: 53 53 void init(); … … 56 56 bool createFastTexture(); 57 57 58 58 59 void initGlyphs(Uint16 from, Uint16 count); 59 60 int findOptimalFastTextureSize(); 60 61 61 void debug(); 62 63 static FontDataPointer initDefaultFont(); 62 64 63 65 private: 64 static Font * defaultFont;//!< a default font, that is used, if other fonts were unable to be loaded.66 static FontDataPointer defaultFontData; //!< a default font, that is used, if other fonts were unable to be loaded. 65 67 66 fontDataPointer data;68 FontDataPointer data; //!< A Data-Pointer to a Font. 67 69 }; 68 70
Note: See TracChangeset
for help on using the changeset viewer.