Exemplo n.º 1
0
Arquivo: misc.go Projeto: foobaz/egl
func BindAPI(api int) error {
	success := C.eglBindAPI(C.EGLenum(api))
	if success == C.EGL_FALSE {
		return getError()
	}
	return nil
}
Exemplo n.º 2
0
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)))
}
Exemplo n.º 3
0
func BindAPI(api Enum) bool {
	return goBoolean(C.eglBindAPI(C.EGLenum(api)))
}