]> Pileus Git - grits/blobdiff - examples/plugin/teapot.c
libgis -> grits: Fix build after rename
[grits] / examples / plugin / teapot.c
index 4c52465587afa3b171b3b9878667f60331adc39c..d2a51feac8faaa1c503f0497f15aa2fd2beaa9fa 100644 (file)
@@ -18,7 +18,7 @@
 #include <gtk/gtkgl.h>
 #include <GL/gl.h>
 
-#include <gis.h>
+#include <grits.h>
 
 #include "teapot.h"
 
@@ -35,7 +35,7 @@ static gboolean rotate(gpointer _teapot)
        return TRUE;
 }
 
-static void expose(GisCallback *callback, gpointer _teapot)
+static void expose(GisCallback *callback, GisOpenGL *opengl, gpointer _teapot)
 {
        GisPluginTeapot *teapot = GIS_PLUGIN_TEAPOT(_teapot);
        g_debug("GisPluginTeapot: expose");
@@ -74,7 +74,7 @@ GisPluginTeapot *gis_plugin_teapot_new(GisViewer *viewer, GisPrefs *prefs)
 
        /* Add renderers */
        GisCallback *callback = gis_callback_new(expose, teapot);
-       gis_viewer_add(viewer, GIS_OBJECT(callback), GIS_LEVEL_WORLD, 0);
+       gis_viewer_add(viewer, GIS_OBJECT(callback), GIS_LEVEL_OVERLAY+1, 0);
 
        return teapot;
 }