Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 11, 2005, 2:07:13 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/textEngine: unloading works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/textEngine/src/lib/graphics/font/text_engine.h

    r3772 r3773  
    9292class Text
    9393{
     94  friend class TextEngine;
    9495 public:
    95   Text(Font* font, int type = TEXT_DYNAMIC);
    9696  ~Text(void);
    9797
     
    113113  virtual void draw(void);
    114114
     115 private:
     116  Text(Font* font, int type = TEXT_DYNAMIC);
    115117
    116118  Font* font;
     
    186188///////////////////
    187189//! A singleton Class that operates as a Handler for generating and rendering Text in 2D
    188 class TextEngine : public BaseObject {
    189 
     190class TextEngine : public BaseObject
     191{
    190192 public:
    191193  static TextEngine* getInstance(void);
     
    194196  Text* createText(const char* fontFile,
    195197                   unsigned int fontSize = FONT_DEFAULT_SIZE,
     198                   int textType = TEXT_DYNAMIC,
    196199                   Uint8 r = FONT_DEFAULT_COLOR_R,
    197200                   Uint8 g = FONT_DEFAULT_COLOR_G,
     
    200203  void deleteText(Text* text);
    201204
    202   void draw(void);
    203 
     205  void draw(void) const;
     206 
    204207 private:
    205208  TextEngine(void);
Note: See TracChangeset for help on using the changeset viewer.