Minor cleanup.
[lsystem3d.git] / src / lsystem3d.cpp
CommitLineData
3025996b 1// Copyright (C) 2006 Erik Dahlberg
2//
1a372e99 3// This file is part of LSystem3D.
3025996b 4//
5// LSystem3D is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (at your option) any later version.
9//
10// LSystem3D is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with LSystem3D; if not, write to the Free Software
17// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19
20
21
22#include "fx.h"
23
24#include "gui.h"
25#include "lindenmayersystem.h"
26#include "lsystem3d.h"
27#include "model.h"
28#include "renderingsurface.h"
29
30
31
32/**
33 * Constructor
34 */
35LSystem3D::LSystem3D(int argc, char *argv[])
36{
37 // create the FOX application object
38 FXApp *application = new FXApp("LSystem3D");
39 application->init(argc, argv);
40
acf054bf 41 // create the windows
42 RenderingSurface *surface = new RenderingSurface(application);
3025996b 43 Model model;
44 LindenmayerSystem lsystem(&model);
acf054bf 45 surface->setLSystem(&lsystem);
3025996b 46 new GUI(application, surface, &lsystem);
acf054bf 47
3025996b 48 application->create();
49 application->run();
50}
51
52
53
54/**
55 * Destructor
56 */
57LSystem3D::~LSystem3D()
58{
59}