- Timestamp:
- Jun 24, 2006, 3:54:58 AM (19 years ago)
- Location:
- trunk/src/lib/graphics/text_engine
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/font.cc
r8765 r8766 165 165 this->data = Font::defaultFontData; 166 166 167 this->setTexture(this->data->tex Data);167 this->setTexture(this->data->textureData()); 168 168 return retVal; 169 169 } … … 180 180 this->data = Font::defaultFontData; 181 181 182 this->setTexture(this->data->tex Data);182 this->setTexture(this->data->textureData()); 183 183 return retVal; 184 184 } … … 274 274 Material::debug(); 275 275 276 PRINT(0)("TEST %p and %p\n", this->data.get(), this->data->tex Data.get());276 PRINT(0)("TEST %p and %p\n", this->data.get(), this->data->textureData().get()); 277 277 // print the loaded font's style 278 278 /* int style = TTF_STYLE_NORMAL; -
trunk/src/lib/graphics/text_engine/font.h
r8765 r8766 17 17 18 18 //! A class to handle a Font of a certain ttf-File/image-file, Size. 19 class Font : public Material /* TODO Material it should be */19 class Font : public Material 20 20 { 21 21 -
trunk/src/lib/graphics/text_engine/font_data.h
r8765 r8766 50 50 class FontData 51 51 { 52 friend class Font;53 52 public: 53 FontData(); 54 54 ~FontData(); 55 56 55 57 56 /// LOADING new Fonts … … 60 59 61 60 void setStyle(TTF_Font* font, const std::string& renderStyle); 62 63 64 61 65 62 /** @returns a Pointer to the Array of Glyphs */ … … 70 67 int getMaxDescent() const { return maxDescent; }; 71 68 69 /** @returns the Texture-Data of this FontData */ 70 const TextureDataPointer& textureData() const { return texData; }; 72 71 73 72 bool rebuild(); 74 73 75 76 77 78 79 74 private: 80 FontData();81 75 82 76 void initGlyphs(TTF_Font* font, Uint16 from, Uint16 count); … … 86 80 bool createFastTexture(TTF_Font* font); 87 81 82 88 83 private: 89 84 std::string fontFile; //!< The FileName the Font was loaded from. 90 91 85 int renderStyle; //!< The Renderstyle 92 86 unsigned int renderSize; //!< How big the Font should be rendered.
Note: See TracChangeset
for help on using the changeset viewer.