pthom / imgui_bundle

Your fast track to powerful GUIs: Dear ImGui Bundle, an extensive toolkit for Python and C++ with immediate mode efficiency.
https://pthom.github.io/imgui_bundle/
MIT License
703 stars 73 forks source link

Overloaded operators for ImVec2, 3, etc. #267

Closed oxysoft closed 1 month ago

oxysoft commented 1 month ago

Currently this does not work

a = ImVec2(0, 0)
b = ImVec2(1, 1)
c = a + b

Overloaded operators for vector operations would be amazing and crucial for building more complex applications!

pthom commented 1 month ago

Hello,

Those operators were defined, but not made explicit in the stub file, so that your IDE may warn about this. They are now declared in the stubs.