예제 #1
0
파일: misc.go 프로젝트: foobaz/egl
func BindAPI(api int) error {
	success := C.eglBindAPI(C.EGLenum(api))
	if success == C.EGL_FALSE {
		return getError()
	}
	return nil
}
예제 #2
0
파일: egl.go 프로젝트: nick-fedesna/egles
func BindAPI(api Enum) bool {
	return goBoolean(C.eglBindAPI(C.EGLenum(api)))
}