Copying Data from the Framebuffer

It is possible to read part of the framebuffer into a texture object, and then use it in subsequent rendering. To do this, use either the glCopyTexImage1D() or glCopyTexImage2D() functions whose prototypes are as follows:

Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.