From: Alexis Laferrière Date: Sat, 12 Dec 2015 04:48:18 +0000 (-0500) Subject: lib/gamnit: make `all_root_textures` public X-Git-Tag: v0.8~36^2~14 X-Git-Url: http://nitlanguage.org lib/gamnit: make `all_root_textures` public Signed-off-by: Alexis Laferrière --- 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`