Alternatives to GLUT

Started by
5 comments, last by Vincent_M 10 years, 1 month ago
I'm running my OpenGL games under Debian on a more economic PC with an i3 CPU with integrated graphics, and I've heard from a few places online that GLUT can actually be slow. Are there any efficient alternatives to GLUT that doesn't involve me installing some sort of desktop environment or UI library such as GTK+ or QT?
Advertisement

What exactly is slow when you use GLUT?

I'm just curious because all GLUT does (or should do) is handling the window system stuff in a platform-independent manner.

As long as you stay clear of the menu/widget/button "GUI" part and the font rendering, your games should run fine (and still be portable).

If that part was what you where looking for, however, you're now screwed, of course. But IMHO, you should definitely try to create your own GUI toolkit (which can be tightly coupled to your render code, and it's fun!), or try to find some lightweight OpenGL GUI library on the net.

As for Qt and GTK: Both are very powerfull and versatile, and Qt would certainly be my first choice for a tool or an application. But I think these libraries are more than a little bit over the top for a game...

My combo is SFML + Glew + VS 2013 and I'm happy with it.

Hummm have you tried SDL2.0 + OpenGL?

I am working ( as a hobby ) on a 3d application with this setup and its running fine....

My setup is:

SDL2 -> Window, input and image loading

OpenGL3.3 -> 3d Stuff

Glew - OpenGL Extensions

sml - 3dMath lib

KrinosX

I've heard that GLUT hasn't been updated for a long time. I recommended using GLEW with GLFW.

"I would try to find halo source code by bungie best fps engine ever created, u see why call of duty loses speed due to its detail." -- GettingNifty

I've heard that GLUT hasn't been updated for a long time. I recommended using GLEW with GLFW.

Freeglut however, has been updated. Take a look at that. it works wonders

I develop to expand the universe. "Live long and code strong!" - Delta_Echo (dream.in.code)
I agree, it's just a multi-platform window API, similar to GTK, QT, etc, but more focused on gaming and multimedia applications requiring little on the native UI, but I have read it can reduce framerate. Anyway, I am using freeglut, and it looks like the input support for the keyboard, mouse and joystick are decent. I just need to play around with them again.

I will check out GLFW though, and maybe SDL. SDL looks modular enough. It seems like the closest non-MS alternative to DirectX, which is nice, but I have an engine for that.

This topic is closed to new replies.

Advertisement