summaryrefslogtreecommitdiffstats
path: root/Smoke/gtk.c
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2007-12-19 22:04:46 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2007-12-19 22:04:46 (GMT)
commit439ce6999dde25e7b1bd4655c9e2ccff4954f887 (patch)
tree04fe652185ba98ce050bfb4d3bf8cd6d8b405f3f /Smoke/gtk.c
parent5f1fc7b0711f51dd05077303f854c658ccd9dcba (diff)
download2iv35-439ce6999dde25e7b1bd4655c9e2ccff4954f887.zip
2iv35-439ce6999dde25e7b1bd4655c9e2ccff4954f887.tar.gz
2iv35-439ce6999dde25e7b1bd4655c9e2ccff4954f887.tar.bz2
moved opengl init to renderer
Diffstat (limited to 'Smoke/gtk.c')
-rw-r--r--Smoke/gtk.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/Smoke/gtk.c b/Smoke/gtk.c
index 51016dd..df9a6ee 100644
--- a/Smoke/gtk.c
+++ b/Smoke/gtk.c
@@ -51,14 +51,15 @@
#include "palette.h"
#include "renderer_gl.h"
+#include "gtk_main.h"
#include "gtk_colormap.h"
#include "gtk_glyphs.h"
#include "gtk_divergence.h"
#include "gtk_isolines.h"
#include "gtk_heightplots.h"
#include "gtk_streamlines.h"
+#include "gtk_flowvis.h"
-#include "gtk_main.h"
/**************************************************************************
* The following section contains all the macro definitions.
@@ -841,6 +842,9 @@ main (int argc,
struct color4f colormap;
float value;
+ /* Initialize the simulation */
+ init_simulation(DIM);
+
/* Initialize GTK. */
gtk_init (&argc, &argv);
@@ -854,7 +858,7 @@ main (int argc,
window = create_window (glconfig);
gtk_widget_show (window);
- init_simulation(DIM);
+ init_gl();
gtk_main();