Expand Minimize

getTexParameter method

Returns the value for a parameter on an active texture unit.

IE11

Syntax

var returnedType = WebGLRenderingContext.getTexParameter(target, pname);

Parameters

target [in]

Type: Number

The target texture of the active texture unit. Must be gl.TEXTURE_2D and gl.TEXTURE_CUBE_MAP .

pname [in]

Type: Number

Constant value. See table below.

Return value

Type: Number

The texture parameter type. See table below. Returns null if a WebGL error occurs.

Remarks

pnamereturnedType
gl.TEXTURE_MAG_FILTERNumber
gl.TEXTURE_MIN_FILTERNumber
gl.TEXTURE_WRAP_SNumber
gl.TEXTURE_WRAP_TNumber

 

WebGL errorDescription
gl.INVALID_ENUMpname is not one of the listed constants.

 

See also

WebGLRenderingContext

 

 

Show:
© 2014 Microsoft