glTexParameter

set texture parameters

Signature

glTexParameter( )->
glTexParameter( target , pname , parameter )
Set a texture parameter, choose underlying call based on pname and parameter
glTexParameterIiv( GLenum ( target ) , GLenum ( pname ) , const GLint * ( params ) )-> void
glTexParameterIiv( target , pname , params )
glTexParameterIuiv( GLenum ( target ) , GLenum ( pname ) , const GLuint * ( params ) )-> void
glTexParameterIuiv( target , pname , params )
glTexParameterf( GLenum ( target ) , GLenum ( pname ) , GLfloat ( param ) )-> void
glTexParameterf( target , pname , param )
glTexParameterfv( GLenum ( target ) , GLenum ( pname ) , const GLfloat * ( params ) )-> void
glTexParameterfv( target , pname , params )
glTexParameteri( GLenum ( target ) , GLenum ( pname ) , GLint ( param ) )-> void
glTexParameteri( target , pname , param )
glTexParameteriv( GLenum ( target ) , GLenum ( pname ) , const GLint * ( params ) )-> void
glTexParameteriv( target , pname , params )

Parameters

VariablesDescription
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
{GPL3} OpenGL-Programmable 01-direct.py Lines: 38, 39
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 115, 116
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 142, 143
{GPL3} OpenGL-Programmable 03-array.py Lines: 38, 39
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 150, 151
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 124, 125
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 38, 39
{GPL3} OpenGL-Programmable 05-shader.py Lines: 107, 108
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 124, 125
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 39, 40
glTexParameterf
OpenGLContext tests/dek_texturesurf.py Lines: 48, 49, 50, 51
OpenGLContext tests/nehe6_convolve.py Lines: 151, 152
OpenGLContext tests/nehe6_timer.py Lines: 99, 100
OpenGLContext tests/nehe6_multi.py Lines: 86, 89, 96, 99
OpenGLContext tests/nehe6.py Lines: 80, 81
OpenGLContext tests/multitexture_1.py Lines: 50, 51, 55, 56
OpenGL-Demo PyOpenGL-Demo/dek/tile.py Lines: 63, 64, 65, 66
OpenGL-Demo PyOpenGL-Demo/dek/texturesurf.py Lines: 79, 80, 81, 82
OpenGL-Demo PyOpenGL-Demo/proesch/shaderProg/textureShader.py Lines: 124, 125, 126, 127
OpenGL-Demo PyOpenGL-Demo/proesch/simpleTexture/texturedQuad.py Lines: 72, 73, 74, 75
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 167
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 72, 73, 74, 75, 76, 77
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 75, 76, 77, 78, 79, 80
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 75, 76, 77, 78, 79, 80
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 73, 74, 75, 76, 77, 78
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 40, 41, 42, 43, 44, 45
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 37, 38, 39, 40, 41, 42
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 42, 43, 44, 45, 46, 47
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson43/glFreeType.py Lines: 102, 103
{LGPL} PyUI pyui/renderers/openglPygame.py Lines: 161, 162, 280, 281
{LGPL} PyUI pyui/renderers/openglGlut.py Lines: 218, 219, 220, 221
{LGPL} PyUI tests/testcube.py Lines: 51, 52, 53, 54
{LGPL} PyUI2 renderers/openglPygame.py Lines: 164, 165, 283, 284
{LGPL} PyUI2 renderers/openglGlut.py Lines: 218, 219, 220, 221
{LGPL} PyUI2 system/openglgraphics.py Lines: 229, 230, 231, 232, 335, 336
{LGPL} Pyggel pyggel/data.py Lines: 160
{LGPL} pygl2d pygl2d/image.py Lines: 53, 54, 61, 62, 64, 65, 70, 71, 73, 74
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Spheres.py Lines: 87, 88
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/Display3D.py Lines: 447, 448
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/TexPlane.py Lines: 234, 235
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/Button3D.py Lines: 135, 136
{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/CL/Topology3D/Utils/Particles3D.py Lines: 118, 119
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/Display3D.py Lines: 447, 448
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/TexPlane.py Lines: 234, 235
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/Button3D.py Lines: 135, 136
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/playground/Display3D.py Lines: 493, 494
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/playground/TexPlane.py Lines: 97, 98
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/playground/Button.py Lines: 171, 172
{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/MH/OpenGL/3dFolding.py Lines: 170, 171
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/Label.py Lines: 205, 206
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py Lines: 879, 880
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/TexPlane.py Lines: 137, 138
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/Button.py Lines: 257, 258
glTexParameteri
OpenGLContext tests/nehe7.py Lines: 100, 101, 108, 109, 116, 117
OpenGLContext tests/shadow_1.py Lines: 537, 538, 539, 540, 650, 660, 668, 686
OpenGLContext tests/nehe8.py Lines: 134, 135, 142, 143, 150, 151
OpenGLContext tests/shadow_2.py Lines: 120, 121, 122, 123
OpenGLContext OpenGLContext/texture.py Lines: 249, 250, 251, 252, 253
OpenGLContext OpenGLContext/scenegraph/imagetexture.py Lines: 78, 80, 82, 84, 85, 86
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 165, 166, 168
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 145, 146
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 85, 86, 91, 92
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 211, 212
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson44/lesson44.py Lines: 118, 119
{LGPL} VisionEgg VisionEgg/SphereMap.py Lines: 717, 718, 719, 720, 796, 1058, 1059, 1060, 1061
{LGPL} VisionEgg VisionEgg/Textures.py Lines: 495, 500, 506, 512, 518
{LGPL} VisionEgg VisionEgg/Gratings.py Lines: 298, 299, 300, 301, 617, 618, 619, 620
{LGPL} PyMT pymt/texture.py Lines: 17, 168, 179, 190, 191, 246
{LGPL} Pyggel pyggel/data.py Lines: 150, 151, 155, 156, 157, 168, 169, 173, 174, 175, 177, 178, 179
{LGPL} Pyggel pyggel/geometry.py Lines: 263, 264, 265
{LGPL} pygl2d pygl2d/image.py Lines: 76, 77
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Cubes.py Lines: 137, 138, 141, 142, 147, 148
Visvis core/line.py Lines: 68, 69
Visvis core/baseTexture.py Lines: 572, 573, 574
Visvis wobjects/textures.py Lines: 113, 114, 115, 116, 123, 124, 125, 140
Visvis text/text_base.py Lines: 82, 83, 84, 85
glTexParameteriv
{LGPL} VisionEgg VisionEgg/Textures.py Lines: 524