Why do libraries such as GLFW define related constants with hexadecimal values instead of using an enum? For example: #define GLFW_NO_ERROR 0 #define GLFW_NOT_INITIALIZED 0x00010001 #define GLFW_NO_CURRENT_CONTEXT 0x00010002…
Why do libraries such as GLFW define constants with hexadecimal values instead of using an enum? For example: #define GLFW_NO_ERROR 0 #define GLFW_NOT_INITIALIZED 0x00010001 #define GLFW_NO_CURRENT_CONTEXT 0x00010002 #define…
Hey everyone, I'm relatively new to programming in C, and I've been struggling with using libraries that aren't built-in. I'm particularly interested in using GLFW for graphics development…