-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Add support for drawing images with rounded corners. #845
Conversation
Hello Michał, Three comments:
I suggest your function could be called e.g.
|
e32e2e8
to
0dfd324
Compare
0dfd324
to
79f07f6
Compare
Hello Omar, I added Let me know if code can be improved more. |
…xed coding style, restored argument order from original PR. (#845)
Michał,
I reverted that part. I realize it makes the call a little more awkward to make (and it suggests we could have used extra parameters on I will also move the Mildly unrelated, for the number 1 ideal fix I would like to make to the ImDrawList API would be to change: However if we decided to break it in two functions: |
As for remaining default arguments I don't think there is a correct/intuitive order. |
Are we talking about the same thing? You submitted The |
I misunderstood you when you said you did revert changes to argument order. I thought you put As to |
PR was recreated due to lost references after changing fork origin. That was not my intention, sorry.
For comments please look at previous PR.
This PR add
rounding
androunding_corners
toImDrawList::AddImage
.With rounding it is easier to draw over already rounded rectangles. This is for ImDrawList only. Widgets does not take advantage of this feature.