Jump to content
  • Advertisement
Sign in to follow this  
Vincent_M

OpenGL Alternatives to GLUT

This topic is 2055 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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...

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!