At this time rendering to a texture is very slow. First render to the frame buffer then read the data , then pass the data to glteximage2d.
It would be so much faster if we could render directly to the texture buffer…
Peter //Mr.WereWolf//
At this time rendering to a texture is very slow. First render to the frame buffer then read the data , then pass the data to glteximage2d.
It would be so much faster if we could render directly to the texture buffer…
Peter //Mr.WereWolf//
WGL_ARB_render_texture already exists. Even without that you can copy directly from the framebuffer to a texture using glCopyTexImage.
In any case, work is in progress to replace the current render-to-texture mechanism with something much, much better. You’ll just have to wait for it, though.
…you can copy directly from the framebuffer to a texture using glCopyTexSubImage…
Or just create a new GL context for render target, and treat that context as a texture from the original context. Works very well.