mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
547ff2e484
This driver still lacks fling support and dp/sp configuration. By default, linux builds will try to use the Wayland driver then fallback to X11 if it fails. Drivers can be disabled by using either the nowayland or nox11 build tags. Signed-off-by: Denis Bernard <db047h@gmail.com>
28 lines
550 B
Go
28 lines
550 B
Go
// SPDX-License-Identifier: Unlicense OR MIT
|
|
|
|
package window
|
|
|
|
/*
|
|
#include <EGL/egl.h>
|
|
*/
|
|
import "C"
|
|
import "gioui.org/app/internal/gl"
|
|
|
|
func (w *window) eglDestroy() {
|
|
}
|
|
|
|
func (w *window) eglDisplay() _EGLNativeDisplayType {
|
|
return nil
|
|
}
|
|
|
|
func (w *window) eglWindow(visID int) (_EGLNativeWindowType, int, int, error) {
|
|
win, width, height := w.nativeWindow(visID)
|
|
return _EGLNativeWindowType(win), width, height, nil
|
|
}
|
|
|
|
func (w *window) NewContext() (gl.Context, error) {
|
|
return newContext(w)
|
|
}
|
|
|
|
func (w *window) needVSync() bool { return false }
|