Jump to content
  • Advertisement
Sign in to follow this  
Nisar

Is there any way to set the current OpenGL context in SDL

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

Hello, I am new to SDL, in my application I want to create two SDL OpenGL context, is there a way to set the current context so that the rendering is current for each context. I went through the API, but could not find any API to set or get the current context, is there any way for me to use two SDL context for my application..

Share this post


Link to post
Share on other sites
Advertisement
Not currently.

You could have a poke around the SDL internals and see if there is a way of doing this, but I doubt it would be very easy as SDL isn't designed to do that.

AFAIK the experimental SDL 2.0 API supports this, but its unfinished, you can get it using SVN.

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!