X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=examples%2Fplugin%2Fteapot.c;h=d2a51feac8faaa1c503f0497f15aa2fd2beaa9fa;hp=a506cf1b63bfc0f2dd2ce312bf1f541f7248baa3;hb=d8948985b467a5cfd0447ae413ed1c5d01afb024;hpb=bd716715f1d13a8df514fcfa53fd82aebdfda770 diff --git a/examples/plugin/teapot.c b/examples/plugin/teapot.c index a506cf1..d2a51fe 100644 --- a/examples/plugin/teapot.c +++ b/examples/plugin/teapot.c @@ -18,7 +18,7 @@ #include #include -#include +#include #include "teapot.h" @@ -35,7 +35,7 @@ static gboolean rotate(gpointer _teapot) return TRUE; } -static gpointer expose(GisCallback *callback, gpointer _teapot) +static void expose(GisCallback *callback, GisOpenGL *opengl, gpointer _teapot) { GisPluginTeapot *teapot = GIS_PLUGIN_TEAPOT(_teapot); g_debug("GisPluginTeapot: expose"); @@ -60,8 +60,6 @@ static gpointer expose(GisCallback *callback, gpointer _teapot) glColor4f(0.9, 0.9, 0.7, 1.0); glDisable(GL_CULL_FACE); gdk_gl_draw_teapot(TRUE, 0.25); - - return NULL; } @@ -76,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; }