4 ms·
This is great! I last looked at OpenGL on the desktop a decade ago and it was tedious. GLFW looks awesome. But looking at the example code for it, I saw this:
by benihana 11y ago
This is great! I last looked at OpenGL on the desktop a decade ago and it was tedious. GLFW looks awesome. But looking at the example code for it, I saw this:
if (!glfwInit())
return -1;
Why do this? Is there some kind of amazing thing in the C/C++ world that doing this unlocks? It just seems like an inconsistent, dangerous accident waiting to happen.
- yoklov 11y agoUh, what exactly about this is questionable? Only think I can think you could mean is the lack of curly braces, but that's so common it can't be it. EDIT: Unrelated sidenote: GLFW doesn't really make OpenGL itself any less tedious, only setting it up.