| State Variable | Description | Attribute Group | Initial Value | Get Command |
|---|---|---|---|---|
GL_TEXTURE_x | True if x-D texturing enabled (x is 1D or 2D) | texture/ enable | GL_FALSE | glIsEnabled() |
GL_TEXTURE | x-D texture image at level of detail i | -- | -- | glGetTexImage() |
GL_TEXTURE_WIDTH | x-D texture image i's width | -- | 0 | glGetTexLevelParameter() |
GL_TEXTURE_HEIGHT | x-D texture image i's height | -- | 0 | glGetTexLevelParameter() |
GL_TEXTURE_BORDER | x-D texture image i's border width | -- | 0 | glGetTexLevelParameter() |
GL_TEXTURE_COMPONENTS | Texture image components | -- | 1 | glGetTexLevelParameter() |
GL_TEXTURE_BORDER_COL OR | Texture border color | texture | 0, 0, 0, 0 | glGetTexParameter() |
GL_TEXTURE_MIN_FILTER | Texture minification function | texture | GL_NEAREST_ MIPMAP_LINEA R | glGetTexParameter() |
GL_TEXTURE_MAG_FILTER | Texture magnification function | texture | GL_LINEAR | glGetTexParameter() |
GL_TEXTURE_WRAP_x | Texture wrap mode (x is S or T) | texture | GL_REPEAT | glGetTexParameter() |
GL_TEXTURE_ENV_MODE | Texture application function | texture | GL_MODULATE | glGetTexEnviv() |
GL_TEXTURE_ENV_COLOR | Texture environment color | texture | 0, 0, 0, 0 | glGetTexEnvfv() |
GL_TEXTURE_GEN_x | Texgen enabled (x is S, T, R, or Q) | texture/ enable | GL_FALSE | glIsEnabled() |
GL_EYE_LINEAR | Texgen plane equation coefficients | texture | -- | glGetTexGenfv() |
GL_OBJECT_LINEAR | Texgen object linear coefficients | texture | -- | glGetTexGenfv() |
GL_TEXTURE_GEN_MODE | Function used for texgen | texture | GL_EYE_LINEA R | glGetTexGeniv() |
OpenGL Programming Guide