// SPDX-License-Identifier: Unlicense OR MIT package main import "gioui.org/app" /* #cgo CFLAGS: -DEGL_NO_X11 #cgo LDFLAGS: -lEGL -lGLESv2 #include #include #define EGL_EGLEXT_PROTOTYPES #include */ import "C" func getDisplay(ve app.ViewEvent) C.EGLDisplay { return C.eglGetDisplay(C.EGLNativeDisplayType(ve.Display)) } func nativeViewFor(e app.ViewEvent) C.EGLNativeWindowType { return C.EGLNativeWindowType(uintptr(e.Window)) }