Changeset 3715 in orxonox.OLD for orxonox/branches/textEngine/src/lib/graphics/font/glfont.h
- Timestamp:
- Apr 3, 2005, 9:55:33 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/textEngine/src/lib/graphics/font/glfont.h
r3714 r3715 10 10 #include "SDL_ttf.h" 11 11 12 // FORWARD DECLARATION 12 #include "vector.h" 13 14 // FORWARD DECLARATION 15 class PNode; 13 16 template<class T> class tList; 17 14 18 15 19 /* some default values */ … … 20 24 #define FONT_DEFAULT_COLOR_B 256 //!< the default red blue (color) of the text 21 25 #define FONT_NUM_COLORS 256 //!< The number of colors. 22 23 26 24 27 … … 57 60 virtual ~GLFont(); 58 61 62 // general 59 63 static void enableFonts(void); 60 64 static void disableFonts(void); 61 65 66 // font 62 67 bool setFont(const char* fontFile); 63 void setText(const char* text);64 65 void setStyle(char* renderStyle);66 68 void setSize(unsigned int fontSize); 67 69 void setColor(Uint8 r, Uint8 g, Uint8 b); 70 71 // text 72 void setBindNode(PNode* bindNode); 73 void setText(const char* text); 74 void setStyle(char* renderStyle); 68 75 void setPosition(int x, int y); 69 70 76 void createTexture(void); 71 77 … … 73 79 74 80 private: 81 // general purpose 82 GLdouble projMat[16]; //!< The Projection Matrix 83 75 84 // information about the Font 76 85 TTF_Font* font; //!< The font we use for this. … … 88 97 SDL_Rect textPosSize; //!< An SDL-Rectangle representing the position and size of the Text on the screen. 89 98 int renderStyle; //!< The Renderstyle 99 100 PNode* bindNode; //!< A node the Text is bind to. (if NULL thr node will not be bound to anything.) 90 101 }; 91 102 tList<Text>* textList; … … 113 124 }; 114 125 126 void m_inverse(const float *m, float *out); 127 Vector mvMult(const float *mat, const Vector* vec); 115 128 #endif /* _GLFONT_H */
Note: See TracChangeset
for help on using the changeset viewer.