Sign in to follow this  
youngprogrammer

OpenGL Moving a textur from one HRC to the other

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this