egl: standardize the name of the 2 different handles
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 24 Feb 2017 02:09:16 +0000 (21:09 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sun, 26 Feb 2017 13:37:46 +0000 (08:37 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/gamnit/egl.nit

index b451362..59a0aa3 100644 (file)
@@ -33,10 +33,10 @@ redef class GamnitDisplay
        # The selected EGL configuration
        var egl_config: EGLConfig is noautoinit
 
-       # Setup the EGL display for the given `x11_display`
-       protected fun setup_egl_display(x11_display: Pointer)
+       # Setup the EGL display for the given `native_display`
+       protected fun setup_egl_display(native_display: Pointer)
        do
-               var egl_display = new EGLDisplay(x11_display)
+               var egl_display = new EGLDisplay(native_display)
                assert egl_display.is_valid else print "new EGL display is not valid"
 
                egl_display.initialize
@@ -79,10 +79,10 @@ redef class GamnitDisplay
                self.egl_config = configs.first
        end
 
-       # Setup the EGL context for the given `window_handle`
-       protected fun setup_egl_context(window_handle: Pointer)
+       # Setup the EGL context for the given `native_window`
+       protected fun setup_egl_context(native_window: Pointer)
        do
-               var window_surface = egl_display.create_window_surface(egl_config, window_handle, [0])
+               var window_surface = egl_display.create_window_surface(egl_config, native_window, [0])
                assert window_surface.is_ok else print "Creating EGL window surface failed: {egl_display.error}"
                self.window_surface = window_surface