forked from go/golangs_learn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
255 B
18 lines
255 B
// SPDX-License-Identifier: Unlicense OR MIT
|
|
|
|
package main
|
|
|
|
import (
|
|
"unsafe"
|
|
|
|
"gioui.org/app"
|
|
)
|
|
|
|
/*
|
|
#include <EGL/egl.h>
|
|
*/
|
|
import "C"
|
|
|
|
func nativeViewFor(e app.ViewEvent) C.EGLNativeWindowType {
|
|
return C.EGLNativeWindowType(unsafe.Pointer(e.HWND))
|
|
}
|
|
|