Exemple #1
0
func GetDisplay(
	displayID NativeDisplayType) Display {
	return Display(C.eglGetDisplay(
		C.EGLNativeDisplayType(unsafe.Pointer(displayID))))
}
Exemple #2
0
func OpenDisplay() (*Display, error) {
	display := new(Display)

	display.eglDisplay = C.eglGetDisplay(defaultDisplay)
	return display, nil
}