Jump to content
  • Advertisement
Sign in to follow this  
Jinx3d1

opengl and sdl...

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

I have already started an sdl frame work however, I was curious what you can and shouldn't do with sdl and if it matters if you use pure opengl calls vs mix matching with sdl. Say I wanted to plug a render engine into an sdl frame work, what may I want to change due to speed reasons? Can you use standard gl texture creation methods and bind them normally, or do you have to use surfaces and map the colors with sdl? If my questions were not very clear, I'll try and explain them better. Basically though, what i want to know is can use do everything the same with opengl when using sdl as you could in a standard win32 application? Thanks a lot.

Share this post


Link to post
Share on other sites
Advertisement
Generally all you do is use SDL to set up the window, and optionally load the surfaces. The rendering would then be done entirely by OpenGL, except for buffer-flipping which you ask SDL to do.

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!