func (display *Display) QueryString(name int) (string, error) { cString := C.eglQueryString(display.eglDisplay, C.EGLint(name)) if cString == nil { return "", getError() } return C.GoString(cString), nil }
func QueryString(disp Display, name int32) string { return C.GoString( C.eglQueryString(C.EGLDisplay(unsafe.Pointer(disp)), C.EGLint(name))) }