What openGL library to use?

Started by
5 comments, last by swiftcoder 14 years ago
I'm looking into switching over from Java+LWJGL to C++. Most of the books I have all say to use GLUT, but it seems horribly out of date. I found this page: http://www.opengl.org/resources/libraries/windowtoolkits/ but am trying to figure out which one is most current and most complete for an openGL implementation. Any recommendations? I need whichever one I choose to be Windows/Mac/Linux compatible.
Advertisement
GLUT is for educational purposes only. You are wise to avoid it.

I recommend SDL.

http://www.libsdl.org/

SDL is great at more than just opening up OpenGL; it handles device input, loads images for use as OpenGL textures, etc.
Amateurs practice until they do it right.Professionals practice until they never do it wrong.
SDL is a little dated, SFML is a good replacement which adds a bit more value with FX type framework and shader wrappers etc.

http://www.sfml-dev.org/
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website
Oh wow! SFML looks really nice! Thanks!

Have you been using it for a while? Any good/bad experiences you'd like to share?
GLUT is dead

FreeGLUT, however, is not. Additionally, unless I am wrong, its the only window manager to support cross platform GL 3+ contexts. SDL 1.3 says it can do that, but its not released yet. (also, its not BSD, its LGPL, which means dynamic linking only)
Last time I was looking I stumbled upon this question on stackoverflow and found the listing to be quite comprehensive. I'd also say SFML or SDL are the most promising options.

I also found Visualization Library a little while ago and it looks pretty neat. It might not be what you're looking for though, as it wraps the OpenGL API. I'm wondering if anyone here has toyed around with it...

Edit: Oh, and there is also gloot by TTK-Bandit, I'm not sure if he's still working on it though.
And one shouldn't forget the GL 3.0 capable development branch of GLFW, available from their SVN server.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

This topic is closed to new replies.

Advertisement