Changeset 9869 in orxonox.OLD for trunk/src/lib/graphics/text_engine/font.h
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/font.h
r8766 r9869 19 19 class Font : public Material 20 20 { 21 21 ObjectListDeclaration(Font); 22 public: 23 typedef FontData::Glyph Glyph; 22 24 public: 23 25 Font(); … … 39 41 40 42 /** @returns a Pointer to the Array of Glyphs */ 41 inline Glyph**getGlyphArray() const { return this->data->getGlyphArray(); };43 inline const Glyph* const * const getGlyphArray() const { return this->data->getGlyphArray(); }; 42 44 43 45 inline int getMaxHeight() const { return data->getMaxHeight(); }; … … 50 52 void debug() const; 51 53 54 void acquireData(const FontData::Pointer& data) { this->data = data; }; 55 const FontData::Pointer& dataPointer() const { return data; }; 52 56 private: 53 57 void init(); 54 58 static void initDefaultFont(); 55 59 56 void setTexture(const TextureData Pointer& texDataPointer);60 void setTexture(const TextureData::Pointer& texDataPointer); 57 61 58 62 private: 59 FontData Pointerdata; //!< A Data-Pointer to a Font.63 FontData::Pointer data; //!< A Data-Pointer to a Font. 60 64 61 static FontData PointerdefaultFontData; //!< a default font, that is used, if other fonts were unable to be loaded.65 static FontData::Pointer defaultFontData; //!< a default font, that is used, if other fonts were unable to be loaded. 62 66 }; 63 67
Note: See TracChangeset
for help on using the changeset viewer.