glTexParameterf Function

Syntax

GL_APICALL void GL_APIENTRY glTexParameterf(
     GLenum target,
     GLenum pname,
     GLfloat param
);

Arguments

Name Description
in target Target texture
in pname Name of the parameter to configure
in param Value to set for the parameter

Return Values

No values are returned.

Description

Sets texture parameters using GLfloat-type values.

Set target to the following values.

GL_TEXTURE_2D2D texture
GL_TEXTURE_CUBE_MAPCube-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_ENUMThe target or pname argument was set to an invalid value.
GL_INVALID_VALUEThe param argument was set to an invalid value.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL