[grits] Remove background env tile



commit 40e88256ebf650639a58fa669f381cce9f5dec65
Author: Andy Spencer <andy753421 gmail com>
Date:   Mon Feb 13 23:22:12 2012 +0000

    Remove background env tile
    
    because it doesn't do anything..

 src/plugins/env.c |   23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)
---
diff --git a/src/plugins/env.c b/src/plugins/env.c
index 75e41d3..179170b 100644
--- a/src/plugins/env.c
+++ b/src/plugins/env.c
@@ -94,18 +94,17 @@ GritsPluginEnv *grits_plugin_env_new(GritsViewer *viewer, GritsPrefs *prefs)
 	GritsPluginEnv *env = g_object_new(GRITS_TYPE_PLUGIN_ENV, NULL);
 	env->viewer = g_object_ref(viewer);
 
-	/* Create objects */
-	GritsCallback *callback   = grits_callback_new(expose, env);
-	GritsTile     *background = grits_tile_new(NULL, NORTH, SOUTH, EAST, WEST);
-	glGenTextures(1, &env->tex);
-	background->data = &env->tex;
-
-	/* Add renderers */
-	gpointer ref1, ref2;
-	ref1 = grits_viewer_add(viewer, GRITS_OBJECT(callback),   GRITS_LEVEL_BACKGROUND, FALSE);
-	ref2 = grits_viewer_add(viewer, GRITS_OBJECT(background), GRITS_LEVEL_BACKGROUND, FALSE);
-	env->refs = g_list_prepend(env->refs, ref1);
-	env->refs = g_list_prepend(env->refs, ref2);
+	/* Add sky */
+	GritsCallback *callback = grits_callback_new(expose, env);
+	grits_viewer_add(viewer, GRITS_OBJECT(callback), GRITS_LEVEL_BACKGROUND, FALSE);
+	env->refs = g_list_prepend(env->refs, callback);
+
+	/* Add background */
+	//GritsTile *background = grits_tile_new(NULL, NORTH, SOUTH, EAST, WEST);
+	//glGenTextures(1, &env->tex);
+	//background->data = &env->tex;
+	//grits_viewer_add(viewer, GRITS_OBJECT(background), GRITS_LEVEL_BACKGROUND, FALSE);
+	//env->refs = g_list_prepend(env->refs, background);
 
 	return env;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]