-
Notifications
You must be signed in to change notification settings - Fork 512
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
[portability] Could it be used within Libretro core? #1109
Comments
Hmm... let's see... The second point is easy, sokol-gfx will render to the GL framebuffer that's injected via the Lines 2628 to 2642 in 1eb96dd
The first point (GL functions) requires some work, but should be doable without changes to sokol_gfx.h. You basically need to define The https://github.com/floooh/sokol-samples/blob/master/glfw/multiwindow-glfw.c (instead of GL 3.3 you should use GL 4.1 though if possible, GL 3.3 still works, but probably not for long, also the 'external GL loader code path' hasn't been tested with the |
Could
sokol
be easily used within a Libretro core? Which boils down to basically:retro_hw_get_proc_address_t
function (which is an analogue of SDL'sSDL_GL_GetProcAddress
and GLFW'sglfwGetProcAddress
).retro_hw_get_current_framebuffer_t
function.https://docs.libretro.com/development/cores/opengl-cores/
The text was updated successfully, but these errors were encountered: