12b8c71998-11-03Marcus Comstedt array funcEV = ({
39073f1999-07-18Marcus Comstedt  "glBegin", "glCullFace",
79424a1999-07-18Marcus Comstedt  "glDepthFunc",
12b8c71998-11-03Marcus Comstedt  "glDisable",
79424a1999-07-18Marcus Comstedt  "glDisableClientState", "glDrawBuffer",
39073f1999-07-18Marcus Comstedt  "glEnable",
79424a1999-07-18Marcus Comstedt  "glEnableClientState",
12b8c71998-11-03Marcus Comstedt  "glFrontFace",
79424a1999-07-18Marcus Comstedt  "glLogicOp",
12b8c71998-11-03Marcus Comstedt  "glMatrixMode",
79424a1999-07-18Marcus Comstedt  "glReadBuffer", "glRenderMode",
39073f1999-07-18Marcus Comstedt  "glShadeModel",
12b8c71998-11-03Marcus Comstedt }); array funcV = ({ "glEnd", "glEndList",
79424a1999-07-18Marcus Comstedt  "glFinish",
12b8c71998-11-03Marcus Comstedt  "glFlush",
79424a1999-07-18Marcus Comstedt  "glInitNames",
39073f1999-07-18Marcus Comstedt  "glLoadIdentity",
79424a1999-07-18Marcus Comstedt  "glPopAttrib", "glPopClientAttrib",
12b8c71998-11-03Marcus Comstedt  "glPopMatrix",
79424a1999-07-18Marcus Comstedt  "glPopName",
39073f1999-07-18Marcus Comstedt  "glPushMatrix",
12b8c71998-11-03Marcus Comstedt }); array func_misc = ({
39073f1999-07-18Marcus Comstedt  ({"glAccum", "VEF"}), ({"glAlphaFunc", "VEF"}), ({"glArrayElement", "VI"}), ({"glBindTexture","VEI"}), ({"glBlendFunc", "VEE"}), ({"glCallList","VI"}), ({"glClear","VB"}), ({"glClearAccum", "V+FFFF"}),
12b8c71998-11-03Marcus Comstedt  ({"glClearColor", "V+FFFF"}),
39073f1999-07-18Marcus Comstedt  ({"glClearDepth", "VD"}), ({"glClearIndex", "VF"}), ({"glClearStencil", "VI"}), ({"glClipPlane", "VE=DDDD"}), ({"glColor", "V+ZZZZ"}), ({"glColorMask", "VOOOO"}), ({"glColorMaterial", "VEE"}), ({"glCopyPixels", "VIIIIE"}), ({"glCopyTexImage1D", "VEIEIIII"}), ({"glCopyTexImage2D", "VEIEIIIII"}), ({"glCopyTexSubImage1D", "VEIIIII"}), ({"glCopyTexSubImage2D", "VEIIIIIII"}), ({"glDeleteLists", "VII"}),
79424a1999-07-18Marcus Comstedt  ({"glDepthMask", "VO"}), ({"glDepthRange", "VDD"}), ({"glDrawArrays", "VEII"}), ({"glDrawPixels", "Vwhfti"}), ({"glEdgeFlag", "VO"}), ({"glEvalCoord", "V+RR"}), ({"glEvalPoint", "V+II"}), ({"glFog","VE@Q"}),
12b8c71998-11-03Marcus Comstedt  ({"glFrustum", "VDDDDDD"}),
79424a1999-07-18Marcus Comstedt  ({"glGenLists", "II"}), ({"glGetError", "E"}),
9141001999-07-25Marcus Comstedt  ({"glGetString", "SE"}),
79424a1999-07-18Marcus Comstedt  ({"glHint", "VEE"}),
9141001999-07-25Marcus Comstedt  ({"glIndex", "VZ"}),
79424a1999-07-18Marcus Comstedt  ({"glIndexMask", "VI"}), ({"glIsEnabled", "OE"}), ({"glIsList", "OI"}), ({"glIsTexture", "OI"}), ({"glLight", "VEE@Q"}), ({"glLightModel", "VE@Q"}), ({"glLineStipple", "VII"}), ({"glLineWidth", "VF"}), ({"glListBase", "VI"}),
66c3f31999-07-24Marcus Comstedt  ({"glLoadMatrix", "V[16R"}),
79424a1999-07-18Marcus Comstedt  ({"glLoadName", "VI"}), ({"glMaterial", "VEE@Q"}),
66c3f31999-07-24Marcus Comstedt  ({"glMultMatrix", "V[16R"}),
79424a1999-07-18Marcus Comstedt  ({"glNewList", "VIE"}), ({"glNormal", "V#ZZZ"}),
005fe31999-07-16Marcus Comstedt  ({"glOrtho", "VDDDDDD"}),
79424a1999-07-18Marcus Comstedt  ({"glPassThrough", "VF"}), ({"glPixelZoom", "VFF"}), ({"glPointSize", "VF"}), ({"glPolygonMode", "VEE"}), ({"glPolygonOffset", "VFF"}), ({"glPushAttrib", "VB"}), ({"glPushClientAttrib", "VB"}), ({"glPushName", "VI"}), ({"glRasterPos", "V+ZZZ"}),
12b8c71998-11-03Marcus Comstedt  ({"glRotate", "V!RRRR"}),
79424a1999-07-18Marcus Comstedt  ({"glScale", "V!RRR"}), ({"glScissor", "VIIII"}), ({"glStencilFunc", "VEII"}), ({"glStencilMask", "VI"}), ({"glStencilOp", "VEEE"}),
1588bf1999-07-17Marcus Comstedt  ({"glTexCoord", "V+Z"}),
79424a1999-07-18Marcus Comstedt  ({"glTexEnv","VEE@Q"}),
1588bf1999-07-17Marcus Comstedt  ({"glTexGen","VEE@Z"}), ({"glTexImage2D","VEIIwhIfti"}),
79424a1999-07-18Marcus Comstedt  ({"glTexParameter","VEE@Q"}), ({"glTexSubImage2D","VEIIIwhfti"}), ({"glTranslate", "V!RRR"}), ({"glVertex","V+ZZZ"}), ({"glViewport", "VIIII"}),
12b8c71998-11-03Marcus Comstedt }); mapping func_cat = ([ "VE":funcEV, "V":funcV, ]);
79424a1999-07-18Marcus Comstedt 
39073f1999-07-18Marcus Comstedt /* Not implemented: glAreTexturesResident glBitmap glCallLists glColorPointer
79424a1999-07-18Marcus Comstedt  glDeleteTextures glDrawElements glEdgeFlagPointer glEvalMesh glFeedbackBuffer glGenTextures glGetClipPlane glGetLight glGetMap glGetMaterial glGetPixelMap glGetPointer glGetPolygonStipple glGetTexEnv glGetTexGen glGetTexImage glGetTexLevelParameter glGetTexParameter glIndexPointer glInterleavedArrays
a72de31999-07-24Marcus Comstedt  glMap1 glMap2
79424a1999-07-18Marcus Comstedt  glMapGrid glNormalPointer glPixelMap
a72de31999-07-24Marcus Comstedt  glPixelTransfer
79424a1999-07-18Marcus Comstedt  glPolygonStipple glPrioritizeTextures glReadPixels glRect glSelectBuffer glTexCoordPointer glTexImage1D glTexSubImage1D glVertexPoint
39073f1999-07-18Marcus Comstedt */