darbyjohnston / tlRender

tlRender is an open source library for building playback and review applications for visual effects, film, and animation.
BSD 3-Clause "New" or "Revised" License
185 stars 22 forks source link

Latest GLFW with X11 and Wayland support (building or selecting at runtime) #130

Closed ggarra13 closed 7 months ago

ggarra13 commented 10 months ago

This PR adds support for Wayland and X11 for GLFW, instead of choosing between one or the other. If you compile with both, you can use the environment variable GLFW_PLATFORM to select between them. If GLFW_PLATFORM is not provided, it will use the user's environment variable XDG_SESSION_TYPE to select the platform.

For building, it adds the TLRENDER_X11 or TLRENDER_WAYLAND variables. The default for building is to build X11 only.

This PR has been tested on tlplay-gl and mrv2.