Changeset 5380 in orxonox.OLD for branches/2d-recalc/src/lib/graphics/text_engine/text.h
- Timestamp:
- Oct 15, 2005, 1:49:17 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2d-recalc/src/lib/graphics/text_engine/text.h
r5378 r5380 55 55 public: 56 56 Text(const char* fontFile, unsigned int fontSize = TEXT_DEFAULT_SIZE, TEXT_RENDER_TYPE type = TEXT_RENDER_DYNAMIC); 57 Text(const char* fontFile, float fontSize); 57 58 ~Text(); 58 59 void init(); … … 69 70 void setColor(float r, float g, float b) { this->color = Vector(r, g, b); }; 70 71 /** sets the Size of the Font */ 71 void setSize(float size) { this->size = size; }; 72 /** @returns the Size of the Text */ 73 // void getSize(float &x, float& y) const { return this->size; }; 72 inline void setTextSize(unsigned int size) { this->setSizeY2Dpx(size); }; 74 73 75 74 void setType(TEXT_RENDER_TYPE type); … … 92 91 Vector color; //!< The color of the font. 93 92 float blending; //!< The blending intensity. 94 float size; //!< The size of the Font.95 93 96 94 // placement in openGL
Note: See TracChangeset
for help on using the changeset viewer.