]> Pileus Git - grits/blobdiff - src/gis_test.c
Reorganize BMNG and SRTM into plugins
[grits] / src / gis_test.c
index fbe46a9354cbde30f732da0227e6e1d2547593c1..054373e494cdaee0b14e19cca8b11277b5ac6f60 100644 (file)
@@ -1,16 +1,16 @@
 /*
  * Copyright (C) 2009 Andy Spencer <spenceal@rose-hulman.edu>
- * 
+ *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation, either version 3 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
@@ -44,15 +44,16 @@ int main(int argc, char **argv)
        gtk_init(&argc, &argv);
        g_thread_init(NULL);
 
-       GisPrefs   *prefs   = gis_prefs_new("aweather");
-       GisPlugins *plugins = gis_plugins_new();
+       GisPrefs   *prefs   = gis_prefs_new(NULL, NULL);
+       GisPlugins *plugins = gis_plugins_new(NULL);
        GisWorld   *world   = gis_world_new();
        GisView    *view    = gis_view_new();
        GisOpenGL  *opengl  = gis_opengl_new(world, view, plugins);
 
        //gis_plugins_load(plugins, "radar",   world, view, opengl, prefs);
        //gis_plugins_load(plugins, "ridge",   world, view, opengl, prefs);
-       //gis_plugins_load(plugins, "example", world, view, opengl, prefs);
+       gis_plugins_load(plugins, "bmng", world, view, opengl, prefs);
+       gis_plugins_load(plugins, "srtm", world, view, opengl, prefs);
 
        GtkWidget  *window  = gtk_window_new(GTK_WINDOW_TOPLEVEL);
        g_signal_connect(window,  "destroy",         G_CALLBACK(gtk_main_quit), NULL);