lib/egl: add `renderable_type` related features
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 24 Jan 2015 19:49:19 +0000 (14:49 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 27 Jan 2015 03:08:06 +0000 (22:08 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/egl.nit

index 5c50387..4c24b57 100644 (file)
@@ -412,6 +412,12 @@ class EGLConfigChooser
        fun surface_type=(flag: Int) do insert_attrib_with_val(0x3033, flag)
        fun surface_type_egl do surface_type = 4
 
+       # Set which client rendering APIs are supported
+       fun renderable_type=(flag: Int) do insert_attrib_with_val(0x3040, flag)
+
+       # Set EGL as the only supported rendering API
+       fun renderable_type_egl do renderable_type = 4
+
        fun blue_size=(size: Int) do insert_attrib_with_val(0x3022, size)
        fun green_size=(size: Int) do insert_attrib_with_val(0x3023, size)
        fun red_size=(size: Int) do insert_attrib_with_val(0x3024, size)