summaryrefslogtreecommitdiff
path: root/includes/interface/Sandbox.h
blob: 10d588f08fd6e1deb5173ab7f2b8a9ee0d3957f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * 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:
	bool isMouseDown;
	Renderer * ren;
	Simulation * sim;
public:
	Sandbox();
	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_ */