Jump to content
  • Advertisement
Sign in to follow this  
nyrhinen

OpenGL SDL+OpenGL-tutorials!

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

OpenGL has started to interest me and I've now browsed a couple of tutorials that cover some issues about OpenGL. But the thing that I'm not so fond of is WinAPI or GLUT using in those tutorials. :( Can you recommend ANY tutorials that don't have WinAPI or GLUT also? And if it would be possible, then SDL+OpenGL-tutorials. :) Thanks already!

Share this post


Link to post
Share on other sites
Advertisement
Check out these links at the SDL website.

If you already know SDL it's very simple to use OpenGL with it. Practically it's just a matter of passing SDL_OPENGL to SDL_SetVideoMode() after saying with SDL_GL_SetAttribute() that you want to use double buffering. And swap buffers with SDL_GL_SwapBuffers(). Much simpler than GLUT :)

Share this post


Link to post
Share on other sites
Yesterday, Lazy Foo announced that sometime soon-ish he'd have an OpenGL with SDL tutorial. All his other tutorials are good, so it might be worth the wait. Cone3D has a tutorial on it, but it's not very easy. (sorry, don't have link)

Share this post


Link to post
Share on other sites
Here's the Cone3D tutorials

However, IMO they're extremely overcomplicated - It goes from setting up SDL+GL to loading MD2 models, that's a really big step. What I recommend is to learn from Cone3D #1 how to set up the SDL+GL environment and make it build, and then (assuming you're new to OGL) go to the NeHe OpenGL tutorials, and start from the beginning. NeHe uses GLUT, I think, but all the basic OpenGL stuff is the same in SDL+GL, so the majority of his tutorials (and all the beginning ones) still apply. Plus, the NeHe tutorials are very well written and pretty easy to follow.

I hope that helps, that's the way I learned SDL+GL

Edit: If you want I can upload my base SDL+GL init code which gets you a window and input and such quite easily, I'm in class till about 3-4 PM EST today, so I can do it after that.

Share this post


Link to post
Share on other sites
Thanks to all of you guys!
I still have to wait for Lazy Foo's SDL+GL-tutorial, but while I'm doing that, I'll read the other links you gave me. :)

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!