summaryrefslogtreecommitdiff
path: root/src/PowderToy.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-10 23:18:37 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-10 23:18:37 (GMT)
commit2eb09c1daac8199532694167f418146fa57e7735 (patch)
tree245dc05e825ad049435b14adc3abb8593acf3cc5 /src/PowderToy.cpp
parentd31d290bf9205999e7a849e5974241f2fd615259 (diff)
downloadpowder-2eb09c1daac8199532694167f418146fa57e7735.zip
powder-2eb09c1daac8199532694167f418146fa57e7735.tar.gz
Project changed, ControlFactory (Creates large UI structures such as
menus, dialoges...) GameSession (Session information, such as filename, reference to simulation
Diffstat (limited to 'src/PowderToy.cpp')
-rw-r--r--src/PowderToy.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/PowderToy.cpp b/src/PowderToy.cpp
index d634cce..973aaa3 100644
--- a/src/PowderToy.cpp
+++ b/src/PowderToy.cpp
@@ -10,6 +10,9 @@
#include "interface/Window.h"
#include "interface/Button.h"
#include "interface/Sandbox.h"
+#include "interface/Panel.h"
+#include "interface/ControlFactory.h"
+#include "GameSession.h"
SDL_Surface * SDLOpen()
{
@@ -45,11 +48,13 @@ int main(int argc, char * argv[])
//Simulation * sim = new Simulation();
//ren = new Renderer(g, sim);
+ GameSession * gameSession = new GameSession();
ui::Window * window = new ui::Window();
ui::Sandbox * sandbox = new ui::Sandbox();
ui::Button * button = new ui::Button(100, 100, 100, 100, "poP");
window->Add(sandbox);
window->Add(button);
+ window->Add(ControlFactory::MainMenu(gameSession, 0, 0, 200, 200));
SDL_Event event;
while(!SDLPoll(&event))