Mercurial > fife-parpg
comparison engine/core/view/renderers/genericrenderer.i @ 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 | 9d94f4676d17 |
comparison
equal
deleted
inserted
replaced
104:2c7101e4d81d | 105:2241b0d5379e |
---|---|
139 public: | 139 public: |
140 GenericRenderer(RenderBackend* renderbackend, int position, ImagePool* imagepool, AnimationPool* animpool); | 140 GenericRenderer(RenderBackend* renderbackend, int position, ImagePool* imagepool, AnimationPool* animpool); |
141 ~GeometricRenderer(); | 141 ~GeometricRenderer(); |
142 std::string getName(); | 142 std::string getName(); |
143 static GenericRenderer* getInstance(IRendererContainer* cnt); | 143 static GenericRenderer* getInstance(IRendererContainer* cnt); |
144 void addLine(int group, GenericRendererNode n1, GenericRendererNode n2, uint8_t r, uint8_t g, uint8_t b); | 144 void addLine(const std::string &group, GenericRendererNode n1, GenericRendererNode n2, uint8_t r, uint8_t g, uint8_t b); |
145 void addPoint(int group, GenericRendererNode n, uint8_t r, uint8_t g, uint8_t b); | 145 void addPoint(const std::string &group, GenericRendererNode n, uint8_t r, uint8_t g, uint8_t b); |
146 void addQuad(int group, GenericRendererNode n1, GenericRendererNode n2, GenericRendererNode n3, GenericRendererNode n4, uint8_t r, uint8_t g, uint8_t b); | 146 void addQuad(const std::string &group, GenericRendererNode n1, GenericRendererNode n2, GenericRendererNode n3, GenericRendererNode n4, uint8_t r, uint8_t g, uint8_t b); |
147 void addText(int group, GenericRendererNode n, AbstractFont* font, std::string text); | 147 void addText(const std::string &group, GenericRendererNode n, AbstractFont* font, const std::string &text); |
148 void addImage(int group, GenericRendererNode n, int image); | 148 void addImage(const std::string &group, GenericRendererNode n, int image); |
149 void addAnimation(int group, GenericRendererNode n, int animation); | 149 void addAnimation(const std::string &group, GenericRendererNode n, int animation); |
150 void removeAll(int group); | 150 void removeAll(const std::string &group); |
151 }; | 151 }; |
152 } | 152 } |