lib/geometry: change triangulate API for easier usage
[nit.git] / lib / gamnit / display_linux.nit
index e79d22f..1dbee21 100644 (file)
@@ -32,6 +32,10 @@ redef class GamnitDisplay
        fun height=(value: Int) do requested_height = value
        private var requested_height = 1080
 
+       redef fun show_cursor do return sdl_display.show_cursor
+
+       redef fun show_cursor=(val) do sdl_display.show_cursor = val
+
        # Setup SDL, X11, EGL in order
        redef fun setup
        do
@@ -44,7 +48,7 @@ redef class GamnitDisplay
                setup_egl_display x11_display
 
                if debug_gamnit then print "Setting up EGL context"
-               select_egl_config(8, 8, 8, 8, 8, 0, 0)
+               select_egl_config(red_bits, green_bits, blue_bits, 8, 8, 0, 0)
                setup_egl_context window_handle
        end
 
@@ -91,7 +95,7 @@ redef class GamnitDisplay
        end
 end
 
-redef class GamnitAssetTexture
+redef class TextureAsset
 
        redef fun load_from_platform
        do