comparison engine/core/gui/base/gui_font.h @ 583:47b49b9b0c0a

* Improved the floatingtextrenderer. Now you can set an alpha value for font, background quad and border. Splited quad and border into own commands. * Added a triangle function to backends and genericrenderer, also added the functions to set an alpha value for geometric figures.
author helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 07 Aug 2010 16:36:35 +0000
parents 7887f3854862
children 5d6b1820b953
comparison
equal deleted inserted replaced
582:5e04f6349894 583:47b49b9b0c0a
55 int getGlyphSpacing() const; 55 int getGlyphSpacing() const;
56 void setAntiAlias(bool antiAlias); 56 void setAntiAlias(bool antiAlias);
57 bool isAntiAlias(); 57 bool isAntiAlias();
58 Image* getAsImage(const std::string& text); 58 Image* getAsImage(const std::string& text);
59 Image* getAsImageMultiline(const std::string& text); 59 Image* getAsImageMultiline(const std::string& text);
60 void setColor(uint8_t r,uint8_t g,uint8_t b); 60 void setColor(uint8_t r,uint8_t g,uint8_t b, uint8_t a = 255);
61 SDL_Color getColor() const; 61 SDL_Color getColor() const;
62 int getWidth(const std::string& text) const; 62 int getWidth(const std::string& text) const;
63 int getHeight() const; 63 int getHeight() const;
64 64
65 private: 65 private: