Retrieving Texture Data

Once you have a texture containing data, it is possible to read that data either back into your application’s memory or back into a buffer object. The function for reading image data from a texture is glGetTexImage(), whose prototype is 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.