From 8ebffd0abc730c279c2c5cd3b8c9f098e0d68b94 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Fri, 11 Dec 2015 23:48:18 -0500 Subject: [PATCH] lib/gamnit: make `all_root_textures` public MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/gamnit/examples/globe/src/globe.nit | 2 +- lib/gamnit/textures.nit | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/gamnit/examples/globe/src/globe.nit b/lib/gamnit/examples/globe/src/globe.nit index 3fedd6c..53a3d2d 100644 --- a/lib/gamnit/examples/globe/src/globe.nit +++ b/lib/gamnit/examples/globe/src/globe.nit @@ -342,7 +342,7 @@ redef class App assert gl_error == gl_NO_ERROR else print gl_error # Prepare to draw - for tex in [texture_seas, texture_earth, texture_night, texture_elevation, texture_clouds] do + for tex in all_root_textures do tex.load glTexParameteri(gl_TEXTURE_2D, gl_TEXTURE_MIN_FILTER, gl_LINEAR) glTexParameteri(gl_TEXTURE_2D, gl_TEXTURE_MAG_FILTER, gl_LINEAR) diff --git a/lib/gamnit/textures.nit b/lib/gamnit/textures.nit index ee66213..2e693d2 100644 --- a/lib/gamnit/textures.nit +++ b/lib/gamnit/textures.nit @@ -177,7 +177,8 @@ class GamnitSubtexture end redef class Sys - private var all_root_textures = new TextureSet + # All declared root textures + var all_root_textures = new TextureSet end # Group of `Texture` -- 1.7.9.5