diff 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
line wrap: on
line diff
--- a/engine/core/view/renderers/genericrenderer.h	Wed Nov 03 13:44:12 2010 +0000
+++ b/engine/core/view/renderers/genericrenderer.h	Fri Nov 05 15:21:10 2010 +0000
@@ -188,6 +188,17 @@
 		AbstractFont* m_font;
 		std::string m_text;
 	};
+	class GenericRendererResizeInfo : public GenericRendererElementInfo {
+	public:
+		void render(Camera* cam, Layer* layer, RenderList& instances, RenderBackend* renderbackend, ImagePool* imagepool, AnimationPool* animpool);
+		GenericRendererResizeInfo(GenericRendererNode n, int image, int width, int height);
+		virtual ~GenericRendererResizeInfo() {};
+	private:
+		GenericRendererNode m_anchor;
+		int m_image;
+		int m_width;
+		int m_height;
+	};
 	class GenericRenderer: public RendererBase {
 	public:
 		/** constructor.
@@ -218,6 +229,7 @@
 		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 resizeImage(const std::string &group, GenericRendererNode n, int image, int width, int height);
 		void removeAll(const std::string &group);
 
 	private: