func ReleaseTexImage( disp Display, surface Surface, buffer int32) bool { return goBoolean(C.eglReleaseTexImage( C.EGLDisplay(unsafe.Pointer(disp)), C.EGLSurface(unsafe.Pointer(surface)), C.EGLint(buffer))) }
func Initialize( disp Display, major, minor *int32) bool { return goBoolean(C.eglInitialize( C.EGLDisplay(unsafe.Pointer(disp)), (*C.EGLint)(major), (*C.EGLint)(minor))) }
func CreateWindowSurface(disp Display, config Config, win NativeWindowType, attribList *int32) Surface { return Surface(C.eglCreateWindowSurface(C.EGLDisplay(unsafe.Pointer(disp)), C.EGLConfig(unsafe.Pointer(config)), C.EGLNativeWindowType(uintptr(win)), (*C.EGLint)(attribList))) }
func CreatePbufferSurface( disp Display, config Config, attribList *int32) Surface { return Surface(C.eglCreatePbufferSurface( C.EGLDisplay(unsafe.Pointer(disp)), C.EGLConfig(unsafe.Pointer(config)), (*C.EGLint)(attribList))) }
func SurfaceAttrib(disp Display, surface Surface, attribute int32, value int32) bool { return goBoolean(C.eglSurfaceAttrib(C.EGLDisplay(unsafe.Pointer(disp)), C.EGLSurface(unsafe.Pointer(surface)), C.EGLint(attribute), C.EGLint(value))) }
func CreatePixmapSurface(disp Display, config Config, pixmap NativePixmapType, attribList *int32) Surface { return Surface(C.eglCreatePixmapSurface(C.EGLDisplay(unsafe.Pointer(disp)), C.EGLConfig(config), C.EGLNativePixmapType(uintptr(pixmap)), (*C.EGLint)(attribList))) }
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 QuerySurface( disp Display, surface Surface, attribute int32, value *int32) bool { return goBoolean(C.eglQuerySurface( C.EGLDisplay(unsafe.Pointer(disp)), C.EGLSurface(unsafe.Pointer(surface)), C.EGLint(attribute), (*C.EGLint)(value))) }
func CopyBuffers( disp Display, surface Surface, target NativePixmapType) bool { return goBoolean(C.eglCopyBuffers( C.EGLDisplay(unsafe.Pointer(disp)), C.EGLSurface(unsafe.Pointer(surface)), C.EGLNativePixmapType(uintptr(target)))) }
func CreateWindowSurface( disp Display, config Config, win NativeWindowType, attribList *int32) Surface { return Surface(C.eglCreateWindowSurface( C.EGLDisplay(disp), C.EGLConfig(config), C.EGLNativeWindowType(win), (*C.EGLint)(attribList))) }
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 ChooseConfig(disp Display, atrribList []int32, configs *Config, configSize int32, numConfig *int32) bool { return goBoolean(C.eglChooseConfig(C.EGLDisplay(unsafe.Pointer(disp)), (*C.EGLint)(&atrribList[0]), (*C.EGLConfig)(unsafe.Pointer(configs)), C.EGLint(configSize), (*C.EGLint)(numConfig))) }
func CreatePbufferFromClientBuffer(disp Display, buftype Enum, config Config, buffer ClientBuffer, attribList *int32) Surface { return Surface(C.eglCreatePbufferFromClientBuffer(C.EGLDisplay(unsafe.Pointer(disp)), C.EGLenum(buftype), C.EGLClientBuffer(buffer), C.EGLConfig(unsafe.Pointer(config)), (*C.EGLint)(attribList))) }
func GetConfigAttrib( disp Display, config Config, attribute int32, value *int32) bool { return goBoolean(C.eglGetConfigAttrib( C.EGLDisplay(unsafe.Pointer(disp)), C.EGLConfig(config), C.EGLint(attribute), (*C.EGLint)(unsafe.Pointer(value)))) }
func GetConfigs( disp Display, configs *Config, configSize int32, numConfig *int32) bool { return goBoolean(C.eglGetConfigs( C.EGLDisplay(unsafe.Pointer(disp)), (*C.EGLConfig)(unsafe.Pointer(configs)), C.EGLint(configSize), (*C.EGLint)(unsafe.Pointer(numConfig)))) }
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 DestroyContext(disp Display, ctx Context) bool { return goBoolean(C.eglDestroyContext(C.EGLDisplay(unsafe.Pointer(disp)), C.EGLContext(unsafe.Pointer(ctx)))) }
func SwapInterval(disp Display, interval int32) bool { return goBoolean(C.eglSwapInterval(C.EGLDisplay(unsafe.Pointer(disp)), C.EGLint(interval))) }
func DestroySurface(disp Display, surface Surface) bool { return goBoolean(C.eglDestroySurface(C.EGLDisplay(unsafe.Pointer(disp)), C.EGLSurface(unsafe.Pointer(surface)))) }
func QueryString(disp Display, name int32) string { return C.GoString( C.eglQueryString(C.EGLDisplay(unsafe.Pointer(disp)), C.EGLint(name))) }
func Terminate(disp Display) bool { return goBoolean(C.eglTerminate( C.EGLDisplay(unsafe.Pointer(disp)))) }
func SwapBuffers(disp Display, surface Surface) bool { return goBoolean(C.eglSwapBuffers(C.EGLDisplay(unsafe.Pointer(disp)), C.EGLSurface(unsafe.Pointer(surface)))) }