Skip to content

Added sf::Sprite and sf::Texture overload for ImageButton #1

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

Merged
merged 1 commit into from
May 30, 2016
Merged

Added sf::Sprite and sf::Texture overload for ImageButton #1

merged 1 commit into from
May 30, 2016

Conversation

susnux
Copy link
Contributor

@susnux susnux commented May 29, 2016

Maybe you are interested in my changes:
I have added sfml overloads for ImageButton (does not work otherwise for me).
Some other minor modifications, notable: If using ImGui::Image with only a sf::Sprite the the size of the sprite is taken (e.g. is uses now the scale of the sprite) I think for sprites this is more logical, for sf::Textures everything stays like it is.

@eliasdaler eliasdaler merged commit 95bcfd2 into SFML:master May 30, 2016
@eliasdaler
Copy link
Contributor

Thank you! That's something I really needed myself, but wanted to implement later.
Your overloads work as intended. And using sprite's global bounds is pretty neat idea.

eliasdaler pushed a commit that referenced this pull request Mar 23, 2017
Update Image(texture, textureRect...)
SebastianMilosz added a commit to SebastianMilosz/imgui-sfml that referenced this pull request Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants