Hello,
Is there a way in core OpenGL 4.x to copy pixels stored in system memory to frame/render buffer?
Thanks.
Hello,
Is there a way in core OpenGL 4.x to copy pixels stored in system memory to frame/render buffer?
Thanks.
For a framebuffer, copy the data into a texture, attach the texture to a framebuffer object, then use glBlitFramebuffer().
For a renderbuffer, copy the data into a texture then either use glCopyImageSubData() or attach both the texture and renderbuffer to framebuffers and use glBlitFramebuffer().
[QUOTE=GClements;1291131]For a framebuffer, copy the data into a texture, attach the texture to a framebuffer object, then use glBlitFramebuffer().
For a renderbuffer, copy the data into a texture then either use glCopyImageSubData() or attach both the texture and renderbuffer to framebuffers and use glBlitFramebuffer().[/QUOTE]
Thanks!
With all this indirection and binding, how fast is this compared to legacy glDrawPixels?