Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8764 in orxonox.OLD for trunk/src/lib/graphics/text_engine/font.h


Ignore:
Timestamp:
Jun 24, 2006, 3:12:14 AM (19 years ago)
Author:
bensch
Message:

load-implementation of font in font-data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/text_engine/font.h

    r8763 r8764  
    3232  bool operator==(const Font& font) const { return this->data == font.data; };
    3333
    34 
    3534  /// LOADING new Fonts
    3635  bool loadFontFromTTF(const std::string& fontFile, unsigned int renderSize);
     
    4443  inline TTF_Font* getTTF() const { return this->data->getTTF(); };
    4544
    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
    4949
    5050  void createAsciiImage(const std::string& fileName, unsigned int size) const;
     
    5454private:
    5555  void init();
    56   void initGlyphs(Uint16 from, Uint16 count);
    57   bool getGlyphMetrics(Glyph* glyph, Uint16 character);
    5856  static void initDefaultFont();
    5957
    60   int findOptimalFastTextureSize();
    61   bool createFastTexture();
    62 
    63   bool setTexture(GLuint texture);
    64 
     58  void setTexture(const TextureDataPointer& texDataPointer);
    6559
    6660private:
Note: See TracChangeset for help on using the changeset viewer.