701 B
701 B
There are four ways (it would seem) to render pixels to a wayland surface:
- wl_shm using shared memory, aka directly telling wayland the color of each pixel to draw using software rendering.
- Using a wl_shell_interface to create a wl_shell_surface, then use the wl_egl_ functions to draw pixels.
- Using a wl_surface directly? Apparently not all compositors implement the wl_shell_interface protocol, and checking the source code from SDL's repository they do not even look for it.
- Using extensions like wl_egl_window_create to hook a wayland window to a OGL rendering context. This link seems to agree with me: https://www.gfxstrand.net/faith/projects/wayland/wayland-android/