From 7c1b04fd1accb06bee0ed8a3fa6f5a0332d8a701 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sat, 24 Jan 2015 14:49:19 -0500 Subject: [PATCH] lib/egl: add `renderable_type` related features MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/egl.nit | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/egl.nit b/lib/egl.nit index 5c50387..4c24b57 100644 --- a/lib/egl.nit +++ b/lib/egl.nit @@ -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) -- 1.7.9.5