-
Notifications
You must be signed in to change notification settings - Fork 171
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
Copy-paste ImGui_ImplOpenGL2_RenderDrawData from ImGui's example #79
Comments
I think I'll also attempt to get this function from ImGui's Though it might make build a bit harder for people not using CMake (will need to include one more .cpp file into build) |
See this branch where this is now done: https:/eliasdaler/imgui-sfml/tree/opengl-sync |
Looks like with some work it's possible to use this impl directly, but I'm not sure if it'll work on OpenGL ES since the current ImGui-SFML implementation has some #ifdefs in rendering code related to it. |
Did this in 224fe6c |
Looks like it does almost everything that we need and properly sets up/restores states.
Maybe this will allow us to not use resetGLStates anymore?
Here's one problems, though - it doesn't support OpenGL ES. @Alia5 - can you take a look at it and maybe even add ES support via PR to ImGui directly?
The text was updated successfully, but these errors were encountered: