egl :: EGLDisplay :: query_surface
EGLSurfaceAttribs
# Can be used directly, but it is preferable to use a `EGLSurfaceAttribs`
fun query_surface(surface: EGLSurface, attribute: Int): Int `{
int val;
EGLBoolean r = eglQuerySurface(self, surface, attribute, &val);
if (r == EGL_FALSE)
return -1;
else
return val;
`}
lib/egl/egl.nit:137,2--145,3