|
|
|
|
|
by yoklov
3955 days ago
|
|
Worth noting that only the first two points there are relevant here, since these are not single file libraries. Also, the STB libraries work massively differently from C++ header only libs (#define STB_FOO_IMPLEMENTATION, for example). Also, fwiw Sean Barrett also has gone on record as saying that he's not really a fan of C++ before. I'm struggling to find a specific link, but it's not really a secret. (As a side note, to anybody who is in the need for what they do, the STB libraries are really absurdly high quality and can do exactly what you want them to 99% of the time. Highly recommend!!) |
|
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