Jump to content
  • Advertisement
Sign in to follow this  
Bastian Kuolt

Shall I use GLUT?

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

Advertisement
Sure. Glut is a great library as it saves alot of time. All it does it setup opengl under your current windowing system. It also has support for handling user input in a portable cross-platform way.

It is supported under Windows, Linux and OSX, and maybe others. But thoes are pretty much the only platforms that matter.

Setting up the windowing system is tedious and requires many lines that are specific to each operating system.

You can always un-glut your application later without tossing any of your code (except for how you handle user input). You would simply insert the code required to setup gl for the current platform.

I currently use glut for all my apps.

Share this post


Link to post
Share on other sites
I'd recommend SDL over GLUT for several reasons
1- It's more flexible(but may be lower level than glut) as it doesn't have the C callbacks thing.
2- Under constant development.
3- There are a lot of useful related libraries(SDL_image, SDL_mixer)
4- Contains other functionality required in game development such as Threads and Joystick

Note that GLUT and SDL are not quite similar as they don't provide the same functionality.

Share this post


Link to post
Share on other sites
I agree.

GLUT is my first choice for fast prototyping. Testing shaders, a simple model loader, a proof of concept.

SDL last time I tried it was consistently better. It both offered higher abstraction and more control. Last time I used it (admittedly a few years ago) it didn't stand against native API.

I am positive most projects could use SDL without too much hassle.

Share this post


Link to post
Share on other sites
I have used both glut and SDL, and I would recommend SDL, since, like others have already stated, it is more powerful, yet it is not more complicated than glut (both are quite easy to use).

- Vince

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!