4 ms·
STB libraries are C not C++. Sean Barrett prefers C, basically. The header-only approach from Sean Barrett is quite a bit different than the header-only approa
by enqk 11y ago
STB libraries are C not C++. Sean Barrett prefers C, basically.
The header-only approach from Sean Barrett is quite a bit different than the header-only approach from C++:
In C++ it means you will be pulling all the code all the time when importing a header.
In C you will get the prototypes for the library. And in only one of the file you will #define STB_<...>_IMPL
Anyhow STB libraries are a joy to work with, I urge anyone to try them
- yoklov 11y agoHa, did you mean to reply to the parent comment? You basically repeated everything I said :) (agreed on all points, though)
- lookbothways 11y ago>The header-only approach from Sean Barrett is quite a bit different than the header-only approach from C++: I'm aware, but the practical advantages of having a library in a single source file apply no matter what the programming language.