repositories
/
lsystem3d.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor cleanup.
[lsystem3d.git]
/
src
/
lsystem3d.cpp
diff --git
a/src/lsystem3d.cpp
b/src/lsystem3d.cpp
index f48582609e88a9c8c4d641ed7daee90e97091778..a856028b818c32b5845131cfae2cc89653ce4b2a 100644
(file)
--- a/
src/lsystem3d.cpp
+++ b/
src/lsystem3d.cpp
@@
-1,6
+1,6
@@
// Copyright (C) 2006 Erik Dahlberg
//
// Copyright (C) 2006 Erik Dahlberg
//
-// This file is part of LSystem3
d
.
+// This file is part of LSystem3
D
.
//
// LSystem3D is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
//
// LSystem3D is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
@@
-38,12
+38,13
@@
LSystem3D::LSystem3D(int argc, char *argv[])
FXApp *application = new FXApp("LSystem3D");
application->init(argc, argv);
FXApp *application = new FXApp("LSystem3D");
application->init(argc, argv);
+ // create the windows
+ RenderingSurface *surface = new RenderingSurface(application);
Model model;
LindenmayerSystem lsystem(&model);
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);
new GUI(application, surface, &lsystem);
+
application->create();
application->run();
}
application->create();
application->run();
}