X-Git-Url: http://nitlanguage.org diff --git a/lib/egl.nit b/lib/egl.nit index 4e36cd0..d062cfc 100644 --- a/lib/egl.nit +++ b/lib/egl.nit @@ -417,6 +417,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) @@ -446,6 +452,6 @@ redef class Object end end -protected fun egl_bind_opengl_api: Bool `{ return eglBindAPI(EGL_OPENGL_API); `} -protected fun egl_bind_opengl_es_api: Bool `{ return eglBindAPI(EGL_OPENGL_ES_API); `} -protected fun egl_bind_openvg_api: Bool `{ return eglBindAPI(EGL_OPENVG_API); `} +fun egl_bind_opengl_api: Bool `{ return eglBindAPI(EGL_OPENGL_API); `} +fun egl_bind_opengl_es_api: Bool `{ return eglBindAPI(EGL_OPENGL_ES_API); `} +fun egl_bind_openvg_api: Bool `{ return eglBindAPI(EGL_OPENVG_API); `}