-/* $Id: get.c,v 1.4 1999/10/08 09:27:10 keithw Exp $ */
+/* $Id: get.c,v 1.5 1999/10/17 22:36:35 brianp Exp $ */
/*
* Mesa 3-D graphics library
case GL_ZOOM_Y:
*params = FLOAT_TO_BOOL(ctx->Pixel.ZoomY);
break;
+ case GL_VERTEX_ARRAY:
+ *params = ctx->Array.Vertex.Enabled;
+ break;
case GL_VERTEX_ARRAY_SIZE:
*params = INT_TO_BOOL(ctx->Array.Vertex.Size);
break;
case GL_VERTEX_ARRAY_COUNT_EXT:
*params = INT_TO_BOOL(0);
break;
+ case GL_NORMAL_ARRAY:
+ *params = ctx->Array.Normal.Enabled;
+ break;
case GL_NORMAL_ARRAY_TYPE:
*params = ENUM_TO_BOOL(ctx->Array.Normal.Type);
break;
case GL_NORMAL_ARRAY_COUNT_EXT:
*params = INT_TO_BOOL(0);
break;
+ case GL_COLOR_ARRAY:
+ *params = ctx->Array.Color.Enabled;
+ break;
case GL_COLOR_ARRAY_SIZE:
*params = INT_TO_BOOL(ctx->Array.Color.Size);
break;
case GL_COLOR_ARRAY_COUNT_EXT:
*params = INT_TO_BOOL(0);
break;
+ case GL_INDEX_ARRAY:
+ *params = ctx->Array.Index.Enabled;
+ break;
case GL_INDEX_ARRAY_TYPE:
*params = ENUM_TO_BOOL(ctx->Array.Index.Type);
break;
case GL_INDEX_ARRAY_COUNT_EXT:
*params = INT_TO_BOOL(0);
break;
+ case GL_TEXTURE_COORD_ARRAY:
+ *params = ctx->Array.TexCoord[texUnit].Enabled;
+ break;
case GL_TEXTURE_COORD_ARRAY_SIZE:
*params = INT_TO_BOOL(ctx->Array.TexCoord[texUnit].Size);
break;
case GL_TEXTURE_COORD_ARRAY_COUNT_EXT:
*params = INT_TO_BOOL(0);
break;
+ case GL_EDGE_FLAG_ARRAY:
+ *params = ctx->Array.EdgeFlag.Enabled;
+ break;
case GL_EDGE_FLAG_ARRAY_STRIDE:
*params = INT_TO_BOOL(ctx->Array.EdgeFlag.Stride);
break;
- case GL_EDGE_FLAG_ARRAY_EXT:
- *params = INT_TO_BOOL(0);
- break;
case GL_MAX_TEXTURE_UNITS_ARB:
*params = ctx->Const.MaxTextureUnits;
case GL_ZOOM_Y:
*params = (GLdouble) ctx->Pixel.ZoomY;
break;
+ case GL_VERTEX_ARRAY:
+ *params = (GLdouble) ctx->Array.Vertex.Enabled;
+ break;
case GL_VERTEX_ARRAY_SIZE:
*params = (GLdouble) ctx->Array.Vertex.Size;
break;
case GL_VERTEX_ARRAY_COUNT_EXT:
*params = 0.0;
break;
+ case GL_NORMAL_ARRAY:
+ *params = (GLdouble) ctx->Array.Normal.Enabled;
+ break;
case GL_NORMAL_ARRAY_TYPE:
*params = ENUM_TO_DOUBLE(ctx->Array.Normal.Type);
break;
case GL_NORMAL_ARRAY_COUNT_EXT:
*params = 0.0;
break;
+ case GL_COLOR_ARRAY:
+ *params = (GLdouble) ctx->Array.Color.Enabled;
+ break;
case GL_COLOR_ARRAY_SIZE:
*params = (GLdouble) ctx->Array.Color.Size;
break;
case GL_COLOR_ARRAY_COUNT_EXT:
*params = 0.0;
break;
+ case GL_INDEX_ARRAY:
+ *params = (GLdouble) ctx->Array.Index.Enabled;
+ break;
case GL_INDEX_ARRAY_TYPE:
*params = ENUM_TO_DOUBLE(ctx->Array.Index.Type);
break;
case GL_INDEX_ARRAY_COUNT_EXT:
*params = 0.0;
break;
+ case GL_TEXTURE_COORD_ARRAY:
+ *params = (GLdouble) ctx->Array.TexCoord[texUnit].Enabled;
+ break;
case GL_TEXTURE_COORD_ARRAY_SIZE:
*params = (GLdouble) ctx->Array.TexCoord[texUnit].Size;
break;
case GL_TEXTURE_COORD_ARRAY_COUNT_EXT:
*params = 0.0;
break;
+ case GL_EDGE_FLAG_ARRAY:
+ *params = (GLdouble) ctx->Array.EdgeFlag.Enabled;
+ break;
case GL_EDGE_FLAG_ARRAY_STRIDE:
*params = (GLdouble) ctx->Array.EdgeFlag.Stride;
break;
case GL_ZOOM_Y:
*params = (GLfloat) ctx->Pixel.ZoomY;
break;
+ case GL_VERTEX_ARRAY:
+ *params = (GLfloat) ctx->Array.Vertex.Enabled;
+ break;
case GL_VERTEX_ARRAY_SIZE:
*params = (GLfloat) ctx->Array.Vertex.Size;
break;
case GL_VERTEX_ARRAY_COUNT_EXT:
*params = 0.0;
break;
+ case GL_NORMAL_ARRAY:
+ *params = (GLfloat) ctx->Array.Normal.Enabled;
+ break;
case GL_NORMAL_ARRAY_TYPE:
*params = ENUM_TO_FLOAT(ctx->Array.Normal.Type);
break;
case GL_NORMAL_ARRAY_COUNT_EXT:
*params = 0.0;
break;
+ case GL_COLOR_ARRAY:
+ *params = (GLfloat) ctx->Array.Color.Enabled;
+ break;
case GL_COLOR_ARRAY_SIZE:
*params = (GLfloat) ctx->Array.Color.Size;
break;
case GL_COLOR_ARRAY_COUNT_EXT:
*params = 0.0;
break;
+ case GL_INDEX_ARRAY:
+ *params = (GLfloat) ctx->Array.Index.Enabled;
+ break;
case GL_INDEX_ARRAY_TYPE:
*params = ENUM_TO_FLOAT(ctx->Array.Index.Type);
break;
case GL_INDEX_ARRAY_COUNT_EXT:
*params = 0.0;
break;
+ case GL_TEXTURE_COORD_ARRAY:
+ *params = (GLfloat) ctx->Array.TexCoord[texUnit].Enabled;
+ break;
case GL_TEXTURE_COORD_ARRAY_SIZE:
*params = (GLfloat) ctx->Array.TexCoord[texUnit].Size;
break;
case GL_TEXTURE_COORD_ARRAY_COUNT_EXT:
*params = 0.0;
break;
+ case GL_EDGE_FLAG_ARRAY:
+ *params = (GLfloat) ctx->Array.EdgeFlag.Enabled;
+ break;
case GL_EDGE_FLAG_ARRAY_STRIDE:
*params = (GLfloat) ctx->Array.EdgeFlag.Stride;
break;
case GL_ZOOM_Y:
*params = (GLint) ctx->Pixel.ZoomY;
break;
+ case GL_VERTEX_ARRAY:
+ *params = (GLint) ctx->Array.Vertex.Enabled;
+ break;
case GL_VERTEX_ARRAY_SIZE:
*params = ctx->Array.Vertex.Size;
break;
case GL_VERTEX_ARRAY_COUNT_EXT:
*params = 0;
break;
+ case GL_NORMAL_ARRAY:
+ *params = (GLint) ctx->Array.Normal.Enabled;
+ break;
case GL_NORMAL_ARRAY_TYPE:
*params = ctx->Array.Normal.Type;
break;
case GL_NORMAL_ARRAY_COUNT_EXT:
*params = 0;
break;
+ case GL_COLOR_ARRAY:
+ *params = (GLint) ctx->Array.Color.Enabled;
+ break;
case GL_COLOR_ARRAY_SIZE:
*params = ctx->Array.Color.Size;
break;
case GL_COLOR_ARRAY_COUNT_EXT:
*params = 0;
break;
+ case GL_INDEX_ARRAY:
+ *params = (GLint) ctx->Array.Index.Enabled;
+ break;
case GL_INDEX_ARRAY_TYPE:
*params = ctx->Array.Index.Type;
break;
case GL_INDEX_ARRAY_COUNT_EXT:
*params = 0;
break;
+ case GL_TEXTURE_COORD_ARRAY:
+ *params = (GLint) ctx->Array.TexCoord[texUnit].Enabled;
+ break;
case GL_TEXTURE_COORD_ARRAY_SIZE:
*params = ctx->Array.TexCoord[texUnit].Size;
break;
case GL_TEXTURE_COORD_ARRAY_COUNT_EXT:
*params = 0;
break;
+ case GL_EDGE_FLAG_ARRAY:
+ *params = (GLint) ctx->Array.EdgeFlag.Enabled;
+ break;
case GL_EDGE_FLAG_ARRAY_STRIDE:
*params = ctx->Array.EdgeFlag.Stride;
break;