Changeset 3777 in orxonox.OLD for orxonox/branches/textEngine/src/lib/graphics/font
- Timestamp:
- Apr 11, 2005, 4:43:13 PM (20 years ago)
- Location:
- orxonox/branches/textEngine/src/lib/graphics/font
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/textEngine/src/lib/graphics/font/text_engine.cc
r3776 r3777 56 56 this->text = NULL; 57 57 this->texture = 0; 58 this->blending = 1.0f; 58 59 this->setType(type); 59 60 this->setPosition(0, 0); … … 181 182 pos.z = 0; 182 183 } 184 185 // setting the Blending effects 186 glColor4f(1.0f,1.0f,1.0f, this->blending); 187 glBlendFunc(GL_SRC_ALPHA, GL_ONE); 183 188 184 189 // drawing this Text. -
orxonox/branches/textEngine/src/lib/graphics/font/text_engine.h
r3774 r3777 101 101 void setText(const char* text); 102 102 void setPosition(int x, int y); 103 /** \param blending the blending intensity to set (between 0.0 and 1.0) */ 104 inline void setBlending(float blending) {this->blending = blending;} 103 105 104 106 // Static Text … … 119 121 char* text; //!< The text to display 120 122 SDL_Color color; //!< The color of the font. 123 float blending; //!< The blending intensity. 121 124 // placement in openGL 122 125 GLuint texture; //!< A GL-texture to hold the text
Note: See TracChangeset
for help on using the changeset viewer.