Jump to content
  • Advertisement
Sign in to follow this  
JeroenNL

OpenGL uploading textures to multiple rendering contexts

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

Hi there, I want to use the same set of textures in multiple (!) rendering contexts (multiple forms in my application). AFAIK, when uploading a texture to a rendering context, OpenGL supplies an ID specific to that rendering context. I think this means each of my texture objects (i use a selfwritten texture class) needs to store each rendering context it is being uploaded to + a list of corresponding ID values (one for each rendering context). Is that correct? Thanks, Jeroen [Edited by - JeroenNL on June 16, 2006 7:19:17 AM]

Share this post


Link to post
Share on other sites
Advertisement
Assuming you're working with windows you should be able to use wglShareLists. Can't remember exactly how it works now but I know it allows you to share textures (amongst other things) between multiple rendering contexts.

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!