Jump to content
  • Advertisement
Sign in to follow this  

To GLUT or not to GLUT

This topic is 4092 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

Think the title really says it all. How necessary is GLUT to using OpenGL for games? If it's pretty much mandatory, then I hope someone can provide a comparison of the alternatives (GLUT, OpenGLUT, freeGlut). I promise, this is the last question...for tonight anyway ;)

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Charabis
Possible, but I hear that SDL is also notoriously slow in most cases, or is that information incorrect?
Yes, that's incorrect, at least as far as using it with OpenGL goes (I haven't used SDL's software rendering features, so I can't comment on that).

Share this post


Link to post
Share on other sites
Not to GLUT. It's generally considered fairly outdated, in my experience.

Some alternatives: SDL (easy), GLFW (never used it, looks easy), and native (tough and not cross-platform). I'd prolly suggest SDL.

Share this post


Link to post
Share on other sites


surely for a beginner the speed isnt gonig to be such a big deal for you right now.

what is important is jsut getting results from yourself to spur (< how do you spell that?) you on.

Nx

Share this post


Link to post
Share on other sites
GLUT from my experience is not right for games - Although there is a function called EnterGameMode() which is fullscreen GLUT but the problem I find with GLUT is that I can't (or don't know of any way to) take control of the message loop to process a game loop so to speak.

GLUT does offer an Idle function which is called when no other messages need to be dispatched but I think this would be rather slow for a game loop.

SDL is easy to learn and you can take control of how messages are handled which is very important for performance.

Good luck in your learning :)

Share this post


Link to post
Share on other sites
I recommend that you go for native windows in the beginning, so that you learn how to handle and event structure and all the other stuff that sdl or any other lib will give you for free.

Also, building a nice window class for opengl gives you more specified controll of the window that sdl will give you

Share this post


Link to post
Share on other sites
I'd recommend SDL or GLFW. SDL has a bif DLL that sometimes gets people off. GLFW can also be linked as a static lib (about 40kb only). Either one is fast enough.

Share this post


Link to post
Share on other sites
I Think that GLUT isn't so bad.
It is probably slower than native, but it is pretty simple and very good choice for beginners.

So, my answer is:
GLUT for beginners, but not for experts!

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!