func CreateContext(disp Display, config Config, shareContext Context, attribList *int32) Context { return Context(C.eglCreateContext(C.EGLDisplay(unsafe.Pointer(disp)), C.EGLConfig(unsafe.Pointer(config)), C.EGLContext(unsafe.Pointer(shareContext)), (*C.EGLint)(attribList))) }
func QueryContext( disp Display, ctx Context, attribute int32, value *int32) bool { return goBoolean(C.eglQueryContext( C.EGLDisplay(unsafe.Pointer(disp)), C.EGLContext(unsafe.Pointer(ctx)), C.EGLint(attribute), (*C.EGLint)(value))) }
func MakeCurrent( disp Display, draw Surface, read Surface, ctx Context) bool { return goBoolean(C.eglMakeCurrent( C.EGLDisplay(unsafe.Pointer(disp)), C.EGLSurface(unsafe.Pointer(draw)), C.EGLSurface(unsafe.Pointer(read)), C.EGLContext(unsafe.Pointer(ctx)))) }
func DestroyContext(disp Display, ctx Context) bool { return goBoolean(C.eglDestroyContext(C.EGLDisplay(unsafe.Pointer(disp)), C.EGLContext(unsafe.Pointer(ctx)))) }