Mercurial > fife-parpg
comparison engine/core/video/fonts/abstractfont.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 |
---|---|
102 | 102 |
103 virtual std::string splitTextToWidth (const std::string& text, int render_width) = 0; | 103 virtual std::string splitTextToWidth (const std::string& text, int render_width) = 0; |
104 | 104 |
105 /** Set the color the text should be rendered in | 105 /** Set the color the text should be rendered in |
106 */ | 106 */ |
107 virtual void setColor(uint8_t r,uint8_t g,uint8_t b) = 0; | 107 virtual void setColor(uint8_t r,uint8_t g,uint8_t b, uint8_t a = 255) = 0; |
108 | 108 |
109 /** Get the color the text was rendered in | 109 /** Get the color the text was rendered in |
110 */ | 110 */ |
111 virtual SDL_Color getColor() const = 0; | 111 virtual SDL_Color getColor() const = 0; |
112 | 112 |