Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

stodge

OpenGL Code to flip an SDL surface for OpenGL?

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

Does anyone have any code (or a pointer to some code) to flip an SDL surface, so it can be used in OpenGL? I''ve searched Google many times, but I can''t seem to get a hit. I''ve tried to code something myself but all my attempts end in many access violations. Seems my pointer arithmetic isn''t as good as it used to be! Thanks

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
I don''t believe you can do this. When you create the main surface for OpenGL, you no longer can use SDL frame buffer functions on it, just OpenGL. As far as I know, there is no way to mingle SDL''s video/framebuffer commands and OpenGL.

Share this post


Link to post
Share on other sites

  • 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!