Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 23, 2006, 6:58:01 PM (19 years ago)
Author:
bensch
Message:

better, but still not running, yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/fontdata/src/lib/graphics/text_engine/font.cc

    r8753 r8754  
    2929#include "compiler.h"
    3030
     31
     32Font::Font()
     33  : data(Font::defaultFontData)
     34{
     35  this->init();
     36
     37}
    3138
    3239/**
     
    149156bool Font::loadFontFromSDL_Surface(SDL_Surface* surface)
    150157{
     158  this->data = FontDataPointer (new FontData());
    151159  // loading to a texture.
    152160  if(surface == NULL)
     
    286294FontDataPointer Font::initDefaultFont()
    287295{
     296  Font::defaultFontData = FontDataPointer(new FontData);
    288297  return Font(font_xpm).data;
    289298}
Note: See TracChangeset for help on using the changeset viewer.