-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Arithemic operators added for ImVec2 #5966
Conversation
@alireza98dev Please read FAQ::math_operators - by it's design 'Dear ImGUI'-way of extending 'pretty basic'
Aso look at: Lines 375 to 396 in 9d08506
|
What @inobelar this is very intentional for those reasons. You can use the ones in imgui_internal.h by defining IMGUI_DEFINE_MATH_OPERATORS, or you may include your own in a different file. |
…ATH_OPERATORS) implementation from imgui_internal.h in imgui.h. (ocornut#6164, ocornut#6137, ocornut#5966, ocornut#2832)
Instead of doing this:
Use the operators alternative: