ui/app: make opengl objects structs

WebGL use opaque values for object handles, not integers. To ensure
portability, wrap handle types with a struct.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-05-04 13:41:55 +02:00
parent 2af0f63cfb
commit 8df5feeeea
11 changed files with 133 additions and 121 deletions
-7
View File
@@ -41,13 +41,6 @@ var (
_eglQueryString = libEGL.NewProc("eglQueryString")
)
const (
nilEGLSurface _EGLSurface = 0
nilEGLContext _EGLContext = 0
nilEGLConfig _EGLConfig = 0
nilEGLNativeWindowType _EGLNativeWindowType = 0
)
func init() {
mustLoadDLL(libEGL, "libEGL.dll")
mustLoadDLL(gl.LibGLESv2, "libGLESv2.dll")