X-Git-Url: https://git.piment-noir.org/?p=lsystem3d.git;a=blobdiff_plain;f=src%2Flsystem3d.cpp;fp=src%2Flsystem3d.cpp;h=a856028b818c32b5845131cfae2cc89653ce4b2a;hp=37d4ab24e6f363172c57cd8aadf9a26f0c3d48fd;hb=acf054bffd0737f5bef7fc3eba35d6a912e7c801;hpb=eb5d5b4ca4761851a2b37339347a16409e3f1d5d diff --git a/src/lsystem3d.cpp b/src/lsystem3d.cpp index 37d4ab2..a856028 100644 --- a/src/lsystem3d.cpp +++ b/src/lsystem3d.cpp @@ -38,12 +38,13 @@ LSystem3D::LSystem3D(int argc, char *argv[]) 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(); }