Skip to content

Commit

Permalink
update imgui: Custom binding for AddConcavePolyFilled
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed May 21, 2024
1 parent 3971c13 commit e5375f2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bindings/imgui_bundle/imgui/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9206,12 +9206,12 @@ class ImDrawList:
# IMGUI_API void AddConvexPolyFilled(const std::vector<ImVec2>& points, ImU32 col); /* original C++ signature */
def add_convex_poly_filled(self, points: List[ImVec2], col: ImU32) -> None:
pass
# IMGUI_API void AddConcavePolyFilled(const std::vector<ImVec2>& points, ImU32 col); /* original C++ signature */
def add_concave_poly_filled(self, points: List[ImVec2], col: ImU32) -> None:
pass
# #endif
#

# IMGUI_API void AddConcavePolyFilled(const ImVec2* points, int num_points, ImU32 col); /* original C++ signature */
def add_concave_poly_filled(self, points: ImVec2, num_points: int, col: ImU32) -> None:
pass
# Image primitives
# - Read FAQ to understand what ImTextureID is.
# - "p_min" and "p_max" represent the upper-left and lower-right corners of the rectangle.
Expand Down
1 change: 1 addition & 0 deletions external/imgui/bindings/litgen_options_imgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ def litgen_options_imgui(
r"^IsMouse",
r"^AddPolyline",
r"^AddConvexPolyFilled",
r"^AddConcavePolyFilled",
]
)
options.fn_force_lambda__regex = join_string_by_pipe_char(
Expand Down
4 changes: 2 additions & 2 deletions external/imgui/bindings/pybind_imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5902,10 +5902,10 @@ void py_init_module_imgui_main(py::module& m)
py::overload_cast<const std::vector<ImVec2> &, ImU32, ImDrawFlags, float>(&ImDrawList::AddPolyline), py::arg("points"), py::arg("col"), py::arg("flags"), py::arg("thickness"))
.def("add_convex_poly_filled",
py::overload_cast<const std::vector<ImVec2> &, ImU32>(&ImDrawList::AddConvexPolyFilled), py::arg("points"), py::arg("col"))
.def("add_concave_poly_filled",
py::overload_cast<const std::vector<ImVec2> &, ImU32>(&ImDrawList::AddConcavePolyFilled), py::arg("points"), py::arg("col"))
// #endif
//
.def("add_concave_poly_filled",
&ImDrawList::AddConcavePolyFilled, py::arg("points"), py::arg("num_points"), py::arg("col"))
.def("add_image",
&ImDrawList::AddImage, py::arg("user_texture_id"), py::arg("p_min"), py::arg("p_max"), py::arg("uv_min") = ImVec2(0, 0), py::arg("uv_max") = ImVec2(1, 1), py::arg("col") = IM_COL32_WHITE)
.def("add_image_quad",
Expand Down
2 changes: 1 addition & 1 deletion external/imgui/imgui
Submodule imgui updated 2 files
+2 −1 imgui.h
+4 −0 imgui_draw.cpp

0 comments on commit e5375f2

Please sign in to comment.