Changeset 8764 in orxonox.OLD for trunk/src/lib/graphics/text_engine/font.h
- Timestamp:
- Jun 24, 2006, 3:12:14 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/font.h
r8763 r8764 32 32 bool operator==(const Font& font) const { return this->data == font.data; }; 33 33 34 35 34 /// LOADING new Fonts 36 35 bool loadFontFromTTF(const std::string& fontFile, unsigned int renderSize); … … 44 43 inline TTF_Font* getTTF() const { return this->data->getTTF(); }; 45 44 46 int getMaxHeight() const; 47 int getMaxAscent() const; 48 int getMaxDescent() const; 45 inline int getMaxHeight() const { return data->getMaxHeight(); }; 46 inline int getMaxAscent() const { return data->getMaxAscent(); }; 47 inline int getMaxDescent() const { return data->getMaxDescent(); }; 48 49 49 50 50 void createAsciiImage(const std::string& fileName, unsigned int size) const; … … 54 54 private: 55 55 void init(); 56 void initGlyphs(Uint16 from, Uint16 count);57 bool getGlyphMetrics(Glyph* glyph, Uint16 character);58 56 static void initDefaultFont(); 59 57 60 int findOptimalFastTextureSize(); 61 bool createFastTexture(); 62 63 bool setTexture(GLuint texture); 64 58 void setTexture(const TextureDataPointer& texDataPointer); 65 59 66 60 private:
Note: See TracChangeset
for help on using the changeset viewer.