glTexEnv

set texture environment parameters

Signature

glTexEnv( )->
glTexEnvf( GLenum ( target ) , GLenum ( pname ) , GLfloat ( param ) )-> void
glTexEnvf( target , pname , param )
glTexEnvfv( GLenum ( target ) , GLenum ( pname ) , const GLfloat * ( params ) )-> void
glTexEnvfv( target , pname , params )
glTexEnvi( GLenum ( target ) , GLenum ( pname ) , GLint ( param ) )-> void
glTexEnvi( target , pname , param )
glTexEnviv( GLenum ( target ) , GLenum ( pname ) , const GLint * ( params ) )-> void
glTexEnviv( target , pname , params )

Parameters

VariablesDescription
target
Specifies a texture environment. May be GL_TEXTURE_ENV , GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE .
pname
Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE , GL_TEXTURE_LOD_BIAS , GL_COMBINE_RGB , GL_COMBINE_ALPHA , GL_SRC0_RGB , GL_SRC1_RGB , GL_SRC2_RGB , GL_SRC0_ALPHA , GL_SRC1_ALPHA , GL_SRC2_ALPHA , GL_OPERAND0_RGB , GL_OPERAND1_RGB , GL_OPERAND2_RGB , GL_OPERAND0_ALPHA , GL_OPERAND1_ALPHA , GL_OPERAND2_ALPHA , GL_RGB_SCALE , GL_ALPHA_SCALE , or GL_COORD_REPLACE .
param
Specifies a single symbolic constant, one of GL_ADD , GL_ADD_SIGNED , GL_INTERPOLATE , GL_MODULATE , GL_DECAL , GL_BLEND , GL_REPLACE , GL_SUBTRACT , GL_COMBINE , GL_TEXTURE , GL_CONSTANT , GL_PRIMARY_COLOR , GL_PREVIOUS , GL_SRC_COLOR , GL_ONE_MINUS_SRC_COLOR , GL_SRC_ALPHA , GL_ONE_MINUS_SRC_ALPHA , a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE .

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.

glTexEnvf
OpenGLContext tests/dek_texturesurf.py Lines: 47
OpenGLContext tests/nehe6_convolve.py Lines: 153
OpenGLContext tests/nehe6_timer.py Lines: 101
OpenGLContext tests/nehe6_multi.py Lines: 92, 102
OpenGLContext tests/nehe6.py Lines: 82
OpenGLContext tests/multitexture_1.py Lines: 44, 52
OpenGL-Demo PyOpenGL-Demo/dek/tile.py Lines: 67
OpenGL-Demo PyOpenGL-Demo/dek/texturesurf.py Lines: 78
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 78
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 81
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 81
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 79
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 46
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 43
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 48
{LGPL} PyUI pyui/renderers/openglPygame.py Lines: 160, 279
{LGPL} PyUI pyui/renderers/openglGlut.py Lines: 217
{LGPL} PyUI tests/testcube.py Lines: 50
{LGPL} PyUI2 renderers/openglPygame.py Lines: 163, 282
{LGPL} PyUI2 renderers/openglGlut.py Lines: 217
{LGPL} PyUI2 system/openglgraphics.py Lines: 228, 334
{LGPL} PyMT examples/apps/particles/particles.py Lines: 184
{LGPL} pygl2d pygl2d/image.py Lines: 67
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Spheres.py Lines: 89
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/Display3D.py Lines: 482
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/TexPlane.py Lines: 144
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/PygameWrapperPlane.py Lines: 156
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/Button3D.py Lines: 215
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/playground/Display3D.py Lines: 533
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/playground/TexPlane.py Lines: 57
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/playground/Button.py Lines: 103
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/Label.py Lines: 146
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py Lines: 844
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/PygameWrapper.py Lines: 190
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/TexPlane.py Lines: 97
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/Button.py Lines: 175
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Utils/Particles3D.py Lines: 217, 280, 321
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/Display3D.py Lines: 482
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/TexPlane.py Lines: 144
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/PygameWrapperPlane.py Lines: 156
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/Button3D.py Lines: 215
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/playground/Display3D.py Lines: 533
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/playground/TexPlane.py Lines: 57
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/playground/PygameWrapperPlane.py Lines: 77
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/playground/Button.py Lines: 103
{LGPL or GPL or MPL} Kamaelia Sketches/MH/OpenGL/3dFolding.py Lines: 114
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/Label.py Lines: 146
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py Lines: 843
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/PygameWrapper.py Lines: 190
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/TexPlane.py Lines: 97
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/Button.py Lines: 171
Visvis core/line.py Lines: 107
glTexEnvfv
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 161
{LGPL} VisionEgg VisionEgg/Gratings.py Lines: 350, 656
glTexEnvi
OpenGLContext OpenGLContext/scenegraph/pointset.py Lines: 73
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 117
{LGPL} VisionEgg VisionEgg/SphereMap.py Lines: 525, 831, 1206
{LGPL} VisionEgg VisionEgg/Textures.py Lines: 1280, 1467, 1602, 1779
{LGPL} VisionEgg VisionEgg/Gratings.py Lines: 349, 353, 655, 659
{LGPL} PyMT pymt/graphx/paint.py Lines: 17, 103
{LGPL} Pyggel pyggel/view.py Lines: 185
{LGPL} pygl2d pygl2d/window.py Lines: 57