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

Libretro support in OpenGL/Vulkan backend #3108

Open
niclashoyer opened this issue Dec 16, 2019 · 1 comment
Open

Libretro support in OpenGL/Vulkan backend #3108

niclashoyer opened this issue Dec 16, 2019 · 1 comment

Comments

@niclashoyer
Copy link

I'm currently experimenting with rendering using the libretro API. While libretro-backend already provides a framebuffer for software based rendering, I'd like to explore what is needed to get the shared GL/Vulkan context working, but I'm a bit confused.

So as I understand now the context the examples from gfx-rs are using glutin to create the context? In the libretro scenario, the libretro frontend creates the windows and contexts and sends it over to the core. Is this basically the same direction as #2749?

@kvark
Copy link
Member

kvark commented Dec 17, 2019

IIRC, GL backend currently only works with glutin for the context initialization. We are open to expanding this, just nobody stepped up so far.

Other backends don't depend on either glutin or winit - they work with https://github.com/rust-windowing/raw-window-handle/ for the Surface creation. You could implement the HasRawWindowHandle trait for your window for a smooth and easy connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants