glGetTextureParameterfv

glGetTexParameter: man4/glGetTexParameter.xml

glGetTexParameter and glGetTextureParameter return in params the value or values of the texture parameter specified as pname. target defines the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, GL_TEXTURE_1D_ARRAY, GL_TEXTURE_2D_ARRAY, GL_TEXTURE_RECTANGLE, GL_TEXTURE_CUBE_MAP, GL_TEXTURE_CUBE_MAP_ARRAY, GL_TEXTURE_2D_MULTISAMPLE, or GL_TEXTURE_2D_MULTISAMPLE_ARRAY specify one-, two-, or three-dimensional, one-dimensional array, two-dimensional array, rectangle, cube-mapped or cube-mapped array, two-dimensional multisample, or two-dimensional multisample array texturing, respectively. pname accepts the same symbols as glTexParameter, with the same interpretations: In addition to the parameters that may be set with glTexParameter, glGetTexParameter and glGetTextureParameter accept the following read-only parameters:

If an error is generated, no change is made to the contents of params. GL_IMAGE_FORMAT_COMPATIBILITY_TYPE is available only if the GL version is 4.2 or greater. GL_DEPTH_STENCIL_TEXTURE_MODE, GL_TEXTURE_VIEW_MIN_LEVEL, GL_TEXTURE_VIEW_NUM_LEVELS, GL_TEXTURE_VIEW_MIN_LAYER, GL_TEXTURE_VIEW_NUM_LAYERS and GL_TEXTURE_IMMUTABLE_LEVELS are available only if the GL version is 4.3 or greater. GL_TEXTURE_TARGET are available only if the GL version is 4.5 or greater.

@OpenGL_Version(OGLIntroducedIn.V4P5)
@OpenGL_Extension("GL_ARB_direct_state_access")
fn_glGetTextureParameterfv glGetTextureParameterfv;

See Also

glTexParameter, glTextureParameter, glTexStorage1D, glTexStorage2D, glTexStorage3D, glTextureStorage1D, glTextureStorage2D, glTextureStorage3D, glTextureView

Meta