1991-2006 Silicon Graphics, Inc.

glGetTexParameter

3G

glGetTexParameter

return texture parameter values

# C Specification

                    void glGetTexParameterfv
                    GLenum target
                    GLenum pname
                    GLfloat * params

                    void glGetTexParameteriv
                    GLenum target
                    GLenum pname
                    GLint * params

## Parameters

`target`

- Specifies the symbolic name of the target texture of the active texture unit. `GL_TEXTURE_2D` and `GL_TEXTURE_CUBE_MAP` are accepted.

`pname`

- Specifies the symbolic name of a texture parameter. `GL_TEXTURE_MAG_FILTER`, `GL_TEXTURE_MIN_FILTER`, `GL_TEXTURE_WRAP_S`, and `GL_TEXTURE_WRAP_T` are accepted.

`params`

- Returns the texture parameter.

## Description

`glGetTexParameter` returns in `params` the value of the texture parameter specified as `pname`. `target` defines the target texture of the active texture unit, either `GL_TEXTURE_2D` or `GL_TEXTURE_CUBE_MAP`, to specify two-dimensional or cube-mapped texturing. `pname` accepts the same symbols as

glTexParameter

, with the same interpretations:

`GL_TEXTURE_MAG_FILTER`

- Returns the single-valued texture magnification filter, a symbolic constant. The initial value is `GL_LINEAR`.

`GL_TEXTURE_MIN_FILTER`

- Returns the single-valued texture minification filter, a symbolic constant. The initial value is `GL_NEAREST_MIPMAP_LINEAR`.

`GL_TEXTURE_WRAP_S`

- Returns the single-valued wrapping function for texture coordinate s, a symbolic constant. The initial value is `GL_REPEAT`.

`GL_TEXTURE_WRAP_T`

- Returns the single-valued wrapping function for texture coordinate t, a symbolic constant. The initial value is `GL_REPEAT`.

## Notes

If an error is generated, no change is made to the contents of `params`.

## Errors

`GL_INVALID_ENUM` is generated if `target` or `pname` is not an accepted value.

## See Also

glTexParameter

## Copyright

Copyright 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.