2 ms·
> well-understood and -designed C++ API Unfortunately these seem to be quite rare (Dear ImGui is such a well-designed C++ API, and I actually also use the code
by flohofwoe 3y ago
> well-understood and -designed C++ API
Unfortunately these seem to be quite rare (Dear ImGui is such a well-designed C++ API, and I actually also use the code-generated cimgui bindings more frequently now in my projects (haven't tried the 'new' official bindings yet). Interestingly the Dear ImGui C++ API is much closer to a typical "flat" C API than a typical class-based C++ API (Dear ImGui is mostly just a flat soup of functions wrapped in a namespace and with some mild overloading).
- rezonant 3y agoVery true. Designing the C API with intention can be a way to fix the mistakes sometimes :-)