glTexParameterf Function
GL_APICALL void GL_APIENTRY glTexParameterf(
GLenum target,
GLenum pname,
GLfloat param
);
| Name | Description | |
|---|---|---|
| in | target | Target texture |
| in | pname | Name of the parameter to configure |
| in | param | Value to set for the parameter |
Sets texture parameters using GLfloat-type values.
Set target to the following values.
| GL_TEXTURE_2D | 2D texture |
|---|---|
| GL_TEXTURE_CUBE_MAP | Cube-map texture |
You can set pname to GL_TEXTURE_LOD_BIAS. The value GL_TEXTURE_LOD_BIAS specifies the texture LOD bias. In this case, set param to a value in the range [-16,16].
This function generates the following errors.
| GL_INVALID_ENUM | The target or pname argument was set to an invalid value. |
|---|---|
| GL_INVALID_VALUE | The param argument was set to an invalid value. |
CONFIDENTIAL