Signature
Parameters
Variables | Description |
---|---|
target |
Specifies the target texture,
which must be either
GL_TEXTURE_1D
,
GL_TEXTURE_2D
,
GL_TEXTURE_3D
,
GL_TEXTURE_1D_ARRAY
,
GL_TEXTURE_2D_ARRAY
,
GL_TEXTURE_RECTANGLE
,
or
GL_TEXTURE_CUBE_MAP
.
|
pname |
Specifies the symbolic name of a single-valued texture parameter.
pname
can be one of the following:
GL_DEPTH_STENCIL_TEXTURE_MODE
,
GL_TEXTURE_BASE_LEVEL
,
GL_TEXTURE_COMPARE_FUNC
,
GL_TEXTURE_COMPARE_MODE
,
GL_TEXTURE_LOD_BIAS
,
GL_TEXTURE_MIN_FILTER
,
GL_TEXTURE_MAG_FILTER
,
GL_TEXTURE_MIN_LOD
,
GL_TEXTURE_MAX_LOD
,
GL_TEXTURE_MAX_LEVEL
,
GL_TEXTURE_SWIZZLE_R
,
GL_TEXTURE_SWIZZLE_G
,
GL_TEXTURE_SWIZZLE_B
,
GL_TEXTURE_SWIZZLE_A
,
GL_TEXTURE_WRAP_S
,
GL_TEXTURE_WRAP_T
, or
GL_TEXTURE_WRAP_R
.
|
param |
For the scalar commands, specifies the value of
pname
.
|
params |
For the vector commands, specifies a pointer to an array
where the value or values of
pname
are stored.
|
Sample Code References
The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.
glTexParameter
glTexParameterf
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/playground/Display3D.py
Lines: 493, 494
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/playground/TexPlane.py
Lines: 97, 98
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/playground/Button.py
Lines: 171, 172
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/Label.py
Lines: 205, 206
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 880, 881
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/TexPlane.py
Lines: 137, 138
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/Button.py
Lines: 268, 269
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/Label.py
Lines: 205, 206
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 879, 880
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/TexPlane.py
Lines: 137, 138
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/Button.py
Lines: 257, 258
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 879, 880
glTexParameteri
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/Experiments/Cubes.py
Lines: 137, 138, 141, 142, 147, 148
glTexParameteriv