summaryrefslogtreecommitdiff
path: root/includes/interface.old/Sandbox.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-14 18:51:24 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-14 18:51:24 (GMT)
commit2c9295007a287dc01ff63fcf7b3da141f7474e37 (patch)
treee8065e920ca45686a40e41fd46513e13d46f47b0 /includes/interface.old/Sandbox.h
parentfc2f52099c0bbb2412046252bf7b5e4113bbe8e4 (diff)
downloadpowder-2c9295007a287dc01ff63fcf7b3da141f7474e37.zip
powder-2c9295007a287dc01ff63fcf7b3da141f7474e37.tar.gz
Various things, also IEF UI
Diffstat (limited to 'includes/interface.old/Sandbox.h')
-rw-r--r--includes/interface.old/Sandbox.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/includes/interface.old/Sandbox.h b/includes/interface.old/Sandbox.h
new file mode 100644
index 0000000..32a0471
--- /dev/null
+++ b/includes/interface.old/Sandbox.h
@@ -0,0 +1,36 @@
+/*
+ * Sandbox.h
+ *
+ * Created on: Jan 8, 2012
+ * Author: Simon
+ */
+
+#ifndef SANDBOX_H_
+#define SANDBOX_H_
+
+#include "Component.h"
+#include "Simulation.h"
+#include "Renderer.h"
+
+namespace ui {
+
+class Sandbox: public ui::Component {
+private:
+ int lastCoordX, lastCoordY;
+ int activeElement;
+ bool isMouseDown;
+ Renderer * ren;
+ Simulation * sim;
+public:
+ Sandbox();
+ virtual Simulation * GetSimulation();
+ virtual void OnMouseMovedInside(int localx, int localy, int dx, int dy);
+ virtual void OnMouseDown(int localx, int localy, unsigned int button);
+ virtual void OnMouseUp(int localx, int localy, unsigned int button);
+ virtual void Draw(void* userdata);
+ virtual void Tick(float delta);
+ virtual ~Sandbox();
+};
+
+} /* namespace ui */
+#endif /* SANDBOX_H_ */