~eliasnaur/gio-example

ref: d78c5d125ea7378380ef01b1448c8adf9f022d32 gio-example/opengl/view_darwin.go -rw-r--r-- 229 bytes
d78c5d12Elias Naur opengl: add example that demonstrates OpenGL rendering to a Gio Window 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: Unlicense OR MIT

package main

import (
	"gioui.org/app"
)

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

func nativeViewFor(e app.ViewEvent) C.EGLNativeWindowType {
	return C.EGLNativeWindowType(e.Layer)
}