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"}), ({"glHint", "VEE"}), ({"glIndexMask", "VI"}), ({"glIsEnabled", "OE"}), ({"glIsList", "OI"}), ({"glIsTexture", "OI"}), ({"glLight", "VEE@Q"}), ({"glLightModel", "VE@Q"}), ({"glLineStipple", "VII"}), ({"glLineWidth", "VF"}), ({"glListBase", "VI"}), ({"glLoadName", "VI"}), ({"glMaterial", "VEE@Q"}), ({"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 glGet glGetClipPlane glGetLight glGetMap glGetMaterial glGetPixelMap glGetPointer glGetPolygonStipple glGetString glGetTexEnv glGetTexGen glGetTexImage glGetTexLevelParameter glGetTexParameter glIndex glIndexPointer glInterleavedArrays glLoadMatrix glMap glMapGrid glMultMatrix glNormalPointer glPixelMap glPolygonStipple glPrioritizeTextures glReadPixels glRect glSelectBuffer glTexCoordPointer glTexImage1D glTexSubImage1D glVertexPoint glPixelStore glPixelTransfer
39073f1999-07-18Marcus Comstedt  */