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

How to use the backend with Vulkan window? #306

Open
nikitablack opened this issue Dec 1, 2024 · 2 comments
Open

How to use the backend with Vulkan window? #306

nikitablack opened this issue Dec 1, 2024 · 2 comments

Comments

@nikitablack
Copy link

nikitablack commented Dec 1, 2024

Hi. I'm using SFML in a Vulkan application, so my main window class is WindowBase. ImGui::SFML::Init accepts sf::Window or sf::RenderWindow, basically requiring OpenGL API. How to use it with WindowBase?

@ChrisThrasher
Copy link
Member

I did a quick replacement of sf::Window to sf::WindowBase and everything still compiles so maybe this is viable? I'll have to dig deeper on this later.

@eliasdaler
Copy link
Contributor

Ideally, ImGui-SFML should be separated into keyboard/event etc. part and allow you to use the renderer separately (Dear ImGui has OpenGL, Vulkan etc. backends). E.g. see how SDL backend for Dear ImGui doesn’t do any rendering.
I don’t have time to work on this, though. 😅

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

No branches or pull requests

3 participants