-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Subtraction ImVec2 #2832
Comments
Hello, Please carefully read and fill the Issue Template next time you ask a question. Operators for ImVec2 are not declared by default, because the expectation for custom engine is to setup cast operators in
|
sorry, thx its working now |
nice thing figuring it out , |
ocornut
added a commit
that referenced
this issue
Feb 15, 2023
ocornut
added a commit
that referenced
this issue
Feb 15, 2023
Intrets
pushed a commit
to Intrets/imgui
that referenced
this issue
Jun 14, 2024
…ATH_OPERATORS) implementation from imgui_internal.h in imgui.h. (ocornut#6164, ocornut#6137, ocornut#5966, ocornut#2832)
Intrets
pushed a commit
to Intrets/imgui
that referenced
this issue
Jun 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, i get problem when i tried subtract two ImVec2.
i saw a source that this operator work, but i think that somethings has ben changed, since the code that i using as base use old version of imgui.
ImVec2 center = ImVec2(pos1.x + screen.x / 2, pos1.y + screen.y / 2); ImGui::GetWindowDrawList()->AddCircleFilled(center + ImVec2(x_1, y_1), 2, ImColor(255, 0, 0));
https://imgur.com/GOvKWCP
The text was updated successfully, but these errors were encountered: