Mercurial > fife-parpg
comparison engine/core/view/renderers/genericrenderer.i @ 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 |
---|---|
162 private: | 162 private: |
163 GenericRendererNode m_anchor; | 163 GenericRendererNode m_anchor; |
164 AbstractFont* m_font; | 164 AbstractFont* m_font; |
165 std::string m_text; | 165 std::string m_text; |
166 }; | 166 }; |
167 class GenericRendererResizeInfo : public GenericRendererElementInfo { | |
168 public: | |
169 GenericRendererResizeInfo(GenericRendererNode n, int image, int width, int height); | |
170 virtual ~GenericRendererResizeInfo() {}; | |
171 private: | |
172 GenericRendererNode m_anchor; | |
173 int m_image; | |
174 int m_width; | |
175 int m_height; | |
176 }; | |
167 class GenericRenderer: public RendererBase { | 177 class GenericRenderer: public RendererBase { |
168 public: | 178 public: |
169 GenericRenderer(RenderBackend* renderbackend, int position, ImagePool* imagepool, AnimationPool* animpool); | 179 GenericRenderer(RenderBackend* renderbackend, int position, ImagePool* imagepool, AnimationPool* animpool); |
170 ~GenericRenderer(); | 180 ~GenericRenderer(); |
171 std::string getName(); | 181 std::string getName(); |
176 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); | 186 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); |
177 void addVertex(const std::string &group, GenericRendererNode n, int size, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255); | 187 void addVertex(const std::string &group, GenericRendererNode n, int size, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255); |
178 void addText(const std::string &group, GenericRendererNode n, AbstractFont* font, const std::string &text); | 188 void addText(const std::string &group, GenericRendererNode n, AbstractFont* font, const std::string &text); |
179 void addImage(const std::string &group, GenericRendererNode n, int image); | 189 void addImage(const std::string &group, GenericRendererNode n, int image); |
180 void addAnimation(const std::string &group, GenericRendererNode n, int animation); | 190 void addAnimation(const std::string &group, GenericRendererNode n, int animation); |
191 void resizeImage(const std::string &group, GenericRendererNode n, int image, int width, int height); | |
181 void removeAll(const std::string &group); | 192 void removeAll(const std::string &group); |
182 }; | 193 }; |
183 } | 194 } |