glGetTexParameteriv Function
GL_APICALL void GL_APIENTRY glGetTexParameteriv(
GLenum target,
GLenum pname,
GLint * params
);
| Name | Description | |
|---|---|---|
| in | target | Target texture. |
| in | pname | Name of the parameter(s) to get. |
| out | params | Array storing the obtained parameters. |
Gets GLint-type values for the parameters of texture objects that are currently bound.
You can set target to the following values.
GL_TEXTURE_2D | 2D texture. |
|---|---|
GL_TEXTURE_CUBE_MAP | Cube-map texture. |
You can set pname to the following values.
GL_TEXTURE_MIN_FILTER | Gets the texture minification filter. |
|---|---|
GL_TEXTURE_MAG_FILTER | Gets the texture magnification filter. |
GL_TEXTURE_WRAP_S | Gets the wrap mode for texture coordinate s. |
GL_TEXTURE_WRAP_T | Gets the wrap mode for texture coordinate t. |
GL_TEXTURE_MIN_LOD | Gets the minimum mipmap level of detail. |
GL_TEXTURE_DATA_ADDR_DMP | Gets the address of the bound texture object(s). |
In addition to those above, you can also specify parameters that can be obtained with glGetTexParameterfv. However, values are cast to type GLint.
The following errors occur in this function.
GL_INVALID_ENUM | The target or pname argument was set to an invalid value. |
|---|
GL_TEXTURE_DATA_ADDR_DMP, that can be specified for pname.CONFIDENTIAL