3 ms·
Why is GLUT deprecated? This and just about every other tutorial I've seen uses it. Since it's deprecated, is there something else I should be using?
by criddell 7y ago
Why is GLUT deprecated? This and just about every other tutorial I've seen uses it.
Since it's deprecated, is there something else I should be using?
- pcwalton 7y agoThere's nothing horribly wrong with using GLUT; it's just a badly designed library (lack of a context parameter on callbacks requiring use of globals, tons of missing functionality). GLFW is the "spiritual successor" to GLUT and is generally preferred nowadays. SDL2 is also a fine alternative.
- gmueckl 7y agoThe original GLUT has been abandoned two decades ago, it seems. Freeglut, a drop in replacement still seems to get regular updates and releases. Alternatives that come to my mind are GLFW and SDL and you can also grab ImGUI for a nice, easy to use UI library that covers simpler use cases very well. They all deviate from how you use GLUT, but they aren't substantially harder to use.