Re:RGFW: Single-header C99 window abstraction library
by ranger_danger on Friday November 22, 2024 @09:21PM
(#42218774)
Why do you claim Nuklear is not a "true single-header style library"? And who gets to say what that even means?
Re:RGFW: Single-header C99 window abstraction library
by colleagueRiley on Friday November 22, 2024 @10:14PM
(#42218957)
It is a single-header library in terms of the format, yes. But it is also not designed to be a single-header library, unlike an STB-style library.
Nuklear is a full-sized library that can be compiled into and used as one file. However, RGFW and STB are designed to be lightweight and minimalistic. That's the distinctive part of single-header libraries, also known as STB-style libraries.
To be clear, I don't mean this to hate on Nuklear, it's a cool UI library, but its design doesn't match the single-header format.
Re:RGFW: Single-header C99 window abstraction library
by ranger_danger on Saturday November 23, 2024 @11:07AM
(#42221569)
How is it not designed to be a single-header library? The README even directly states "Single-header library".
How is it not designed to be lightweight and minimalistic?
How do you think the design differs from your idea (which is what exactly?) of a "single-header format"?
Re:RGFW: Single-header C99 window abstraction library
by colleagueRiley on Saturday November 23, 2024 @11:32AM
(#42221707)
Re:RGFW: Single-header C99 window abstraction library
by ranger_danger on Saturday November 23, 2024 @03:40PM
(#42223730)
What is this supposed to be telling me? This also looks like it was multiple files concatenated together because there are multiple different header guards throughout the file.
It's also possible to compile it on its own using `gcc -c -x c -D RGFW_IMPLEMENTATION RGFW.h`
Nuklear is not a true single-header style library, it only uses that as a format. The difference is that the design is far less compact and lightweight than a stb-style library.
I'm pretty sure GLFW has some files that are nearly the same size as RGFW, for example.