glTexGen

control the generation of texture coordinates

Signature

glTexGen( )->
glTexGend( GLenum ( coord ) , GLenum ( pname ) , GLdouble ( param ) )-> void
glTexGend( coord , pname , param )
glTexGendv( GLenum ( coord ) , GLenum ( pname ) , const GLdouble * ( params ) )-> void
glTexGendv( coord , pname , params )
glTexGenf( GLenum ( coord ) , GLenum ( pname ) , GLfloat ( param ) )-> void
glTexGenf( coord , pname , param )
glTexGenfv( GLenum ( coord ) , GLenum ( pname ) , const GLfloat * ( params ) )-> void
glTexGenfv( coord , pname , params )
glTexGeni( GLenum ( coord ) , GLenum ( pname ) , GLint ( param ) )-> void
glTexGeni( coord , pname , param )
glTexGeniv( GLenum ( coord ) , GLenum ( pname ) , const GLint * ( params ) )-> void
glTexGeniv( coord , pname , params )

Parameters

VariablesDescription
coord
Specifies a texture coordinate. Must be one of GL_S , GL_T , GL_R , or GL_Q .
pname
Specifies the symbolic name of the texture-coordinate generation function. Must be GL_TEXTURE_GEN_MODE .
param
Specifies a single-valued texture generation parameter, one of GL_OBJECT_LINEAR , GL_EYE_LINEAR , GL_SPHERE_MAP , GL_NORMAL_MAP , or GL_REFLECTION_MAP .

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.

glTexGenfv
OpenGLContext tests/shadow_1.py Lines: 641
glTexGeni
OpenGLContext tests/shadow_1.py Lines: 640
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 67, 68
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 96, 97