Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5306 in orxonox.OLD for trunk/src/lib/graphics/text_engine.h


Ignore:
Timestamp:
Oct 7, 2005, 6:17:49 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: ResourceManage-fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/text_engine.h

    r5275 r5306  
    105105class Text : public Element2D
    106106{
     107  friend class TextEngine;
    107108 public:
    108    Text(Font* font = NULL, TEXT_RENDER_TYPE type = TEXT_RENDER_DYNAMIC);
     109   Text(const char* fontFile, unsigned int fontSize = FONT_DEFAULT_SIZE, TEXT_RENDER_TYPE type = TEXT_RENDER_DYNAMIC);
    109110  ~Text();
    110111
    111   void setFont(Font* font);
     112  void init();
     113
    112114  void setFont(const char* fontFile, unsigned int fontSize);
    113115  void setType(TEXT_RENDER_TYPE type);
     
    128130
    129131 private:
    130   static GLuint loadTexture(SDL_Surface* surface, TexCoord* texCoord);
    131   static int powerOfTwo(int input);
     132   Text(Font* font = NULL, TEXT_RENDER_TYPE type = TEXT_RENDER_DYNAMIC);
     133   void setFont(Font* font);
     134
     135   static GLuint loadTexture(SDL_Surface* surface, TexCoord* texCoord);
     136   static int powerOfTwo(int input);
    132137
    133138 private:
Note: See TracChangeset for help on using the changeset viewer.