OpenSceneGraph
OpenSceneGraph copied to clipboard
Wayland graphics support
Adds native Wayland graphics support, change summary:
- Minor build changes to link appropriate libraries and build new sources provided
libwayland-devandwayland-protocolspackages are available (via a newCMakeModules/FindWayland.cmakehelper). - New source:
src/osgViewer/GraphicsWindowWayland.cppand supporting (generated) protocols (src/osgViewer/xdg*) to communicate with Wayland compositors. - Minor fixes to
src/osg/GraphicsContext.cppto automatically select a working graphics backend at startup, while allowing manual selection through an environment variableOSG_WINDOWING_SYSTEM
This applies against current master and works with both osgviewer and as a patch to FlightGear (my chosen test app!)
It has been independently tested by @shiptux on sway, kwin and weston compositors.