/*
- * 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
#include <gtk/gtkgl.h>
#include <GL/gl.h>
-#include <gis/gis.h>
+#include <gis.h>
#include "env.h"
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;
}