Name
gl.GetTexGen -- return texture coordinate generation parameters
Synopsis
paramsArray = gl.GetTexGen(coord, pname)
Function
gl.GetTexGen() returns a table containing selected parameters of a texture coordinate generation function that was specified using gl.TexGen(). coord names one of the (s, t, r, q) texture coordinates, using the symbolic constants #GL_S, #GL_T, #GL_R, or #GL_Q.

pname specifies one of three symbolic names:

#GL_TEXTURE_GEN_MODE
Returns the single-valued texture generation function, a symbolic constant. The initial value is #GL_EYE_LINEAR.

#GL_OBJECT_PLANE
This will return the four plane equation coefficients that specify object linear-coordinate generation.

#GL_EYE_PLANE
Returns the four plane equation coefficients that specify eye linear-coordinate generation. The returned values are those maintained in eye coordinates. They are not equal to the values specified using gl.TexGen(), unless the modelview matrix was identity when gl.TexGen() was called.

Please consult an OpenGL reference manual for more information.

Inputs
coord
specifies a texture coordinate
pname
specifies the symbolic name of the value(s) to be returned
Results
paramsArray
table containing the requested data
Errors
#GL_INVALID_ENUM is generated if coord or pname is not an accepted value.

#GL_INVALID_OPERATION is generated if gl.GetTexGen() is executed between the execution of gl.Begin() and the corresponding execution of gl.End() .


Show TOC