// Copyright (C) 2006 Erik Dahlberg
//
-// This file is part of LSystem3d.
+// This file is part of LSystem3D.
//
// LSystem3D is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
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();
}