Jump to content

  • Log In with Google      Sign In   
  • Create Account

Alternatives to GLUT


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 Vincent_M   Members   -  Reputation: 638

Like
0Likes
Like

Posted 26 February 2014 - 09:02 PM

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?

Sponsor:

#2 sgt_barnes   Members   -  Reputation: 585

Like
0Likes
Like

Posted 27 February 2014 - 06:09 AM

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...

 



#3 Irlan   Members   -  Reputation: 1494

Like
0Likes
Like

Posted 27 February 2014 - 06:49 AM

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



#4 krinosx   Members   -  Reputation: 540

Like
0Likes
Like

Posted 27 February 2014 - 08:18 AM

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



#5 TheComet   Members   -  Reputation: 1585

Like
0Likes
Like

Posted 27 February 2014 - 10:52 AM

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


YOUR_OPINION >/dev/null


#6 sethhope   Members   -  Reputation: 421

Like
0Likes
Like

Posted 27 February 2014 - 01:10 PM

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)

#7 Vincent_M   Members   -  Reputation: 638

Like
0Likes
Like

Posted 28 February 2014 - 12:47 AM

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS