Mercurial > fife-parpg
diff engine/core/view/renderers/floatingtextrenderer.i @ 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 | 5e04f6349894 |
children | d1df6cf5ff23 |
line wrap: on
line diff
--- a/engine/core/view/renderers/floatingtextrenderer.i Tue Aug 03 13:57:12 2010 +0000 +++ b/engine/core/view/renderers/floatingtextrenderer.i Sat Aug 07 16:36:35 2010 +0000 @@ -32,9 +32,11 @@ public: virtual ~FloatingTextRenderer(); void changeDefaultFont(AbstractFont* font); - void setColor(Uint8 r, Uint8 g, Uint8 b); - void setDefaultBackground(Uint8 br, Uint8 bg, Uint8 bb, Uint8 bbr, Uint8 bbg, Uint8 bbb); + void setColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a = 255); + void setDefaultBackground(Uint8 br, Uint8 bg, Uint8 bb, Uint8 ba = 255); + void setDefaultBorder(Uint8 bbr, Uint8 bbg, Uint8 bbb, Uint8 bba = 255); void resetDefaultBackground(); + void resetDefaultBorder(); static FloatingTextRenderer* getInstance(IRendererContainer* cnt);