Jump to content
Site Stability Read more... ×
  • Advertisement
Sign in to follow this  
Max_Payne

OpenGL Rendering to Multiple Windows / Textures

This topic is 5181 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 there. It would seem that in OpenGL, textures have to be loaded for each rendering context. So if you wanted to render the same world from 4 different perspectives to 4 windows, you would need to load all textures 4 times. Is there any way around this restriction? Also, when rendering to textures, is it possible to obtain a device and rendering context just for a texture? Or is it necessary to render to the one associated to a window, and copy the result into a texture?

Share this post


Link to post
Share on other sites
Advertisement
You can use wglShareLists(). The MSDN says it's for display-lists, but from what I've heard it actually enables sharing all server objects(DL,textures,VBOs...). I haven't actually tried it though, but give it a try.

-EDIT: Beaten!

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!