[Qt-interest] Copying content between textures
John Clayton
john_clayton at me.com
Fri Dec 11 10:59:59 CET 2009
Hi All
I have a texture on the graphics card, which is of type
GL_TEXTURE_RECTANGLE_EXT (lets call it texture A), and I'd like to
copy that into a GL_TEXTURE_2D texture (lets call that texture B). Is
it possible to copy the texture from A into B? One way I have thought
of doing this is:
1. render whatever to texture A
2. create an FBO, of type GL_TEXTURE_2D (this is texture B)
3. B.bind()
4. B.drawTexture(someRect, A, GL_TEXTURE_RECTANGLE_EXT)
would that work, or can you see a problem with it?
Thanks
--
John Clayton
Skype: johncclayton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091211/254de9f3/attachment.html
More information about the Qt-interest-old
mailing list