Download OpenGL Programming on Mac OS X

Transcript
24
Depth
24
Color
Height
Total
Fragment
Size
Width
Figure 5-2 Framebuffer Strata
Framebuffers are a core resource for OpenGL. They, along with texture objects, vertex array objects, shader objects, and other OpenGL resources, must
be created, managed, and destroyed. To allocate, configure, and size them, their
attributes must be described. The set of attributes that describe a framebuffer is
collectively known as the framebuffer’s pixel format. Pixel format is the terminology most commonly used to describe this idea on the Mac OS because that
is how it is referred to in the CGL interface. Given that X11 also runs on the Mac
OS, the term “visual” is used to describe the layout of a framebuffer. We’ll stick
with “pixel format” for our discussion, however.
54
Chapter 5: OpenGL Configuration and Integration