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

WIP: Add support for ImGui #550

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

TheGondos
Copy link
Contributor

This PR adds support for Dear ImGui, which provides an OS agnostic GUI toolkit.

  • The first commit hooks the library to the orbiter core and the D3D9Client library. I've used cmake fetch+patch mecanism to add the external dependency. I'm not an expert in cmake so don't hesitate to comment if you're not satisfied with the way the library has been added.
    The ImGui code is instanciated inside the Orbitersdk.lib file so that modules can eventually use it in the future.

  • The second commit changes the handling of input boxes/context menus to use the new library.
    Some feedback would be nice from users with high DPI monitors so that we can know if the font size is acceptable.

The library has backends for DX9/DX12, OpenGL, vulkan, WinAPI, SDL, glfw... so it should be future proof.

I've got ImGui equivalents for almost all dialogs in my linux branch so if we decide to expand on this, it should not be too difficult to replace the core Orbiter dialogs currently using the Windows API.

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.

1 participant