Skip to content

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