egl :: EGLSurface :: defaultinit
extern class EGLSurface `{ EGLSurface `}
new current_draw `{ return eglGetCurrentSurface(EGL_DRAW); `}
new current_read `{ return eglGetCurrentSurface(EGL_READ); `}
new none `{ return EGL_NO_SURFACE; `}
fun is_ok: Bool `{ return self != EGL_NO_SURFACE; `}
fun attribs(display: EGLDisplay): EGLSurfaceAttribs do
return new EGLSurfaceAttribs(display, self)
end
end
lib/egl/egl.nit:188,1--198,3