GLGETTEXGEN(3G)
β¨ NAME β¨
okay bestie, welcome to GLGETTEXGEN(3G) β yes, that's the manual name, we're in the 3G section and it's giving OpenGL texture-coordinate tea. This page is for:
glGetTexGendv, glGetTexGenfv, glGetTexGeniv β return texture coordinate generation parameters. periodt π
π C SPECIFICATION π
void glGetTexGendv( GLenum coord,
GLenum pname,
GLdouble *params )
void glGetTexGenfv( GLenum coord,
GLenum pname,
GLfloat *params )
void glGetTexGeniv( GLenum coord,
GLenum pname,
GLint *params )
π«Ά PARAMETERS π«Ά
coordβ Specifies a texture coordinate. Must beGL_S,GL_T,GL_R, orGL_Q. no cap, those are the only valid ones.pnameβ Specifies the symbolic name of the value(s) to be returned. Must be eitherGL_TEXTURE_GEN_MODEor the name of one of the texture generation plane equations:GL_OBJECT_PLANEorGL_EYE_PLANE.paramsβ Returns the requested data. she's the output girly π
π₯ DESCRIPTION π₯
so glGetTexGen returns in params selected parameters of a texture coordinate generation function that was specified using glTexGen. coord names one of the (s, t, r, q) texture coordinates, using the symbolic constant GL_S, GL_T, GL_R, or GL_Q.
pname specifies one of three symbolic names:
GL_TEXTURE_GEN_MODEβparamsreturns the single-valued texture generation function, a symbolic constant. The initial value isGL_EYE_LINEAR.GL_OBJECT_PLANEβparamsreturns the four plane equation coefficients that specify object linear-coordinate generation. Integer values, when requested, are mapped directly from the internal floating-point representation.GL_EYE_PLANEβparamsreturns the four plane equation coefficients that specify eye linear-coordinate generation. Integer values, when requested, are mapped directly from the internal floating-point representation. The returned values are those maintained in eye coordinates. They are not equal to the values specified usingglTexGen, unless the modelview matrix was identity whenglTexGenwas called. okay that last bit is important, bestie, don't skip it π
π NOTES π
- If an error is generated, no change is made to the contents of
params. - When the
GL_ARB_multitextureextension is supported,glGetTexGenreturns the texture coordinate generation parameters for the active texture unit.
π ERRORS π
π¨GL_INVALID_ENUMis generated ifcoordorpnameis not an accepted value.
π¨GL_INVALID_OPERATIONis generated ifglGetTexGenis executed between the execution ofglBeginand the corresponding execution ofglEnd.
π¦ SEE ALSO π¦
glActiveTextureARB(3G), glTexGen(3G)
and that's the whole vibe. footer / source / version / date energy: GLGETTEXGEN(3G). bye bestie, go query those texture coords πβ¨
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- fedora 43: gl-manpages 1.1-34.20190306.fc43 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- fedora 44: gl-manpages 1.1-35.20190306.fc44 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms