~eliasnaur/gio-example

gio-example/opengl/view_windows.go -rw-r--r-- 300 bytes
a9116b22Chris Waldon go.*: update to latest gio{,/x} and prune deps 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// SPDX-License-Identifier: Unlicense OR MIT

package main

import (
	"image"
	"unsafe"

	"gioui.org/app"
)

/*
#include <EGL/egl.h>
*/
import "C"

func nativeViewFor(e app.ViewEvent, _ image.Point) (C.EGLNativeWindowType, func()) {
	return C.EGLNativeWindowType(unsafe.Pointer(e.HWND)), func() {}
}