Graphics Reference
In-Depth Information
Renderbuffer and Framebuffer State Queries
Characteristics of an allocated renderbuffer can be retrieved by calling the
following function:
void glGetRenderbufferParameteriv (GLenum target ,
GLenum pname ,
GLint * params )
target
specifies the target for the currently bound renderbuffer;
must be GL_RENDERBUFFER
specifies the renderbuffer parameter to retrieve; must be one
of GL_RENDERBUFFER_WIDTH,GL_RENDERBUFFER_HEIGHT,
GL_RENDERBUFFER_INTERNAL_FORMAT,
GL_RENDERBUFFER_RED_SIZE,
GL_RENDERBUFFER_GREEN_SIZE,
GL_RENDERBUFFER_BLUE_SIZE,
GL_RENDERBUFFER_ALPHA_SIZE,
GL_RENDERBUFFER_DEPTH_SIZE,GL_RENDERBUFFER_SAMPLES,
or GL_RENDERBUFFER_STENCIL_SIZE
specifies an integer array for storing the returned parameter
values
pname
params
Likewise, the current attachments to a framebuffer can be queried by
calling the following function:
void glGetFramebufferAttachmentParameteriv (GLenum target ,
GLenum attachment ,GLenum pname ,GLint * params )
specifies the framebuffer target; must be one of
GL_READ_FRAMEBUFFER , GL_WRITE_FRAMEBUFFER , or
GL_FRAMEBUFFER
specifies which attachment point to query; must be one of
GL_COLOR_ATTACHMENTi , GL_DEPTH_ATTACHMENT ,
GL_DEPTH_STENCIL_ATTACHMENT , or
GL_STENCIL_ATTACHMENT
target
attachment
(continues)
 
 
 
Search WWH ::




Custom Search