mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
0f05231c35
Signed-off-by: Elias Naur <mail@eliasnaur.com>
23 lines
504 B
Go
23 lines
504 B
Go
// SPDX-License-Identifier: Unlicense OR MIT
|
|
|
|
package app
|
|
|
|
/*
|
|
#include <EGL/egl.h>
|
|
*/
|
|
import "C"
|
|
|
|
type (
|
|
_EGLNativeDisplayType = C.EGLNativeDisplayType
|
|
_EGLNativeWindowType = C.EGLNativeWindowType
|
|
)
|
|
|
|
func eglGetDisplay(disp _EGLNativeDisplayType) _EGLDisplay {
|
|
return C.eglGetDisplay(disp)
|
|
}
|
|
|
|
func eglCreateWindowSurface(disp _EGLDisplay, conf _EGLConfig, win _EGLNativeWindowType, attribs []_EGLint) _EGLSurface {
|
|
eglSurf := C.eglCreateWindowSurface(disp, conf, win, &attribs[0])
|
|
return eglSurf
|
|
}
|