summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-01-21 21:47:45 +0000
committerBrian Paul <[email protected]>2003-01-21 21:47:45 +0000
commit418ac00e7583bf3136816a43b3357e0d0b0c776d (patch)
tree4e75fbf211fff0700c85f2f69d75e0b535ba1efb /src/mesa/main/get.c
parent068a4812fc1d9e321aa65a91ceb8bc824bedc69a (diff)
GL_SGI_texture_color_table extension (Eric Plante)
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 8eac97fb5d5..9541ab00fc8 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -1,4 +1,4 @@
-/* $Id: get.c,v 1.102 2003/01/21 15:45:39 brianp Exp $ */
+/* $Id: get.c,v 1.103 2003/01/21 21:47:50 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1229,6 +1229,12 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
*params = ctx->Pixel.PostColorMatrixColorTableEnabled;
break;
+ /* GL_SGI_texture_color_table */
+ case GL_TEXTURE_COLOR_TABLE_SGI:
+ CHECK_EXTENSION_B(SGI_texture_color_table, pname);
+ *params = ctx->Texture.ColorTableEnabled;
+ break;
+
/* GL_EXT_secondary_color */
case GL_COLOR_SUM_EXT:
CHECK_EXTENSION_B(EXT_secondary_color, pname);
@@ -2621,6 +2627,12 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params )
*params = (GLdouble) ctx->Pixel.PostColorMatrixColorTableEnabled;
break;
+ /* GL_SGI_texture_color_table */
+ case GL_TEXTURE_COLOR_TABLE_SGI:
+ CHECK_EXTENSION_D(SGI_texture_color_table, pname);
+ *params = (GLdouble) ctx->Texture.ColorTableEnabled;
+ break;
+
/* GL_EXT_secondary_color */
case GL_COLOR_SUM_EXT:
CHECK_EXTENSION_D(EXT_secondary_color, pname);
@@ -3987,6 +3999,12 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
*params = (GLfloat) ctx->Pixel.PostColorMatrixColorTableEnabled;
break;
+ /* GL_SGI_texture_color_table */
+ case GL_TEXTURE_COLOR_TABLE_SGI:
+ CHECK_EXTENSION_F(SGI_texture_color_table, pname);
+ *params = (GLfloat) ctx->Texture.ColorTableEnabled;
+ break;
+
/* GL_EXT_secondary_color */
case GL_COLOR_SUM_EXT:
CHECK_EXTENSION_F(EXT_secondary_color, pname);
@@ -5391,6 +5409,11 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
*params = (GLint) ctx->Pixel.PostColorMatrixColorTableEnabled;
break;
+ /* GL_SGI_texture_color_table */
+ case GL_TEXTURE_COLOR_TABLE_SGI:
+ CHECK_EXTENSION_I(SGI_texture_color_table, pname);
+ *params = (GLint) ctx->Texture.ColorTableEnabled;
+ break;
/* GL_EXT_secondary_color */
case GL_COLOR_SUM_EXT: