-
Notifications
You must be signed in to change notification settings - Fork 174
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
Follow ImGui binding examples a bit more closely #78
Comments
Also, following other conventions, we should do
instead of calling |
You can make this change right away, that's orthogonal to changing the api. Just move the resetGLStates in the drawing function.
Calling this NewFrame() would be consistent with other back-ends. |
I see nothing wrong with that. A major version can (and is somewhat supposed) to have breaking changes. Having a binding that follow the most common practice is for the best. I definitely vote for making this breaking change. |
I think it is worth it to make a breaking change to be more consistent with the other back-ends. |
So, currently we have this:
ImGui::SFML::Render(target)
which callsImGui::Render
internally, while in other ImGui binding examples it should be more like this:Note that this will be a breaking change, so I'll release v3.0 if we agree on this.
This is needed to save future users from just calling
ImGui::Render
instead ofImGui::SFML::Render
and being confused.There's another good thing: if ImGui will have nothing to draw, resetGLStates won't be called on RenderTarget, while now it's called every time.
So, thoughts?
The text was updated successfully, but these errors were encountered: