Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
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)
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`