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 (display *Display) GetConfigAttrib(config Config, name Attrib) (Attrib, error) { var value Attrib success := C.eglGetConfigAttrib(display.eglDisplay, C.EGLConfig(config), C.EGLint(name), (*C.EGLint)(&value)) if success == C.EGL_FALSE { return None, getError() } return value, nil }