}
`}
+ private fun report_egl_error(cmsg: NativeString)
+ do
+ var msg = cmsg.to_s
+ print "libEGL error: {msg}"
+ end
+
# Can be used directly, but it is preferable to use a `EGLConfigAttribs`
fun config_attrib(config: EGLConfig, attribute: Int): Int `{
EGLint val;
end
end
-redef class Object
- private fun report_egl_error(cmsg: NativeString)
- do
- var msg = cmsg.to_s
- print "libEGL error: {msg}"
- end
-end
-
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); `}