comparison 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
comparison
equal deleted inserted replaced
582:5e04f6349894 583:47b49b9b0c0a
30 30
31 class FloatingTextRenderer: public RendererBase { 31 class FloatingTextRenderer: public RendererBase {
32 public: 32 public:
33 virtual ~FloatingTextRenderer(); 33 virtual ~FloatingTextRenderer();
34 void changeDefaultFont(AbstractFont* font); 34 void changeDefaultFont(AbstractFont* font);
35 void setColor(Uint8 r, Uint8 g, Uint8 b); 35 void setColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a = 255);
36 void setDefaultBackground(Uint8 br, Uint8 bg, Uint8 bb, Uint8 bbr, Uint8 bbg, Uint8 bbb); 36 void setDefaultBackground(Uint8 br, Uint8 bg, Uint8 bb, Uint8 ba = 255);
37 void setDefaultBorder(Uint8 bbr, Uint8 bbg, Uint8 bbb, Uint8 bba = 255);
37 void resetDefaultBackground(); 38 void resetDefaultBackground();
39 void resetDefaultBorder();
38 40
39 static FloatingTextRenderer* getInstance(IRendererContainer* cnt); 41 static FloatingTextRenderer* getInstance(IRendererContainer* cnt);
40 42
41 private: 43 private:
42 FloatingTextRenderer(RenderBackend* renderbackend, int position, AbstractFont* font); 44 FloatingTextRenderer(RenderBackend* renderbackend, int position, AbstractFont* font);