Nelarius / imnodes

A small, dependency-free node editor for dear imgui
MIT License
2.01k stars 244 forks source link

Reformat codebase to be more consistent with the style used in ImGui #95

Closed Nelarius closed 3 years ago

Nelarius commented 3 years ago

This codebase grew out of a different project of mine and, unfortunately, I didn't fully transform it to conform to ImGui's style at an early stage -- so to this day, an entirely different coding style is used internally. I figured a full transformation all at once would hurt a little less than frequent incremental changes, so this pr includes some changes to imnodes.h as well. As a result, the code should be a bit easier to integrate with C.

So just a heads up @sonoro1234 and @hoffstadt that this change is incoming since this might affect your imnodes integration work 👀

hoffstadt commented 3 years ago

Thanks for the heads up! And we appreciate your work on this.

sonoro1234 commented 3 years ago

Sorry for not realizing this earlier: namespace ImNodes will collide with https://github.com/rokups/ImNodes/blob/02b085dace8bdd815374d6440efb1f70d8a9ebaf/ImNodes.h#L35