Beispiel #1
0
func BindAPI(api int) error {
	success := C.eglBindAPI(C.EGLenum(api))
	if success == C.EGL_FALSE {
		return getError()
	}
	return nil
}
Beispiel #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)))
}
Beispiel #3
0
func BindAPI(api Enum) bool {
	return goBoolean(C.eglBindAPI(C.EGLenum(api)))
}