Jump to content
  • Advertisement
Sign in to follow this  
Edidas

about using WGL_ARB_pbuffer

This topic is 4813 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 guys, I want to implement a mirror effect by using the extension WGL_ARB_pbuffer. Let's say before I create the pbuffer, I have loaded serveral textures by glGenTextures and have stored the generated texture names, when I'm about to render the scene into the pbuffer, I know I have to switch render target by wglMakeCurrent( pBuffer->dc, pBuffer->rc ), my question is that can I reuse the textures I loaded ? Thanks a lot! Edidas

Share this post


Link to post
Share on other sites
Advertisement
Personally I wouldnt use pbuffers, instead look into the frame_buffer_object extension, which is a much saner render to texture system and doesnt have the "issues" that you get with pbuffers, which in this case is the need to share textures between the main context and the pbuffer.

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!