-
-
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
Quadratic Bezier Helpers #3664
Quadratic Bezier Helpers #3664
Conversation
add ImQuadBezierCalc add PathQuadBezierToCasteljau add PathQuadBezierCurveTo
Merged. |
Hi all, I saw entry
On the release notes. However these methods seem to be missing. Instead I saw |
In the code of the v1.80, you can see : // cubic version
ImVec2 ImBezierCubicCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, float t);
void PathBezierCubicCurveToCasteljau(ImVector<ImVec2>* path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float tess_tol, int level);
void ImDrawList::PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments);
// quadratic versions
ImVec2 ImBezierQuadraticCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, float t);
void PathBezierQuadraticCurveToCasteljau(ImVector<ImVec2>* path, float x1, float y1, float x2, float y2, float x3, float y3, float tess_tol, int level);
void ImDrawList::PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, int num_segments); yes they were renamed if few other ocmmit of Omar. |
3 functions added in imgui_draw.cpp :
add ImQuadBezierCalc
add PathQuadBezierToCasteljau
add PathQuadBezierCurveTo
the Cubic Version was not renamed, just a comment was added to explain the difference