deargui
deargui copied to clipboard
Any comments on generating the deargui.cpp to update it to latest imgui?
trafficstars
I've tried running the generate.py against imgui v.185 but it fails: For example it errors on:
/home/arnaud/src/gazebosc/deargui.cpp:257: error: no matching function for call to ‘pybind11::module_::def(const char [13], <unresolved overloaded function type>, pybind11::arg, pybind11::return_value_policy)’
/home/arnaud/src/gazebosc/deargui.cpp: In function ‘void pybind11_init_deargui(pybind11::module_&)’:
/home/arnaud/src/gazebosc/deargui.cpp:257:16: error: no matching function for call to ‘pybind11::module_::def(const char [13], <unresolved overloaded function type>, pybind11::arg, pybind11::return_value_policy)’
257 | deargui.def("set_scroll_x", &ImGui::SetScrollX
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
258 | , py::arg("scroll_x")
| ~~~~~~~~~~~~~~~~~~~~~
259 | , py::return_value_policy::automatic_reference);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I'm not sure but I think SetScrollX has two function defs in imgui one with the window pointer and a float, a second with only the float.