opengl complete

This commit is contained in:
IoIxD 2025-12-03 22:26:03 -07:00
commit a932fc00ea
4 changed files with 25 additions and 31 deletions

View file

@ -128,7 +128,7 @@ MWDECL void MwLoop(MwWidget handle);
*/
MWDECL int MwStep(MwWidget handle);
/*!
/*!MwStep(
* @brief Check if any event is pending
* @param handle Widget
* @return `1` if any event is pending

View file

@ -71,8 +71,6 @@ struct _MwLLWayland {
wayland_protocol_t* value;
}* wl_protocol_map;
/*MwLL* subsurfaces;*/
struct wl_display* display;
struct wl_registry* registry;
struct wl_compositor* compositor;
@ -80,11 +78,12 @@ struct _MwLLWayland {
struct wl_surface* surface;
struct wl_shm* shm;
struct wl_registry_listener registry_listener;
// cairo_surface_t* cairo_surface;
MwBool configured;
MwBool force_redraw;
MwBool do_clear;
MwU32 x, y, ww, wh;
int z_index;
MwLL parent;
@ -97,6 +96,8 @@ struct _MwLLWayland {
EGLDisplay egl_display;
EGLContext egl_context;
EGLSurface egl_surface;
GLuint vertex_buffer;
GLuint vertex_array;
};
struct _MwLLWaylandColor {