This chapter provided an overview of the various ways to perform offscreen OpenGL drawing. It's only a starting point, especially for those who want to use textures and who are concerned with performance. You'll also want to read the following:
OpenGL specification for the framebuffer object extension describes the framebuffer API in detail and provides sample code for setting up and using framebuffer objects and renderbuffers.
OpenGL sample code projects (ADC Reference Library):
AGLSurfaceTexture shows how to render to a texture.
GLCarbon1ContextPbuffer renders surfaces into a pixel buffer and uses it as a texture to draw on a cube; uses a single context.
GLCarbonSharedPbuffer shares a single pixel buffer with multiple other contexts.
Quartz Composer Offline Rendering shows how to render a Quartz Composer composition as a series of images using an OpenGL pixel buffer.
Last updated: 2008-06-09