Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wayland graphics support #1170

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

phlash
Copy link

@phlash phlash commented Oct 29, 2022

Adds native Wayland graphics support, change summary:

  • Minor build changes to link appropriate libraries and build new sources provided libwayland-dev and wayland-protocols packages are available (via a new CMakeModules/FindWayland.cmake helper).
  • New source: src/osgViewer/GraphicsWindowWayland.cpp and supporting (generated) protocols (src/osgViewer/xdg*) to communicate with Wayland compositors.
  • Minor fixes to src/osg/GraphicsContext.cpp to automatically select a working graphics backend at startup, while allowing manual selection through an environment variable OSG_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.

…eyboard handling and an ugly fix for FlightGear state handling.
…t variable to select specific system, default to working windowing system, update to wl_output v4 protocol for current sway/weston
@phlash phlash marked this pull request as ready for review October 17, 2023 09:00
shiptux added a commit to shiptux/meta-osg that referenced this pull request Mar 26, 2024
1. Upgrade OSG to latest version.
2. Add wayland support for OSG. (Thanks to phlash openscenegraph/OpenSceneGraph#1170)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants