Jump to content
  • Advertisement
Sign in to follow this  
youngprogrammer

OpenGL Moving a textur from one HRC to the other

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

Is there any ways to move a texture that is attached to a frame buffer in one HRC to an other HRC and use it there?

 

And im ganna use this every frame i draw, so the method should be fast enough.

 

And also one of my HRC's is using OpenGL version 3.0 and the other one ,to which i want to move the texture, uses OpenGL version 1.1 so the functions should also be availabe on both versions.

 

 

Thanks for the time and help.

Share this post


Link to post
Share on other sites
Advertisement

HRC doesn't mean anything to me, although after some googling I suppose you mean the hRC parameter in WGL?

 

Lots of multi-context information here:

http://blog.gvnott.com/some-usefull-facts-about-multipul-opengl-contexts/

 

The fact that you are using WGL calls suggests that your programming is not multiplatform which may be an issue later.

Still, here is what you want to know:

http://veelck.wordpress.com/2008/11/28/multithread-texture-loading-in-opengl/

 

Here is some hints to get started doing this in a multiplatform manner:

http://forums.libsdl.org/viewtopic.php?t=9036&sid=3374c819e18df779e17b4ce5a49fdd15

Edited by Kaptein

Share this post


Link to post
Share on other sites

actually sharing cant be done coz i'm using contexts of different implementations and one of my contexts is software rendering (due to usage of version 1.1) im already moving the texture attached to fbo by reading pixels from fbo's color buffer and drawing it as a texture  on the other context but glReadBuffer function is too slow and i have to do it every frame is there a better way? and im just programing it for windows.

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!