]> Pileus Git - grits/blobdiff - src/plugins/env.c
Fix one more include folder
[grits] / src / plugins / env.c
index 7deea1fee3e08db85bb36a5d2d23b1cade99e42c..92588ce9988c6a588b5c57029db6d2efc156d5b6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009 Andy Spencer <spenceal@rose-hulman.edu>
+ * Copyright (C) 2009-2010 Andy Spencer <andy753421@gmail.com>
  *
  * 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
@@ -19,7 +19,7 @@
 #include <gtk/gtkgl.h>
 #include <GL/gl.h>
 
-#include <gis/gis.h>
+#include <gis.h>
 
 #include "env.h"
 
@@ -81,9 +81,15 @@ GisPluginEnv *gis_plugin_env_new(GisViewer *viewer, GisPrefs *prefs)
        GisPluginEnv *self = g_object_new(GIS_TYPE_PLUGIN_ENV, NULL);
        self->viewer = viewer;
 
+       /* Load blank background texture */
+       glGenTextures(1, &self->tex);
+       self->background = gis_tile_new(NULL, NORTH, SOUTH, EAST, WEST);
+       self->background->data = &self->tex;
+
        /* Add renderers */
        GisCallback *callback = gis_callback_new(expose, self);
        gis_viewer_add(viewer, GIS_OBJECT(callback), GIS_LEVEL_BACKGROUND, 0);
+       gis_viewer_add(viewer, GIS_OBJECT(self->background), GIS_LEVEL_BACKGROUND, 0);
 
        return self;
 }