Changeset 3843 in orxonox.OLD for orxonox/trunk/src/lib/graphics/text_engine.h
- Timestamp:
- Apr 17, 2005, 12:27:53 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/text_engine.h
r3833 r3843 29 29 template<class T> class tList; 30 30 31 //! An enumerator for the text alignment. 32 enum TEXT_ALIGNMENT {TEXT_ALIGN_LEFT, TEXT_ALIGN_RIGHT, TEXT_ALIGN_CENTER}; 31 33 32 34 /* some default values */ 33 35 #define FONT_DEFAULT_SIZE 50 //!< default size of the Text 34 #define FONT_DEFAULT_TEXT "orxonox 1234567890" //!< somedefault text to display35 #define FONT_DEFAULT_COLOR_R 255 //!< thedefault red part (color) of the text36 #define FONT_DEFAULT_COLOR_G 255 //!< thedefault red green (color) of the text37 #define FONT_DEFAULT_COLOR_B 255 //!< thedefault red blue (color) of the text38 #define FONT_NUM_COLORS 256 //!< Thenumber of colors.36 #define FONT_DEFAULT_TEXT "orxonox 1234567890" //!< default text to display 37 #define FONT_DEFAULT_COLOR_R 255 //!< default red part (color) of the text 38 #define FONT_DEFAULT_COLOR_G 255 //!< default red green (color) of the text 39 #define FONT_DEFAULT_COLOR_B 255 //!< default red blue (color) of the text 40 #define FONT_NUM_COLORS 256 //!< number of colors. 39 41 40 42 #define FONT_HIGHEST_KNOWN_CHAR 128 //!< The highest character known to the textEngine. 41 43 44 #define TEXT_DEFAULT_ALIGNMENT TEXT_ALIGN_CENTER //!< default alignment 42 45 #define TEXT_STATIC 0 //!< Static Text 43 46 #define TEXT_DYNAMIC 1 //!< Dynamic Text … … 101 104 void setText(const char* text); 102 105 void setPosition(int x, int y); 106 void setAlignment(TEXT_ALIGNMENT alignemnt); 103 107 /** \param blending the blending intensity to set (between 0.0 and 1.0) */ 104 108 inline void setBlending(float blending) {this->blending = blending;} … … 107 111 void setColor(Uint8 r, Uint8 g, Uint8 b); 108 112 void setStyle(char* renderStyle); 113 109 114 void createTexture(); 110 115 … … 121 126 char* text; //!< The text to display 122 127 SDL_Color color; //!< The color of the font. 128 TEXT_ALIGNMENT alignment; //!< The aignment of the text. 123 129 float blending; //!< The blending intensity. 124 130 // placement in openGL
Note: See TracChangeset
for help on using the changeset viewer.