mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-02 16:06:19 +00:00
b78d144119
This enables calling eglSwapInterval with an interval value of 0 or 1 on a per driver basis. Signed-off-by: Denis Bernard <db047h@gmail.com>
23 lines
438 B
Go
23 lines
438 B
Go
// SPDX-License-Identifier: Unlicense OR MIT
|
|
|
|
package window
|
|
|
|
/*
|
|
#include <EGL/egl.h>
|
|
*/
|
|
import "C"
|
|
|
|
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) needVSync() bool { return false }
|