FXApp *application = new FXApp("LSystem3D");
application->init(argc, argv);
+ // create the windows
+ RenderingSurface *surface = new RenderingSurface(application);
Model model;
LindenmayerSystem lsystem(&model);
-
- // create the windows and run the application
- RenderingSurface *surface = new RenderingSurface(application, &lsystem);
+ surface->setLSystem(&lsystem);
new GUI(application, surface, &lsystem);
+
application->create();
application->run();
}