Remix.run Logo
colleagueRiley 3 days ago

Sure, but the library is also relatively small, so it compiles quickly. Although if you want to you can compile it on its own.

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.

ranger_danger 3 days ago | parent [-]

Why do you claim Nuklear is not a "true single-header style library"? And who gets to say what that even means?

colleagueRiley 3 days ago | parent [-]

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.

ranger_danger 3 days ago | parent [-]

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"?

colleagueRiley 3 days ago | parent [-]

https://github.com/SasLuca/glfw-single-header/blob/master/ex...

ranger_danger 2 days ago | parent [-]

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.