Sign in to follow this  
guvidu

OpenGL OpenGL implementation for multiple platform - SDL or GLUT or....

Recommended Posts

Hi! Im doing a study and i want to ask you all for advices in what should i use. I know of GLUT and SDL but there may be other library there that i could use. i need to make an Opengl application that is multiplatform. this application is suppose to be a framework for futere games (2d and 3d) so.. can you guys tell me what library should i use? Thanks!

Share this post


Link to post
Share on other sites
You can either use many of the cross-platform OpenGL toolkits, like SDL, GLUT, GLFW, etc, or you can make your own. The OpenGL part is not really hard to do, just change the code depending on the platform you're using, like:


#ifdef _WIN32
//Windows
#elif defined(__LINUX__)
//Linux
#elif defined(__APPLE__)
//MacOS
#endif



This way only the parts for the current platform are added.

Its just an idea, though. Like they say, if you cant fit a sweater, knit your own.
And as it says, i mean to only do that if you cant find a library to do it for you.

Good luck with your studies!

Share this post


Link to post
Share on other sites
SDL and GLUT both do a good job for cross-platform OpenGL window handling. If I were you, I'd try both. They're both easy to implement.

Share this post


Link to post
Share on other sites
If your looking for a windowing environment into opengl, I would HIGHLY suggest SDL. I've been using it for my stuff, and it's really easy to set up. Plus you've got Lazy Foo' to fall back on.

FlyingIsFun1217

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this