-
Notifications
You must be signed in to change notification settings - Fork 176
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
ImGui::ImageButton(const sf::Sprite& sprite) ignores rotation #86
Comments
Indeed, right now I think what you need to do is to make custom ImageButton, which will copy how original ImageButton is implemented, but instead use advice from this issue and use Sorry, I don't want to implement this custom ImageButton in ImGui-SFML, because it will mean that I'll need to access ImGui's private API which will make things a lot more difficult. But I'll eventually support |
Another workaround (which is a lot easier!) is to draw sprite onto |
I am now using the workaround of drawing the rotated sprite to a |
Okay, I'll add overload for |
Could you please actually add that overload? :s |
"Soon" was 1.5 years ago... Shame on me. |
Update: fix for RenderTexture is not in master and released in v2.2 If I manage to do #87, the sprite transform might be taken into account. I'll see what i can do. |
ImGui::ImageButton(const sf::Sprite& sprite) takes the texture and position but ignores the rotation of the sprite.
The text was updated successfully, but these errors were encountered: