Changeset 8754 in orxonox.OLD for branches/fontdata/src/lib/graphics/text_engine/font.cc
- Timestamp:
- Jun 23, 2006, 6:58:01 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fontdata/src/lib/graphics/text_engine/font.cc
r8753 r8754 29 29 #include "compiler.h" 30 30 31 32 Font::Font() 33 : data(Font::defaultFontData) 34 { 35 this->init(); 36 37 } 31 38 32 39 /** … … 149 156 bool Font::loadFontFromSDL_Surface(SDL_Surface* surface) 150 157 { 158 this->data = FontDataPointer (new FontData()); 151 159 // loading to a texture. 152 160 if(surface == NULL) … … 286 294 FontDataPointer Font::initDefaultFont() 287 295 { 296 Font::defaultFontData = FontDataPointer(new FontData); 288 297 return Font(font_xpm).data; 289 298 }
Note: See TracChangeset
for help on using the changeset viewer.