477{
480 return ctx->Color.AlphaEnabled;
482 return ctx->Eval.AutoNormal;
484 return ctx->Color.BlendEnabled;
493 return ctx->Light.ColorMaterialEnabled;
495 return ctx->Polygon.CullFlag;
497 return ctx->Depth.Test;
499 return ctx->Color.DitherFlag;
501 return ctx->Fog.Enabled;
503 return ctx->Light.Enabled;
514 return ctx->Line.SmoothFlag;
516 return ctx->Line.StippleFlag;
518 return ctx->Color.IndexLogicOpEnabled;
520 return ctx->Color.ColorLogicOpEnabled;
522 return ctx->Eval.Map1Color4;
524 return ctx->Eval.Map1Index;
526 return ctx->Eval.Map1Normal;
528 return ctx->Eval.Map1TextureCoord1;
530 return ctx->Eval.Map1TextureCoord2;
532 return ctx->Eval.Map1TextureCoord3;
534 return ctx->Eval.Map1TextureCoord4;
536 return ctx->Eval.Map1Vertex3;
538 return ctx->Eval.Map1Vertex4;
540 return ctx->Eval.Map2Color4;
542 return ctx->Eval.Map2Index;
544 return ctx->Eval.Map2Normal;
546 return ctx->Eval.Map2TextureCoord1;
548 return ctx->Eval.Map2TextureCoord2;
550 return ctx->Eval.Map2TextureCoord3;
552 return ctx->Eval.Map2TextureCoord4;
554 return ctx->Eval.Map2Vertex3;
556 return ctx->Eval.Map2Vertex4;
558 return ctx->Transform.Normalize;
560 return ctx->Point.SmoothFlag;
562 return ctx->Polygon.SmoothFlag;
564 return ctx->Polygon.StippleFlag;
566 return ctx->Polygon.OffsetPoint;
568 return ctx->Polygon.OffsetLine;
570
571 return ctx->Polygon.OffsetFill;
573 return ctx->Scissor.Enabled;
575 return ctx->Stencil.Enabled;
588
589
590
591
593 return ctx->Array.VertexEnabled;
595 return ctx->Array.NormalEnabled;
597 return ctx->Array.ColorEnabled;
599 return ctx->Array.IndexEnabled;
601 return ctx->Array.TexCoordEnabled;
603 return ctx->Array.EdgeFlagEnabled;
604 default:
607 }
608}
void gl_error(GLcontext *ctx, GLenum error, const char *s)
#define GL_TEXTURE_COORD_ARRAY
#define GL_POLYGON_STIPPLE
#define GL_POLYGON_OFFSET_LINE
#define GL_MAP1_TEXTURE_COORD_3
#define GL_MAP2_TEXTURE_COORD_2
#define GL_POLYGON_OFFSET_FILL
#define GL_COLOR_LOGIC_OP
#define GL_POLYGON_SMOOTH
#define GL_MAP1_TEXTURE_COORD_2
#define GL_MAP2_TEXTURE_COORD_4
#define GL_INDEX_LOGIC_OP
#define GL_MAP1_TEXTURE_COORD_1
#define GL_COLOR_MATERIAL
#define GL_MAP1_TEXTURE_COORD_4
#define GL_POLYGON_OFFSET_POINT
#define GL_MAP2_TEXTURE_COORD_1
#define GL_EDGE_FLAG_ARRAY
#define GL_MAP2_TEXTURE_COORD_3