Mercurial > fife-parpg
comparison engine/core/view/renderers/genericrenderer.h @ 661:e3140f01749d
* Merged the light branch back into trunk.
* Modified the demos so they work with the new loaders and setting.
author | helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 05 Nov 2010 15:21:10 +0000 |
parents | a2dde16ddc62 |
children |
comparison
equal
deleted
inserted
replaced
660:b0733d998d0f | 661:e3140f01749d |
---|---|
186 private: | 186 private: |
187 GenericRendererNode m_anchor; | 187 GenericRendererNode m_anchor; |
188 AbstractFont* m_font; | 188 AbstractFont* m_font; |
189 std::string m_text; | 189 std::string m_text; |
190 }; | 190 }; |
191 class GenericRendererResizeInfo : public GenericRendererElementInfo { | |
192 public: | |
193 void render(Camera* cam, Layer* layer, RenderList& instances, RenderBackend* renderbackend, ImagePool* imagepool, AnimationPool* animpool); | |
194 GenericRendererResizeInfo(GenericRendererNode n, int image, int width, int height); | |
195 virtual ~GenericRendererResizeInfo() {}; | |
196 private: | |
197 GenericRendererNode m_anchor; | |
198 int m_image; | |
199 int m_width; | |
200 int m_height; | |
201 }; | |
191 class GenericRenderer: public RendererBase { | 202 class GenericRenderer: public RendererBase { |
192 public: | 203 public: |
193 /** constructor. | 204 /** constructor. |
194 * @param renderbackend to use | 205 * @param renderbackend to use |
195 * @param position position for this renderer in rendering pipeline | 206 * @param position position for this renderer in rendering pipeline |
216 void addQuad(const std::string &group, GenericRendererNode n1, GenericRendererNode n2, GenericRendererNode n3, GenericRendererNode n4, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255); | 227 void addQuad(const std::string &group, GenericRendererNode n1, GenericRendererNode n2, GenericRendererNode n3, GenericRendererNode n4, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255); |
217 void addVertex(const std::string &group, GenericRendererNode n, int size, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255); | 228 void addVertex(const std::string &group, GenericRendererNode n, int size, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255); |
218 void addText(const std::string &group, GenericRendererNode n, AbstractFont* font, const std::string &text); | 229 void addText(const std::string &group, GenericRendererNode n, AbstractFont* font, const std::string &text); |
219 void addImage(const std::string &group, GenericRendererNode n, int image); | 230 void addImage(const std::string &group, GenericRendererNode n, int image); |
220 void addAnimation(const std::string &group, GenericRendererNode n, int animation); | 231 void addAnimation(const std::string &group, GenericRendererNode n, int animation); |
232 void resizeImage(const std::string &group, GenericRendererNode n, int image, int width, int height); | |
221 void removeAll(const std::string &group); | 233 void removeAll(const std::string &group); |
222 | 234 |
223 private: | 235 private: |
224 ImagePool* m_imagepool; | 236 ImagePool* m_imagepool; |
225 AnimationPool* m_animationpool; | 237 AnimationPool* m_animationpool; |