diff 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
line wrap: on
line diff
--- a/engine/core/view/renderers/genericrenderer.h	Thu Jul 24 10:18:44 2008 +0000
+++ b/engine/core/view/renderers/genericrenderer.h	Thu Jul 24 13:20:39 2008 +0000
@@ -170,18 +170,18 @@
 		 */
 		static GenericRenderer* getInstance(IRendererContainer* cnt);
 
-		void addLine(int group, GenericRendererNode n1, GenericRendererNode n2, uint8_t r, uint8_t g, uint8_t b);
-		void addPoint(int group, GenericRendererNode n, uint8_t r, uint8_t g, uint8_t b);
-		void addQuad(int group, GenericRendererNode n1, GenericRendererNode n2, GenericRendererNode n3, GenericRendererNode n4, uint8_t r, uint8_t g, uint8_t b);
-		void addText(int group, GenericRendererNode n, AbstractFont* font, std::string text);
-		void addImage(int group, GenericRendererNode n, int image);
-		void addAnimation(int group, GenericRendererNode n, int animation);
-		void removeAll(int group);
+		void addLine(const std::string &group, GenericRendererNode n1, GenericRendererNode n2, uint8_t r, uint8_t g, uint8_t b);
+		void addPoint(const std::string &group, GenericRendererNode n, uint8_t r, uint8_t g, uint8_t b);
+		void addQuad(const std::string &group, GenericRendererNode n1, GenericRendererNode n2, GenericRendererNode n3, GenericRendererNode n4, uint8_t r, uint8_t g, uint8_t b);
+		void addText(const std::string &group, GenericRendererNode n, AbstractFont* font, const std::string &text);
+		void addImage(const std::string &group, GenericRendererNode n, int image);
+		void addAnimation(const std::string &group, GenericRendererNode n, int animation);
+		void removeAll(const std::string &group);
 
 	private:
 		ImagePool* m_imagepool;
 		AnimationPool* m_animationpool;
-		std::map<int, std::vector<GenericRendererElementInfo*> > m_groups;
+		std::map<std::string, std::vector<GenericRendererElementInfo*> > m_groups;
 	};
 
 }