You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, currently we have this: ImGui::SFML::Render(target) which calls ImGui::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 of ImGui::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:
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.
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: