Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glgeneratemipmap(3g) [debian man page]

GLGENERATEMIPMAP(3G)						  [FIXME: manual]					      GLGENERATEMIPMAP(3G)

NAME
glGenerateMipmap - generate mipmaps for a specified texture target C SPECIFICATION
void glGenerateMipmap(GLenum target); PARAMETERS
target Specifies the target to which the texture whose mimaps to generate is bound. target must be GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, GL_TEXTURE_1D_ARRAY, GL_TEXTURE_2D_ARRAY or GL_TEXTURE_CUBE_MAP. DESCRIPTION
glGenerateMipmap generates mipmaps for the texture attached to target of the active texture unit. For cube map textures, a GL_INVALID_OPERATION error is generated if the texture attached to target is not cube complete. Mipmap generation replaces texel array levels level base + 1 through q with arrays derived from the level base array, regardless of their previous contents. All other mimap arrays, including the level base array, are left unchanged by this computation. The internal formats of the derived mipmap arrays all match those of the level base array. The contents of the derived arrays are computed by repeated, filtered reduction of the level base array. For one- and two-dimensional texture arrays, each layer is filtered independently. ERRORS
GL_INVALID_ENUM is generated if target is not one of the accepted texture targets. GL_INVALID_OPERATION is generated if target is GL_TEXTURE_CUBE_MAP and the texture bound to the GL_TEXTURE_CUBE_MAP target of the active texture unit is not cube complete. SEE ALSO
glTexImage2D(), glBindTexture(), glGenTextures() COPYRIGHT
Copyright (C) 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/. [FIXME: source] 05/30/2012 GLGENERATEMIPMAP(3G)

Check Out this Related Man Page

GLFRAMEBUFFERTEXTURE(3G)					  [FIXME: manual]					  GLFRAMEBUFFERTEXTURE(3G)

NAME
glFramebufferTextureLayer - attach a single layer of a texture to a framebuffer C SPECIFICATION
void glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); PARAMETERS
target Specifies the framebuffer target. target must be GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER, or GL_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER. attachment Specifies the attachment point of the framebuffer. attachment must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMMENT. texture Specifies the texture object to attach to the framebuffer attachment point named by attachment. level Specifies the mipmap level of texture to attach. layer Specifies the layer of texture to attach. DESCRIPTION
glFramebufferTextureLayer operates like glFramebufferTexture(), except that only a single layer of the texture level, given by layer, is attached to the attachment point. If texture is not zero, layer must be greater than or equal to zero. texture must either be zero or the name of an existing three-dimensional texture, one- or two-dimensional array texture, or multisample array texture. ERRORS
GL_INVALID_ENUM is generated if target is not one of the accepted tokens. GL_INVALID_ENUM is generated if attachment is not one of the accepted tokens. GL_INVALID_VALUE is generated if texture is not zero or the name of an existing texture object. GL_INVALID_VALUE is generated if texture is not zero and layer is negative. GL_INVALID_OPERATION is generated if zero is bound to target. GL_INVALID_OPERATION is generated if texture is not zero or the name of an existing cube map texture. SEE ALSO
glGenFramebuffers(), glBindFramebuffer(), glGenRenderbuffers(), glFramebufferTexture(), glFramebufferTextureFace() COPYRIGHT
Copyright (C) 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/. [FIXME: source] 05/30/2012 GLFRAMEBUFFERTEXTURE(3G)
Man Page