Changeset 4746 in orxonox.OLD for orxonox/trunk/src/lib/graphics/text_engine.h
- 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.h
r4662 r4746 108 108 friend class TextEngine; 109 109 public: 110 ~Text( void);110 ~Text(); 111 111 112 112 void setBindNode(PNode* bindNode); … … 124 124 void createTexture(); 125 125 126 void draw( void) const;127 128 void debug( void) const;126 void draw() const; 127 128 void debug() const; 129 129 130 130 private: … … 175 175 176 176 /** \returns a Pointer to the Array of Glyphs */ 177 inline Glyph** getGlyphArray( void) const {return glyphArray;}177 inline Glyph** getGlyphArray() const {return glyphArray;} 178 178 /** \returns the texture to the fast-texture */ 179 inline GLuint getFastTextureID( void) const {return fastTextureID;}180 181 private: 182 int getMaxHeight( void);183 int getMaxAscent( void);184 int getMaxDescent( void);179 inline GLuint getFastTextureID() const {return fastTextureID;} 180 181 private: 182 int getMaxHeight(); 183 int getMaxAscent(); 184 int getMaxDescent(); 185 185 Glyph* getGlyphMetrics(Uint16 character); 186 186 … … 188 188 189 189 void initGlyphs(Uint16 from, Uint16 count); 190 int findOptimalFastTextureSize( void);191 192 void debug( void);190 int findOptimalFastTextureSize(); 191 192 void debug(); 193 193 194 194 private: … … 216 216 { 217 217 public: 218 virtual ~TextEngine( void);218 virtual ~TextEngine(); 219 219 /** \returns a Pointer to the only object of this Class */ 220 inline static TextEngine* getInstance( void) { if (!singletonRef) singletonRef = new TextEngine(); return singletonRef; };220 inline static TextEngine* getInstance() { if (!singletonRef) singletonRef = new TextEngine(); return singletonRef; }; 221 221 222 222 Text* createText(const char* fontFile, … … 228 228 229 229 void deleteText(Text* text); 230 void flush( void);231 232 void draw( void) const;233 234 void debug( void) const;235 236 private: 237 TextEngine( void);230 void flush(); 231 232 void draw() const; 233 234 void debug() const; 235 236 private: 237 TextEngine(); 238 238 static TextEngine* singletonRef; 239 239 240 240 // general 241 static void enableFonts( void);242 static void disableFonts( void);243 static bool checkVersion( void);241 static void enableFonts(); 242 static void disableFonts(); 243 static bool checkVersion(); 244 244 245 245 private:
Note: See TracChangeset
for help on using the changeset viewer.