table of contents
other versions
| GLGETFRAMEBUFFERATTA(3G) | [FIXME: manual] | GLGETFRAMEBUFFERATTA(3G) | 
NAME¶
glGetFramebufferAttachmentParameteriv - retrieve information about attachments of a bound framebuffer objectC SPECIFICATION¶
void
  glGetFramebufferAttachmentParameter(GLenum target,
  GLenum attachment, GLenum pname,
  GLint *params);
PARAMETERS¶
targetSpecifies the target of the query
  operation.
attachment
Specifies the attachment within
  target
pname
Specifies the parameter of attachment
  to query.
params
Specifies the address of a variable receive
  the value of pname for attachment.
DESCRIPTION¶
•If pname is
  GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE,
  GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE,
  GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE,
  GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE,
  GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE, or
  GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE, then params will contain
  the number of bits in the corresponding red, green, blue, alpha, depth, or
  stencil component of the specified attachment. Zero is returned if the
  requested component is not present in attachment.
•If pname is
  GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE, params will contain
  the format of components of the specified attachment, one of GL_FLOAT,
  GL_INT, GL_UNSIGNED_INT, GL_SIGNED_NORMALIZED, or
  GL_UNSIGNED_NORMALIZED for floating-point, signed integer, unsigned
  integer, signed normalized fixed-point, or unsigned normalized fixed-point
  components respectively. Only color buffers may have integer components.
•If pname is
  GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING, param will contain the
  encoding of components of the specified attachment, one of GL_LINEAR or
  GL_SRGB for linear or sRGB-encoded components, respectively. Only color
  buffer components may be sRGB-encoded; such components are treated as
  described in sections 4.1.7 and 4.1.8. For the default framebuffer, color
  encoding is determined by the implementation. For framebuffer objects,
  components are sRGB-encoded if the internal format of a color attachment is
  one of the color-renderable SRGB formats.
If the value of GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is
  GL_RENDERBUFFER, then:
•If pname is
  GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, params will contain the
  name of the renderbuffer object which contains the attached image.
If the value of GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is
  GL_TEXTURE, then:
•If pname is
  GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, then params will contain
  the name of the texture object which contains the attached image.
•If pname is
  GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL, then params will
  contain the mipmap level of the texture object which contains the attached
  image.
•If pname is
  GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE and the texture object
  named GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME is a cube map texture, then
  params will contain the cube map face of the cubemap texture object
  which contains the attached image. Otherwise params will contain the
  value zero.
•If pname is
  GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER and the texture object named
  GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME is a layer of a three-dimensional
  texture or a one-or two-dimensional array texture, then params will
  contain the number of the texture layer which contains the attached image.
  Otherwise params will contain the value zero.
•If pname is
  GL_FRAMEBUFFER_ATTACHMENT_LAYERED, then params will contain
  GL_TRUE if an entire level of a three-dimesional texture, cube map
  texture, or one-or two-dimensional array texture is attached. Otherwise,
  params will contain GL_FALSE.
Any combinations of framebuffer type and pname not described above will
  generate an error.
ERRORS¶
SEE ALSO¶
COPYRIGHT¶
Copyright © 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.| 05/30/2012 | [FIXME: source] |