[client] wayland: implement window creation for egl

This commit implements window creation and resize logic, allowing the desktop
to be drawn.
This commit is contained in:
Quantum
2021-01-26 18:59:10 -05:00
committed by Geoffrey McRae
parent f4c1927f56
commit 9f0b99dac0
8 changed files with 248 additions and 54 deletions

View File

@@ -60,6 +60,7 @@ bool app_getProp(LG_DSProperty prop, void * ret);
EGLDisplay app_getEGLDisplay(void);
EGLNativeWindowType app_getEGLNativeWindow(void);
void app_eglSwapBuffers(EGLDisplay display, EGLSurface surface);
void app_glSwapBuffers(void);
void app_clipboardRelease(void);

View File

@@ -100,6 +100,7 @@ struct LG_DisplayServerOps
/* EGL support */
EGLDisplay (*getEGLDisplay)(void);
EGLNativeWindowType (*getEGLNativeWindow)(void);
void (*eglSwapBuffers)(EGLDisplay display, EGLSurface surface);
#endif
/* opengl platform specific methods */
@@ -152,6 +153,7 @@ struct LG_DisplayServerOps
(x)->getProp && \
(x)->getEGLDisplay && \
(x)->getEGLNativeWindow && \
(x)->eglSwapBuffers && \
(x)->glSwapBuffers && \
(x)->showPointer && \
(x)->grabPointer && \