Graphics Reference
In-Depth Information
Table 12-2
Renderbuffer Formats for Depth-Renderable and
Stencil-Renderable Buffer
Internal Format
Depth Bits
Stencil Bits
GL_DEPTH_COMPONENT16
16
GL_DEPTH_COMPONENT24
24
GL_DEPTH_COMPONENT32F
f32
GL_DEPTH24_STENCIL8
24
8
GL_DEPTH32F_STENCIL8
f32
8
GL_STENCIL_INDEX8
8
f denotes a float type.
Using Framebuffer Objects
We describe how to use framebuffer objects to render to an off-screen
buffer (i.e., renderbuffer) or to render to a texture. Before we can use a
framebuffer object and specify its attachments, we need to make it the
current framebuffer object. The glBindFramebuffer command is used to
set the current framebuffer object.
void glBindFramebuffer (GLenum target , GLuint framebuffer )
target
must be set to GL_READ_FRAMEBUFFER ,
GL_DRAW_FRAMEBUFFER , or GL_FRAMEBUFFER
framebuffer
framebuffer object name
Note that glGenFramebuffers is not required to assign a framebuffer
object name before it is bound using glBindFramebuffer . An application
can specify an unused framebuffer object name to glBindFramebuffer .
However, we do recommend that OpenGL ES applications call
glGenFramebuffers and use framebuffer object names returned by
glGenFramebuffers instead of specifying their own buffer object names.
 
 
 
Search WWH ::




Custom Search