Shall I use GLUT?
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.
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.
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.
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.
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.
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.
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
- Vince
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement