comparison engine/core/view/renderers/genericrenderer.h @ 105:2241b0d5379e

use strings as grouping in generic renderer, easier for the clients...
author spq@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 24 Jul 2008 13:20:39 +0000
parents 90005975cdbb
children ad1f09d954f9
comparison
equal deleted inserted replaced
104:2c7101e4d81d 105:2241b0d5379e
168 168
169 /** Gets instance for interface access 169 /** Gets instance for interface access
170 */ 170 */
171 static GenericRenderer* getInstance(IRendererContainer* cnt); 171 static GenericRenderer* getInstance(IRendererContainer* cnt);
172 172
173 void addLine(int group, GenericRendererNode n1, GenericRendererNode n2, uint8_t r, uint8_t g, uint8_t b); 173 void addLine(const std::string &group, GenericRendererNode n1, GenericRendererNode n2, uint8_t r, uint8_t g, uint8_t b);
174 void addPoint(int group, GenericRendererNode n, uint8_t r, uint8_t g, uint8_t b); 174 void addPoint(const std::string &group, GenericRendererNode n, uint8_t r, uint8_t g, uint8_t b);
175 void addQuad(int group, GenericRendererNode n1, GenericRendererNode n2, GenericRendererNode n3, GenericRendererNode n4, uint8_t r, uint8_t g, uint8_t b); 175 void addQuad(const std::string &group, GenericRendererNode n1, GenericRendererNode n2, GenericRendererNode n3, GenericRendererNode n4, uint8_t r, uint8_t g, uint8_t b);
176 void addText(int group, GenericRendererNode n, AbstractFont* font, std::string text); 176 void addText(const std::string &group, GenericRendererNode n, AbstractFont* font, const std::string &text);
177 void addImage(int group, GenericRendererNode n, int image); 177 void addImage(const std::string &group, GenericRendererNode n, int image);
178 void addAnimation(int group, GenericRendererNode n, int animation); 178 void addAnimation(const std::string &group, GenericRendererNode n, int animation);
179 void removeAll(int group); 179 void removeAll(const std::string &group);
180 180
181 private: 181 private:
182 ImagePool* m_imagepool; 182 ImagePool* m_imagepool;
183 AnimationPool* m_animationpool; 183 AnimationPool* m_animationpool;
184 std::map<int, std::vector<GenericRendererElementInfo*> > m_groups; 184 std::map<std::string, std::vector<GenericRendererElementInfo*> > m_groups;
185 }; 185 };
186 186
187 } 187 }
188 188
189 #endif 189 #endif