paramsArray = gl.GetTexGen(coord, pname)
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
#GL_EYE_LINEAR
.
#GL_OBJECT_PLANE
#GL_EYE_PLANE
Please consult an OpenGL reference manual for more information.
#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() .