diff options
author | Phil Jones <philj56@gmail.com> | 2022-06-07 13:47:35 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-06-07 15:31:49 +0100 |
commit | 51bbf779ba2c9d5954e2c9470a8eae7c1ddd38a5 (patch) | |
tree | f2b52f0211f9052fefa64e23c6a0d81305391589 /src/egl.h | |
parent | 7562d7b539d8013376de2cff494231ba307f4ee1 (diff) |
Switch from using (E)GL to wl_shm.
eglInitialize() is slow (~50-100ms), and uses a fair amount of memory
(~100 MB). For such a small, simple program that just wants to launch as
quickly as possible, wl_shm performs better.
Diffstat (limited to 'src/egl.h')
-rw-r--r-- | src/egl.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/egl.h b/src/egl.h deleted file mode 100644 index a3f17a2..0000000 --- a/src/egl.h +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef EGL_H -#define EGL_H - -#include <wayland-egl.h> -#include <epoxy/egl.h> - -struct egl { - EGLNativeWindowType window; - EGLDisplay display; - EGLContext context; - EGLSurface surface; -}; - -void egl_create_window( - struct egl *egl, - struct wl_surface *wl_surface, - uint32_t width, - uint32_t height); -void egl_create_context(struct egl *egl, struct wl_display *wl_display); -void egl_destroy(struct egl *egl); -void egl_log_error(const char *msg); -void egl_make_current(struct egl *egl); -void egl_swap_buffers(struct egl *egl); - -#endif /* EGL_H */ |