Example #1
0
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
}
Example #2
0
func QueryString(disp Display, name int32) string {
	return C.GoString(
		C.eglQueryString(C.EGLDisplay(unsafe.Pointer(disp)), C.EGLint(name)))
}