Changeset 5306 in orxonox.OLD for trunk/src/lib/graphics/text_engine.h
- Timestamp:
- Oct 7, 2005, 6:17:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine.h
r5275 r5306 105 105 class Text : public Element2D 106 106 { 107 friend class TextEngine; 107 108 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); 109 110 ~Text(); 110 111 111 void setFont(Font* font); 112 void init(); 113 112 114 void setFont(const char* fontFile, unsigned int fontSize); 113 115 void setType(TEXT_RENDER_TYPE type); … … 128 130 129 131 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); 132 137 133 138 private:
Note: See TracChangeset
for help on using the changeset viewer.