Skip to content
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

Any comments on generating the deargui.cpp to update it to latest imgui? #2

Open
sphaero opened this issue Dec 7, 2021 · 0 comments

Comments

@sphaero
Copy link

sphaero commented Dec 7, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant