summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-09-15 11:43:15 +0800
committerChia-I Wu <olvaffe@gmail.com>2009-09-15 14:17:03 +0800
commita5a8bdfd9b7c08bc8ce9eb46e95066abb1a5a17d (patch)
treed133fb6604e563844cbc237e7d924d4205e3df96
parente2ba90a9cc762cf00a168f0a59d31e7dc52fc42e (diff)
es: Pre-generate ES1 source files.
-rw-r--r--src/mesa/es/glapi/headers-es1/glapi/dispatch.h2587
-rw-r--r--src/mesa/es/glapi/headers-es1/glapi/glapioffsets.h797
-rw-r--r--src/mesa/es/glapi/headers-es1/glapi/glapitable.h554
-rw-r--r--src/mesa/es/glapi/headers-es1/glapi/glapitemp.h4223
-rw-r--r--src/mesa/es/glapi/headers-es1/glapi/glprocs.h2089
-rw-r--r--src/mesa/es/main/api_exec_es1.c7134
-rw-r--r--src/mesa/es/main/get_es1.c2163
7 files changed, 19547 insertions, 0 deletions
diff --git a/src/mesa/es/glapi/headers-es1/glapi/dispatch.h b/src/mesa/es/glapi/headers-es1/glapi/dispatch.h
new file mode 100644
index 0000000000..269a41cd8f
--- /dev/null
+++ b/src/mesa/es/glapi/headers-es1/glapi/dispatch.h
@@ -0,0 +1,2587 @@
+/* DO NOT EDIT - This file generated automatically by gl_table.py (from Mesa) script */
+
+/*
+ * (C) Copyright IBM Corporation 2005
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sub license,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+ * IBM,
+ * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+ * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+#if !defined( _DISPATCH_H_ )
+# define _DISPATCH_H_
+
+
+#include "glapitable.h"
+/**
+ * \file dispatch.h
+ * Macros for handling GL dispatch tables.
+ *
+ * For each known GL function, there are 3 macros in this file. The first
+ * macro is named CALL_FuncName and is used to call that GL function using
+ * the specified dispatch table. The other 2 macros, called GET_FuncName
+ * can SET_FuncName, are used to get and set the dispatch pointer for the
+ * named function in the specified dispatch table.
+ */
+
+#define CALL_by_offset(disp, cast, offset, parameters) \
+ (*(cast (GET_by_offset(disp, offset)))) parameters
+#define GET_by_offset(disp, offset) \
+ (offset >= 0) ? (((_glapi_proc *)(disp))[offset]) : NULL
+#define SET_by_offset(disp, offset, fn) \
+ do { \
+ if ( (offset) < 0 ) { \
+ /* fprintf( stderr, "[%s:%u] SET_by_offset(%p, %d, %s)!\n", */ \
+ /* __func__, __LINE__, disp, offset, # fn); */ \
+ /* abort(); */ \
+ } \
+ else { \
+ ( (_glapi_proc *) (disp) )[offset] = (_glapi_proc) fn; \
+ } \
+ } while(0)
+
+#define CALL_NewList(disp, parameters) (*((disp)->NewList)) parameters
+#define GET_NewList(disp) ((disp)->NewList)
+#define SET_NewList(disp, fn) ((disp)->NewList = fn)
+#define CALL_EndList(disp, parameters) (*((disp)->EndList)) parameters
+#define GET_EndList(disp) ((disp)->EndList)
+#define SET_EndList(disp, fn) ((disp)->EndList = fn)
+#define CALL_CallList(disp, parameters) (*((disp)->CallList)) parameters
+#define GET_CallList(disp) ((disp)->CallList)
+#define SET_CallList(disp, fn) ((disp)->CallList = fn)
+#define CALL_CallLists(disp, parameters) (*((disp)->CallLists)) parameters
+#define GET_CallLists(disp) ((disp)->CallLists)
+#define SET_CallLists(disp, fn) ((disp)->CallLists = fn)
+#define CALL_DeleteLists(disp, parameters) (*((disp)->DeleteLists)) parameters
+#define GET_DeleteLists(disp) ((disp)->DeleteLists)
+#define SET_DeleteLists(disp, fn) ((disp)->DeleteLists = fn)
+#define CALL_GenLists(disp, parameters) (*((disp)->GenLists)) parameters
+#define GET_GenLists(disp) ((disp)->GenLists)
+#define SET_GenLists(disp, fn) ((disp)->GenLists = fn)
+#define CALL_ListBase(disp, parameters) (*((disp)->ListBase)) parameters
+#define GET_ListBase(disp) ((disp)->ListBase)
+#define SET_ListBase(disp, fn) ((disp)->ListBase = fn)
+#define CALL_Begin(disp, parameters) (*((disp)->Begin)) parameters
+#define GET_Begin(disp) ((disp)->Begin)
+#define SET_Begin(disp, fn) ((disp)->Begin = fn)
+#define CALL_Bitmap(disp, parameters) (*((disp)->Bitmap)) parameters
+#define GET_Bitmap(disp) ((disp)->Bitmap)
+#define SET_Bitmap(disp, fn) ((disp)->Bitmap = fn)
+#define CALL_Color3b(disp, parameters) (*((disp)->Color3b)) parameters
+#define GET_Color3b(disp) ((disp)->Color3b)
+#define SET_Color3b(disp, fn) ((disp)->Color3b = fn)
+#define CALL_Color3bv(disp, parameters) (*((disp)->Color3bv)) parameters
+#define GET_Color3bv(disp) ((disp)->Color3bv)
+#define SET_Color3bv(disp, fn) ((disp)->Color3bv = fn)
+#define CALL_Color3d(disp, parameters) (*((disp)->Color3d)) parameters
+#define GET_Color3d(disp) ((disp)->Color3d)
+#define SET_Color3d(disp, fn) ((disp)->Color3d = fn)
+#define CALL_Color3dv(disp, parameters) (*((disp)->Color3dv)) parameters
+#define GET_Color3dv(disp) ((disp)->Color3dv)
+#define SET_Color3dv(disp, fn) ((disp)->Color3dv = fn)
+#define CALL_Color3f(disp, parameters) (*((disp)->Color3f)) parameters
+#define GET_Color3f(disp) ((disp)->Color3f)
+#define SET_Color3f(disp, fn) ((disp)->Color3f = fn)
+#define CALL_Color3fv(disp, parameters) (*((disp)->Color3fv)) parameters
+#define GET_Color3fv(disp) ((disp)->Color3fv)
+#define SET_Color3fv(disp, fn) ((disp)->Color3fv = fn)
+#define CALL_Color3i(disp, parameters) (*((disp)->Color3i)) parameters
+#define GET_Color3i(disp) ((disp)->Color3i)
+#define SET_Color3i(disp, fn) ((disp)->Color3i = fn)
+#define CALL_Color3iv(disp, parameters) (*((disp)->Color3iv)) parameters
+#define GET_Color3iv(disp) ((disp)->Color3iv)
+#define SET_Color3iv(disp, fn) ((disp)->Color3iv = fn)
+#define CALL_Color3s(disp, parameters) (*((disp)->Color3s)) parameters
+#define GET_Color3s(disp) ((disp)->Color3s)
+#define SET_Color3s(disp, fn) ((disp)->Color3s = fn)
+#define CALL_Color3sv(disp, parameters) (*((disp)->Color3sv)) parameters
+#define GET_Color3sv(disp) ((disp)->Color3sv)
+#define SET_Color3sv(disp, fn) ((disp)->Color3sv = fn)
+#define CALL_Color3ub(disp, parameters) (*((disp)->Color3ub)) parameters
+#define GET_Color3ub(disp) ((disp)->Color3ub)
+#define SET_Color3ub(disp, fn) ((disp)->Color3ub = fn)
+#define CALL_Color3ubv(disp, parameters) (*((disp)->Color3ubv)) parameters
+#define GET_Color3ubv(disp) ((disp)->Color3ubv)
+#define SET_Color3ubv(disp, fn) ((disp)->Color3ubv = fn)
+#define CALL_Color3ui(disp, parameters) (*((disp)->Color3ui)) parameters
+#define GET_Color3ui(disp) ((disp)->Color3ui)
+#define SET_Color3ui(disp, fn) ((disp)->Color3ui = fn)
+#define CALL_Color3uiv(disp, parameters) (*((disp)->Color3uiv)) parameters
+#define GET_Color3uiv(disp) ((disp)->Color3uiv)
+#define SET_Color3uiv(disp, fn) ((disp)->Color3uiv = fn)
+#define CALL_Color3us(disp, parameters) (*((disp)->Color3us)) parameters
+#define GET_Color3us(disp) ((disp)->Color3us)
+#define SET_Color3us(disp, fn) ((disp)->Color3us = fn)
+#define CALL_Color3usv(disp, parameters) (*((disp)->Color3usv)) parameters
+#define GET_Color3usv(disp) ((disp)->Color3usv)
+#define SET_Color3usv(disp, fn) ((disp)->Color3usv = fn)
+#define CALL_Color4b(disp, parameters) (*((disp)->Color4b)) parameters
+#define GET_Color4b(disp) ((disp)->Color4b)
+#define SET_Color4b(disp, fn) ((disp)->Color4b = fn)
+#define CALL_Color4bv(disp, parameters) (*((disp)->Color4bv)) parameters
+#define GET_Color4bv(disp) ((disp)->Color4bv)
+#define SET_Color4bv(disp, fn) ((disp)->Color4bv = fn)
+#define CALL_Color4d(disp, parameters) (*((disp)->Color4d)) parameters
+#define GET_Color4d(disp) ((disp)->Color4d)
+#define SET_Color4d(disp, fn) ((disp)->Color4d = fn)
+#define CALL_Color4dv(disp, parameters) (*((disp)->Color4dv)) parameters
+#define GET_Color4dv(disp) ((disp)->Color4dv)
+#define SET_Color4dv(disp, fn) ((disp)->Color4dv = fn)
+#define CALL_Color4fv(disp, parameters) (*((disp)->Color4fv)) parameters
+#define GET_Color4fv(disp) ((disp)->Color4fv)
+#define SET_Color4fv(disp, fn) ((disp)->Color4fv = fn)
+#define CALL_Color4i(disp, parameters) (*((disp)->Color4i)) parameters
+#define GET_Color4i(disp) ((disp)->Color4i)
+#define SET_Color4i(disp, fn) ((disp)->Color4i = fn)
+#define CALL_Color4iv(disp, parameters) (*((disp)->Color4iv)) parameters
+#define GET_Color4iv(disp) ((disp)->Color4iv)
+#define SET_Color4iv(disp, fn) ((disp)->Color4iv = fn)
+#define CALL_Color4s(disp, parameters) (*((disp)->Color4s)) parameters
+#define GET_Color4s(disp) ((disp)->Color4s)
+#define SET_Color4s(disp, fn) ((disp)->Color4s = fn)
+#define CALL_Color4sv(disp, parameters) (*((disp)->Color4sv)) parameters
+#define GET_Color4sv(disp) ((disp)->Color4sv)
+#define SET_Color4sv(disp, fn) ((disp)->Color4sv = fn)
+#define CALL_Color4ubv(disp, parameters) (*((disp)->Color4ubv)) parameters
+#define GET_Color4ubv(disp) ((disp)->Color4ubv)
+#define SET_Color4ubv(disp, fn) ((disp)->Color4ubv = fn)
+#define CALL_Color4ui(disp, parameters) (*((disp)->Color4ui)) parameters
+#define GET_Color4ui(disp) ((disp)->Color4ui)
+#define SET_Color4ui(disp, fn) ((disp)->Color4ui = fn)
+#define CALL_Color4uiv(disp, parameters) (*((disp)->Color4uiv)) parameters
+#define GET_Color4uiv(disp) ((disp)->Color4uiv)
+#define SET_Color4uiv(disp, fn) ((disp)->Color4uiv = fn)
+#define CALL_Color4us(disp, parameters) (*((disp)->Color4us)) parameters
+#define GET_Color4us(disp) ((disp)->Color4us)
+#define SET_Color4us(disp, fn) ((disp)->Color4us = fn)
+#define CALL_Color4usv(disp, parameters) (*((disp)->Color4usv)) parameters
+#define GET_Color4usv(disp) ((disp)->Color4usv)
+#define SET_Color4usv(disp, fn) ((disp)->Color4usv = fn)
+#define CALL_EdgeFlag(disp, parameters) (*((disp)->EdgeFlag)) parameters
+#define GET_EdgeFlag(disp) ((disp)->EdgeFlag)
+#define SET_EdgeFlag(disp, fn) ((disp)->EdgeFlag = fn)
+#define CALL_EdgeFlagv(disp, parameters) (*((disp)->EdgeFlagv)) parameters
+#define GET_EdgeFlagv(disp) ((disp)->EdgeFlagv)
+#define SET_EdgeFlagv(disp, fn) ((disp)->EdgeFlagv = fn)
+#define CALL_End(disp, parameters) (*((disp)->End)) parameters
+#define GET_End(disp) ((disp)->End)
+#define SET_End(disp, fn) ((disp)->End = fn)
+#define CALL_Indexd(disp, parameters) (*((disp)->Indexd)) parameters
+#define GET_Indexd(disp) ((disp)->Indexd)
+#define SET_Indexd(disp, fn) ((disp)->Indexd = fn)
+#define CALL_Indexdv(disp, parameters) (*((disp)->Indexdv)) parameters
+#define GET_Indexdv(disp) ((disp)->Indexdv)
+#define SET_Indexdv(disp, fn) ((disp)->Indexdv = fn)
+#define CALL_Indexf(disp, parameters) (*((disp)->Indexf)) parameters
+#define GET_Indexf(disp) ((disp)->Indexf)
+#define SET_Indexf(disp, fn) ((disp)->Indexf = fn)
+#define CALL_Indexfv(disp, parameters) (*((disp)->Indexfv)) parameters
+#define GET_Indexfv(disp) ((disp)->Indexfv)
+#define SET_Indexfv(disp, fn) ((disp)->Indexfv = fn)
+#define CALL_Indexi(disp, parameters) (*((disp)->Indexi)) parameters
+#define GET_Indexi(disp) ((disp)->Indexi)
+#define SET_Indexi(disp, fn) ((disp)->Indexi = fn)
+#define CALL_Indexiv(disp, parameters) (*((disp)->Indexiv)) parameters
+#define GET_Indexiv(disp) ((disp)->Indexiv)
+#define SET_Indexiv(disp, fn) ((disp)->Indexiv = fn)
+#define CALL_Indexs(disp, parameters) (*((disp)->Indexs)) parameters
+#define GET_Indexs(disp) ((disp)->Indexs)
+#define SET_Indexs(disp, fn) ((disp)->Indexs = fn)
+#define CALL_Indexsv(disp, parameters) (*((disp)->Indexsv)) parameters
+#define GET_Indexsv(disp) ((disp)->Indexsv)
+#define SET_Indexsv(disp, fn) ((disp)->Indexsv = fn)
+#define CALL_Normal3b(disp, parameters) (*((disp)->Normal3b)) parameters
+#define GET_Normal3b(disp) ((disp)->Normal3b)
+#define SET_Normal3b(disp, fn) ((disp)->Normal3b = fn)
+#define CALL_Normal3bv(disp, parameters) (*((disp)->Normal3bv)) parameters
+#define GET_Normal3bv(disp) ((disp)->Normal3bv)
+#define SET_Normal3bv(disp, fn) ((disp)->Normal3bv = fn)
+#define CALL_Normal3d(disp, parameters) (*((disp)->Normal3d)) parameters
+#define GET_Normal3d(disp) ((disp)->Normal3d)
+#define SET_Normal3d(disp, fn) ((disp)->Normal3d = fn)
+#define CALL_Normal3dv(disp, parameters) (*((disp)->Normal3dv)) parameters
+#define GET_Normal3dv(disp) ((disp)->Normal3dv)
+#define SET_Normal3dv(disp, fn) ((disp)->Normal3dv = fn)
+#define CALL_Normal3fv(disp, parameters) (*((disp)->Normal3fv)) parameters
+#define GET_Normal3fv(disp) ((disp)->Normal3fv)
+#define SET_Normal3fv(disp, fn) ((disp)->Normal3fv = fn)
+#define CALL_Normal3i(disp, parameters) (*((disp)->Normal3i)) parameters
+#define GET_Normal3i(disp) ((disp)->Normal3i)
+#define SET_Normal3i(disp, fn) ((disp)->Normal3i = fn)
+#define CALL_Normal3iv(disp, parameters) (*((disp)->Normal3iv)) parameters
+#define GET_Normal3iv(disp) ((disp)->Normal3iv)
+#define SET_Normal3iv(disp, fn) ((disp)->Normal3iv = fn)
+#define CALL_Normal3s(disp, parameters) (*((disp)->Normal3s)) parameters
+#define GET_Normal3s(disp) ((disp)->Normal3s)
+#define SET_Normal3s(disp, fn) ((disp)->Normal3s = fn)
+#define CALL_Normal3sv(disp, parameters) (*((disp)->Normal3sv)) parameters
+#define GET_Normal3sv(disp) ((disp)->Normal3sv)
+#define SET_Normal3sv(disp, fn) ((disp)->Normal3sv = fn)
+#define CALL_RasterPos2d(disp, parameters) (*((disp)->RasterPos2d)) parameters
+#define GET_RasterPos2d(disp) ((disp)->RasterPos2d)
+#define SET_RasterPos2d(disp, fn) ((disp)->RasterPos2d = fn)
+#define CALL_RasterPos2dv(disp, parameters) (*((disp)->RasterPos2dv)) parameters
+#define GET_RasterPos2dv(disp) ((disp)->RasterPos2dv)
+#define SET_RasterPos2dv(disp, fn) ((disp)->RasterPos2dv = fn)
+#define CALL_RasterPos2f(disp, parameters) (*((disp)->RasterPos2f)) parameters
+#define GET_RasterPos2f(disp) ((disp)->RasterPos2f)
+#define SET_RasterPos2f(disp, fn) ((disp)->RasterPos2f = fn)
+#define CALL_RasterPos2fv(disp, parameters) (*((disp)->RasterPos2fv)) parameters
+#define GET_RasterPos2fv(disp) ((disp)->RasterPos2fv)
+#define SET_RasterPos2fv(disp, fn) ((disp)->RasterPos2fv = fn)
+#define CALL_RasterPos2i(disp, parameters) (*((disp)->RasterPos2i)) parameters
+#define GET_RasterPos2i(disp) ((disp)->RasterPos2i)
+#define SET_RasterPos2i(disp, fn) ((disp)->RasterPos2i = fn)
+#define CALL_RasterPos2iv(disp, parameters) (*((disp)->RasterPos2iv)) parameters
+#define GET_RasterPos2iv(disp) ((disp)->RasterPos2iv)
+#define SET_RasterPos2iv(disp, fn) ((disp)->RasterPos2iv = fn)
+#define CALL_RasterPos2s(disp, parameters) (*((disp)->RasterPos2s)) parameters
+#define GET_RasterPos2s(disp) ((disp)->RasterPos2s)
+#define SET_RasterPos2s(disp, fn) ((disp)->RasterPos2s = fn)
+#define CALL_RasterPos2sv(disp, parameters) (*((disp)->RasterPos2sv)) parameters
+#define GET_RasterPos2sv(disp) ((disp)->RasterPos2sv)
+#define SET_RasterPos2sv(disp, fn) ((disp)->RasterPos2sv = fn)
+#define CALL_RasterPos3d(disp, parameters) (*((disp)->RasterPos3d)) parameters
+#define GET_RasterPos3d(disp) ((disp)->RasterPos3d)
+#define SET_RasterPos3d(disp, fn) ((disp)->RasterPos3d = fn)
+#define CALL_RasterPos3dv(disp, parameters) (*((disp)->RasterPos3dv)) parameters
+#define GET_RasterPos3dv(disp) ((disp)->RasterPos3dv)
+#define SET_RasterPos3dv(disp, fn) ((disp)->RasterPos3dv = fn)
+#define CALL_RasterPos3f(disp, parameters) (*((disp)->RasterPos3f)) parameters
+#define GET_RasterPos3f(disp) ((disp)->RasterPos3f)
+#define SET_RasterPos3f(disp, fn) ((disp)->RasterPos3f = fn)
+#define CALL_RasterPos3fv(disp, parameters) (*((disp)->RasterPos3fv)) parameters
+#define GET_RasterPos3fv(disp) ((disp)->RasterPos3fv)
+#define SET_RasterPos3fv(disp, fn) ((disp)->RasterPos3fv = fn)
+#define CALL_RasterPos3i(disp, parameters) (*((disp)->RasterPos3i)) parameters
+#define GET_RasterPos3i(disp) ((disp)->RasterPos3i)
+#define SET_RasterPos3i(disp, fn) ((disp)->RasterPos3i = fn)
+#define CALL_RasterPos3iv(disp, parameters) (*((disp)->RasterPos3iv)) parameters
+#define GET_RasterPos3iv(disp) ((disp)->RasterPos3iv)
+#define SET_RasterPos3iv(disp, fn) ((disp)->RasterPos3iv = fn)
+#define CALL_RasterPos3s(disp, parameters) (*((disp)->RasterPos3s)) parameters
+#define GET_RasterPos3s(disp) ((disp)->RasterPos3s)
+#define SET_RasterPos3s(disp, fn) ((disp)->RasterPos3s = fn)
+#define CALL_RasterPos3sv(disp, parameters) (*((disp)->RasterPos3sv)) parameters
+#define GET_RasterPos3sv(disp) ((disp)->RasterPos3sv)
+#define SET_RasterPos3sv(disp, fn) ((disp)->RasterPos3sv = fn)
+#define CALL_RasterPos4d(disp, parameters) (*((disp)->RasterPos4d)) parameters
+#define GET_RasterPos4d(disp) ((disp)->RasterPos4d)
+#define SET_RasterPos4d(disp, fn) ((disp)->RasterPos4d = fn)
+#define CALL_RasterPos4dv(disp, parameters) (*((disp)->RasterPos4dv)) parameters
+#define GET_RasterPos4dv(disp) ((disp)->RasterPos4dv)
+#define SET_RasterPos4dv(disp, fn) ((disp)->RasterPos4dv = fn)
+#define CALL_RasterPos4f(disp, parameters) (*((disp)->RasterPos4f)) parameters
+#define GET_RasterPos4f(disp) ((disp)->RasterPos4f)
+#define SET_RasterPos4f(disp, fn) ((disp)->RasterPos4f = fn)
+#define CALL_RasterPos4fv(disp, parameters) (*((disp)->RasterPos4fv)) parameters
+#define GET_RasterPos4fv(disp) ((disp)->RasterPos4fv)
+#define SET_RasterPos4fv(disp, fn) ((disp)->RasterPos4fv = fn)
+#define CALL_RasterPos4i(disp, parameters) (*((disp)->RasterPos4i)) parameters
+#define GET_RasterPos4i(disp) ((disp)->RasterPos4i)
+#define SET_RasterPos4i(disp, fn) ((disp)->RasterPos4i = fn)
+#define CALL_RasterPos4iv(disp, parameters) (*((disp)->RasterPos4iv)) parameters
+#define GET_RasterPos4iv(disp) ((disp)->RasterPos4iv)
+#define SET_RasterPos4iv(disp, fn) ((disp)->RasterPos4iv = fn)
+#define CALL_RasterPos4s(disp, parameters) (*((disp)->RasterPos4s)) parameters
+#define GET_RasterPos4s(disp) ((disp)->RasterPos4s)
+#define SET_RasterPos4s(disp, fn) ((disp)->RasterPos4s = fn)
+#define CALL_RasterPos4sv(disp, parameters) (*((disp)->RasterPos4sv)) parameters
+#define GET_RasterPos4sv(disp) ((disp)->RasterPos4sv)
+#define SET_RasterPos4sv(disp, fn) ((disp)->RasterPos4sv = fn)
+#define CALL_Rectd(disp, parameters) (*((disp)->Rectd)) parameters
+#define GET_Rectd(disp) ((disp)->Rectd)
+#define SET_Rectd(disp, fn) ((disp)->Rectd = fn)
+#define CALL_Rectdv(disp, parameters) (*((disp)->Rectdv)) parameters
+#define GET_Rectdv(disp) ((disp)->Rectdv)
+#define SET_Rectdv(disp, fn) ((disp)->Rectdv = fn)
+#define CALL_Rectf(disp, parameters) (*((disp)->Rectf)) parameters
+#define GET_Rectf(disp) ((disp)->Rectf)
+#define SET_Rectf(disp, fn) ((disp)->Rectf = fn)
+#define CALL_Rectfv(disp, parameters) (*((disp)->Rectfv)) parameters
+#define GET_Rectfv(disp) ((disp)->Rectfv)
+#define SET_Rectfv(disp, fn) ((disp)->Rectfv = fn)
+#define CALL_Recti(disp, parameters) (*((disp)->Recti)) parameters
+#define GET_Recti(disp) ((disp)->Recti)
+#define SET_Recti(disp, fn) ((disp)->Recti = fn)
+#define CALL_Rectiv(disp, parameters) (*((disp)->Rectiv)) parameters
+#define GET_Rectiv(disp) ((disp)->Rectiv)
+#define SET_Rectiv(disp, fn) ((disp)->Rectiv = fn)
+#define CALL_Rects(disp, parameters) (*((disp)->Rects)) parameters
+#define GET_Rects(disp) ((disp)->Rects)
+#define SET_Rects(disp, fn) ((disp)->Rects = fn)
+#define CALL_Rectsv(disp, parameters) (*((disp)->Rectsv)) parameters
+#define GET_Rectsv(disp) ((disp)->Rectsv)
+#define SET_Rectsv(disp, fn) ((disp)->Rectsv = fn)
+#define CALL_TexCoord1d(disp, parameters) (*((disp)->TexCoord1d)) parameters
+#define GET_TexCoord1d(disp) ((disp)->TexCoord1d)
+#define SET_TexCoord1d(disp, fn) ((disp)->TexCoord1d = fn)
+#define CALL_TexCoord1dv(disp, parameters) (*((disp)->TexCoord1dv)) parameters
+#define GET_TexCoord1dv(disp) ((disp)->TexCoord1dv)
+#define SET_TexCoord1dv(disp, fn) ((disp)->TexCoord1dv = fn)
+#define CALL_TexCoord1f(disp, parameters) (*((disp)->TexCoord1f)) parameters
+#define GET_TexCoord1f(disp) ((disp)->TexCoord1f)
+#define SET_TexCoord1f(disp, fn) ((disp)->TexCoord1f = fn)
+#define CALL_TexCoord1fv(disp, parameters) (*((disp)->TexCoord1fv)) parameters
+#define GET_TexCoord1fv(disp) ((disp)->TexCoord1fv)
+#define SET_TexCoord1fv(disp, fn) ((disp)->TexCoord1fv = fn)
+#define CALL_TexCoord1i(disp, parameters) (*((disp)->TexCoord1i)) parameters
+#define GET_TexCoord1i(disp) ((disp)->TexCoord1i)
+#define SET_TexCoord1i(disp, fn) ((disp)->TexCoord1i = fn)
+#define CALL_TexCoord1iv(disp, parameters) (*((disp)->TexCoord1iv)) parameters
+#define GET_TexCoord1iv(disp) ((disp)->TexCoord1iv)
+#define SET_TexCoord1iv(disp, fn) ((disp)->TexCoord1iv = fn)
+#define CALL_TexCoord1s(disp, parameters) (*((disp)->TexCoord1s)) parameters
+#define GET_TexCoord1s(disp) ((disp)->TexCoord1s)
+#define SET_TexCoord1s(disp, fn) ((disp)->TexCoord1s = fn)
+#define CALL_TexCoord1sv(disp, parameters) (*((disp)->TexCoord1sv)) parameters
+#define GET_TexCoord1sv(disp) ((disp)->TexCoord1sv)
+#define SET_TexCoord1sv(disp, fn) ((disp)->TexCoord1sv = fn)
+#define CALL_TexCoord2d(disp, parameters) (*((disp)->TexCoord2d)) parameters
+#define GET_TexCoord2d(disp) ((disp)->TexCoord2d)
+#define SET_TexCoord2d(disp, fn) ((disp)->TexCoord2d = fn)
+#define CALL_TexCoord2dv(disp, parameters) (*((disp)->TexCoord2dv)) parameters
+#define GET_TexCoord2dv(disp) ((disp)->TexCoord2dv)
+#define SET_TexCoord2dv(disp, fn) ((disp)->TexCoord2dv = fn)
+#define CALL_TexCoord2f(disp, parameters) (*((disp)->TexCoord2f)) parameters
+#define GET_TexCoord2f(disp) ((disp)->TexCoord2f)
+#define SET_TexCoord2f(disp, fn) ((disp)->TexCoord2f = fn)
+#define CALL_TexCoord2fv(disp, parameters) (*((disp)->TexCoord2fv)) parameters
+#define GET_TexCoord2fv(disp) ((disp)->TexCoord2fv)
+#define SET_TexCoord2fv(disp, fn) ((disp)->TexCoord2fv = fn)
+#define CALL_TexCoord2i(disp, parameters) (*((disp)->TexCoord2i)) parameters
+#define GET_TexCoord2i(disp) ((disp)->TexCoord2i)
+#define SET_TexCoord2i(disp, fn) ((disp)->TexCoord2i = fn)
+#define CALL_TexCoord2iv(disp, parameters) (*((disp)->TexCoord2iv)) parameters
+#define GET_TexCoord2iv(disp) ((disp)->TexCoord2iv)
+#define SET_TexCoord2iv(disp, fn) ((disp)->TexCoord2iv = fn)
+#define CALL_TexCoord2s(disp, parameters) (*((disp)->TexCoord2s)) parameters
+#define GET_TexCoord2s(disp) ((disp)->TexCoord2s)
+#define SET_TexCoord2s(disp, fn) ((disp)->TexCoord2s = fn)
+#define CALL_TexCoord2sv(disp, parameters) (*((disp)->TexCoord2sv)) parameters
+#define GET_TexCoord2sv(disp) ((disp)->TexCoord2sv)
+#define SET_TexCoord2sv(disp, fn) ((disp)->TexCoord2sv = fn)
+#define CALL_TexCoord3d(disp, parameters) (*((disp)->TexCoord3d)) parameters
+#define GET_TexCoord3d(disp) ((disp)->TexCoord3d)
+#define SET_TexCoord3d(disp, fn) ((disp)->TexCoord3d = fn)
+#define CALL_TexCoord3dv(disp, parameters) (*((disp)->TexCoord3dv)) parameters
+#define GET_TexCoord3dv(disp) ((disp)->TexCoord3dv)
+#define SET_TexCoord3dv(disp, fn) ((disp)->TexCoord3dv = fn)
+#define CALL_TexCoord3f(disp, parameters) (*((disp)->TexCoord3f)) parameters
+#define GET_TexCoord3f(disp) ((disp)->TexCoord3f)
+#define SET_TexCoord3f(disp, fn) ((disp)->TexCoord3f = fn)
+#define CALL_TexCoord3fv(disp, parameters) (*((disp)->TexCoord3fv)) parameters
+#define GET_TexCoord3fv(disp) ((disp)->TexCoord3fv)
+#define SET_TexCoord3fv(disp, fn) ((disp)->TexCoord3fv = fn)
+#define CALL_TexCoord3i(disp, parameters) (*((disp)->TexCoord3i)) parameters
+#define GET_TexCoord3i(disp) ((disp)->TexCoord3i)
+#define SET_TexCoord3i(disp, fn) ((disp)->TexCoord3i = fn)
+#define CALL_TexCoord3iv(disp, parameters) (*((disp)->TexCoord3iv)) parameters
+#define GET_TexCoord3iv(disp) ((disp)->TexCoord3iv)
+#define SET_TexCoord3iv(disp, fn) ((disp)->TexCoord3iv = fn)
+#define CALL_TexCoord3s(disp, parameters) (*((disp)->TexCoord3s)) parameters
+#define GET_TexCoord3s(disp) ((disp)->TexCoord3s)
+#define SET_TexCoord3s(disp, fn) ((disp)->TexCoord3s = fn)
+#define CALL_TexCoord3sv(disp, parameters) (*((disp)->TexCoord3sv)) parameters
+#define GET_TexCoord3sv(disp) ((disp)->TexCoord3sv)
+#define SET_TexCoord3sv(disp, fn) ((disp)->TexCoord3sv = fn)
+#define CALL_TexCoord4d(disp, parameters) (*((disp)->TexCoord4d)) parameters
+#define GET_TexCoord4d(disp) ((disp)->TexCoord4d)
+#define SET_TexCoord4d(disp, fn) ((disp)->TexCoord4d = fn)
+#define CALL_TexCoord4dv(disp, parameters) (*((disp)->TexCoord4dv)) parameters
+#define GET_TexCoord4dv(disp) ((disp)->TexCoord4dv)
+#define SET_TexCoord4dv(disp, fn) ((disp)->TexCoord4dv = fn)
+#define CALL_TexCoord4f(disp, parameters) (*((disp)->TexCoord4f)) parameters
+#define GET_TexCoord4f(disp) ((disp)->TexCoord4f)
+#define SET_TexCoord4f(disp, fn) ((disp)->TexCoord4f = fn)
+#define CALL_TexCoord4fv(disp, parameters) (*((disp)->TexCoord4fv)) parameters
+#define GET_TexCoord4fv(disp) ((disp)->TexCoord4fv)
+#define SET_TexCoord4fv(disp, fn) ((disp)->TexCoord4fv = fn)
+#define CALL_TexCoord4i(disp, parameters) (*((disp)->TexCoord4i)) parameters
+#define GET_TexCoord4i(disp) ((disp)->TexCoord4i)
+#define SET_TexCoord4i(disp, fn) ((disp)->TexCoord4i = fn)
+#define CALL_TexCoord4iv(disp, parameters) (*((disp)->TexCoord4iv)) parameters
+#define GET_TexCoord4iv(disp) ((disp)->TexCoord4iv)
+#define SET_TexCoord4iv(disp, fn) ((disp)->TexCoord4iv = fn)
+#define CALL_TexCoord4s(disp, parameters) (*((disp)->TexCoord4s)) parameters
+#define GET_TexCoord4s(disp) ((disp)->TexCoord4s)
+#define SET_TexCoord4s(disp, fn) ((disp)->TexCoord4s = fn)
+#define CALL_TexCoord4sv(disp, parameters) (*((disp)->TexCoord4sv)) parameters
+#define GET_TexCoord4sv(disp) ((disp)->TexCoord4sv)
+#define SET_TexCoord4sv(disp, fn) ((disp)->TexCoord4sv = fn)
+#define CALL_Vertex2d(disp, parameters) (*((disp)->Vertex2d)) parameters
+#define GET_Vertex2d(disp) ((disp)->Vertex2d)
+#define SET_Vertex2d(disp, fn) ((disp)->Vertex2d = fn)
+#define CALL_Vertex2dv(disp, parameters) (*((disp)->Vertex2dv)) parameters
+#define GET_Vertex2dv(disp) ((disp)->Vertex2dv)
+#define SET_Vertex2dv(disp, fn) ((disp)->Vertex2dv = fn)
+#define CALL_Vertex2f(disp, parameters) (*((disp)->Vertex2f)) parameters
+#define GET_Vertex2f(disp) ((disp)->Vertex2f)
+#define SET_Vertex2f(disp, fn) ((disp)->Vertex2f = fn)
+#define CALL_Vertex2fv(disp, parameters) (*((disp)->Vertex2fv)) parameters
+#define GET_Vertex2fv(disp) ((disp)->Vertex2fv)
+#define SET_Vertex2fv(disp, fn) ((disp)->Vertex2fv = fn)
+#define CALL_Vertex2i(disp, parameters) (*((disp)->Vertex2i)) parameters
+#define GET_Vertex2i(disp) ((disp)->Vertex2i)
+#define SET_Vertex2i(disp, fn) ((disp)->Vertex2i = fn)
+#define CALL_Vertex2iv(disp, parameters) (*((disp)->Vertex2iv)) parameters
+#define GET_Vertex2iv(disp) ((disp)->Vertex2iv)
+#define SET_Vertex2iv(disp, fn) ((disp)->Vertex2iv = fn)
+#define CALL_Vertex2s(disp, parameters) (*((disp)->Vertex2s)) parameters
+#define GET_Vertex2s(disp) ((disp)->Vertex2s)
+#define SET_Vertex2s(disp, fn) ((disp)->Vertex2s = fn)
+#define CALL_Vertex2sv(disp, parameters) (*((disp)->Vertex2sv)) parameters
+#define GET_Vertex2sv(disp) ((disp)->Vertex2sv)
+#define SET_Vertex2sv(disp, fn) ((disp)->Vertex2sv = fn)
+#define CALL_Vertex3d(disp, parameters) (*((disp)->Vertex3d)) parameters
+#define GET_Vertex3d(disp) ((disp)->Vertex3d)
+#define SET_Vertex3d(disp, fn) ((disp)->Vertex3d = fn)
+#define CALL_Vertex3dv(disp, parameters) (*((disp)->Vertex3dv)) parameters
+#define GET_Vertex3dv(disp) ((disp)->Vertex3dv)
+#define SET_Vertex3dv(disp, fn) ((disp)->Vertex3dv = fn)
+#define CALL_Vertex3f(disp, parameters) (*((disp)->Vertex3f)) parameters
+#define GET_Vertex3f(disp) ((disp)->Vertex3f)
+#define SET_Vertex3f(disp, fn) ((disp)->Vertex3f = fn)
+#define CALL_Vertex3fv(disp, parameters) (*((disp)->Vertex3fv)) parameters
+#define GET_Vertex3fv(disp) ((disp)->Vertex3fv)
+#define SET_Vertex3fv(disp, fn) ((disp)->Vertex3fv = fn)
+#define CALL_Vertex3i(disp, parameters) (*((disp)->Vertex3i)) parameters
+#define GET_Vertex3i(disp) ((disp)->Vertex3i)
+#define SET_Vertex3i(disp, fn) ((disp)->Vertex3i = fn)
+#define CALL_Vertex3iv(disp, parameters) (*((disp)->Vertex3iv)) parameters
+#define GET_Vertex3iv(disp) ((disp)->Vertex3iv)
+#define SET_Vertex3iv(disp, fn) ((disp)->Vertex3iv = fn)
+#define CALL_Vertex3s(disp, parameters) (*((disp)->Vertex3s)) parameters
+#define GET_Vertex3s(disp) ((disp)->Vertex3s)
+#define SET_Vertex3s(disp, fn) ((disp)->Vertex3s = fn)
+#define CALL_Vertex3sv(disp, parameters) (*((disp)->Vertex3sv)) parameters
+#define GET_Vertex3sv(disp) ((disp)->Vertex3sv)
+#define SET_Vertex3sv(disp, fn) ((disp)->Vertex3sv = fn)
+#define CALL_Vertex4d(disp, parameters) (*((disp)->Vertex4d)) parameters
+#define GET_Vertex4d(disp) ((disp)->Vertex4d)
+#define SET_Vertex4d(disp, fn) ((disp)->Vertex4d = fn)
+#define CALL_Vertex4dv(disp, parameters) (*((disp)->Vertex4dv)) parameters
+#define GET_Vertex4dv(disp) ((disp)->Vertex4dv)
+#define SET_Vertex4dv(disp, fn) ((disp)->Vertex4dv = fn)
+#define CALL_Vertex4f(disp, parameters) (*((disp)->Vertex4f)) parameters
+#define GET_Vertex4f(disp) ((disp)->Vertex4f)
+#define SET_Vertex4f(disp, fn) ((disp)->Vertex4f = fn)
+#define CALL_Vertex4fv(disp, parameters) (*((disp)->Vertex4fv)) parameters
+#define GET_Vertex4fv(disp) ((disp)->Vertex4fv)
+#define SET_Vertex4fv(disp, fn) ((disp)->Vertex4fv = fn)
+#define CALL_Vertex4i(disp, parameters) (*((disp)->Vertex4i)) parameters
+#define GET_Vertex4i(disp) ((disp)->Vertex4i)
+#define SET_Vertex4i(disp, fn) ((disp)->Vertex4i = fn)
+#define CALL_Vertex4iv(disp, parameters) (*((disp)->Vertex4iv)) parameters
+#define GET_Vertex4iv(disp) ((disp)->Vertex4iv)
+#define SET_Vertex4iv(disp, fn) ((disp)->Vertex4iv = fn)
+#define CALL_Vertex4s(disp, parameters) (*((disp)->Vertex4s)) parameters
+#define GET_Vertex4s(disp) ((disp)->Vertex4s)
+#define SET_Vertex4s(disp, fn) ((disp)->Vertex4s = fn)
+#define CALL_Vertex4sv(disp, parameters) (*((disp)->Vertex4sv)) parameters
+#define GET_Vertex4sv(disp) ((disp)->Vertex4sv)
+#define SET_Vertex4sv(disp, fn) ((disp)->Vertex4sv = fn)
+#define CALL_ClipPlane(disp, parameters) (*((disp)->ClipPlane)) parameters
+#define GET_ClipPlane(disp) ((disp)->ClipPlane)
+#define SET_ClipPlane(disp, fn) ((disp)->ClipPlane = fn)
+#define CALL_ColorMaterial(disp, parameters) (*((disp)->ColorMaterial)) parameters
+#define GET_ColorMaterial(disp) ((disp)->ColorMaterial)
+#define SET_ColorMaterial(disp, fn) ((disp)->ColorMaterial = fn)
+#define CALL_Fogi(disp, parameters) (*((disp)->Fogi)) parameters
+#define GET_Fogi(disp) ((disp)->Fogi)
+#define SET_Fogi(disp, fn) ((disp)->Fogi = fn)
+#define CALL_Fogiv(disp, parameters) (*((disp)->Fogiv)) parameters
+#define GET_Fogiv(disp) ((disp)->Fogiv)
+#define SET_Fogiv(disp, fn) ((disp)->Fogiv = fn)
+#define CALL_Lighti(disp, parameters) (*((disp)->Lighti)) parameters
+#define GET_Lighti(disp) ((disp)->Lighti)
+#define SET_Lighti(disp, fn) ((disp)->Lighti = fn)
+#define CALL_Lightiv(disp, parameters) (*((disp)->Lightiv)) parameters
+#define GET_Lightiv(disp) ((disp)->Lightiv)
+#define SET_Lightiv(disp, fn) ((disp)->Lightiv = fn)
+#define CALL_LightModeli(disp, parameters) (*((disp)->LightModeli)) parameters
+#define GET_LightModeli(disp) ((disp)->LightModeli)
+#define SET_LightModeli(disp, fn) ((disp)->LightModeli = fn)
+#define CALL_LightModeliv(disp, parameters) (*((disp)->LightModeliv)) parameters
+#define GET_LightModeliv(disp) ((disp)->LightModeliv)
+#define SET_LightModeliv(disp, fn) ((disp)->LightModeliv = fn)
+#define CALL_LineStipple(disp, parameters) (*((disp)->LineStipple)) parameters
+#define GET_LineStipple(disp) ((disp)->LineStipple)
+#define SET_LineStipple(disp, fn) ((disp)->LineStipple = fn)
+#define CALL_Materiali(disp, parameters) (*((disp)->Materiali)) parameters
+#define GET_Materiali(disp) ((disp)->Materiali)
+#define SET_Materiali(disp, fn) ((disp)->Materiali = fn)
+#define CALL_Materialiv(disp, parameters) (*((disp)->Materialiv)) parameters
+#define GET_Materialiv(disp) ((disp)->Materialiv)
+#define SET_Materialiv(disp, fn) ((disp)->Materialiv = fn)
+#define CALL_PolygonMode(disp, parameters) (*((disp)->PolygonMode)) parameters
+#define GET_PolygonMode(disp) ((disp)->PolygonMode)
+#define SET_PolygonMode(disp, fn) ((disp)->PolygonMode = fn)
+#define CALL_PolygonStipple(disp, parameters) (*((disp)->PolygonStipple)) parameters
+#define GET_PolygonStipple(disp) ((disp)->PolygonStipple)
+#define SET_PolygonStipple(disp, fn) ((disp)->PolygonStipple = fn)
+#define CALL_TexImage1D(disp, parameters) (*((disp)->TexImage1D)) parameters
+#define GET_TexImage1D(disp) ((disp)->TexImage1D)
+#define SET_TexImage1D(disp, fn) ((disp)->TexImage1D = fn)
+#define CALL_TexGend(disp, parameters) (*((disp)->TexGend)) parameters
+#define GET_TexGend(disp) ((disp)->TexGend)
+#define SET_TexGend(disp, fn) ((disp)->TexGend = fn)
+#define CALL_TexGendv(disp, parameters) (*((disp)->TexGendv)) parameters
+#define GET_TexGendv(disp) ((disp)->TexGendv)
+#define SET_TexGendv(disp, fn) ((disp)->TexGendv = fn)
+#define CALL_FeedbackBuffer(disp, parameters) (*((disp)->FeedbackBuffer)) parameters
+#define GET_FeedbackBuffer(disp) ((disp)->FeedbackBuffer)
+#define SET_FeedbackBuffer(disp, fn) ((disp)->FeedbackBuffer = fn)
+#define CALL_SelectBuffer(disp, parameters) (*((disp)->SelectBuffer)) parameters
+#define GET_SelectBuffer(disp) ((disp)->SelectBuffer)
+#define SET_SelectBuffer(disp, fn) ((disp)->SelectBuffer = fn)
+#define CALL_RenderMode(disp, parameters) (*((disp)->RenderMode)) parameters
+#define GET_RenderMode(disp) ((disp)->RenderMode)
+#define SET_RenderMode(disp, fn) ((disp)->RenderMode = fn)
+#define CALL_InitNames(disp, parameters) (*((disp)->InitNames)) parameters
+#define GET_InitNames(disp) ((disp)->InitNames)
+#define SET_InitNames(disp, fn) ((disp)->InitNames = fn)
+#define CALL_LoadName(disp, parameters) (*((disp)->LoadName)) parameters
+#define GET_LoadName(disp) ((disp)->LoadName)
+#define SET_LoadName(disp, fn) ((disp)->LoadName = fn)
+#define CALL_PassThrough(disp, parameters) (*((disp)->PassThrough)) parameters
+#define GET_PassThrough(disp) ((disp)->PassThrough)
+#define SET_PassThrough(disp, fn) ((disp)->PassThrough = fn)
+#define CALL_PopName(disp, parameters) (*((disp)->PopName)) parameters
+#define GET_PopName(disp) ((disp)->PopName)
+#define SET_PopName(disp, fn) ((disp)->PopName = fn)
+#define CALL_PushName(disp, parameters) (*((disp)->PushName)) parameters
+#define GET_PushName(disp) ((disp)->PushName)
+#define SET_PushName(disp, fn) ((disp)->PushName = fn)
+#define CALL_DrawBuffer(disp, parameters) (*((disp)->DrawBuffer)) parameters
+#define GET_DrawBuffer(disp) ((disp)->DrawBuffer)
+#define SET_DrawBuffer(disp, fn) ((disp)->DrawBuffer = fn)
+#define CALL_ClearAccum(disp, parameters) (*((disp)->ClearAccum)) parameters
+#define GET_ClearAccum(disp) ((disp)->ClearAccum)
+#define SET_ClearAccum(disp, fn) ((disp)->ClearAccum = fn)
+#define CALL_ClearIndex(disp, parameters) (*((disp)->ClearIndex)) parameters
+#define GET_ClearIndex(disp) ((disp)->ClearIndex)
+#define SET_ClearIndex(disp, fn) ((disp)->ClearIndex = fn)
+#define CALL_ClearDepth(disp, parameters) (*((disp)->ClearDepth)) parameters
+#define GET_ClearDepth(disp) ((disp)->ClearDepth)
+#define SET_ClearDepth(disp, fn) ((disp)->ClearDepth = fn)
+#define CALL_IndexMask(disp, parameters) (*((disp)->IndexMask)) parameters
+#define GET_IndexMask(disp) ((disp)->IndexMask)
+#define SET_IndexMask(disp, fn) ((disp)->IndexMask = fn)
+#define CALL_Accum(disp, parameters) (*((disp)->Accum)) parameters
+#define GET_Accum(disp) ((disp)->Accum)
+#define SET_Accum(disp, fn) ((disp)->Accum = fn)
+#define CALL_PopAttrib(disp, parameters) (*((disp)->PopAttrib)) parameters
+#define GET_PopAttrib(disp) ((disp)->PopAttrib)
+#define SET_PopAttrib(disp, fn) ((disp)->PopAttrib = fn)
+#define CALL_PushAttrib(disp, parameters) (*((disp)->PushAttrib)) parameters
+#define GET_PushAttrib(disp) ((disp)->PushAttrib)
+#define SET_PushAttrib(disp, fn) ((disp)->PushAttrib = fn)
+#define CALL_Map1d(disp, parameters) (*((disp)->Map1d)) parameters
+#define GET_Map1d(disp) ((disp)->Map1d)
+#define SET_Map1d(disp, fn) ((disp)->Map1d = fn)
+#define CALL_Map1f(disp, parameters) (*((disp)->Map1f)) parameters
+#define GET_Map1f(disp) ((disp)->Map1f)
+#define SET_Map1f(disp, fn) ((disp)->Map1f = fn)
+#define CALL_Map2d(disp, parameters) (*((disp)->Map2d)) parameters
+#define GET_Map2d(disp) ((disp)->Map2d)
+#define SET_Map2d(disp, fn) ((disp)->Map2d = fn)
+#define CALL_Map2f(disp, parameters) (*((disp)->Map2f)) parameters
+#define GET_Map2f(disp) ((disp)->Map2f)
+#define SET_Map2f(disp, fn) ((disp)->Map2f = fn)
+#define CALL_MapGrid1d(disp, parameters) (*((disp)->MapGrid1d)) parameters
+#define GET_MapGrid1d(disp) ((disp)->MapGrid1d)
+#define SET_MapGrid1d(disp, fn) ((disp)->MapGrid1d = fn)
+#define CALL_MapGrid1f(disp, parameters) (*((disp)->MapGrid1f)) parameters
+#define GET_MapGrid1f(disp) ((disp)->MapGrid1f)
+#define SET_MapGrid1f(disp, fn) ((disp)->MapGrid1f = fn)
+#define CALL_MapGrid2d(disp, parameters) (*((disp)->MapGrid2d)) parameters
+#define GET_MapGrid2d(disp) ((disp)->MapGrid2d)
+#define SET_MapGrid2d(disp, fn) ((disp)->MapGrid2d = fn)
+#define CALL_MapGrid2f(disp, parameters) (*((disp)->MapGrid2f)) parameters
+#define GET_MapGrid2f(disp) ((disp)->MapGrid2f)
+#define SET_MapGrid2f(disp, fn) ((disp)->MapGrid2f = fn)
+#define CALL_EvalCoord1d(disp, parameters) (*((disp)->EvalCoord1d)) parameters
+#define GET_EvalCoord1d(disp) ((disp)->EvalCoord1d)
+#define SET_EvalCoord1d(disp, fn) ((disp)->EvalCoord1d = fn)
+#define CALL_EvalCoord1dv(disp, parameters) (*((disp)->EvalCoord1dv)) parameters
+#define GET_EvalCoord1dv(disp) ((disp)->EvalCoord1dv)
+#define SET_EvalCoord1dv(disp, fn) ((disp)->EvalCoord1dv = fn)
+#define CALL_EvalCoord1f(disp, parameters) (*((disp)->EvalCoord1f)) parameters
+#define GET_EvalCoord1f(disp) ((disp)->EvalCoord1f)
+#define SET_EvalCoord1f(disp, fn) ((disp)->EvalCoord1f = fn)
+#define CALL_EvalCoord1fv(disp, parameters) (*((disp)->EvalCoord1fv)) parameters
+#define GET_EvalCoord1fv(disp) ((disp)->EvalCoord1fv)
+#define SET_EvalCoord1fv(disp, fn) ((disp)->EvalCoord1fv = fn)
+#define CALL_EvalCoord2d(disp, parameters) (*((disp)->EvalCoord2d)) parameters
+#define GET_EvalCoord2d(disp) ((disp)->EvalCoord2d)
+#define SET_EvalCoord2d(disp, fn) ((disp)->EvalCoord2d = fn)
+#define CALL_EvalCoord2dv(disp, parameters) (*((disp)->EvalCoord2dv)) parameters
+#define GET_EvalCoord2dv(disp) ((disp)->EvalCoord2dv)
+#define SET_EvalCoord2dv(disp, fn) ((disp)->EvalCoord2dv = fn)
+#define CALL_EvalCoord2f(disp, parameters) (*((disp)->EvalCoord2f)) parameters
+#define GET_EvalCoord2f(disp) ((disp)->EvalCoord2f)
+#define SET_EvalCoord2f(disp, fn) ((disp)->EvalCoord2f = fn)
+#define CALL_EvalCoord2fv(disp, parameters) (*((disp)->EvalCoord2fv)) parameters
+#define GET_EvalCoord2fv(disp) ((disp)->EvalCoord2fv)
+#define SET_EvalCoord2fv(disp, fn) ((disp)->EvalCoord2fv = fn)
+#define CALL_EvalMesh1(disp, parameters) (*((disp)->EvalMesh1)) parameters
+#define GET_EvalMesh1(disp) ((disp)->EvalMesh1)
+#define SET_EvalMesh1(disp, fn) ((disp)->EvalMesh1 = fn)
+#define CALL_EvalPoint1(disp, parameters) (*((disp)->EvalPoint1)) parameters
+#define GET_EvalPoint1(disp) ((disp)->EvalPoint1)
+#define SET_EvalPoint1(disp, fn) ((disp)->EvalPoint1 = fn)
+#define CALL_EvalMesh2(disp, parameters) (*((disp)->EvalMesh2)) parameters
+#define GET_EvalMesh2(disp) ((disp)->EvalMesh2)
+#define SET_EvalMesh2(disp, fn) ((disp)->EvalMesh2 = fn)
+#define CALL_EvalPoint2(disp, parameters) (*((disp)->EvalPoint2)) parameters
+#define GET_EvalPoint2(disp) ((disp)->EvalPoint2)
+#define SET_EvalPoint2(disp, fn) ((disp)->EvalPoint2 = fn)
+#define CALL_PixelZoom(disp, parameters) (*((disp)->PixelZoom)) parameters
+#define GET_PixelZoom(disp) ((disp)->PixelZoom)
+#define SET_PixelZoom(disp, fn) ((disp)->PixelZoom = fn)
+#define CALL_PixelTransferf(disp, parameters) (*((disp)->PixelTransferf)) parameters
+#define GET_PixelTransferf(disp) ((disp)->PixelTransferf)
+#define SET_PixelTransferf(disp, fn) ((disp)->PixelTransferf = fn)
+#define CALL_PixelTransferi(disp, parameters) (*((disp)->PixelTransferi)) parameters
+#define GET_PixelTransferi(disp) ((disp)->PixelTransferi)
+#define SET_PixelTransferi(disp, fn) ((disp)->PixelTransferi = fn)
+#define CALL_PixelStoref(disp, parameters) (*((disp)->PixelStoref)) parameters
+#define GET_PixelStoref(disp) ((disp)->PixelStoref)
+#define SET_PixelStoref(disp, fn) ((disp)->PixelStoref = fn)
+#define CALL_PixelMapfv(disp, parameters) (*((disp)->PixelMapfv)) parameters
+#define GET_PixelMapfv(disp) ((disp)->PixelMapfv)
+#define SET_PixelMapfv(disp, fn) ((disp)->PixelMapfv = fn)
+#define CALL_PixelMapuiv(disp, parameters) (*((disp)->PixelMapuiv)) parameters
+#define GET_PixelMapuiv(disp) ((disp)->PixelMapuiv)
+#define SET_PixelMapuiv(disp, fn) ((disp)->PixelMapuiv = fn)
+#define CALL_PixelMapusv(disp, parameters) (*((disp)->PixelMapusv)) parameters
+#define GET_PixelMapusv(disp) ((disp)->PixelMapusv)
+#define SET_PixelMapusv(disp, fn) ((disp)->PixelMapusv = fn)
+#define CALL_ReadBuffer(disp, parameters) (*((disp)->ReadBuffer)) parameters
+#define GET_ReadBuffer(disp) ((disp)->ReadBuffer)
+#define SET_ReadBuffer(disp, fn) ((disp)->ReadBuffer = fn)
+#define CALL_CopyPixels(disp, parameters) (*((disp)->CopyPixels)) parameters
+#define GET_CopyPixels(disp) ((disp)->CopyPixels)
+#define SET_CopyPixels(disp, fn) ((disp)->CopyPixels = fn)
+#define CALL_DrawPixels(disp, parameters) (*((disp)->DrawPixels)) parameters
+#define GET_DrawPixels(disp) ((disp)->DrawPixels)
+#define SET_DrawPixels(disp, fn) ((disp)->DrawPixels = fn)
+#define CALL_GetClipPlane(disp, parameters) (*((disp)->GetClipPlane)) parameters
+#define GET_GetClipPlane(disp) ((disp)->GetClipPlane)
+#define SET_GetClipPlane(disp, fn) ((disp)->GetClipPlane = fn)
+#define CALL_GetDoublev(disp, parameters) (*((disp)->GetDoublev)) parameters
+#define GET_GetDoublev(disp) ((disp)->GetDoublev)
+#define SET_GetDoublev(disp, fn) ((disp)->GetDoublev = fn)
+#define CALL_GetLightiv(disp, parameters) (*((disp)->GetLightiv)) parameters
+#define GET_GetLightiv(disp) ((disp)->GetLightiv)
+#define SET_GetLightiv(disp, fn) ((disp)->GetLightiv = fn)
+#define CALL_GetMapdv(disp, parameters) (*((disp)->GetMapdv)) parameters
+#define GET_GetMapdv(disp) ((disp)->GetMapdv)
+#define SET_GetMapdv(disp, fn) ((disp)->GetMapdv = fn)
+#define CALL_GetMapfv(disp, parameters) (*((disp)->GetMapfv)) parameters
+#define GET_GetMapfv(disp) ((disp)->GetMapfv)
+#define SET_GetMapfv(disp, fn) ((disp)->GetMapfv = fn)
+#define CALL_GetMapiv(disp, parameters) (*((disp)->GetMapiv)) parameters
+#define GET_GetMapiv(disp) ((disp)->GetMapiv)
+#define SET_GetMapiv(disp, fn) ((disp)->GetMapiv = fn)
+#define CALL_GetMaterialiv(disp, parameters) (*((disp)->GetMaterialiv)) parameters
+#define GET_GetMaterialiv(disp) ((disp)->GetMaterialiv)
+#define SET_GetMaterialiv(disp, fn) ((disp)->GetMaterialiv = fn)
+#define CALL_GetPixelMapfv(disp, parameters) (*((disp)->GetPixelMapfv)) parameters
+#define GET_GetPixelMapfv(disp) ((disp)->GetPixelMapfv)
+#define SET_GetPixelMapfv(disp, fn) ((disp)->GetPixelMapfv = fn)
+#define CALL_GetPixelMapuiv(disp, parameters) (*((disp)->GetPixelMapuiv)) parameters
+#define GET_GetPixelMapuiv(disp) ((disp)->GetPixelMapuiv)
+#define SET_GetPixelMapuiv(disp, fn) ((disp)->GetPixelMapuiv = fn)
+#define CALL_GetPixelMapusv(disp, parameters) (*((disp)->GetPixelMapusv)) parameters
+#define GET_GetPixelMapusv(disp) ((disp)->GetPixelMapusv)
+#define SET_GetPixelMapusv(disp, fn) ((disp)->GetPixelMapusv = fn)
+#define CALL_GetPolygonStipple(disp, parameters) (*((disp)->GetPolygonStipple)) parameters
+#define GET_GetPolygonStipple(disp) ((disp)->GetPolygonStipple)
+#define SET_GetPolygonStipple(disp, fn) ((disp)->GetPolygonStipple = fn)
+#define CALL_GetTexGendv(disp, parameters) (*((disp)->GetTexGendv)) parameters
+#define GET_GetTexGendv(disp) ((disp)->GetTexGendv)
+#define SET_GetTexGendv(disp, fn) ((disp)->GetTexGendv = fn)
+#define CALL_GetTexImage(disp, parameters) (*((disp)->GetTexImage)) parameters
+#define GET_GetTexImage(disp) ((disp)->GetTexImage)
+#define SET_GetTexImage(disp, fn) ((disp)->GetTexImage = fn)
+#define CALL_GetTexLevelParameterfv(disp, parameters) (*((disp)->GetTexLevelParameterfv)) parameters
+#define GET_GetTexLevelParameterfv(disp) ((disp)->GetTexLevelParameterfv)
+#define SET_GetTexLevelParameterfv(disp, fn) ((disp)->GetTexLevelParameterfv = fn)
+#define CALL_GetTexLevelParameteriv(disp, parameters) (*((disp)->GetTexLevelParameteriv)) parameters
+#define GET_GetTexLevelParameteriv(disp) ((disp)->GetTexLevelParameteriv)
+#define SET_GetTexLevelParameteriv(disp, fn) ((disp)->GetTexLevelParameteriv = fn)
+#define CALL_IsList(disp, parameters) (*((disp)->IsList)) parameters
+#define GET_IsList(disp) ((disp)->IsList)
+#define SET_IsList(disp, fn) ((disp)->IsList = fn)
+#define CALL_DepthRange(disp, parameters) (*((disp)->DepthRange)) parameters
+#define GET_DepthRange(disp) ((disp)->DepthRange)
+#define SET_DepthRange(disp, fn) ((disp)->DepthRange = fn)
+#define CALL_Frustum(disp, parameters) (*((disp)->Frustum)) parameters
+#define GET_Frustum(disp) ((disp)->Frustum)
+#define SET_Frustum(disp, fn) ((disp)->Frustum = fn)
+#define CALL_LoadMatrixd(disp, parameters) (*((disp)->LoadMatrixd)) parameters
+#define GET_LoadMatrixd(disp) ((disp)->LoadMatrixd)
+#define SET_LoadMatrixd(disp, fn) ((disp)->LoadMatrixd = fn)
+#define CALL_MultMatrixd(disp, parameters) (*((disp)->MultMatrixd)) parameters
+#define GET_MultMatrixd(disp) ((disp)->MultMatrixd)
+#define SET_MultMatrixd(disp, fn) ((disp)->MultMatrixd = fn)
+#define CALL_Ortho(disp, parameters) (*((disp)->Ortho)) parameters
+#define GET_Ortho(disp) ((disp)->Ortho)
+#define SET_Ortho(disp, fn) ((disp)->Ortho = fn)
+#define CALL_Rotated(disp, parameters) (*((disp)->Rotated)) parameters
+#define GET_Rotated(disp) ((disp)->Rotated)
+#define SET_Rotated(disp, fn) ((disp)->Rotated = fn)
+#define CALL_Scaled(disp, parameters) (*((disp)->Scaled)) parameters
+#define GET_Scaled(disp) ((disp)->Scaled)
+#define SET_Scaled(disp, fn) ((disp)->Scaled = fn)
+#define CALL_Translated(disp, parameters) (*((disp)->Translated)) parameters
+#define GET_Translated(disp) ((disp)->Translated)
+#define SET_Translated(disp, fn) ((disp)->Translated = fn)
+#define CALL_ArrayElement(disp, parameters) (*((disp)->ArrayElement)) parameters
+#define GET_ArrayElement(disp) ((disp)->ArrayElement)
+#define SET_ArrayElement(disp, fn) ((disp)->ArrayElement = fn)
+#define CALL_EdgeFlagPointer(disp, parameters) (*((disp)->EdgeFlagPointer)) parameters
+#define GET_EdgeFlagPointer(disp) ((disp)->EdgeFlagPointer)
+#define SET_EdgeFlagPointer(disp, fn) ((disp)->EdgeFlagPointer = fn)
+#define CALL_IndexPointer(disp, parameters) (*((disp)->IndexPointer)) parameters
+#define GET_IndexPointer(disp) ((disp)->IndexPointer)
+#define SET_IndexPointer(disp, fn) ((disp)->IndexPointer = fn)
+#define CALL_Indexub(disp, parameters) (*((disp)->Indexub)) parameters
+#define GET_Indexub(disp) ((disp)->Indexub)
+#define SET_Indexub(disp, fn) ((disp)->Indexub = fn)
+#define CALL_Indexubv(disp, parameters) (*((disp)->Indexubv)) parameters
+#define GET_Indexubv(disp) ((disp)->Indexubv)
+#define SET_Indexubv(disp, fn) ((disp)->Indexubv = fn)
+#define CALL_InterleavedArrays(disp, parameters) (*((disp)->InterleavedArrays)) parameters
+#define GET_InterleavedArrays(disp) ((disp)->InterleavedArrays)
+#define SET_InterleavedArrays(disp, fn) ((disp)->InterleavedArrays = fn)
+#define CALL_AreTexturesResident(disp, parameters) (*((disp)->AreTexturesResident)) parameters
+#define GET_AreTexturesResident(disp) ((disp)->AreTexturesResident)
+#define SET_AreTexturesResident(disp, fn) ((disp)->AreTexturesResident = fn)
+#define CALL_CopyTexImage1D(disp, parameters) (*((disp)->CopyTexImage1D)) parameters
+#define GET_CopyTexImage1D(disp) ((disp)->CopyTexImage1D)
+#define SET_CopyTexImage1D(disp, fn) ((disp)->CopyTexImage1D = fn)
+#define CALL_CopyTexSubImage1D(disp, parameters) (*((disp)->CopyTexSubImage1D)) parameters
+#define GET_CopyTexSubImage1D(disp) ((disp)->CopyTexSubImage1D)
+#define SET_CopyTexSubImage1D(disp, fn) ((disp)->CopyTexSubImage1D = fn)
+#define CALL_PrioritizeTextures(disp, parameters) (*((disp)->PrioritizeTextures)) parameters
+#define GET_PrioritizeTextures(disp) ((disp)->PrioritizeTextures)
+#define SET_PrioritizeTextures(disp, fn) ((disp)->PrioritizeTextures = fn)
+#define CALL_TexSubImage1D(disp, parameters) (*((disp)->TexSubImage1D)) parameters
+#define GET_TexSubImage1D(disp) ((disp)->TexSubImage1D)
+#define SET_TexSubImage1D(disp, fn) ((disp)->TexSubImage1D = fn)
+#define CALL_PopClientAttrib(disp, parameters) (*((disp)->PopClientAttrib)) parameters
+#define GET_PopClientAttrib(disp) ((disp)->PopClientAttrib)
+#define SET_PopClientAttrib(disp, fn) ((disp)->PopClientAttrib = fn)
+#define CALL_PushClientAttrib(disp, parameters) (*((disp)->PushClientAttrib)) parameters
+#define GET_PushClientAttrib(disp) ((disp)->PushClientAttrib)
+#define SET_PushClientAttrib(disp, fn) ((disp)->PushClientAttrib = fn)
+#define CALL_DrawRangeElements(disp, parameters) (*((disp)->DrawRangeElements)) parameters
+#define GET_DrawRangeElements(disp) ((disp)->DrawRangeElements)
+#define SET_DrawRangeElements(disp, fn) ((disp)->DrawRangeElements = fn)
+#define CALL_ColorTable(disp, parameters) (*((disp)->ColorTable)) parameters
+#define GET_ColorTable(disp) ((disp)->ColorTable)
+#define SET_ColorTable(disp, fn) ((disp)->ColorTable = fn)
+#define CALL_ColorTableParameterfv(disp, parameters) (*((disp)->ColorTableParameterfv)) parameters
+#define GET_ColorTableParameterfv(disp) ((disp)->ColorTableParameterfv)
+#define SET_ColorTableParameterfv(disp, fn) ((disp)->ColorTableParameterfv = fn)
+#define CALL_ColorTableParameteriv(disp, parameters) (*((disp)->ColorTableParameteriv)) parameters
+#define GET_ColorTableParameteriv(disp) ((disp)->ColorTableParameteriv)
+#define SET_ColorTableParameteriv(disp, fn) ((disp)->ColorTableParameteriv = fn)
+#define CALL_CopyColorTable(disp, parameters) (*((disp)->CopyColorTable)) parameters
+#define GET_CopyColorTable(disp) ((disp)->CopyColorTable)
+#define SET_CopyColorTable(disp, fn) ((disp)->CopyColorTable = fn)
+#define CALL_GetColorTable(disp, parameters) (*((disp)->GetColorTable)) parameters
+#define GET_GetColorTable(disp) ((disp)->GetColorTable)
+#define SET_GetColorTable(disp, fn) ((disp)->GetColorTable = fn)
+#define CALL_GetColorTableParameterfv(disp, parameters) (*((disp)->GetColorTableParameterfv)) parameters
+#define GET_GetColorTableParameterfv(disp) ((disp)->GetColorTableParameterfv)
+#define SET_GetColorTableParameterfv(disp, fn) ((disp)->GetColorTableParameterfv = fn)
+#define CALL_GetColorTableParameteriv(disp, parameters) (*((disp)->GetColorTableParameteriv)) parameters
+#define GET_GetColorTableParameteriv(disp) ((disp)->GetColorTableParameteriv)
+#define SET_GetColorTableParameteriv(disp, fn) ((disp)->GetColorTableParameteriv = fn)
+#define CALL_ColorSubTable(disp, parameters) (*((disp)->ColorSubTable)) parameters
+#define GET_ColorSubTable(disp) ((disp)->ColorSubTable)
+#define SET_ColorSubTable(disp, fn) ((disp)->ColorSubTable = fn)
+#define CALL_CopyColorSubTable(disp, parameters) (*((disp)->CopyColorSubTable)) parameters
+#define GET_CopyColorSubTable(disp) ((disp)->CopyColorSubTable)
+#define SET_CopyColorSubTable(disp, fn) ((disp)->CopyColorSubTable = fn)
+#define CALL_ConvolutionFilter1D(disp, parameters) (*((disp)->ConvolutionFilter1D)) parameters
+#define GET_ConvolutionFilter1D(disp) ((disp)->ConvolutionFilter1D)
+#define SET_ConvolutionFilter1D(disp, fn) ((disp)->ConvolutionFilter1D = fn)
+#define CALL_ConvolutionFilter2D(disp, parameters) (*((disp)->ConvolutionFilter2D)) parameters
+#define GET_ConvolutionFilter2D(disp) ((disp)->ConvolutionFilter2D)
+#define SET_ConvolutionFilter2D(disp, fn) ((disp)->ConvolutionFilter2D = fn)
+#define CALL_ConvolutionParameterf(disp, parameters) (*((disp)->ConvolutionParameterf)) parameters
+#define GET_ConvolutionParameterf(disp) ((disp)->ConvolutionParameterf)
+#define SET_ConvolutionParameterf(disp, fn) ((disp)->ConvolutionParameterf = fn)
+#define CALL_ConvolutionParameterfv(disp, parameters) (*((disp)->ConvolutionParameterfv)) parameters
+#define GET_ConvolutionParameterfv(disp) ((disp)->ConvolutionParameterfv)
+#define SET_ConvolutionParameterfv(disp, fn) ((disp)->ConvolutionParameterfv = fn)
+#define CALL_ConvolutionParameteri(disp, parameters) (*((disp)->ConvolutionParameteri)) parameters
+#define GET_ConvolutionParameteri(disp) ((disp)->ConvolutionParameteri)
+#define SET_ConvolutionParameteri(disp, fn) ((disp)->ConvolutionParameteri = fn)
+#define CALL_ConvolutionParameteriv(disp, parameters) (*((disp)->ConvolutionParameteriv)) parameters
+#define GET_ConvolutionParameteriv(disp) ((disp)->ConvolutionParameteriv)
+#define SET_ConvolutionParameteriv(disp, fn) ((disp)->ConvolutionParameteriv = fn)
+#define CALL_CopyConvolutionFilter1D(disp, parameters) (*((disp)->CopyConvolutionFilter1D)) parameters
+#define GET_CopyConvolutionFilter1D(disp) ((disp)->CopyConvolutionFilter1D)
+#define SET_CopyConvolutionFilter1D(disp, fn) ((disp)->CopyConvolutionFilter1D = fn)
+#define CALL_CopyConvolutionFilter2D(disp, parameters) (*((disp)->CopyConvolutionFilter2D)) parameters
+#define GET_CopyConvolutionFilter2D(disp) ((disp)->CopyConvolutionFilter2D)
+#define SET_CopyConvolutionFilter2D(disp, fn) ((disp)->CopyConvolutionFilter2D = fn)
+#define CALL_GetConvolutionFilter(disp, parameters) (*((disp)->GetConvolutionFilter)) parameters
+#define GET_GetConvolutionFilter(disp) ((disp)->GetConvolutionFilter)
+#define SET_GetConvolutionFilter(disp, fn) ((disp)->GetConvolutionFilter = fn)
+#define CALL_GetConvolutionParameterfv(disp, parameters) (*((disp)->GetConvolutionParameterfv)) parameters
+#define GET_GetConvolutionParameterfv(disp) ((disp)->GetConvolutionParameterfv)
+#define SET_GetConvolutionParameterfv(disp, fn) ((disp)->GetConvolutionParameterfv = fn)
+#define CALL_GetConvolutionParameteriv(disp, parameters) (*((disp)->GetConvolutionParameteriv)) parameters
+#define GET_GetConvolutionParameteriv(disp) ((disp)->GetConvolutionParameteriv)
+#define SET_GetConvolutionParameteriv(disp, fn) ((disp)->GetConvolutionParameteriv = fn)
+#define CALL_GetSeparableFilter(disp, parameters) (*((disp)->GetSeparableFilter)) parameters
+#define GET_GetSeparableFilter(disp) ((disp)->GetSeparableFilter)
+#define SET_GetSeparableFilter(disp, fn) ((disp)->GetSeparableFilter = fn)
+#define CALL_SeparableFilter2D(disp, parameters) (*((disp)->SeparableFilter2D)) parameters
+#define GET_SeparableFilter2D(disp) ((disp)->SeparableFilter2D)
+#define SET_SeparableFilter2D(disp, fn) ((disp)->SeparableFilter2D = fn)
+#define CALL_GetHistogram(disp, parameters) (*((disp)->GetHistogram)) parameters
+#define GET_GetHistogram(disp) ((disp)->GetHistogram)
+#define SET_GetHistogram(disp, fn) ((disp)->GetHistogram = fn)
+#define CALL_GetHistogramParameterfv(disp, parameters) (*((disp)->GetHistogramParameterfv)) parameters
+#define GET_GetHistogramParameterfv(disp) ((disp)->GetHistogramParameterfv)
+#define SET_GetHistogramParameterfv(disp, fn) ((disp)->GetHistogramParameterfv = fn)
+#define CALL_GetHistogramParameteriv(disp, parameters) (*((disp)->GetHistogramParameteriv)) parameters
+#define GET_GetHistogramParameteriv(disp) ((disp)->GetHistogramParameteriv)
+#define SET_GetHistogramParameteriv(disp, fn) ((disp)->GetHistogramParameteriv = fn)
+#define CALL_GetMinmax(disp, parameters) (*((disp)->GetMinmax)) parameters
+#define GET_GetMinmax(disp) ((disp)->GetMinmax)
+#define SET_GetMinmax(disp, fn) ((disp)->GetMinmax = fn)
+#define CALL_GetMinmaxParameterfv(disp, parameters) (*((disp)->GetMinmaxParameterfv)) parameters
+#define GET_GetMinmaxParameterfv(disp) ((disp)->GetMinmaxParameterfv)
+#define SET_GetMinmaxParameterfv(disp, fn) ((disp)->GetMinmaxParameterfv = fn)
+#define CALL_GetMinmaxParameteriv(disp, parameters) (*((disp)->GetMinmaxParameteriv)) parameters
+#define GET_GetMinmaxParameteriv(disp) ((disp)->GetMinmaxParameteriv)
+#define SET_GetMinmaxParameteriv(disp, fn) ((disp)->GetMinmaxParameteriv = fn)
+#define CALL_Histogram(disp, parameters) (*((disp)->Histogram)) parameters
+#define GET_Histogram(disp) ((disp)->Histogram)
+#define SET_Histogram(disp, fn) ((disp)->Histogram = fn)
+#define CALL_Minmax(disp, parameters) (*((disp)->Minmax)) parameters
+#define GET_Minmax(disp) ((disp)->Minmax)
+#define SET_Minmax(disp, fn) ((disp)->Minmax = fn)
+#define CALL_ResetHistogram(disp, parameters) (*((disp)->ResetHistogram)) parameters
+#define GET_ResetHistogram(disp) ((disp)->ResetHistogram)
+#define SET_ResetHistogram(disp, fn) ((disp)->ResetHistogram = fn)
+#define CALL_ResetMinmax(disp, parameters) (*((disp)->ResetMinmax)) parameters
+#define GET_ResetMinmax(disp) ((disp)->ResetMinmax)
+#define SET_ResetMinmax(disp, fn) ((disp)->ResetMinmax = fn)
+#define CALL_MultiTexCoord1dARB(disp, parameters) (*((disp)->MultiTexCoord1dARB)) parameters
+#define GET_MultiTexCoord1dARB(disp) ((disp)->MultiTexCoord1dARB)
+#define SET_MultiTexCoord1dARB(disp, fn) ((disp)->MultiTexCoord1dARB = fn)
+#define CALL_MultiTexCoord1dvARB(disp, parameters) (*((disp)->MultiTexCoord1dvARB)) parameters
+#define GET_MultiTexCoord1dvARB(disp) ((disp)->MultiTexCoord1dvARB)
+#define SET_MultiTexCoord1dvARB(disp, fn) ((disp)->MultiTexCoord1dvARB = fn)
+#define CALL_MultiTexCoord1fARB(disp, parameters) (*((disp)->MultiTexCoord1fARB)) parameters
+#define GET_MultiTexCoord1fARB(disp) ((disp)->MultiTexCoord1fARB)
+#define SET_MultiTexCoord1fARB(disp, fn) ((disp)->MultiTexCoord1fARB = fn)
+#define CALL_MultiTexCoord1fvARB(disp, parameters) (*((disp)->MultiTexCoord1fvARB)) parameters
+#define GET_MultiTexCoord1fvARB(disp) ((disp)->MultiTexCoord1fvARB)
+#define SET_MultiTexCoord1fvARB(disp, fn) ((disp)->MultiTexCoord1fvARB = fn)
+#define CALL_MultiTexCoord1iARB(disp, parameters) (*((disp)->MultiTexCoord1iARB)) parameters
+#define GET_MultiTexCoord1iARB(disp) ((disp)->MultiTexCoord1iARB)
+#define SET_MultiTexCoord1iARB(disp, fn) ((disp)->MultiTexCoord1iARB = fn)
+#define CALL_MultiTexCoord1ivARB(disp, parameters) (*((disp)->MultiTexCoord1ivARB)) parameters
+#define GET_MultiTexCoord1ivARB(disp) ((disp)->MultiTexCoord1ivARB)
+#define SET_MultiTexCoord1ivARB(disp, fn) ((disp)->MultiTexCoord1ivARB = fn)
+#define CALL_MultiTexCoord1sARB(disp, parameters) (*((disp)->MultiTexCoord1sARB)) parameters
+#define GET_MultiTexCoord1sARB(disp) ((disp)->MultiTexCoord1sARB)
+#define SET_MultiTexCoord1sARB(disp, fn) ((disp)->MultiTexCoord1sARB = fn)
+#define CALL_MultiTexCoord1svARB(disp, parameters) (*((disp)->MultiTexCoord1svARB)) parameters
+#define GET_MultiTexCoord1svARB(disp) ((disp)->MultiTexCoord1svARB)
+#define SET_MultiTexCoord1svARB(disp, fn) ((disp)->MultiTexCoord1svARB = fn)
+#define CALL_MultiTexCoord2dARB(disp, parameters) (*((disp)->MultiTexCoord2dARB)) parameters
+#define GET_MultiTexCoord2dARB(disp) ((disp)->MultiTexCoord2dARB)
+#define SET_MultiTexCoord2dARB(disp, fn) ((disp)->MultiTexCoord2dARB = fn)
+#define CALL_MultiTexCoord2dvARB(disp, parameters) (*((disp)->MultiTexCoord2dvARB)) parameters
+#define GET_MultiTexCoord2dvARB(disp) ((disp)->MultiTexCoord2dvARB)
+#define SET_MultiTexCoord2dvARB(disp, fn) ((disp)->MultiTexCoord2dvARB = fn)
+#define CALL_MultiTexCoord2fARB(disp, parameters) (*((disp)->MultiTexCoord2fARB)) parameters
+#define GET_MultiTexCoord2fARB(disp) ((disp)->MultiTexCoord2fARB)
+#define SET_MultiTexCoord2fARB(disp, fn) ((disp)->MultiTexCoord2fARB = fn)
+#define CALL_MultiTexCoord2fvARB(disp, parameters) (*((disp)->MultiTexCoord2fvARB)) parameters
+#define GET_MultiTexCoord2fvARB(disp) ((disp)->MultiTexCoord2fvARB)
+#define SET_MultiTexCoord2fvARB(disp, fn) ((disp)->MultiTexCoord2fvARB = fn)
+#define CALL_MultiTexCoord2iARB(disp, parameters) (*((disp)->MultiTexCoord2iARB)) parameters
+#define GET_MultiTexCoord2iARB(disp) ((disp)->MultiTexCoord2iARB)
+#define SET_MultiTexCoord2iARB(disp, fn) ((disp)->MultiTexCoord2iARB = fn)
+#define CALL_MultiTexCoord2ivARB(disp, parameters) (*((disp)->MultiTexCoord2ivARB)) parameters
+#define GET_MultiTexCoord2ivARB(disp) ((disp)->MultiTexCoord2ivARB)
+#define SET_MultiTexCoord2ivARB(disp, fn) ((disp)->MultiTexCoord2ivARB = fn)
+#define CALL_MultiTexCoord2sARB(disp, parameters) (*((disp)->MultiTexCoord2sARB)) parameters
+#define GET_MultiTexCoord2sARB(disp) ((disp)->MultiTexCoord2sARB)
+#define SET_MultiTexCoord2sARB(disp, fn) ((disp)->MultiTexCoord2sARB = fn)
+#define CALL_MultiTexCoord2svARB(disp, parameters) (*((disp)->MultiTexCoord2svARB)) parameters
+#define GET_MultiTexCoord2svARB(disp) ((disp)->MultiTexCoord2svARB)
+#define SET_MultiTexCoord2svARB(disp, fn) ((disp)->MultiTexCoord2svARB = fn)
+#define CALL_MultiTexCoord3dARB(disp, parameters) (*((disp)->MultiTexCoord3dARB)) parameters
+#define GET_MultiTexCoord3dARB(disp) ((disp)->MultiTexCoord3dARB)
+#define SET_MultiTexCoord3dARB(disp, fn) ((disp)->MultiTexCoord3dARB = fn)
+#define CALL_MultiTexCoord3dvARB(disp, parameters) (*((disp)->MultiTexCoord3dvARB)) parameters
+#define GET_MultiTexCoord3dvARB(disp) ((disp)->MultiTexCoord3dvARB)
+#define SET_MultiTexCoord3dvARB(disp, fn) ((disp)->MultiTexCoord3dvARB = fn)
+#define CALL_MultiTexCoord3fARB(disp, parameters) (*((disp)->MultiTexCoord3fARB)) parameters
+#define GET_MultiTexCoord3fARB(disp) ((disp)->MultiTexCoord3fARB)
+#define SET_MultiTexCoord3fARB(disp, fn) ((disp)->MultiTexCoord3fARB = fn)
+#define CALL_MultiTexCoord3fvARB(disp, parameters) (*((disp)->MultiTexCoord3fvARB)) parameters
+#define GET_MultiTexCoord3fvARB(disp) ((disp)->MultiTexCoord3fvARB)
+#define SET_MultiTexCoord3fvARB(disp, fn) ((disp)->MultiTexCoord3fvARB = fn)
+#define CALL_MultiTexCoord3iARB(disp, parameters) (*((disp)->MultiTexCoord3iARB)) parameters
+#define GET_MultiTexCoord3iARB(disp) ((disp)->MultiTexCoord3iARB)
+#define SET_MultiTexCoord3iARB(disp, fn) ((disp)->MultiTexCoord3iARB = fn)
+#define CALL_MultiTexCoord3ivARB(disp, parameters) (*((disp)->MultiTexCoord3ivARB)) parameters
+#define GET_MultiTexCoord3ivARB(disp) ((disp)->MultiTexCoord3ivARB)
+#define SET_MultiTexCoord3ivARB(disp, fn) ((disp)->MultiTexCoord3ivARB = fn)
+#define CALL_MultiTexCoord3sARB(disp, parameters) (*((disp)->MultiTexCoord3sARB)) parameters
+#define GET_MultiTexCoord3sARB(disp) ((disp)->MultiTexCoord3sARB)
+#define SET_MultiTexCoord3sARB(disp, fn) ((disp)->MultiTexCoord3sARB = fn)
+#define CALL_MultiTexCoord3svARB(disp, parameters) (*((disp)->MultiTexCoord3svARB)) parameters
+#define GET_MultiTexCoord3svARB(disp) ((disp)->MultiTexCoord3svARB)
+#define SET_MultiTexCoord3svARB(disp, fn) ((disp)->MultiTexCoord3svARB = fn)
+#define CALL_MultiTexCoord4dARB(disp, parameters) (*((disp)->MultiTexCoord4dARB)) parameters
+#define GET_MultiTexCoord4dARB(disp) ((disp)->MultiTexCoord4dARB)
+#define SET_MultiTexCoord4dARB(disp, fn) ((disp)->MultiTexCoord4dARB = fn)
+#define CALL_MultiTexCoord4dvARB(disp, parameters) (*((disp)->MultiTexCoord4dvARB)) parameters
+#define GET_MultiTexCoord4dvARB(disp) ((disp)->MultiTexCoord4dvARB)
+#define SET_MultiTexCoord4dvARB(disp, fn) ((disp)->MultiTexCoord4dvARB = fn)
+#define CALL_MultiTexCoord4fvARB(disp, parameters) (*((disp)->MultiTexCoord4fvARB)) parameters
+#define GET_MultiTexCoord4fvARB(disp) ((disp)->MultiTexCoord4fvARB)
+#define SET_MultiTexCoord4fvARB(disp, fn) ((disp)->MultiTexCoord4fvARB = fn)
+#define CALL_MultiTexCoord4iARB(disp, parameters) (*((disp)->MultiTexCoord4iARB)) parameters
+#define GET_MultiTexCoord4iARB(disp) ((disp)->MultiTexCoord4iARB)
+#define SET_MultiTexCoord4iARB(disp, fn) ((disp)->MultiTexCoord4iARB = fn)
+#define CALL_MultiTexCoord4ivARB(disp, parameters) (*((disp)->MultiTexCoord4ivARB)) parameters
+#define GET_MultiTexCoord4ivARB(disp) ((disp)->MultiTexCoord4ivARB)
+#define SET_MultiTexCoord4ivARB(disp, fn) ((disp)->MultiTexCoord4ivARB = fn)
+#define CALL_MultiTexCoord4sARB(disp, parameters) (*((disp)->MultiTexCoord4sARB)) parameters
+#define GET_MultiTexCoord4sARB(disp) ((disp)->MultiTexCoord4sARB)
+#define SET_MultiTexCoord4sARB(disp, fn) ((disp)->MultiTexCoord4sARB = fn)
+#define CALL_MultiTexCoord4svARB(disp, parameters) (*((disp)->MultiTexCoord4svARB)) parameters
+#define GET_MultiTexCoord4svARB(disp) ((disp)->MultiTexCoord4svARB)
+#define SET_MultiTexCoord4svARB(disp, fn) ((disp)->MultiTexCoord4svARB = fn)
+
+#if !defined(IN_DRI_DRIVER)
+
+#define CALL_Color4f(disp, parameters) (*((disp)->Color4f)) parameters
+#define GET_Color4f(disp) ((disp)->Color4f)
+#define SET_Color4f(disp, fn) ((disp)->Color4f = fn)
+#define CALL_Color4ub(disp, parameters) (*((disp)->Color4ub)) parameters
+#define GET_Color4ub(disp) ((disp)->Color4ub)
+#define SET_Color4ub(disp, fn) ((disp)->Color4ub = fn)
+#define CALL_Normal3f(disp, parameters) (*((disp)->Normal3f)) parameters
+#define GET_Normal3f(disp) ((disp)->Normal3f)
+#define SET_Normal3f(disp, fn) ((disp)->Normal3f = fn)
+#define CALL_CullFace(disp, parameters) (*((disp)->CullFace)) parameters
+#define GET_CullFace(disp) ((disp)->CullFace)
+#define SET_CullFace(disp, fn) ((disp)->CullFace = fn)
+#define CALL_Fogf(disp, parameters) (*((disp)->Fogf)) parameters
+#define GET_Fogf(disp) ((disp)->Fogf)
+#define SET_Fogf(disp, fn) ((disp)->Fogf = fn)
+#define CALL_Fogfv(disp, parameters) (*((disp)->Fogfv)) parameters
+#define GET_Fogfv(disp) ((disp)->Fogfv)
+#define SET_Fogfv(disp, fn) ((disp)->Fogfv = fn)
+#define CALL_FrontFace(disp, parameters) (*((disp)->FrontFace)) parameters
+#define GET_FrontFace(disp) ((disp)->FrontFace)
+#define SET_FrontFace(disp, fn) ((disp)->FrontFace = fn)
+#define CALL_Hint(disp, parameters) (*((disp)->Hint)) parameters
+#define GET_Hint(disp) ((disp)->Hint)
+#define SET_Hint(disp, fn) ((disp)->Hint = fn)
+#define CALL_Lightf(disp, parameters) (*((disp)->Lightf)) parameters
+#define GET_Lightf(disp) ((disp)->Lightf)
+#define SET_Lightf(disp, fn) ((disp)->Lightf = fn)
+#define CALL_Lightfv(disp, parameters) (*((disp)->Lightfv)) parameters
+#define GET_Lightfv(disp) ((disp)->Lightfv)
+#define SET_Lightfv(disp, fn) ((disp)->Lightfv = fn)
+#define CALL_LightModelf(disp, parameters) (*((disp)->LightModelf)) parameters
+#define GET_LightModelf(disp) ((disp)->LightModelf)
+#define SET_LightModelf(disp, fn) ((disp)->LightModelf = fn)
+#define CALL_LightModelfv(disp, parameters) (*((disp)->LightModelfv)) parameters
+#define GET_LightModelfv(disp) ((disp)->LightModelfv)
+#define SET_LightModelfv(disp, fn) ((disp)->LightModelfv = fn)
+#define CALL_LineWidth(disp, parameters) (*((disp)->LineWidth)) parameters
+#define GET_LineWidth(disp) ((disp)->LineWidth)
+#define SET_LineWidth(disp, fn) ((disp)->LineWidth = fn)
+#define CALL_Materialf(disp, parameters) (*((disp)->Materialf)) parameters
+#define GET_Materialf(disp) ((disp)->Materialf)
+#define SET_Materialf(disp, fn) ((disp)->Materialf = fn)
+#define CALL_Materialfv(disp, parameters) (*((disp)->Materialfv)) parameters
+#define GET_Materialfv(disp) ((disp)->Materialfv)
+#define SET_Materialfv(disp, fn) ((disp)->Materialfv = fn)
+#define CALL_PointSize(disp, parameters) (*((disp)->PointSize)) parameters
+#define GET_PointSize(disp) ((disp)->PointSize)
+#define SET_PointSize(disp, fn) ((disp)->PointSize = fn)
+#define CALL_Scissor(disp, parameters) (*((disp)->Scissor)) parameters
+#define GET_Scissor(disp) ((disp)->Scissor)
+#define SET_Scissor(disp, fn) ((disp)->Scissor = fn)
+#define CALL_ShadeModel(disp, parameters) (*((disp)->ShadeModel)) parameters
+#define GET_ShadeModel(disp) ((disp)->ShadeModel)
+#define SET_ShadeModel(disp, fn) ((disp)->ShadeModel = fn)
+#define CALL_TexParameterf(disp, parameters) (*((disp)->TexParameterf)) parameters
+#define GET_TexParameterf(disp) ((disp)->TexParameterf)
+#define SET_TexParameterf(disp, fn) ((disp)->TexParameterf = fn)
+#define CALL_TexParameterfv(disp, parameters) (*((disp)->TexParameterfv)) parameters
+#define GET_TexParameterfv(disp) ((disp)->TexParameterfv)
+#define SET_TexParameterfv(disp, fn) ((disp)->TexParameterfv = fn)
+#define CALL_TexParameteri(disp, parameters) (*((disp)->TexParameteri)) parameters
+#define GET_TexParameteri(disp) ((disp)->TexParameteri)
+#define SET_TexParameteri(disp, fn) ((disp)->TexParameteri = fn)
+#define CALL_TexParameteriv(disp, parameters) (*((disp)->TexParameteriv)) parameters
+#define GET_TexParameteriv(disp) ((disp)->TexParameteriv)
+#define SET_TexParameteriv(disp, fn) ((disp)->TexParameteriv = fn)
+#define CALL_TexImage2D(disp, parameters) (*((disp)->TexImage2D)) parameters
+#define GET_TexImage2D(disp) ((disp)->TexImage2D)
+#define SET_TexImage2D(disp, fn) ((disp)->TexImage2D = fn)
+#define CALL_TexEnvf(disp, parameters) (*((disp)->TexEnvf)) parameters
+#define GET_TexEnvf(disp) ((disp)->TexEnvf)
+#define SET_TexEnvf(disp, fn) ((disp)->TexEnvf = fn)
+#define CALL_TexEnvfv(disp, parameters) (*((disp)->TexEnvfv)) parameters
+#define GET_TexEnvfv(disp) ((disp)->TexEnvfv)
+#define SET_TexEnvfv(disp, fn) ((disp)->TexEnvfv = fn)
+#define CALL_TexEnvi(disp, parameters) (*((disp)->TexEnvi)) parameters
+#define GET_TexEnvi(disp) ((disp)->TexEnvi)
+#define SET_TexEnvi(disp, fn) ((disp)->TexEnvi = fn)
+#define CALL_TexEnviv(disp, parameters) (*((disp)->TexEnviv)) parameters
+#define GET_TexEnviv(disp) ((disp)->TexEnviv)
+#define SET_TexEnviv(disp, fn) ((disp)->TexEnviv = fn)
+#define CALL_TexGenfOES(disp, parameters) (*((disp)->TexGenfOES)) parameters
+#define GET_TexGenfOES(disp) ((disp)->TexGenfOES)
+#define SET_TexGenfOES(disp, fn) ((disp)->TexGenfOES = fn)
+#define CALL_TexGenfvOES(disp, parameters) (*((disp)->TexGenfvOES)) parameters
+#define GET_TexGenfvOES(disp) ((disp)->TexGenfvOES)
+#define SET_TexGenfvOES(disp, fn) ((disp)->TexGenfvOES = fn)
+#define CALL_TexGeniOES(disp, parameters) (*((disp)->TexGeniOES)) parameters
+#define GET_TexGeniOES(disp) ((disp)->TexGeniOES)
+#define SET_TexGeniOES(disp, fn) ((disp)->TexGeniOES = fn)
+#define CALL_TexGenivOES(disp, parameters) (*((disp)->TexGenivOES)) parameters
+#define GET_TexGenivOES(disp) ((disp)->TexGenivOES)
+#define SET_TexGenivOES(disp, fn) ((disp)->TexGenivOES = fn)
+#define CALL_Clear(disp, parameters) (*((disp)->Clear)) parameters
+#define GET_Clear(disp) ((disp)->Clear)
+#define SET_Clear(disp, fn) ((disp)->Clear = fn)
+#define CALL_ClearColor(disp, parameters) (*((disp)->ClearColor)) parameters
+#define GET_ClearColor(disp) ((disp)->ClearColor)
+#define SET_ClearColor(disp, fn) ((disp)->ClearColor = fn)
+#define CALL_ClearStencil(disp, parameters) (*((disp)->ClearStencil)) parameters
+#define GET_ClearStencil(disp) ((disp)->ClearStencil)
+#define SET_ClearStencil(disp, fn) ((disp)->ClearStencil = fn)
+#define CALL_StencilMask(disp, parameters) (*((disp)->StencilMask)) parameters
+#define GET_StencilMask(disp) ((disp)->StencilMask)
+#define SET_StencilMask(disp, fn) ((disp)->StencilMask = fn)
+#define CALL_ColorMask(disp, parameters) (*((disp)->ColorMask)) parameters
+#define GET_ColorMask(disp) ((disp)->ColorMask)
+#define SET_ColorMask(disp, fn) ((disp)->ColorMask = fn)
+#define CALL_DepthMask(disp, parameters) (*((disp)->DepthMask)) parameters
+#define GET_DepthMask(disp) ((disp)->DepthMask)
+#define SET_DepthMask(disp, fn) ((disp)->DepthMask = fn)
+#define CALL_Disable(disp, parameters) (*((disp)->Disable)) parameters
+#define GET_Disable(disp) ((disp)->Disable)
+#define SET_Disable(disp, fn) ((disp)->Disable = fn)
+#define CALL_Enable(disp, parameters) (*((disp)->Enable)) parameters
+#define GET_Enable(disp) ((disp)->Enable)
+#define SET_Enable(disp, fn) ((disp)->Enable = fn)
+#define CALL_Finish(disp, parameters) (*((disp)->Finish)) parameters
+#define GET_Finish(disp) ((disp)->Finish)
+#define SET_Finish(disp, fn) ((disp)->Finish = fn)
+#define CALL_Flush(disp, parameters) (*((disp)->Flush)) parameters
+#define GET_Flush(disp) ((disp)->Flush)
+#define SET_Flush(disp, fn) ((disp)->Flush = fn)
+#define CALL_AlphaFunc(disp, parameters) (*((disp)->AlphaFunc)) parameters
+#define GET_AlphaFunc(disp) ((disp)->AlphaFunc)
+#define SET_AlphaFunc(disp, fn) ((disp)->AlphaFunc = fn)
+#define CALL_BlendFunc(disp, parameters) (*((disp)->BlendFunc)) parameters
+#define GET_BlendFunc(disp) ((disp)->BlendFunc)
+#define SET_BlendFunc(disp, fn) ((disp)->BlendFunc = fn)
+#define CALL_LogicOp(disp, parameters) (*((disp)->LogicOp)) parameters
+#define GET_LogicOp(disp) ((disp)->LogicOp)
+#define SET_LogicOp(disp, fn) ((disp)->LogicOp = fn)
+#define CALL_StencilFunc(disp, parameters) (*((disp)->StencilFunc)) parameters
+#define GET_StencilFunc(disp) ((disp)->StencilFunc)
+#define SET_StencilFunc(disp, fn) ((disp)->StencilFunc = fn)
+#define CALL_StencilOp(disp, parameters) (*((disp)->StencilOp)) parameters
+#define GET_StencilOp(disp) ((disp)->StencilOp)
+#define SET_StencilOp(disp, fn) ((disp)->StencilOp = fn)
+#define CALL_DepthFunc(disp, parameters) (*((disp)->DepthFunc)) parameters
+#define GET_DepthFunc(disp) ((disp)->DepthFunc)
+#define SET_DepthFunc(disp, fn) ((disp)->DepthFunc = fn)
+#define CALL_PixelStorei(disp, parameters) (*((disp)->PixelStorei)) parameters
+#define GET_PixelStorei(disp) ((disp)->PixelStorei)
+#define SET_PixelStorei(disp, fn) ((disp)->PixelStorei = fn)
+#define CALL_ReadPixels(disp, parameters) (*((disp)->ReadPixels)) parameters
+#define GET_ReadPixels(disp) ((disp)->ReadPixels)
+#define SET_ReadPixels(disp, fn) ((disp)->ReadPixels = fn)
+#define CALL_GetBooleanv(disp, parameters) (*((disp)->GetBooleanv)) parameters
+#define GET_GetBooleanv(disp) ((disp)->GetBooleanv)
+#define SET_GetBooleanv(disp, fn) ((disp)->GetBooleanv = fn)
+#define CALL_GetError(disp, parameters) (*((disp)->GetError)) parameters
+#define GET_GetError(disp) ((disp)->GetError)
+#define SET_GetError(disp, fn) ((disp)->GetError = fn)
+#define CALL_GetFloatv(disp, parameters) (*((disp)->GetFloatv)) parameters
+#define GET_GetFloatv(disp) ((disp)->GetFloatv)
+#define SET_GetFloatv(disp, fn) ((disp)->GetFloatv = fn)
+#define CALL_GetIntegerv(disp, parameters) (*((disp)->GetIntegerv)) parameters
+#define GET_GetIntegerv(disp) ((disp)->GetIntegerv)
+#define SET_GetIntegerv(disp, fn) ((disp)->GetIntegerv = fn)
+#define CALL_GetLightfv(disp, parameters) (*((disp)->GetLightfv)) parameters
+#define GET_GetLightfv(disp) ((disp)->GetLightfv)
+#define SET_GetLightfv(disp, fn) ((disp)->GetLightfv = fn)
+#define CALL_GetMaterialfv(disp, parameters) (*((disp)->GetMaterialfv)) parameters
+#define GET_GetMaterialfv(disp) ((disp)->GetMaterialfv)
+#define SET_GetMaterialfv(disp, fn) ((disp)->GetMaterialfv = fn)
+#define CALL_GetString(disp, parameters) (*((disp)->GetString)) parameters
+#define GET_GetString(disp) ((disp)->GetString)
+#define SET_GetString(disp, fn) ((disp)->GetString = fn)
+#define CALL_GetTexEnvfv(disp, parameters) (*((disp)->GetTexEnvfv)) parameters
+#define GET_GetTexEnvfv(disp) ((disp)->GetTexEnvfv)
+#define SET_GetTexEnvfv(disp, fn) ((disp)->GetTexEnvfv = fn)
+#define CALL_GetTexEnviv(disp, parameters) (*((disp)->GetTexEnviv)) parameters
+#define GET_GetTexEnviv(disp) ((disp)->GetTexEnviv)
+#define SET_GetTexEnviv(disp, fn) ((disp)->GetTexEnviv = fn)
+#define CALL_GetTexGenfvOES(disp, parameters) (*((disp)->GetTexGenfvOES)) parameters
+#define GET_GetTexGenfvOES(disp) ((disp)->GetTexGenfvOES)
+#define SET_GetTexGenfvOES(disp, fn) ((disp)->GetTexGenfvOES = fn)
+#define CALL_GetTexGenivOES(disp, parameters) (*((disp)->GetTexGenivOES)) parameters
+#define GET_GetTexGenivOES(disp) ((disp)->GetTexGenivOES)
+#define SET_GetTexGenivOES(disp, fn) ((disp)->GetTexGenivOES = fn)
+#define CALL_GetTexParameterfv(disp, parameters) (*((disp)->GetTexParameterfv)) parameters
+#define GET_GetTexParameterfv(disp) ((disp)->GetTexParameterfv)
+#define SET_GetTexParameterfv(disp, fn) ((disp)->GetTexParameterfv = fn)
+#define CALL_GetTexParameteriv(disp, parameters) (*((disp)->GetTexParameteriv)) parameters
+#define GET_GetTexParameteriv(disp) ((disp)->GetTexParameteriv)
+#define SET_GetTexParameteriv(disp, fn) ((disp)->GetTexParameteriv = fn)
+#define CALL_IsEnabled(disp, parameters) (*((disp)->IsEnabled)) parameters
+#define GET_IsEnabled(disp) ((disp)->IsEnabled)
+#define SET_IsEnabled(disp, fn) ((disp)->IsEnabled = fn)
+#define CALL_LoadIdentity(disp, parameters) (*((disp)->LoadIdentity)) parameters
+#define GET_LoadIdentity(disp) ((disp)->LoadIdentity)
+#define SET_LoadIdentity(disp, fn) ((disp)->LoadIdentity = fn)
+#define CALL_LoadMatrixf(disp, parameters) (*((disp)->LoadMatrixf)) parameters
+#define GET_LoadMatrixf(disp) ((disp)->LoadMatrixf)
+#define SET_LoadMatrixf(disp, fn) ((disp)->LoadMatrixf = fn)
+#define CALL_MatrixMode(disp, parameters) (*((disp)->MatrixMode)) parameters
+#define GET_MatrixMode(disp) ((disp)->MatrixMode)
+#define SET_MatrixMode(disp, fn) ((disp)->MatrixMode = fn)
+#define CALL_MultMatrixf(disp, parameters) (*((disp)->MultMatrixf)) parameters
+#define GET_MultMatrixf(disp) ((disp)->MultMatrixf)
+#define SET_MultMatrixf(disp, fn) ((disp)->MultMatrixf = fn)
+#define CALL_PopMatrix(disp, parameters) (*((disp)->PopMatrix)) parameters
+#define GET_PopMatrix(disp) ((disp)->PopMatrix)
+#define SET_PopMatrix(disp, fn) ((disp)->PopMatrix = fn)
+#define CALL_PushMatrix(disp, parameters) (*((disp)->PushMatrix)) parameters
+#define GET_PushMatrix(disp) ((disp)->PushMatrix)
+#define SET_PushMatrix(disp, fn) ((disp)->PushMatrix = fn)
+#define CALL_Rotatef(disp, parameters) (*((disp)->Rotatef)) parameters
+#define GET_Rotatef(disp) ((disp)->Rotatef)
+#define SET_Rotatef(disp, fn) ((disp)->Rotatef = fn)
+#define CALL_Scalef(disp, parameters) (*((disp)->Scalef)) parameters
+#define GET_Scalef(disp) ((disp)->Scalef)
+#define SET_Scalef(disp, fn) ((disp)->Scalef = fn)
+#define CALL_Translatef(disp, parameters) (*((disp)->Translatef)) parameters
+#define GET_Translatef(disp) ((disp)->Translatef)
+#define SET_Translatef(disp, fn) ((disp)->Translatef = fn)
+#define CALL_Viewport(disp, parameters) (*((disp)->Viewport)) parameters
+#define GET_Viewport(disp) ((disp)->Viewport)
+#define SET_Viewport(disp, fn) ((disp)->Viewport = fn)
+#define CALL_BindTexture(disp, parameters) (*((disp)->BindTexture)) parameters
+#define GET_BindTexture(disp) ((disp)->BindTexture)
+#define SET_BindTexture(disp, fn) ((disp)->BindTexture = fn)
+#define CALL_ColorPointer(disp, parameters) (*((disp)->ColorPointer)) parameters
+#define GET_ColorPointer(disp) ((disp)->ColorPointer)
+#define SET_ColorPointer(disp, fn) ((disp)->ColorPointer = fn)
+#define CALL_DisableClientState(disp, parameters) (*((disp)->DisableClientState)) parameters
+#define GET_DisableClientState(disp) ((disp)->DisableClientState)
+#define SET_DisableClientState(disp, fn) ((disp)->DisableClientState = fn)
+#define CALL_DrawArrays(disp, parameters) (*((disp)->DrawArrays)) parameters
+#define GET_DrawArrays(disp) ((disp)->DrawArrays)
+#define SET_DrawArrays(disp, fn) ((disp)->DrawArrays = fn)
+#define CALL_DrawElements(disp, parameters) (*((disp)->DrawElements)) parameters
+#define GET_DrawElements(disp) ((disp)->DrawElements)
+#define SET_DrawElements(disp, fn) ((disp)->DrawElements = fn)
+#define CALL_EnableClientState(disp, parameters) (*((disp)->EnableClientState)) parameters
+#define GET_EnableClientState(disp) ((disp)->EnableClientState)
+#define SET_EnableClientState(disp, fn) ((disp)->EnableClientState = fn)
+#define CALL_NormalPointer(disp, parameters) (*((disp)->NormalPointer)) parameters
+#define GET_NormalPointer(disp) ((disp)->NormalPointer)
+#define SET_NormalPointer(disp, fn) ((disp)->NormalPointer = fn)
+#define CALL_PolygonOffset(disp, parameters) (*((disp)->PolygonOffset)) parameters
+#define GET_PolygonOffset(disp) ((disp)->PolygonOffset)
+#define SET_PolygonOffset(disp, fn) ((disp)->PolygonOffset = fn)
+#define CALL_TexCoordPointer(disp, parameters) (*((disp)->TexCoordPointer)) parameters
+#define GET_TexCoordPointer(disp) ((disp)->TexCoordPointer)
+#define SET_TexCoordPointer(disp, fn) ((disp)->TexCoordPointer = fn)
+#define CALL_VertexPointer(disp, parameters) (*((disp)->VertexPointer)) parameters
+#define GET_VertexPointer(disp) ((disp)->VertexPointer)
+#define SET_VertexPointer(disp, fn) ((disp)->VertexPointer = fn)
+#define CALL_CopyTexImage2D(disp, parameters) (*((disp)->CopyTexImage2D)) parameters
+#define GET_CopyTexImage2D(disp) ((disp)->CopyTexImage2D)
+#define SET_CopyTexImage2D(disp, fn) ((disp)->CopyTexImage2D = fn)
+#define CALL_CopyTexSubImage2D(disp, parameters) (*((disp)->CopyTexSubImage2D)) parameters
+#define GET_CopyTexSubImage2D(disp) ((disp)->CopyTexSubImage2D)
+#define SET_CopyTexSubImage2D(disp, fn) ((disp)->CopyTexSubImage2D = fn)
+#define CALL_DeleteTextures(disp, parameters) (*((disp)->DeleteTextures)) parameters
+#define GET_DeleteTextures(disp) ((disp)->DeleteTextures)
+#define SET_DeleteTextures(disp, fn) ((disp)->DeleteTextures = fn)
+#define CALL_GenTextures(disp, parameters) (*((disp)->GenTextures)) parameters
+#define GET_GenTextures(disp) ((disp)->GenTextures)
+#define SET_GenTextures(disp, fn) ((disp)->GenTextures = fn)
+#define CALL_GetPointerv(disp, parameters) (*((disp)->GetPointerv)) parameters
+#define GET_GetPointerv(disp) ((disp)->GetPointerv)
+#define SET_GetPointerv(disp, fn) ((disp)->GetPointerv = fn)
+#define CALL_IsTexture(disp, parameters) (*((disp)->IsTexture)) parameters
+#define GET_IsTexture(disp) ((disp)->IsTexture)
+#define SET_IsTexture(disp, fn) ((disp)->IsTexture = fn)
+#define CALL_TexSubImage2D(disp, parameters) (*((disp)->TexSubImage2D)) parameters
+#define GET_TexSubImage2D(disp) ((disp)->TexSubImage2D)
+#define SET_TexSubImage2D(disp, fn) ((disp)->TexSubImage2D = fn)
+#define CALL_BlendColor(disp, parameters) (*((disp)->BlendColor)) parameters
+#define GET_BlendColor(disp) ((disp)->BlendColor)
+#define SET_BlendColor(disp, fn) ((disp)->BlendColor = fn)
+#define CALL_BlendEquationOES(disp, parameters) (*((disp)->BlendEquationOES)) parameters
+#define GET_BlendEquationOES(disp) ((disp)->BlendEquationOES)
+#define SET_BlendEquationOES(disp, fn) ((disp)->BlendEquationOES = fn)
+#define CALL_TexImage3D(disp, parameters) (*((disp)->TexImage3D)) parameters
+#define GET_TexImage3D(disp) ((disp)->TexImage3D)
+#define SET_TexImage3D(disp, fn) ((disp)->TexImage3D = fn)
+#define CALL_TexSubImage3D(disp, parameters) (*((disp)->TexSubImage3D)) parameters
+#define GET_TexSubImage3D(disp) ((disp)->TexSubImage3D)
+#define SET_TexSubImage3D(disp, fn) ((disp)->TexSubImage3D = fn)
+#define CALL_CopyTexSubImage3D(disp, parameters) (*((disp)->CopyTexSubImage3D)) parameters
+#define GET_CopyTexSubImage3D(disp) ((disp)->CopyTexSubImage3D)
+#define SET_CopyTexSubImage3D(disp, fn) ((disp)->CopyTexSubImage3D = fn)
+#define CALL_ActiveTexture(disp, parameters) (*((disp)->ActiveTexture)) parameters
+#define GET_ActiveTexture(disp) ((disp)->ActiveTexture)
+#define SET_ActiveTexture(disp, fn) ((disp)->ActiveTexture = fn)
+#define CALL_ClientActiveTexture(disp, parameters) (*((disp)->ClientActiveTexture)) parameters
+#define GET_ClientActiveTexture(disp) ((disp)->ClientActiveTexture)
+#define SET_ClientActiveTexture(disp, fn) ((disp)->ClientActiveTexture = fn)
+#define CALL_MultiTexCoord4f(disp, parameters) (*((disp)->MultiTexCoord4f)) parameters
+#define GET_MultiTexCoord4f(disp) ((disp)->MultiTexCoord4f)
+#define SET_MultiTexCoord4f(disp, fn) ((disp)->MultiTexCoord4f = fn)
+#define CALL_BlendEquationSeparateOES(disp, parameters) (*((disp)->BlendEquationSeparateOES)) parameters
+#define GET_BlendEquationSeparateOES(disp) ((disp)->BlendEquationSeparateOES)
+#define SET_BlendEquationSeparateOES(disp, fn) ((disp)->BlendEquationSeparateOES = fn)
+#define CALL_BlendFuncSeparateOES(disp, parameters) (*((disp)->BlendFuncSeparateOES)) parameters
+#define GET_BlendFuncSeparateOES(disp) ((disp)->BlendFuncSeparateOES)
+#define SET_BlendFuncSeparateOES(disp, fn) ((disp)->BlendFuncSeparateOES = fn)
+#define CALL_DrawTexfOES(disp, parameters) (*((disp)->DrawTexfOES)) parameters
+#define GET_DrawTexfOES(disp) ((disp)->DrawTexfOES)
+#define SET_DrawTexfOES(disp, fn) ((disp)->DrawTexfOES = fn)
+#define CALL_DrawTexfvOES(disp, parameters) (*((disp)->DrawTexfvOES)) parameters
+#define GET_DrawTexfvOES(disp) ((disp)->DrawTexfvOES)
+#define SET_DrawTexfvOES(disp, fn) ((disp)->DrawTexfvOES = fn)
+#define CALL_DrawTexiOES(disp, parameters) (*((disp)->DrawTexiOES)) parameters
+#define GET_DrawTexiOES(disp) ((disp)->DrawTexiOES)
+#define SET_DrawTexiOES(disp, fn) ((disp)->DrawTexiOES = fn)
+#define CALL_DrawTexivOES(disp, parameters) (*((disp)->DrawTexivOES)) parameters
+#define GET_DrawTexivOES(disp) ((disp)->DrawTexivOES)
+#define SET_DrawTexivOES(disp, fn) ((disp)->DrawTexivOES = fn)
+#define CALL_DrawTexsOES(disp, parameters) (*((disp)->DrawTexsOES)) parameters
+#define GET_DrawTexsOES(disp) ((disp)->DrawTexsOES)
+#define SET_DrawTexsOES(disp, fn) ((disp)->DrawTexsOES = fn)
+#define CALL_DrawTexsvOES(disp, parameters) (*((disp)->DrawTexsvOES)) parameters
+#define GET_DrawTexsvOES(disp) ((disp)->DrawTexsvOES)
+#define SET_DrawTexsvOES(disp, fn) ((disp)->DrawTexsvOES = fn)
+#define CALL_DrawTexxOES(disp, parameters) (*((disp)->DrawTexxOES)) parameters
+#define GET_DrawTexxOES(disp) ((disp)->DrawTexxOES)
+#define SET_DrawTexxOES(disp, fn) ((disp)->DrawTexxOES = fn)
+#define CALL_DrawTexxvOES(disp, parameters) (*((disp)->DrawTexxvOES)) parameters
+#define GET_DrawTexxvOES(disp) ((disp)->DrawTexxvOES)
+#define SET_DrawTexxvOES(disp, fn) ((disp)->DrawTexxvOES = fn)
+#define CALL_BindFramebufferOES(disp, parameters) (*((disp)->BindFramebufferOES)) parameters
+#define GET_BindFramebufferOES(disp) ((disp)->BindFramebufferOES)
+#define SET_BindFramebufferOES(disp, fn) ((disp)->BindFramebufferOES = fn)
+#define CALL_BindRenderbufferOES(disp, parameters) (*((disp)->BindRenderbufferOES)) parameters
+#define GET_BindRenderbufferOES(disp) ((disp)->BindRenderbufferOES)
+#define SET_BindRenderbufferOES(disp, fn) ((disp)->BindRenderbufferOES = fn)
+#define CALL_CheckFramebufferStatusOES(disp, parameters) (*((disp)->CheckFramebufferStatusOES)) parameters
+#define GET_CheckFramebufferStatusOES(disp) ((disp)->CheckFramebufferStatusOES)
+#define SET_CheckFramebufferStatusOES(disp, fn) ((disp)->CheckFramebufferStatusOES = fn)
+#define CALL_DeleteFramebuffersOES(disp, parameters) (*((disp)->DeleteFramebuffersOES)) parameters
+#define GET_DeleteFramebuffersOES(disp) ((disp)->DeleteFramebuffersOES)
+#define SET_DeleteFramebuffersOES(disp, fn) ((disp)->DeleteFramebuffersOES = fn)
+#define CALL_DeleteRenderbuffersOES(disp, parameters) (*((disp)->DeleteRenderbuffersOES)) parameters
+#define GET_DeleteRenderbuffersOES(disp) ((disp)->DeleteRenderbuffersOES)
+#define SET_DeleteRenderbuffersOES(disp, fn) ((disp)->DeleteRenderbuffersOES = fn)
+#define CALL_FramebufferRenderbufferOES(disp, parameters) (*((disp)->FramebufferRenderbufferOES)) parameters
+#define GET_FramebufferRenderbufferOES(disp) ((disp)->FramebufferRenderbufferOES)
+#define SET_FramebufferRenderbufferOES(disp, fn) ((disp)->FramebufferRenderbufferOES = fn)
+#define CALL_FramebufferTexture2DOES(disp, parameters) (*((disp)->FramebufferTexture2DOES)) parameters
+#define GET_FramebufferTexture2DOES(disp) ((disp)->FramebufferTexture2DOES)
+#define SET_FramebufferTexture2DOES(disp, fn) ((disp)->FramebufferTexture2DOES = fn)
+#define CALL_GenFramebuffersOES(disp, parameters) (*((disp)->GenFramebuffersOES)) parameters
+#define GET_GenFramebuffersOES(disp) ((disp)->GenFramebuffersOES)
+#define SET_GenFramebuffersOES(disp, fn) ((disp)->GenFramebuffersOES = fn)
+#define CALL_GenRenderbuffersOES(disp, parameters) (*((disp)->GenRenderbuffersOES)) parameters
+#define GET_GenRenderbuffersOES(disp) ((disp)->GenRenderbuffersOES)
+#define SET_GenRenderbuffersOES(disp, fn) ((disp)->GenRenderbuffersOES = fn)
+#define CALL_GenerateMipmapOES(disp, parameters) (*((disp)->GenerateMipmapOES)) parameters
+#define GET_GenerateMipmapOES(disp) ((disp)->GenerateMipmapOES)
+#define SET_GenerateMipmapOES(disp, fn) ((disp)->GenerateMipmapOES = fn)
+#define CALL_GetFramebufferAttachmentParameterivOES(disp, parameters) (*((disp)->GetFramebufferAttachmentParameterivOES)) parameters
+#define GET_GetFramebufferAttachmentParameterivOES(disp) ((disp)->GetFramebufferAttachmentParameterivOES)
+#define SET_GetFramebufferAttachmentParameterivOES(disp, fn) ((disp)->GetFramebufferAttachmentParameterivOES = fn)
+#define CALL_GetRenderbufferParameterivOES(disp, parameters) (*((disp)->GetRenderbufferParameterivOES)) parameters
+#define GET_GetRenderbufferParameterivOES(disp) ((disp)->GetRenderbufferParameterivOES)
+#define SET_GetRenderbufferParameterivOES(disp, fn) ((disp)->GetRenderbufferParameterivOES = fn)
+#define CALL_IsFramebufferOES(disp, parameters) (*((disp)->IsFramebufferOES)) parameters
+#define GET_IsFramebufferOES(disp) ((disp)->IsFramebufferOES)
+#define SET_IsFramebufferOES(disp, fn) ((disp)->IsFramebufferOES = fn)
+#define CALL_IsRenderbufferOES(disp, parameters) (*((disp)->IsRenderbufferOES)) parameters
+#define GET_IsRenderbufferOES(disp) ((disp)->IsRenderbufferOES)
+#define SET_IsRenderbufferOES(disp, fn) ((disp)->IsRenderbufferOES = fn)
+#define CALL_RenderbufferStorageOES(disp, parameters) (*((disp)->RenderbufferStorageOES)) parameters
+#define GET_RenderbufferStorageOES(disp) ((disp)->RenderbufferStorageOES)
+#define SET_RenderbufferStorageOES(disp, fn) ((disp)->RenderbufferStorageOES = fn)
+#define CALL_PointSizePointerOES(disp, parameters) (*((disp)->PointSizePointerOES)) parameters
+#define GET_PointSizePointerOES(disp) ((disp)->PointSizePointerOES)
+#define SET_PointSizePointerOES(disp, fn) ((disp)->PointSizePointerOES = fn)
+#define CALL_QueryMatrixxOES(disp, parameters) (*((disp)->QueryMatrixxOES)) parameters
+#define GET_QueryMatrixxOES(disp) ((disp)->QueryMatrixxOES)
+#define SET_QueryMatrixxOES(disp, fn) ((disp)->QueryMatrixxOES = fn)
+#define CALL_GetTexGenxvOES(disp, parameters) (*((disp)->GetTexGenxvOES)) parameters
+#define GET_GetTexGenxvOES(disp) ((disp)->GetTexGenxvOES)
+#define SET_GetTexGenxvOES(disp, fn) ((disp)->GetTexGenxvOES = fn)
+#define CALL_TexGenxOES(disp, parameters) (*((disp)->TexGenxOES)) parameters
+#define GET_TexGenxOES(disp) ((disp)->TexGenxOES)
+#define SET_TexGenxOES(disp, fn) ((disp)->TexGenxOES = fn)
+#define CALL_TexGenxvOES(disp, parameters) (*((disp)->TexGenxvOES)) parameters
+#define GET_TexGenxvOES(disp) ((disp)->TexGenxvOES)
+#define SET_TexGenxvOES(disp, fn) ((disp)->TexGenxvOES = fn)
+#define CALL_EGLImageTargetRenderbufferStorageOES(disp, parameters) (*((disp)->EGLImageTargetRenderbufferStorageOES)) parameters
+#define GET_EGLImageTargetRenderbufferStorageOES(disp) ((disp)->EGLImageTargetRenderbufferStorageOES)
+#define SET_EGLImageTargetRenderbufferStorageOES(disp, fn) ((disp)->EGLImageTargetRenderbufferStorageOES = fn)
+#define CALL_EGLImageTargetTexture2DOES(disp, parameters) (*((disp)->EGLImageTargetTexture2DOES)) parameters
+#define GET_EGLImageTargetTexture2DOES(disp) ((disp)->EGLImageTargetTexture2DOES)
+#define SET_EGLImageTargetTexture2DOES(disp, fn) ((disp)->EGLImageTargetTexture2DOES = fn)
+#define CALL_GetBufferPointervOES(disp, parameters) (*((disp)->GetBufferPointervOES)) parameters
+#define GET_GetBufferPointervOES(disp) ((disp)->GetBufferPointervOES)
+#define SET_GetBufferPointervOES(disp, fn) ((disp)->GetBufferPointervOES = fn)
+#define CALL_MapBufferOES(disp, parameters) (*((disp)->MapBufferOES)) parameters
+#define GET_MapBufferOES(disp) ((disp)->MapBufferOES)
+#define SET_MapBufferOES(disp, fn) ((disp)->MapBufferOES = fn)
+#define CALL_UnmapBufferOES(disp, parameters) (*((disp)->UnmapBufferOES)) parameters
+#define GET_UnmapBufferOES(disp) ((disp)->UnmapBufferOES)
+#define SET_UnmapBufferOES(disp, fn) ((disp)->UnmapBufferOES = fn)
+#define CALL_BindVertexArrayAPPLE(disp, parameters) (*((disp)->BindVertexArrayAPPLE)) parameters
+#define GET_BindVertexArrayAPPLE(disp) ((disp)->BindVertexArrayAPPLE)
+#define SET_BindVertexArrayAPPLE(disp, fn) ((disp)->BindVertexArrayAPPLE = fn)
+#define CALL_DeleteVertexArraysAPPLE(disp, parameters) (*((disp)->DeleteVertexArraysAPPLE)) parameters
+#define GET_DeleteVertexArraysAPPLE(disp) ((disp)->DeleteVertexArraysAPPLE)
+#define SET_DeleteVertexArraysAPPLE(disp, fn) ((disp)->DeleteVertexArraysAPPLE = fn)
+#define CALL_GenVertexArraysAPPLE(disp, parameters) (*((disp)->GenVertexArraysAPPLE)) parameters
+#define GET_GenVertexArraysAPPLE(disp) ((disp)->GenVertexArraysAPPLE)
+#define SET_GenVertexArraysAPPLE(disp, fn) ((disp)->GenVertexArraysAPPLE = fn)
+#define CALL_IsVertexArrayAPPLE(disp, parameters) (*((disp)->IsVertexArrayAPPLE)) parameters
+#define GET_IsVertexArrayAPPLE(disp) ((disp)->IsVertexArrayAPPLE)
+#define SET_IsVertexArrayAPPLE(disp, fn) ((disp)->IsVertexArrayAPPLE = fn)
+#define CALL_CompressedTexImage2D(disp, parameters) (*((disp)->CompressedTexImage2D)) parameters
+#define GET_CompressedTexImage2D(disp) ((disp)->CompressedTexImage2D)
+#define SET_CompressedTexImage2D(disp, fn) ((disp)->CompressedTexImage2D = fn)
+#define CALL_CompressedTexSubImage2D(disp, parameters) (*((disp)->CompressedTexSubImage2D)) parameters
+#define GET_CompressedTexSubImage2D(disp) ((disp)->CompressedTexSubImage2D)
+#define SET_CompressedTexSubImage2D(disp, fn) ((disp)->CompressedTexSubImage2D = fn)
+#define CALL_SampleCoverage(disp, parameters) (*((disp)->SampleCoverage)) parameters
+#define GET_SampleCoverage(disp) ((disp)->SampleCoverage)
+#define SET_SampleCoverage(disp, fn) ((disp)->SampleCoverage = fn)
+#define CALL_BindBuffer(disp, parameters) (*((disp)->BindBuffer)) parameters
+#define GET_BindBuffer(disp) ((disp)->BindBuffer)
+#define SET_BindBuffer(disp, fn) ((disp)->BindBuffer = fn)
+#define CALL_BufferData(disp, parameters) (*((disp)->BufferData)) parameters
+#define GET_BufferData(disp) ((disp)->BufferData)
+#define SET_BufferData(disp, fn) ((disp)->BufferData = fn)
+#define CALL_BufferSubData(disp, parameters) (*((disp)->BufferSubData)) parameters
+#define GET_BufferSubData(disp) ((disp)->BufferSubData)
+#define SET_BufferSubData(disp, fn) ((disp)->BufferSubData = fn)
+#define CALL_DeleteBuffers(disp, parameters) (*((disp)->DeleteBuffers)) parameters
+#define GET_DeleteBuffers(disp) ((disp)->DeleteBuffers)
+#define SET_DeleteBuffers(disp, fn) ((disp)->DeleteBuffers = fn)
+#define CALL_GenBuffers(disp, parameters) (*((disp)->GenBuffers)) parameters
+#define GET_GenBuffers(disp) ((disp)->GenBuffers)
+#define SET_GenBuffers(disp, fn) ((disp)->GenBuffers = fn)
+#define CALL_GetBufferParameteriv(disp, parameters) (*((disp)->GetBufferParameteriv)) parameters
+#define GET_GetBufferParameteriv(disp) ((disp)->GetBufferParameteriv)
+#define SET_GetBufferParameteriv(disp, fn) ((disp)->GetBufferParameteriv = fn)
+#define CALL_IsBuffer(disp, parameters) (*((disp)->IsBuffer)) parameters
+#define GET_IsBuffer(disp) ((disp)->IsBuffer)
+#define SET_IsBuffer(disp, fn) ((disp)->IsBuffer = fn)
+#define CALL_AlphaFuncx(disp, parameters) (*((disp)->AlphaFuncx)) parameters
+#define GET_AlphaFuncx(disp) ((disp)->AlphaFuncx)
+#define SET_AlphaFuncx(disp, fn) ((disp)->AlphaFuncx = fn)
+#define CALL_ClearColorx(disp, parameters) (*((disp)->ClearColorx)) parameters
+#define GET_ClearColorx(disp) ((disp)->ClearColorx)
+#define SET_ClearColorx(disp, fn) ((disp)->ClearColorx = fn)
+#define CALL_ClearDepthf(disp, parameters) (*((disp)->ClearDepthf)) parameters
+#define GET_ClearDepthf(disp) ((disp)->ClearDepthf)
+#define SET_ClearDepthf(disp, fn) ((disp)->ClearDepthf = fn)
+#define CALL_ClearDepthx(disp, parameters) (*((disp)->ClearDepthx)) parameters
+#define GET_ClearDepthx(disp) ((disp)->ClearDepthx)
+#define SET_ClearDepthx(disp, fn) ((disp)->ClearDepthx = fn)
+#define CALL_Color4x(disp, parameters) (*((disp)->Color4x)) parameters
+#define GET_Color4x(disp) ((disp)->Color4x)
+#define SET_Color4x(disp, fn) ((disp)->Color4x = fn)
+#define CALL_DepthRangef(disp, parameters) (*((disp)->DepthRangef)) parameters
+#define GET_DepthRangef(disp) ((disp)->DepthRangef)
+#define SET_DepthRangef(disp, fn) ((disp)->DepthRangef = fn)
+#define CALL_DepthRangex(disp, parameters) (*((disp)->DepthRangex)) parameters
+#define GET_DepthRangex(disp) ((disp)->DepthRangex)
+#define SET_DepthRangex(disp, fn) ((disp)->DepthRangex = fn)
+#define CALL_Fogx(disp, parameters) (*((disp)->Fogx)) parameters
+#define GET_Fogx(disp) ((disp)->Fogx)
+#define SET_Fogx(disp, fn) ((disp)->Fogx = fn)
+#define CALL_Fogxv(disp, parameters) (*((disp)->Fogxv)) parameters
+#define GET_Fogxv(disp) ((disp)->Fogxv)
+#define SET_Fogxv(disp, fn) ((disp)->Fogxv = fn)
+#define CALL_Frustumf(disp, parameters) (*((disp)->Frustumf)) parameters
+#define GET_Frustumf(disp) ((disp)->Frustumf)
+#define SET_Frustumf(disp, fn) ((disp)->Frustumf = fn)
+#define CALL_Frustumx(disp, parameters) (*((disp)->Frustumx)) parameters
+#define GET_Frustumx(disp) ((disp)->Frustumx)
+#define SET_Frustumx(disp, fn) ((disp)->Frustumx = fn)
+#define CALL_LightModelx(disp, parameters) (*((disp)->LightModelx)) parameters
+#define GET_LightModelx(disp) ((disp)->LightModelx)
+#define SET_LightModelx(disp, fn) ((disp)->LightModelx = fn)
+#define CALL_LightModelxv(disp, parameters) (*((disp)->LightModelxv)) parameters
+#define GET_LightModelxv(disp) ((disp)->LightModelxv)
+#define SET_LightModelxv(disp, fn) ((disp)->LightModelxv = fn)
+#define CALL_Lightx(disp, parameters) (*((disp)->Lightx)) parameters
+#define GET_Lightx(disp) ((disp)->Lightx)
+#define SET_Lightx(disp, fn) ((disp)->Lightx = fn)
+#define CALL_Lightxv(disp, parameters) (*((disp)->Lightxv)) parameters
+#define GET_Lightxv(disp) ((disp)->Lightxv)
+#define SET_Lightxv(disp, fn) ((disp)->Lightxv = fn)
+#define CALL_LineWidthx(disp, parameters) (*((disp)->LineWidthx)) parameters
+#define GET_LineWidthx(disp) ((disp)->LineWidthx)
+#define SET_LineWidthx(disp, fn) ((disp)->LineWidthx = fn)
+#define CALL_LoadMatrixx(disp, parameters) (*((disp)->LoadMatrixx)) parameters
+#define GET_LoadMatrixx(disp) ((disp)->LoadMatrixx)
+#define SET_LoadMatrixx(disp, fn) ((disp)->LoadMatrixx = fn)
+#define CALL_Materialx(disp, parameters) (*((disp)->Materialx)) parameters
+#define GET_Materialx(disp) ((disp)->Materialx)
+#define SET_Materialx(disp, fn) ((disp)->Materialx = fn)
+#define CALL_Materialxv(disp, parameters) (*((disp)->Materialxv)) parameters
+#define GET_Materialxv(disp) ((disp)->Materialxv)
+#define SET_Materialxv(disp, fn) ((disp)->Materialxv = fn)
+#define CALL_MultMatrixx(disp, parameters) (*((disp)->MultMatrixx)) parameters
+#define GET_MultMatrixx(disp) ((disp)->MultMatrixx)
+#define SET_MultMatrixx(disp, fn) ((disp)->MultMatrixx = fn)
+#define CALL_MultiTexCoord4x(disp, parameters) (*((disp)->MultiTexCoord4x)) parameters
+#define GET_MultiTexCoord4x(disp) ((disp)->MultiTexCoord4x)
+#define SET_MultiTexCoord4x(disp, fn) ((disp)->MultiTexCoord4x = fn)
+#define CALL_Normal3x(disp, parameters) (*((disp)->Normal3x)) parameters
+#define GET_Normal3x(disp) ((disp)->Normal3x)
+#define SET_Normal3x(disp, fn) ((disp)->Normal3x = fn)
+#define CALL_Orthof(disp, parameters) (*((disp)->Orthof)) parameters
+#define GET_Orthof(disp) ((disp)->Orthof)
+#define SET_Orthof(disp, fn) ((disp)->Orthof = fn)
+#define CALL_Orthox(disp, parameters) (*((disp)->Orthox)) parameters
+#define GET_Orthox(disp) ((disp)->Orthox)
+#define SET_Orthox(disp, fn) ((disp)->Orthox = fn)
+#define CALL_PointSizex(disp, parameters) (*((disp)->PointSizex)) parameters
+#define GET_PointSizex(disp) ((disp)->PointSizex)
+#define SET_PointSizex(disp, fn) ((disp)->PointSizex = fn)
+#define CALL_PolygonOffsetx(disp, parameters) (*((disp)->PolygonOffsetx)) parameters
+#define GET_PolygonOffsetx(disp) ((disp)->PolygonOffsetx)
+#define SET_PolygonOffsetx(disp, fn) ((disp)->PolygonOffsetx = fn)
+#define CALL_Rotatex(disp, parameters) (*((disp)->Rotatex)) parameters
+#define GET_Rotatex(disp) ((disp)->Rotatex)
+#define SET_Rotatex(disp, fn) ((disp)->Rotatex = fn)
+#define CALL_SampleCoveragex(disp, parameters) (*((disp)->SampleCoveragex)) parameters
+#define GET_SampleCoveragex(disp) ((disp)->SampleCoveragex)
+#define SET_SampleCoveragex(disp, fn) ((disp)->SampleCoveragex = fn)
+#define CALL_Scalex(disp, parameters) (*((disp)->Scalex)) parameters
+#define GET_Scalex(disp) ((disp)->Scalex)
+#define SET_Scalex(disp, fn) ((disp)->Scalex = fn)
+#define CALL_TexEnvx(disp, parameters) (*((disp)->TexEnvx)) parameters
+#define GET_TexEnvx(disp) ((disp)->TexEnvx)
+#define SET_TexEnvx(disp, fn) ((disp)->TexEnvx = fn)
+#define CALL_TexEnvxv(disp, parameters) (*((disp)->TexEnvxv)) parameters
+#define GET_TexEnvxv(disp) ((disp)->TexEnvxv)
+#define SET_TexEnvxv(disp, fn) ((disp)->TexEnvxv = fn)
+#define CALL_TexParameterx(disp, parameters) (*((disp)->TexParameterx)) parameters
+#define GET_TexParameterx(disp) ((disp)->TexParameterx)
+#define SET_TexParameterx(disp, fn) ((disp)->TexParameterx = fn)
+#define CALL_Translatex(disp, parameters) (*((disp)->Translatex)) parameters
+#define GET_Translatex(disp) ((disp)->Translatex)
+#define SET_Translatex(disp, fn) ((disp)->Translatex = fn)
+#define CALL_ClipPlanef(disp, parameters) (*((disp)->ClipPlanef)) parameters
+#define GET_ClipPlanef(disp) ((disp)->ClipPlanef)
+#define SET_ClipPlanef(disp, fn) ((disp)->ClipPlanef = fn)
+#define CALL_ClipPlanex(disp, parameters) (*((disp)->ClipPlanex)) parameters
+#define GET_ClipPlanex(disp) ((disp)->ClipPlanex)
+#define SET_ClipPlanex(disp, fn) ((disp)->ClipPlanex = fn)
+#define CALL_GetClipPlanef(disp, parameters) (*((disp)->GetClipPlanef)) parameters
+#define GET_GetClipPlanef(disp) ((disp)->GetClipPlanef)
+#define SET_GetClipPlanef(disp, fn) ((disp)->GetClipPlanef = fn)
+#define CALL_GetClipPlanex(disp, parameters) (*((disp)->GetClipPlanex)) parameters
+#define GET_GetClipPlanex(disp) ((disp)->GetClipPlanex)
+#define SET_GetClipPlanex(disp, fn) ((disp)->GetClipPlanex = fn)
+#define CALL_GetFixedv(disp, parameters) (*((disp)->GetFixedv)) parameters
+#define GET_GetFixedv(disp) ((disp)->GetFixedv)
+#define SET_GetFixedv(disp, fn) ((disp)->GetFixedv = fn)
+#define CALL_GetLightxv(disp, parameters) (*((disp)->GetLightxv)) parameters
+#define GET_GetLightxv(disp) ((disp)->GetLightxv)
+#define SET_GetLightxv(disp, fn) ((disp)->GetLightxv = fn)
+#define CALL_GetMaterialxv(disp, parameters) (*((disp)->GetMaterialxv)) parameters
+#define GET_GetMaterialxv(disp) ((disp)->GetMaterialxv)
+#define SET_GetMaterialxv(disp, fn) ((disp)->GetMaterialxv = fn)
+#define CALL_GetTexEnvxv(disp, parameters) (*((disp)->GetTexEnvxv)) parameters
+#define GET_GetTexEnvxv(disp) ((disp)->GetTexEnvxv)
+#define SET_GetTexEnvxv(disp, fn) ((disp)->GetTexEnvxv = fn)
+#define CALL_GetTexParameterxv(disp, parameters) (*((disp)->GetTexParameterxv)) parameters
+#define GET_GetTexParameterxv(disp) ((disp)->GetTexParameterxv)
+#define SET_GetTexParameterxv(disp, fn) ((disp)->GetTexParameterxv = fn)
+#define CALL_PointParameterx(disp, parameters) (*((disp)->PointParameterx)) parameters
+#define GET_PointParameterx(disp) ((disp)->PointParameterx)
+#define SET_PointParameterx(disp, fn) ((disp)->PointParameterx = fn)
+#define CALL_PointParameterxv(disp, parameters) (*((disp)->PointParameterxv)) parameters
+#define GET_PointParameterxv(disp) ((disp)->PointParameterxv)
+#define SET_PointParameterxv(disp, fn) ((disp)->PointParameterxv = fn)
+#define CALL_TexParameterxv(disp, parameters) (*((disp)->TexParameterxv)) parameters
+#define GET_TexParameterxv(disp) ((disp)->TexParameterxv)
+#define SET_TexParameterxv(disp, fn) ((disp)->TexParameterxv = fn)
+#define CALL_PointParameterf(disp, parameters) (*((disp)->PointParameterf)) parameters
+#define GET_PointParameterf(disp) ((disp)->PointParameterf)
+#define SET_PointParameterf(disp, fn) ((disp)->PointParameterf = fn)
+#define CALL_PointParameterfv(disp, parameters) (*((disp)->PointParameterfv)) parameters
+#define GET_PointParameterfv(disp) ((disp)->PointParameterfv)
+#define SET_PointParameterfv(disp, fn) ((disp)->PointParameterfv = fn)
+
+#else
+
+#define driDispatchRemapTable_size 194
+extern int driDispatchRemapTable[ driDispatchRemapTable_size ];
+
+#define Color4f_remap_index 0
+#define Color4ub_remap_index 1
+#define Normal3f_remap_index 2
+#define CullFace_remap_index 3
+#define Fogf_remap_index 4
+#define Fogfv_remap_index 5
+#define FrontFace_remap_index 6
+#define Hint_remap_index 7
+#define Lightf_remap_index 8
+#define Lightfv_remap_index 9
+#define LightModelf_remap_index 10
+#define LightModelfv_remap_index 11
+#define LineWidth_remap_index 12
+#define Materialf_remap_index 13
+#define Materialfv_remap_index 14
+#define PointSize_remap_index 15
+#define Scissor_remap_index 16
+#define ShadeModel_remap_index 17
+#define TexParameterf_remap_index 18
+#define TexParameterfv_remap_index 19
+#define TexParameteri_remap_index 20
+#define TexParameteriv_remap_index 21
+#define TexImage2D_remap_index 22
+#define TexEnvf_remap_index 23
+#define TexEnvfv_remap_index 24
+#define TexEnvi_remap_index 25
+#define TexEnviv_remap_index 26
+#define TexGenfOES_remap_index 27
+#define TexGenfvOES_remap_index 28
+#define TexGeniOES_remap_index 29
+#define TexGenivOES_remap_index 30
+#define Clear_remap_index 31
+#define ClearColor_remap_index 32
+#define ClearStencil_remap_index 33
+#define StencilMask_remap_index 34
+#define ColorMask_remap_index 35
+#define DepthMask_remap_index 36
+#define Disable_remap_index 37
+#define Enable_remap_index 38
+#define Finish_remap_index 39
+#define Flush_remap_index 40
+#define AlphaFunc_remap_index 41
+#define BlendFunc_remap_index 42
+#define LogicOp_remap_index 43
+#define StencilFunc_remap_index 44
+#define StencilOp_remap_index 45
+#define DepthFunc_remap_index 46
+#define PixelStorei_remap_index 47
+#define ReadPixels_remap_index 48
+#define GetBooleanv_remap_index 49
+#define GetError_remap_index 50
+#define GetFloatv_remap_index 51
+#define GetIntegerv_remap_index 52
+#define GetLightfv_remap_index 53
+#define GetMaterialfv_remap_index 54
+#define GetString_remap_index 55
+#define GetTexEnvfv_remap_index 56
+#define GetTexEnviv_remap_index 57
+#define GetTexGenfvOES_remap_index 58
+#define GetTexGenivOES_remap_index 59
+#define GetTexParameterfv_remap_index 60
+#define GetTexParameteriv_remap_index 61
+#define IsEnabled_remap_index 62
+#define LoadIdentity_remap_index 63
+#define LoadMatrixf_remap_index 64
+#define MatrixMode_remap_index 65
+#define MultMatrixf_remap_index 66
+#define PopMatrix_remap_index 67
+#define PushMatrix_remap_index 68
+#define Rotatef_remap_index 69
+#define Scalef_remap_index 70
+#define Translatef_remap_index 71
+#define Viewport_remap_index 72
+#define BindTexture_remap_index 73
+#define ColorPointer_remap_index 74
+#define DisableClientState_remap_index 75
+#define DrawArrays_remap_index 76
+#define DrawElements_remap_index 77
+#define EnableClientState_remap_index 78
+#define NormalPointer_remap_index 79
+#define PolygonOffset_remap_index 80
+#define TexCoordPointer_remap_index 81
+#define VertexPointer_remap_index 82
+#define CopyTexImage2D_remap_index 83
+#define CopyTexSubImage2D_remap_index 84
+#define DeleteTextures_remap_index 85
+#define GenTextures_remap_index 86
+#define GetPointerv_remap_index 87
+#define IsTexture_remap_index 88
+#define TexSubImage2D_remap_index 89
+#define BlendColor_remap_index 90
+#define BlendEquationOES_remap_index 91
+#define TexImage3D_remap_index 92
+#define TexSubImage3D_remap_index 93
+#define CopyTexSubImage3D_remap_index 94
+#define ActiveTexture_remap_index 95
+#define ClientActiveTexture_remap_index 96
+#define MultiTexCoord4f_remap_index 97
+#define BlendEquationSeparateOES_remap_index 98
+#define BlendFuncSeparateOES_remap_index 99
+#define DrawTexfOES_remap_index 100
+#define DrawTexfvOES_remap_index 101
+#define DrawTexiOES_remap_index 102
+#define DrawTexivOES_remap_index 103
+#define DrawTexsOES_remap_index 104
+#define DrawTexsvOES_remap_index 105
+#define DrawTexxOES_remap_index 106
+#define DrawTexxvOES_remap_index 107
+#define BindFramebufferOES_remap_index 108
+#define BindRenderbufferOES_remap_index 109
+#define CheckFramebufferStatusOES_remap_index 110
+#define DeleteFramebuffersOES_remap_index 111
+#define DeleteRenderbuffersOES_remap_index 112
+#define FramebufferRenderbufferOES_remap_index 113
+#define FramebufferTexture2DOES_remap_index 114
+#define GenFramebuffersOES_remap_index 115
+#define GenRenderbuffersOES_remap_index 116
+#define GenerateMipmapOES_remap_index 117
+#define GetFramebufferAttachmentParameterivOES_remap_index 118
+#define GetRenderbufferParameterivOES_remap_index 119
+#define IsFramebufferOES_remap_index 120
+#define IsRenderbufferOES_remap_index 121
+#define RenderbufferStorageOES_remap_index 122
+#define PointSizePointerOES_remap_index 123
+#define QueryMatrixxOES_remap_index 124
+#define GetTexGenxvOES_remap_index 125
+#define TexGenxOES_remap_index 126
+#define TexGenxvOES_remap_index 127
+#define EGLImageTargetRenderbufferStorageOES_remap_index 128
+#define EGLImageTargetTexture2DOES_remap_index 129
+#define GetBufferPointervOES_remap_index 130
+#define MapBufferOES_remap_index 131
+#define UnmapBufferOES_remap_index 132
+#define BindVertexArrayAPPLE_remap_index 133
+#define DeleteVertexArraysAPPLE_remap_index 134
+#define GenVertexArraysAPPLE_remap_index 135
+#define IsVertexArrayAPPLE_remap_index 136
+#define CompressedTexImage2D_remap_index 137
+#define CompressedTexSubImage2D_remap_index 138
+#define SampleCoverage_remap_index 139
+#define BindBuffer_remap_index 140
+#define BufferData_remap_index 141
+#define BufferSubData_remap_index 142
+#define DeleteBuffers_remap_index 143
+#define GenBuffers_remap_index 144
+#define GetBufferParameteriv_remap_index 145
+#define IsBuffer_remap_index 146
+#define AlphaFuncx_remap_index 147
+#define ClearColorx_remap_index 148
+#define ClearDepthf_remap_index 149
+#define ClearDepthx_remap_index 150
+#define Color4x_remap_index 151
+#define DepthRangef_remap_index 152
+#define DepthRangex_remap_index 153
+#define Fogx_remap_index 154
+#define Fogxv_remap_index 155
+#define Frustumf_remap_index 156
+#define Frustumx_remap_index 157
+#define LightModelx_remap_index 158
+#define LightModelxv_remap_index 159
+#define Lightx_remap_index 160
+#define Lightxv_remap_index 161
+#define LineWidthx_remap_index 162
+#define LoadMatrixx_remap_index 163
+#define Materialx_remap_index 164
+#define Materialxv_remap_index 165
+#define MultMatrixx_remap_index 166
+#define MultiTexCoord4x_remap_index 167
+#define Normal3x_remap_index 168
+#define Orthof_remap_index 169
+#define Orthox_remap_index 170
+#define PointSizex_remap_index 171
+#define PolygonOffsetx_remap_index 172
+#define Rotatex_remap_index 173
+#define SampleCoveragex_remap_index 174
+#define Scalex_remap_index 175
+#define TexEnvx_remap_index 176
+#define TexEnvxv_remap_index 177
+#define TexParameterx_remap_index 178
+#define Translatex_remap_index 179
+#define ClipPlanef_remap_index 180
+#define ClipPlanex_remap_index 181
+#define GetClipPlanef_remap_index 182
+#define GetClipPlanex_remap_index 183
+#define GetFixedv_remap_index 184
+#define GetLightxv_remap_index 185
+#define GetMaterialxv_remap_index 186
+#define GetTexEnvxv_remap_index 187
+#define GetTexParameterxv_remap_index 188
+#define PointParameterx_remap_index 189
+#define PointParameterxv_remap_index 190
+#define TexParameterxv_remap_index 191
+#define PointParameterf_remap_index 192
+#define PointParameterfv_remap_index 193
+
+#define CALL_Color4f(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfloat, GLfloat, GLfloat, GLfloat)), driDispatchRemapTable[Color4f_remap_index], parameters)
+#define GET_Color4f(disp) GET_by_offset(disp, driDispatchRemapTable[Color4f_remap_index])
+#define SET_Color4f(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Color4f_remap_index], fn)
+#define CALL_Color4ub(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLubyte, GLubyte, GLubyte, GLubyte)), driDispatchRemapTable[Color4ub_remap_index], parameters)
+#define GET_Color4ub(disp) GET_by_offset(disp, driDispatchRemapTable[Color4ub_remap_index])
+#define SET_Color4ub(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Color4ub_remap_index], fn)
+#define CALL_Normal3f(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfloat, GLfloat, GLfloat)), driDispatchRemapTable[Normal3f_remap_index], parameters)
+#define GET_Normal3f(disp) GET_by_offset(disp, driDispatchRemapTable[Normal3f_remap_index])
+#define SET_Normal3f(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Normal3f_remap_index], fn)
+#define CALL_CullFace(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[CullFace_remap_index], parameters)
+#define GET_CullFace(disp) GET_by_offset(disp, driDispatchRemapTable[CullFace_remap_index])
+#define SET_CullFace(disp, fn) SET_by_offset(disp, driDispatchRemapTable[CullFace_remap_index], fn)
+#define CALL_Fogf(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLfloat)), driDispatchRemapTable[Fogf_remap_index], parameters)
+#define GET_Fogf(disp) GET_by_offset(disp, driDispatchRemapTable[Fogf_remap_index])
+#define SET_Fogf(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Fogf_remap_index], fn)
+#define CALL_Fogfv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, const GLfloat *)), driDispatchRemapTable[Fogfv_remap_index], parameters)
+#define GET_Fogfv(disp) GET_by_offset(disp, driDispatchRemapTable[Fogfv_remap_index])
+#define SET_Fogfv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Fogfv_remap_index], fn)
+#define CALL_FrontFace(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[FrontFace_remap_index], parameters)
+#define GET_FrontFace(disp) GET_by_offset(disp, driDispatchRemapTable[FrontFace_remap_index])
+#define SET_FrontFace(disp, fn) SET_by_offset(disp, driDispatchRemapTable[FrontFace_remap_index], fn)
+#define CALL_Hint(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum)), driDispatchRemapTable[Hint_remap_index], parameters)
+#define GET_Hint(disp) GET_by_offset(disp, driDispatchRemapTable[Hint_remap_index])
+#define SET_Hint(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Hint_remap_index], fn)
+#define CALL_Lightf(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfloat)), driDispatchRemapTable[Lightf_remap_index], parameters)
+#define GET_Lightf(disp) GET_by_offset(disp, driDispatchRemapTable[Lightf_remap_index])
+#define SET_Lightf(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Lightf_remap_index], fn)
+#define CALL_Lightfv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, const GLfloat *)), driDispatchRemapTable[Lightfv_remap_index], parameters)
+#define GET_Lightfv(disp) GET_by_offset(disp, driDispatchRemapTable[Lightfv_remap_index])
+#define SET_Lightfv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Lightfv_remap_index], fn)
+#define CALL_LightModelf(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLfloat)), driDispatchRemapTable[LightModelf_remap_index], parameters)
+#define GET_LightModelf(disp) GET_by_offset(disp, driDispatchRemapTable[LightModelf_remap_index])
+#define SET_LightModelf(disp, fn) SET_by_offset(disp, driDispatchRemapTable[LightModelf_remap_index], fn)
+#define CALL_LightModelfv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, const GLfloat *)), driDispatchRemapTable[LightModelfv_remap_index], parameters)
+#define GET_LightModelfv(disp) GET_by_offset(disp, driDispatchRemapTable[LightModelfv_remap_index])
+#define SET_LightModelfv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[LightModelfv_remap_index], fn)
+#define CALL_LineWidth(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfloat)), driDispatchRemapTable[LineWidth_remap_index], parameters)
+#define GET_LineWidth(disp) GET_by_offset(disp, driDispatchRemapTable[LineWidth_remap_index])
+#define SET_LineWidth(disp, fn) SET_by_offset(disp, driDispatchRemapTable[LineWidth_remap_index], fn)
+#define CALL_Materialf(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfloat)), driDispatchRemapTable[Materialf_remap_index], parameters)
+#define GET_Materialf(disp) GET_by_offset(disp, driDispatchRemapTable[Materialf_remap_index])
+#define SET_Materialf(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Materialf_remap_index], fn)
+#define CALL_Materialfv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, const GLfloat *)), driDispatchRemapTable[Materialfv_remap_index], parameters)
+#define GET_Materialfv(disp) GET_by_offset(disp, driDispatchRemapTable[Materialfv_remap_index])
+#define SET_Materialfv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Materialfv_remap_index], fn)
+#define CALL_PointSize(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfloat)), driDispatchRemapTable[PointSize_remap_index], parameters)
+#define GET_PointSize(disp) GET_by_offset(disp, driDispatchRemapTable[PointSize_remap_index])
+#define SET_PointSize(disp, fn) SET_by_offset(disp, driDispatchRemapTable[PointSize_remap_index], fn)
+#define CALL_Scissor(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLint, GLint, GLsizei, GLsizei)), driDispatchRemapTable[Scissor_remap_index], parameters)
+#define GET_Scissor(disp) GET_by_offset(disp, driDispatchRemapTable[Scissor_remap_index])
+#define SET_Scissor(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Scissor_remap_index], fn)
+#define CALL_ShadeModel(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[ShadeModel_remap_index], parameters)
+#define GET_ShadeModel(disp) GET_by_offset(disp, driDispatchRemapTable[ShadeModel_remap_index])
+#define SET_ShadeModel(disp, fn) SET_by_offset(disp, driDispatchRemapTable[ShadeModel_remap_index], fn)
+#define CALL_TexParameterf(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfloat)), driDispatchRemapTable[TexParameterf_remap_index], parameters)
+#define GET_TexParameterf(disp) GET_by_offset(disp, driDispatchRemapTable[TexParameterf_remap_index])
+#define SET_TexParameterf(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexParameterf_remap_index], fn)
+#define CALL_TexParameterfv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, const GLfloat *)), driDispatchRemapTable[TexParameterfv_remap_index], parameters)
+#define GET_TexParameterfv(disp) GET_by_offset(disp, driDispatchRemapTable[TexParameterfv_remap_index])
+#define SET_TexParameterfv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexParameterfv_remap_index], fn)
+#define CALL_TexParameteri(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLint)), driDispatchRemapTable[TexParameteri_remap_index], parameters)
+#define GET_TexParameteri(disp) GET_by_offset(disp, driDispatchRemapTable[TexParameteri_remap_index])
+#define SET_TexParameteri(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexParameteri_remap_index], fn)
+#define CALL_TexParameteriv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, const GLint *)), driDispatchRemapTable[TexParameteriv_remap_index], parameters)
+#define GET_TexParameteriv(disp) GET_by_offset(disp, driDispatchRemapTable[TexParameteriv_remap_index])
+#define SET_TexParameteriv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexParameteriv_remap_index], fn)
+#define CALL_TexImage2D(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *)), driDispatchRemapTable[TexImage2D_remap_index], parameters)
+#define GET_TexImage2D(disp) GET_by_offset(disp, driDispatchRemapTable[TexImage2D_remap_index])
+#define SET_TexImage2D(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexImage2D_remap_index], fn)
+#define CALL_TexEnvf(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfloat)), driDispatchRemapTable[TexEnvf_remap_index], parameters)
+#define GET_TexEnvf(disp) GET_by_offset(disp, driDispatchRemapTable[TexEnvf_remap_index])
+#define SET_TexEnvf(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexEnvf_remap_index], fn)
+#define CALL_TexEnvfv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, const GLfloat *)), driDispatchRemapTable[TexEnvfv_remap_index], parameters)
+#define GET_TexEnvfv(disp) GET_by_offset(disp, driDispatchRemapTable[TexEnvfv_remap_index])
+#define SET_TexEnvfv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexEnvfv_remap_index], fn)
+#define CALL_TexEnvi(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLint)), driDispatchRemapTable[TexEnvi_remap_index], parameters)
+#define GET_TexEnvi(disp) GET_by_offset(disp, driDispatchRemapTable[TexEnvi_remap_index])
+#define SET_TexEnvi(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexEnvi_remap_index], fn)
+#define CALL_TexEnviv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, const GLint *)), driDispatchRemapTable[TexEnviv_remap_index], parameters)
+#define GET_TexEnviv(disp) GET_by_offset(disp, driDispatchRemapTable[TexEnviv_remap_index])
+#define SET_TexEnviv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexEnviv_remap_index], fn)
+#define CALL_TexGenfOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfloat)), driDispatchRemapTable[TexGenfOES_remap_index], parameters)
+#define GET_TexGenfOES(disp) GET_by_offset(disp, driDispatchRemapTable[TexGenfOES_remap_index])
+#define SET_TexGenfOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexGenfOES_remap_index], fn)
+#define CALL_TexGenfvOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, const GLfloat *)), driDispatchRemapTable[TexGenfvOES_remap_index], parameters)
+#define GET_TexGenfvOES(disp) GET_by_offset(disp, driDispatchRemapTable[TexGenfvOES_remap_index])
+#define SET_TexGenfvOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexGenfvOES_remap_index], fn)
+#define CALL_TexGeniOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLint)), driDispatchRemapTable[TexGeniOES_remap_index], parameters)
+#define GET_TexGeniOES(disp) GET_by_offset(disp, driDispatchRemapTable[TexGeniOES_remap_index])
+#define SET_TexGeniOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexGeniOES_remap_index], fn)
+#define CALL_TexGenivOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, const GLint *)), driDispatchRemapTable[TexGenivOES_remap_index], parameters)
+#define GET_TexGenivOES(disp) GET_by_offset(disp, driDispatchRemapTable[TexGenivOES_remap_index])
+#define SET_TexGenivOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexGenivOES_remap_index], fn)
+#define CALL_Clear(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLbitfield)), driDispatchRemapTable[Clear_remap_index], parameters)
+#define GET_Clear(disp) GET_by_offset(disp, driDispatchRemapTable[Clear_remap_index])
+#define SET_Clear(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Clear_remap_index], fn)
+#define CALL_ClearColor(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLclampf, GLclampf, GLclampf, GLclampf)), driDispatchRemapTable[ClearColor_remap_index], parameters)
+#define GET_ClearColor(disp) GET_by_offset(disp, driDispatchRemapTable[ClearColor_remap_index])
+#define SET_ClearColor(disp, fn) SET_by_offset(disp, driDispatchRemapTable[ClearColor_remap_index], fn)
+#define CALL_ClearStencil(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLint)), driDispatchRemapTable[ClearStencil_remap_index], parameters)
+#define GET_ClearStencil(disp) GET_by_offset(disp, driDispatchRemapTable[ClearStencil_remap_index])
+#define SET_ClearStencil(disp, fn) SET_by_offset(disp, driDispatchRemapTable[ClearStencil_remap_index], fn)
+#define CALL_StencilMask(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLuint)), driDispatchRemapTable[StencilMask_remap_index], parameters)
+#define GET_StencilMask(disp) GET_by_offset(disp, driDispatchRemapTable[StencilMask_remap_index])
+#define SET_StencilMask(disp, fn) SET_by_offset(disp, driDispatchRemapTable[StencilMask_remap_index], fn)
+#define CALL_ColorMask(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLboolean, GLboolean, GLboolean, GLboolean)), driDispatchRemapTable[ColorMask_remap_index], parameters)
+#define GET_ColorMask(disp) GET_by_offset(disp, driDispatchRemapTable[ColorMask_remap_index])
+#define SET_ColorMask(disp, fn) SET_by_offset(disp, driDispatchRemapTable[ColorMask_remap_index], fn)
+#define CALL_DepthMask(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLboolean)), driDispatchRemapTable[DepthMask_remap_index], parameters)
+#define GET_DepthMask(disp) GET_by_offset(disp, driDispatchRemapTable[DepthMask_remap_index])
+#define SET_DepthMask(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DepthMask_remap_index], fn)
+#define CALL_Disable(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[Disable_remap_index], parameters)
+#define GET_Disable(disp) GET_by_offset(disp, driDispatchRemapTable[Disable_remap_index])
+#define SET_Disable(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Disable_remap_index], fn)
+#define CALL_Enable(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[Enable_remap_index], parameters)
+#define GET_Enable(disp) GET_by_offset(disp, driDispatchRemapTable[Enable_remap_index])
+#define SET_Enable(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Enable_remap_index], fn)
+#define CALL_Finish(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(void)), driDispatchRemapTable[Finish_remap_index], parameters)
+#define GET_Finish(disp) GET_by_offset(disp, driDispatchRemapTable[Finish_remap_index])
+#define SET_Finish(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Finish_remap_index], fn)
+#define CALL_Flush(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(void)), driDispatchRemapTable[Flush_remap_index], parameters)
+#define GET_Flush(disp) GET_by_offset(disp, driDispatchRemapTable[Flush_remap_index])
+#define SET_Flush(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Flush_remap_index], fn)
+#define CALL_AlphaFunc(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLclampf)), driDispatchRemapTable[AlphaFunc_remap_index], parameters)
+#define GET_AlphaFunc(disp) GET_by_offset(disp, driDispatchRemapTable[AlphaFunc_remap_index])
+#define SET_AlphaFunc(disp, fn) SET_by_offset(disp, driDispatchRemapTable[AlphaFunc_remap_index], fn)
+#define CALL_BlendFunc(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum)), driDispatchRemapTable[BlendFunc_remap_index], parameters)
+#define GET_BlendFunc(disp) GET_by_offset(disp, driDispatchRemapTable[BlendFunc_remap_index])
+#define SET_BlendFunc(disp, fn) SET_by_offset(disp, driDispatchRemapTable[BlendFunc_remap_index], fn)
+#define CALL_LogicOp(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[LogicOp_remap_index], parameters)
+#define GET_LogicOp(disp) GET_by_offset(disp, driDispatchRemapTable[LogicOp_remap_index])
+#define SET_LogicOp(disp, fn) SET_by_offset(disp, driDispatchRemapTable[LogicOp_remap_index], fn)
+#define CALL_StencilFunc(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLint, GLuint)), driDispatchRemapTable[StencilFunc_remap_index], parameters)
+#define GET_StencilFunc(disp) GET_by_offset(disp, driDispatchRemapTable[StencilFunc_remap_index])
+#define SET_StencilFunc(disp, fn) SET_by_offset(disp, driDispatchRemapTable[StencilFunc_remap_index], fn)
+#define CALL_StencilOp(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLenum)), driDispatchRemapTable[StencilOp_remap_index], parameters)
+#define GET_StencilOp(disp) GET_by_offset(disp, driDispatchRemapTable[StencilOp_remap_index])
+#define SET_StencilOp(disp, fn) SET_by_offset(disp, driDispatchRemapTable[StencilOp_remap_index], fn)
+#define CALL_DepthFunc(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[DepthFunc_remap_index], parameters)
+#define GET_DepthFunc(disp) GET_by_offset(disp, driDispatchRemapTable[DepthFunc_remap_index])
+#define SET_DepthFunc(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DepthFunc_remap_index], fn)
+#define CALL_PixelStorei(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLint)), driDispatchRemapTable[PixelStorei_remap_index], parameters)
+#define GET_PixelStorei(disp) GET_by_offset(disp, driDispatchRemapTable[PixelStorei_remap_index])
+#define SET_PixelStorei(disp, fn) SET_by_offset(disp, driDispatchRemapTable[PixelStorei_remap_index], fn)
+#define CALL_ReadPixels(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *)), driDispatchRemapTable[ReadPixels_remap_index], parameters)
+#define GET_ReadPixels(disp) GET_by_offset(disp, driDispatchRemapTable[ReadPixels_remap_index])
+#define SET_ReadPixels(disp, fn) SET_by_offset(disp, driDispatchRemapTable[ReadPixels_remap_index], fn)
+#define CALL_GetBooleanv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLboolean *)), driDispatchRemapTable[GetBooleanv_remap_index], parameters)
+#define GET_GetBooleanv(disp) GET_by_offset(disp, driDispatchRemapTable[GetBooleanv_remap_index])
+#define SET_GetBooleanv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetBooleanv_remap_index], fn)
+#define CALL_GetError(disp, parameters) CALL_by_offset(disp, (GLenum (GLAPIENTRYP)(void)), driDispatchRemapTable[GetError_remap_index], parameters)
+#define GET_GetError(disp) GET_by_offset(disp, driDispatchRemapTable[GetError_remap_index])
+#define SET_GetError(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetError_remap_index], fn)
+#define CALL_GetFloatv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLfloat *)), driDispatchRemapTable[GetFloatv_remap_index], parameters)
+#define GET_GetFloatv(disp) GET_by_offset(disp, driDispatchRemapTable[GetFloatv_remap_index])
+#define SET_GetFloatv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetFloatv_remap_index], fn)
+#define CALL_GetIntegerv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLint *)), driDispatchRemapTable[GetIntegerv_remap_index], parameters)
+#define GET_GetIntegerv(disp) GET_by_offset(disp, driDispatchRemapTable[GetIntegerv_remap_index])
+#define SET_GetIntegerv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetIntegerv_remap_index], fn)
+#define CALL_GetLightfv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfloat *)), driDispatchRemapTable[GetLightfv_remap_index], parameters)
+#define GET_GetLightfv(disp) GET_by_offset(disp, driDispatchRemapTable[GetLightfv_remap_index])
+#define SET_GetLightfv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetLightfv_remap_index], fn)
+#define CALL_GetMaterialfv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfloat *)), driDispatchRemapTable[GetMaterialfv_remap_index], parameters)
+#define GET_GetMaterialfv(disp) GET_by_offset(disp, driDispatchRemapTable[GetMaterialfv_remap_index])
+#define SET_GetMaterialfv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetMaterialfv_remap_index], fn)
+#define CALL_GetString(disp, parameters) CALL_by_offset(disp, (const GLubyte * (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[GetString_remap_index], parameters)
+#define GET_GetString(disp) GET_by_offset(disp, driDispatchRemapTable[GetString_remap_index])
+#define SET_GetString(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetString_remap_index], fn)
+#define CALL_GetTexEnvfv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfloat *)), driDispatchRemapTable[GetTexEnvfv_remap_index], parameters)
+#define GET_GetTexEnvfv(disp) GET_by_offset(disp, driDispatchRemapTable[GetTexEnvfv_remap_index])
+#define SET_GetTexEnvfv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetTexEnvfv_remap_index], fn)
+#define CALL_GetTexEnviv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLint *)), driDispatchRemapTable[GetTexEnviv_remap_index], parameters)
+#define GET_GetTexEnviv(disp) GET_by_offset(disp, driDispatchRemapTable[GetTexEnviv_remap_index])
+#define SET_GetTexEnviv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetTexEnviv_remap_index], fn)
+#define CALL_GetTexGenfvOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfloat *)), driDispatchRemapTable[GetTexGenfvOES_remap_index], parameters)
+#define GET_GetTexGenfvOES(disp) GET_by_offset(disp, driDispatchRemapTable[GetTexGenfvOES_remap_index])
+#define SET_GetTexGenfvOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetTexGenfvOES_remap_index], fn)
+#define CALL_GetTexGenivOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLint *)), driDispatchRemapTable[GetTexGenivOES_remap_index], parameters)
+#define GET_GetTexGenivOES(disp) GET_by_offset(disp, driDispatchRemapTable[GetTexGenivOES_remap_index])
+#define SET_GetTexGenivOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetTexGenivOES_remap_index], fn)
+#define CALL_GetTexParameterfv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfloat *)), driDispatchRemapTable[GetTexParameterfv_remap_index], parameters)
+#define GET_GetTexParameterfv(disp) GET_by_offset(disp, driDispatchRemapTable[GetTexParameterfv_remap_index])
+#define SET_GetTexParameterfv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetTexParameterfv_remap_index], fn)
+#define CALL_GetTexParameteriv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLint *)), driDispatchRemapTable[GetTexParameteriv_remap_index], parameters)
+#define GET_GetTexParameteriv(disp) GET_by_offset(disp, driDispatchRemapTable[GetTexParameteriv_remap_index])
+#define SET_GetTexParameteriv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetTexParameteriv_remap_index], fn)
+#define CALL_IsEnabled(disp, parameters) CALL_by_offset(disp, (GLboolean (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[IsEnabled_remap_index], parameters)
+#define GET_IsEnabled(disp) GET_by_offset(disp, driDispatchRemapTable[IsEnabled_remap_index])
+#define SET_IsEnabled(disp, fn) SET_by_offset(disp, driDispatchRemapTable[IsEnabled_remap_index], fn)
+#define CALL_LoadIdentity(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(void)), driDispatchRemapTable[LoadIdentity_remap_index], parameters)
+#define GET_LoadIdentity(disp) GET_by_offset(disp, driDispatchRemapTable[LoadIdentity_remap_index])
+#define SET_LoadIdentity(disp, fn) SET_by_offset(disp, driDispatchRemapTable[LoadIdentity_remap_index], fn)
+#define CALL_LoadMatrixf(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(const GLfloat *)), driDispatchRemapTable[LoadMatrixf_remap_index], parameters)
+#define GET_LoadMatrixf(disp) GET_by_offset(disp, driDispatchRemapTable[LoadMatrixf_remap_index])
+#define SET_LoadMatrixf(disp, fn) SET_by_offset(disp, driDispatchRemapTable[LoadMatrixf_remap_index], fn)
+#define CALL_MatrixMode(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[MatrixMode_remap_index], parameters)
+#define GET_MatrixMode(disp) GET_by_offset(disp, driDispatchRemapTable[MatrixMode_remap_index])
+#define SET_MatrixMode(disp, fn) SET_by_offset(disp, driDispatchRemapTable[MatrixMode_remap_index], fn)
+#define CALL_MultMatrixf(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(const GLfloat *)), driDispatchRemapTable[MultMatrixf_remap_index], parameters)
+#define GET_MultMatrixf(disp) GET_by_offset(disp, driDispatchRemapTable[MultMatrixf_remap_index])
+#define SET_MultMatrixf(disp, fn) SET_by_offset(disp, driDispatchRemapTable[MultMatrixf_remap_index], fn)
+#define CALL_PopMatrix(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(void)), driDispatchRemapTable[PopMatrix_remap_index], parameters)
+#define GET_PopMatrix(disp) GET_by_offset(disp, driDispatchRemapTable[PopMatrix_remap_index])
+#define SET_PopMatrix(disp, fn) SET_by_offset(disp, driDispatchRemapTable[PopMatrix_remap_index], fn)
+#define CALL_PushMatrix(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(void)), driDispatchRemapTable[PushMatrix_remap_index], parameters)
+#define GET_PushMatrix(disp) GET_by_offset(disp, driDispatchRemapTable[PushMatrix_remap_index])
+#define SET_PushMatrix(disp, fn) SET_by_offset(disp, driDispatchRemapTable[PushMatrix_remap_index], fn)
+#define CALL_Rotatef(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfloat, GLfloat, GLfloat, GLfloat)), driDispatchRemapTable[Rotatef_remap_index], parameters)
+#define GET_Rotatef(disp) GET_by_offset(disp, driDispatchRemapTable[Rotatef_remap_index])
+#define SET_Rotatef(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Rotatef_remap_index], fn)
+#define CALL_Scalef(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfloat, GLfloat, GLfloat)), driDispatchRemapTable[Scalef_remap_index], parameters)
+#define GET_Scalef(disp) GET_by_offset(disp, driDispatchRemapTable[Scalef_remap_index])
+#define SET_Scalef(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Scalef_remap_index], fn)
+#define CALL_Translatef(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfloat, GLfloat, GLfloat)), driDispatchRemapTable[Translatef_remap_index], parameters)
+#define GET_Translatef(disp) GET_by_offset(disp, driDispatchRemapTable[Translatef_remap_index])
+#define SET_Translatef(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Translatef_remap_index], fn)
+#define CALL_Viewport(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLint, GLint, GLsizei, GLsizei)), driDispatchRemapTable[Viewport_remap_index], parameters)
+#define GET_Viewport(disp) GET_by_offset(disp, driDispatchRemapTable[Viewport_remap_index])
+#define SET_Viewport(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Viewport_remap_index], fn)
+#define CALL_BindTexture(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLuint)), driDispatchRemapTable[BindTexture_remap_index], parameters)
+#define GET_BindTexture(disp) GET_by_offset(disp, driDispatchRemapTable[BindTexture_remap_index])
+#define SET_BindTexture(disp, fn) SET_by_offset(disp, driDispatchRemapTable[BindTexture_remap_index], fn)
+#define CALL_ColorPointer(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLint, GLenum, GLsizei, const GLvoid *)), driDispatchRemapTable[ColorPointer_remap_index], parameters)
+#define GET_ColorPointer(disp) GET_by_offset(disp, driDispatchRemapTable[ColorPointer_remap_index])
+#define SET_ColorPointer(disp, fn) SET_by_offset(disp, driDispatchRemapTable[ColorPointer_remap_index], fn)
+#define CALL_DisableClientState(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[DisableClientState_remap_index], parameters)
+#define GET_DisableClientState(disp) GET_by_offset(disp, driDispatchRemapTable[DisableClientState_remap_index])
+#define SET_DisableClientState(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DisableClientState_remap_index], fn)
+#define CALL_DrawArrays(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLint, GLsizei)), driDispatchRemapTable[DrawArrays_remap_index], parameters)
+#define GET_DrawArrays(disp) GET_by_offset(disp, driDispatchRemapTable[DrawArrays_remap_index])
+#define SET_DrawArrays(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DrawArrays_remap_index], fn)
+#define CALL_DrawElements(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLsizei, GLenum, const GLvoid *)), driDispatchRemapTable[DrawElements_remap_index], parameters)
+#define GET_DrawElements(disp) GET_by_offset(disp, driDispatchRemapTable[DrawElements_remap_index])
+#define SET_DrawElements(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DrawElements_remap_index], fn)
+#define CALL_EnableClientState(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[EnableClientState_remap_index], parameters)
+#define GET_EnableClientState(disp) GET_by_offset(disp, driDispatchRemapTable[EnableClientState_remap_index])
+#define SET_EnableClientState(disp, fn) SET_by_offset(disp, driDispatchRemapTable[EnableClientState_remap_index], fn)
+#define CALL_NormalPointer(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLsizei, const GLvoid *)), driDispatchRemapTable[NormalPointer_remap_index], parameters)
+#define GET_NormalPointer(disp) GET_by_offset(disp, driDispatchRemapTable[NormalPointer_remap_index])
+#define SET_NormalPointer(disp, fn) SET_by_offset(disp, driDispatchRemapTable[NormalPointer_remap_index], fn)
+#define CALL_PolygonOffset(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfloat, GLfloat)), driDispatchRemapTable[PolygonOffset_remap_index], parameters)
+#define GET_PolygonOffset(disp) GET_by_offset(disp, driDispatchRemapTable[PolygonOffset_remap_index])
+#define SET_PolygonOffset(disp, fn) SET_by_offset(disp, driDispatchRemapTable[PolygonOffset_remap_index], fn)
+#define CALL_TexCoordPointer(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLint, GLenum, GLsizei, const GLvoid *)), driDispatchRemapTable[TexCoordPointer_remap_index], parameters)
+#define GET_TexCoordPointer(disp) GET_by_offset(disp, driDispatchRemapTable[TexCoordPointer_remap_index])
+#define SET_TexCoordPointer(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexCoordPointer_remap_index], fn)
+#define CALL_VertexPointer(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLint, GLenum, GLsizei, const GLvoid *)), driDispatchRemapTable[VertexPointer_remap_index], parameters)
+#define GET_VertexPointer(disp) GET_by_offset(disp, driDispatchRemapTable[VertexPointer_remap_index])
+#define SET_VertexPointer(disp, fn) SET_by_offset(disp, driDispatchRemapTable[VertexPointer_remap_index], fn)
+#define CALL_CopyTexImage2D(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint)), driDispatchRemapTable[CopyTexImage2D_remap_index], parameters)
+#define GET_CopyTexImage2D(disp) GET_by_offset(disp, driDispatchRemapTable[CopyTexImage2D_remap_index])
+#define SET_CopyTexImage2D(disp, fn) SET_by_offset(disp, driDispatchRemapTable[CopyTexImage2D_remap_index], fn)
+#define CALL_CopyTexSubImage2D(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei)), driDispatchRemapTable[CopyTexSubImage2D_remap_index], parameters)
+#define GET_CopyTexSubImage2D(disp) GET_by_offset(disp, driDispatchRemapTable[CopyTexSubImage2D_remap_index])
+#define SET_CopyTexSubImage2D(disp, fn) SET_by_offset(disp, driDispatchRemapTable[CopyTexSubImage2D_remap_index], fn)
+#define CALL_DeleteTextures(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLsizei, const GLuint *)), driDispatchRemapTable[DeleteTextures_remap_index], parameters)
+#define GET_DeleteTextures(disp) GET_by_offset(disp, driDispatchRemapTable[DeleteTextures_remap_index])
+#define SET_DeleteTextures(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DeleteTextures_remap_index], fn)
+#define CALL_GenTextures(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLsizei, GLuint *)), driDispatchRemapTable[GenTextures_remap_index], parameters)
+#define GET_GenTextures(disp) GET_by_offset(disp, driDispatchRemapTable[GenTextures_remap_index])
+#define SET_GenTextures(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GenTextures_remap_index], fn)
+#define CALL_GetPointerv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLvoid **)), driDispatchRemapTable[GetPointerv_remap_index], parameters)
+#define GET_GetPointerv(disp) GET_by_offset(disp, driDispatchRemapTable[GetPointerv_remap_index])
+#define SET_GetPointerv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetPointerv_remap_index], fn)
+#define CALL_IsTexture(disp, parameters) CALL_by_offset(disp, (GLboolean (GLAPIENTRYP)(GLuint)), driDispatchRemapTable[IsTexture_remap_index], parameters)
+#define GET_IsTexture(disp) GET_by_offset(disp, driDispatchRemapTable[IsTexture_remap_index])
+#define SET_IsTexture(disp, fn) SET_by_offset(disp, driDispatchRemapTable[IsTexture_remap_index], fn)
+#define CALL_TexSubImage2D(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *)), driDispatchRemapTable[TexSubImage2D_remap_index], parameters)
+#define GET_TexSubImage2D(disp) GET_by_offset(disp, driDispatchRemapTable[TexSubImage2D_remap_index])
+#define SET_TexSubImage2D(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexSubImage2D_remap_index], fn)
+#define CALL_BlendColor(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLclampf, GLclampf, GLclampf, GLclampf)), driDispatchRemapTable[BlendColor_remap_index], parameters)
+#define GET_BlendColor(disp) GET_by_offset(disp, driDispatchRemapTable[BlendColor_remap_index])
+#define SET_BlendColor(disp, fn) SET_by_offset(disp, driDispatchRemapTable[BlendColor_remap_index], fn)
+#define CALL_BlendEquationOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[BlendEquationOES_remap_index], parameters)
+#define GET_BlendEquationOES(disp) GET_by_offset(disp, driDispatchRemapTable[BlendEquationOES_remap_index])
+#define SET_BlendEquationOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[BlendEquationOES_remap_index], fn)
+#define CALL_TexImage3D(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *)), driDispatchRemapTable[TexImage3D_remap_index], parameters)
+#define GET_TexImage3D(disp) GET_by_offset(disp, driDispatchRemapTable[TexImage3D_remap_index])
+#define SET_TexImage3D(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexImage3D_remap_index], fn)
+#define CALL_TexSubImage3D(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *)), driDispatchRemapTable[TexSubImage3D_remap_index], parameters)
+#define GET_TexSubImage3D(disp) GET_by_offset(disp, driDispatchRemapTable[TexSubImage3D_remap_index])
+#define SET_TexSubImage3D(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexSubImage3D_remap_index], fn)
+#define CALL_CopyTexSubImage3D(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei)), driDispatchRemapTable[CopyTexSubImage3D_remap_index], parameters)
+#define GET_CopyTexSubImage3D(disp) GET_by_offset(disp, driDispatchRemapTable[CopyTexSubImage3D_remap_index])
+#define SET_CopyTexSubImage3D(disp, fn) SET_by_offset(disp, driDispatchRemapTable[CopyTexSubImage3D_remap_index], fn)
+#define CALL_ActiveTexture(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[ActiveTexture_remap_index], parameters)
+#define GET_ActiveTexture(disp) GET_by_offset(disp, driDispatchRemapTable[ActiveTexture_remap_index])
+#define SET_ActiveTexture(disp, fn) SET_by_offset(disp, driDispatchRemapTable[ActiveTexture_remap_index], fn)
+#define CALL_ClientActiveTexture(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[ClientActiveTexture_remap_index], parameters)
+#define GET_ClientActiveTexture(disp) GET_by_offset(disp, driDispatchRemapTable[ClientActiveTexture_remap_index])
+#define SET_ClientActiveTexture(disp, fn) SET_by_offset(disp, driDispatchRemapTable[ClientActiveTexture_remap_index], fn)
+#define CALL_MultiTexCoord4f(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat)), driDispatchRemapTable[MultiTexCoord4f_remap_index], parameters)
+#define GET_MultiTexCoord4f(disp) GET_by_offset(disp, driDispatchRemapTable[MultiTexCoord4f_remap_index])
+#define SET_MultiTexCoord4f(disp, fn) SET_by_offset(disp, driDispatchRemapTable[MultiTexCoord4f_remap_index], fn)
+#define CALL_BlendEquationSeparateOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum)), driDispatchRemapTable[BlendEquationSeparateOES_remap_index], parameters)
+#define GET_BlendEquationSeparateOES(disp) GET_by_offset(disp, driDispatchRemapTable[BlendEquationSeparateOES_remap_index])
+#define SET_BlendEquationSeparateOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[BlendEquationSeparateOES_remap_index], fn)
+#define CALL_BlendFuncSeparateOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLenum, GLenum)), driDispatchRemapTable[BlendFuncSeparateOES_remap_index], parameters)
+#define GET_BlendFuncSeparateOES(disp) GET_by_offset(disp, driDispatchRemapTable[BlendFuncSeparateOES_remap_index])
+#define SET_BlendFuncSeparateOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[BlendFuncSeparateOES_remap_index], fn)
+#define CALL_DrawTexfOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfloat, GLfloat, GLfloat, GLfloat, GLfloat)), driDispatchRemapTable[DrawTexfOES_remap_index], parameters)
+#define GET_DrawTexfOES(disp) GET_by_offset(disp, driDispatchRemapTable[DrawTexfOES_remap_index])
+#define SET_DrawTexfOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DrawTexfOES_remap_index], fn)
+#define CALL_DrawTexfvOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(const GLfloat *)), driDispatchRemapTable[DrawTexfvOES_remap_index], parameters)
+#define GET_DrawTexfvOES(disp) GET_by_offset(disp, driDispatchRemapTable[DrawTexfvOES_remap_index])
+#define SET_DrawTexfvOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DrawTexfvOES_remap_index], fn)
+#define CALL_DrawTexiOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLint, GLint, GLint, GLint, GLint)), driDispatchRemapTable[DrawTexiOES_remap_index], parameters)
+#define GET_DrawTexiOES(disp) GET_by_offset(disp, driDispatchRemapTable[DrawTexiOES_remap_index])
+#define SET_DrawTexiOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DrawTexiOES_remap_index], fn)
+#define CALL_DrawTexivOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(const GLint *)), driDispatchRemapTable[DrawTexivOES_remap_index], parameters)
+#define GET_DrawTexivOES(disp) GET_by_offset(disp, driDispatchRemapTable[DrawTexivOES_remap_index])
+#define SET_DrawTexivOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DrawTexivOES_remap_index], fn)
+#define CALL_DrawTexsOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLshort, GLshort, GLshort, GLshort, GLshort)), driDispatchRemapTable[DrawTexsOES_remap_index], parameters)
+#define GET_DrawTexsOES(disp) GET_by_offset(disp, driDispatchRemapTable[DrawTexsOES_remap_index])
+#define SET_DrawTexsOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DrawTexsOES_remap_index], fn)
+#define CALL_DrawTexsvOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(const GLshort *)), driDispatchRemapTable[DrawTexsvOES_remap_index], parameters)
+#define GET_DrawTexsvOES(disp) GET_by_offset(disp, driDispatchRemapTable[DrawTexsvOES_remap_index])
+#define SET_DrawTexsvOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DrawTexsvOES_remap_index], fn)
+#define CALL_DrawTexxOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfixed, GLfixed, GLfixed, GLfixed, GLfixed)), driDispatchRemapTable[DrawTexxOES_remap_index], parameters)
+#define GET_DrawTexxOES(disp) GET_by_offset(disp, driDispatchRemapTable[DrawTexxOES_remap_index])
+#define SET_DrawTexxOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DrawTexxOES_remap_index], fn)
+#define CALL_DrawTexxvOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(const GLfixed *)), driDispatchRemapTable[DrawTexxvOES_remap_index], parameters)
+#define GET_DrawTexxvOES(disp) GET_by_offset(disp, driDispatchRemapTable[DrawTexxvOES_remap_index])
+#define SET_DrawTexxvOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DrawTexxvOES_remap_index], fn)
+#define CALL_BindFramebufferOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLuint)), driDispatchRemapTable[BindFramebufferOES_remap_index], parameters)
+#define GET_BindFramebufferOES(disp) GET_by_offset(disp, driDispatchRemapTable[BindFramebufferOES_remap_index])
+#define SET_BindFramebufferOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[BindFramebufferOES_remap_index], fn)
+#define CALL_BindRenderbufferOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLuint)), driDispatchRemapTable[BindRenderbufferOES_remap_index], parameters)
+#define GET_BindRenderbufferOES(disp) GET_by_offset(disp, driDispatchRemapTable[BindRenderbufferOES_remap_index])
+#define SET_BindRenderbufferOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[BindRenderbufferOES_remap_index], fn)
+#define CALL_CheckFramebufferStatusOES(disp, parameters) CALL_by_offset(disp, (GLenum (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[CheckFramebufferStatusOES_remap_index], parameters)
+#define GET_CheckFramebufferStatusOES(disp) GET_by_offset(disp, driDispatchRemapTable[CheckFramebufferStatusOES_remap_index])
+#define SET_CheckFramebufferStatusOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[CheckFramebufferStatusOES_remap_index], fn)
+#define CALL_DeleteFramebuffersOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLsizei, const GLuint *)), driDispatchRemapTable[DeleteFramebuffersOES_remap_index], parameters)
+#define GET_DeleteFramebuffersOES(disp) GET_by_offset(disp, driDispatchRemapTable[DeleteFramebuffersOES_remap_index])
+#define SET_DeleteFramebuffersOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DeleteFramebuffersOES_remap_index], fn)
+#define CALL_DeleteRenderbuffersOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLsizei, const GLuint *)), driDispatchRemapTable[DeleteRenderbuffersOES_remap_index], parameters)
+#define GET_DeleteRenderbuffersOES(disp) GET_by_offset(disp, driDispatchRemapTable[DeleteRenderbuffersOES_remap_index])
+#define SET_DeleteRenderbuffersOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DeleteRenderbuffersOES_remap_index], fn)
+#define CALL_FramebufferRenderbufferOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLenum, GLuint)), driDispatchRemapTable[FramebufferRenderbufferOES_remap_index], parameters)
+#define GET_FramebufferRenderbufferOES(disp) GET_by_offset(disp, driDispatchRemapTable[FramebufferRenderbufferOES_remap_index])
+#define SET_FramebufferRenderbufferOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[FramebufferRenderbufferOES_remap_index], fn)
+#define CALL_FramebufferTexture2DOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLenum, GLuint, GLint)), driDispatchRemapTable[FramebufferTexture2DOES_remap_index], parameters)
+#define GET_FramebufferTexture2DOES(disp) GET_by_offset(disp, driDispatchRemapTable[FramebufferTexture2DOES_remap_index])
+#define SET_FramebufferTexture2DOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[FramebufferTexture2DOES_remap_index], fn)
+#define CALL_GenFramebuffersOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLsizei, GLuint *)), driDispatchRemapTable[GenFramebuffersOES_remap_index], parameters)
+#define GET_GenFramebuffersOES(disp) GET_by_offset(disp, driDispatchRemapTable[GenFramebuffersOES_remap_index])
+#define SET_GenFramebuffersOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GenFramebuffersOES_remap_index], fn)
+#define CALL_GenRenderbuffersOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLsizei, GLuint *)), driDispatchRemapTable[GenRenderbuffersOES_remap_index], parameters)
+#define GET_GenRenderbuffersOES(disp) GET_by_offset(disp, driDispatchRemapTable[GenRenderbuffersOES_remap_index])
+#define SET_GenRenderbuffersOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GenRenderbuffersOES_remap_index], fn)
+#define CALL_GenerateMipmapOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[GenerateMipmapOES_remap_index], parameters)
+#define GET_GenerateMipmapOES(disp) GET_by_offset(disp, driDispatchRemapTable[GenerateMipmapOES_remap_index])
+#define SET_GenerateMipmapOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GenerateMipmapOES_remap_index], fn)
+#define CALL_GetFramebufferAttachmentParameterivOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLenum, GLint *)), driDispatchRemapTable[GetFramebufferAttachmentParameterivOES_remap_index], parameters)
+#define GET_GetFramebufferAttachmentParameterivOES(disp) GET_by_offset(disp, driDispatchRemapTable[GetFramebufferAttachmentParameterivOES_remap_index])
+#define SET_GetFramebufferAttachmentParameterivOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetFramebufferAttachmentParameterivOES_remap_index], fn)
+#define CALL_GetRenderbufferParameterivOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLint *)), driDispatchRemapTable[GetRenderbufferParameterivOES_remap_index], parameters)
+#define GET_GetRenderbufferParameterivOES(disp) GET_by_offset(disp, driDispatchRemapTable[GetRenderbufferParameterivOES_remap_index])
+#define SET_GetRenderbufferParameterivOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetRenderbufferParameterivOES_remap_index], fn)
+#define CALL_IsFramebufferOES(disp, parameters) CALL_by_offset(disp, (GLboolean (GLAPIENTRYP)(GLuint)), driDispatchRemapTable[IsFramebufferOES_remap_index], parameters)
+#define GET_IsFramebufferOES(disp) GET_by_offset(disp, driDispatchRemapTable[IsFramebufferOES_remap_index])
+#define SET_IsFramebufferOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[IsFramebufferOES_remap_index], fn)
+#define CALL_IsRenderbufferOES(disp, parameters) CALL_by_offset(disp, (GLboolean (GLAPIENTRYP)(GLuint)), driDispatchRemapTable[IsRenderbufferOES_remap_index], parameters)
+#define GET_IsRenderbufferOES(disp) GET_by_offset(disp, driDispatchRemapTable[IsRenderbufferOES_remap_index])
+#define SET_IsRenderbufferOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[IsRenderbufferOES_remap_index], fn)
+#define CALL_RenderbufferStorageOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLsizei, GLsizei)), driDispatchRemapTable[RenderbufferStorageOES_remap_index], parameters)
+#define GET_RenderbufferStorageOES(disp) GET_by_offset(disp, driDispatchRemapTable[RenderbufferStorageOES_remap_index])
+#define SET_RenderbufferStorageOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[RenderbufferStorageOES_remap_index], fn)
+#define CALL_PointSizePointerOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLsizei, const GLvoid *)), driDispatchRemapTable[PointSizePointerOES_remap_index], parameters)
+#define GET_PointSizePointerOES(disp) GET_by_offset(disp, driDispatchRemapTable[PointSizePointerOES_remap_index])
+#define SET_PointSizePointerOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[PointSizePointerOES_remap_index], fn)
+#define CALL_QueryMatrixxOES(disp, parameters) CALL_by_offset(disp, (GLbitfield (GLAPIENTRYP)(GLfixed *, GLint *)), driDispatchRemapTable[QueryMatrixxOES_remap_index], parameters)
+#define GET_QueryMatrixxOES(disp) GET_by_offset(disp, driDispatchRemapTable[QueryMatrixxOES_remap_index])
+#define SET_QueryMatrixxOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[QueryMatrixxOES_remap_index], fn)
+#define CALL_GetTexGenxvOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfixed *)), driDispatchRemapTable[GetTexGenxvOES_remap_index], parameters)
+#define GET_GetTexGenxvOES(disp) GET_by_offset(disp, driDispatchRemapTable[GetTexGenxvOES_remap_index])
+#define SET_GetTexGenxvOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetTexGenxvOES_remap_index], fn)
+#define CALL_TexGenxOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLint)), driDispatchRemapTable[TexGenxOES_remap_index], parameters)
+#define GET_TexGenxOES(disp) GET_by_offset(disp, driDispatchRemapTable[TexGenxOES_remap_index])
+#define SET_TexGenxOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexGenxOES_remap_index], fn)
+#define CALL_TexGenxvOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, const GLfixed *)), driDispatchRemapTable[TexGenxvOES_remap_index], parameters)
+#define GET_TexGenxvOES(disp) GET_by_offset(disp, driDispatchRemapTable[TexGenxvOES_remap_index])
+#define SET_TexGenxvOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexGenxvOES_remap_index], fn)
+#define CALL_EGLImageTargetRenderbufferStorageOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLeglImageOES)), driDispatchRemapTable[EGLImageTargetRenderbufferStorageOES_remap_index], parameters)
+#define GET_EGLImageTargetRenderbufferStorageOES(disp) GET_by_offset(disp, driDispatchRemapTable[EGLImageTargetRenderbufferStorageOES_remap_index])
+#define SET_EGLImageTargetRenderbufferStorageOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[EGLImageTargetRenderbufferStorageOES_remap_index], fn)
+#define CALL_EGLImageTargetTexture2DOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLeglImageOES)), driDispatchRemapTable[EGLImageTargetTexture2DOES_remap_index], parameters)
+#define GET_EGLImageTargetTexture2DOES(disp) GET_by_offset(disp, driDispatchRemapTable[EGLImageTargetTexture2DOES_remap_index])
+#define SET_EGLImageTargetTexture2DOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[EGLImageTargetTexture2DOES_remap_index], fn)
+#define CALL_GetBufferPointervOES(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLvoid **)), driDispatchRemapTable[GetBufferPointervOES_remap_index], parameters)
+#define GET_GetBufferPointervOES(disp) GET_by_offset(disp, driDispatchRemapTable[GetBufferPointervOES_remap_index])
+#define SET_GetBufferPointervOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetBufferPointervOES_remap_index], fn)
+#define CALL_MapBufferOES(disp, parameters) CALL_by_offset(disp, (GLvoid * (GLAPIENTRYP)(GLenum, GLenum)), driDispatchRemapTable[MapBufferOES_remap_index], parameters)
+#define GET_MapBufferOES(disp) GET_by_offset(disp, driDispatchRemapTable[MapBufferOES_remap_index])
+#define SET_MapBufferOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[MapBufferOES_remap_index], fn)
+#define CALL_UnmapBufferOES(disp, parameters) CALL_by_offset(disp, (GLboolean (GLAPIENTRYP)(GLenum)), driDispatchRemapTable[UnmapBufferOES_remap_index], parameters)
+#define GET_UnmapBufferOES(disp) GET_by_offset(disp, driDispatchRemapTable[UnmapBufferOES_remap_index])
+#define SET_UnmapBufferOES(disp, fn) SET_by_offset(disp, driDispatchRemapTable[UnmapBufferOES_remap_index], fn)
+#define CALL_BindVertexArrayAPPLE(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLuint)), driDispatchRemapTable[BindVertexArrayAPPLE_remap_index], parameters)
+#define GET_BindVertexArrayAPPLE(disp) GET_by_offset(disp, driDispatchRemapTable[BindVertexArrayAPPLE_remap_index])
+#define SET_BindVertexArrayAPPLE(disp, fn) SET_by_offset(disp, driDispatchRemapTable[BindVertexArrayAPPLE_remap_index], fn)
+#define CALL_DeleteVertexArraysAPPLE(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLsizei, const GLuint *)), driDispatchRemapTable[DeleteVertexArraysAPPLE_remap_index], parameters)
+#define GET_DeleteVertexArraysAPPLE(disp) GET_by_offset(disp, driDispatchRemapTable[DeleteVertexArraysAPPLE_remap_index])
+#define SET_DeleteVertexArraysAPPLE(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DeleteVertexArraysAPPLE_remap_index], fn)
+#define CALL_GenVertexArraysAPPLE(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLsizei, GLuint *)), driDispatchRemapTable[GenVertexArraysAPPLE_remap_index], parameters)
+#define GET_GenVertexArraysAPPLE(disp) GET_by_offset(disp, driDispatchRemapTable[GenVertexArraysAPPLE_remap_index])
+#define SET_GenVertexArraysAPPLE(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GenVertexArraysAPPLE_remap_index], fn)
+#define CALL_IsVertexArrayAPPLE(disp, parameters) CALL_by_offset(disp, (GLboolean (GLAPIENTRYP)(GLuint)), driDispatchRemapTable[IsVertexArrayAPPLE_remap_index], parameters)
+#define GET_IsVertexArrayAPPLE(disp) GET_by_offset(disp, driDispatchRemapTable[IsVertexArrayAPPLE_remap_index])
+#define SET_IsVertexArrayAPPLE(disp, fn) SET_by_offset(disp, driDispatchRemapTable[IsVertexArrayAPPLE_remap_index], fn)
+#define CALL_CompressedTexImage2D(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *)), driDispatchRemapTable[CompressedTexImage2D_remap_index], parameters)
+#define GET_CompressedTexImage2D(disp) GET_by_offset(disp, driDispatchRemapTable[CompressedTexImage2D_remap_index])
+#define SET_CompressedTexImage2D(disp, fn) SET_by_offset(disp, driDispatchRemapTable[CompressedTexImage2D_remap_index], fn)
+#define CALL_CompressedTexSubImage2D(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *)), driDispatchRemapTable[CompressedTexSubImage2D_remap_index], parameters)
+#define GET_CompressedTexSubImage2D(disp) GET_by_offset(disp, driDispatchRemapTable[CompressedTexSubImage2D_remap_index])
+#define SET_CompressedTexSubImage2D(disp, fn) SET_by_offset(disp, driDispatchRemapTable[CompressedTexSubImage2D_remap_index], fn)
+#define CALL_SampleCoverage(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLclampf, GLboolean)), driDispatchRemapTable[SampleCoverage_remap_index], parameters)
+#define GET_SampleCoverage(disp) GET_by_offset(disp, driDispatchRemapTable[SampleCoverage_remap_index])
+#define SET_SampleCoverage(disp, fn) SET_by_offset(disp, driDispatchRemapTable[SampleCoverage_remap_index], fn)
+#define CALL_BindBuffer(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLuint)), driDispatchRemapTable[BindBuffer_remap_index], parameters)
+#define GET_BindBuffer(disp) GET_by_offset(disp, driDispatchRemapTable[BindBuffer_remap_index])
+#define SET_BindBuffer(disp, fn) SET_by_offset(disp, driDispatchRemapTable[BindBuffer_remap_index], fn)
+#define CALL_BufferData(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLsizeiptr, const GLvoid *, GLenum)), driDispatchRemapTable[BufferData_remap_index], parameters)
+#define GET_BufferData(disp) GET_by_offset(disp, driDispatchRemapTable[BufferData_remap_index])
+#define SET_BufferData(disp, fn) SET_by_offset(disp, driDispatchRemapTable[BufferData_remap_index], fn)
+#define CALL_BufferSubData(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLintptr, GLsizeiptr, const GLvoid *)), driDispatchRemapTable[BufferSubData_remap_index], parameters)
+#define GET_BufferSubData(disp) GET_by_offset(disp, driDispatchRemapTable[BufferSubData_remap_index])
+#define SET_BufferSubData(disp, fn) SET_by_offset(disp, driDispatchRemapTable[BufferSubData_remap_index], fn)
+#define CALL_DeleteBuffers(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLsizei, const GLuint *)), driDispatchRemapTable[DeleteBuffers_remap_index], parameters)
+#define GET_DeleteBuffers(disp) GET_by_offset(disp, driDispatchRemapTable[DeleteBuffers_remap_index])
+#define SET_DeleteBuffers(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DeleteBuffers_remap_index], fn)
+#define CALL_GenBuffers(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLsizei, GLuint *)), driDispatchRemapTable[GenBuffers_remap_index], parameters)
+#define GET_GenBuffers(disp) GET_by_offset(disp, driDispatchRemapTable[GenBuffers_remap_index])
+#define SET_GenBuffers(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GenBuffers_remap_index], fn)
+#define CALL_GetBufferParameteriv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLint *)), driDispatchRemapTable[GetBufferParameteriv_remap_index], parameters)
+#define GET_GetBufferParameteriv(disp) GET_by_offset(disp, driDispatchRemapTable[GetBufferParameteriv_remap_index])
+#define SET_GetBufferParameteriv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetBufferParameteriv_remap_index], fn)
+#define CALL_IsBuffer(disp, parameters) CALL_by_offset(disp, (GLboolean (GLAPIENTRYP)(GLuint)), driDispatchRemapTable[IsBuffer_remap_index], parameters)
+#define GET_IsBuffer(disp) GET_by_offset(disp, driDispatchRemapTable[IsBuffer_remap_index])
+#define SET_IsBuffer(disp, fn) SET_by_offset(disp, driDispatchRemapTable[IsBuffer_remap_index], fn)
+#define CALL_AlphaFuncx(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLclampx)), driDispatchRemapTable[AlphaFuncx_remap_index], parameters)
+#define GET_AlphaFuncx(disp) GET_by_offset(disp, driDispatchRemapTable[AlphaFuncx_remap_index])
+#define SET_AlphaFuncx(disp, fn) SET_by_offset(disp, driDispatchRemapTable[AlphaFuncx_remap_index], fn)
+#define CALL_ClearColorx(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLclampx, GLclampx, GLclampx, GLclampx)), driDispatchRemapTable[ClearColorx_remap_index], parameters)
+#define GET_ClearColorx(disp) GET_by_offset(disp, driDispatchRemapTable[ClearColorx_remap_index])
+#define SET_ClearColorx(disp, fn) SET_by_offset(disp, driDispatchRemapTable[ClearColorx_remap_index], fn)
+#define CALL_ClearDepthf(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLclampf)), driDispatchRemapTable[ClearDepthf_remap_index], parameters)
+#define GET_ClearDepthf(disp) GET_by_offset(disp, driDispatchRemapTable[ClearDepthf_remap_index])
+#define SET_ClearDepthf(disp, fn) SET_by_offset(disp, driDispatchRemapTable[ClearDepthf_remap_index], fn)
+#define CALL_ClearDepthx(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLclampx)), driDispatchRemapTable[ClearDepthx_remap_index], parameters)
+#define GET_ClearDepthx(disp) GET_by_offset(disp, driDispatchRemapTable[ClearDepthx_remap_index])
+#define SET_ClearDepthx(disp, fn) SET_by_offset(disp, driDispatchRemapTable[ClearDepthx_remap_index], fn)
+#define CALL_Color4x(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfixed, GLfixed, GLfixed, GLfixed)), driDispatchRemapTable[Color4x_remap_index], parameters)
+#define GET_Color4x(disp) GET_by_offset(disp, driDispatchRemapTable[Color4x_remap_index])
+#define SET_Color4x(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Color4x_remap_index], fn)
+#define CALL_DepthRangef(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLclampf, GLclampf)), driDispatchRemapTable[DepthRangef_remap_index], parameters)
+#define GET_DepthRangef(disp) GET_by_offset(disp, driDispatchRemapTable[DepthRangef_remap_index])
+#define SET_DepthRangef(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DepthRangef_remap_index], fn)
+#define CALL_DepthRangex(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLclampx, GLclampx)), driDispatchRemapTable[DepthRangex_remap_index], parameters)
+#define GET_DepthRangex(disp) GET_by_offset(disp, driDispatchRemapTable[DepthRangex_remap_index])
+#define SET_DepthRangex(disp, fn) SET_by_offset(disp, driDispatchRemapTable[DepthRangex_remap_index], fn)
+#define CALL_Fogx(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLfixed)), driDispatchRemapTable[Fogx_remap_index], parameters)
+#define GET_Fogx(disp) GET_by_offset(disp, driDispatchRemapTable[Fogx_remap_index])
+#define SET_Fogx(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Fogx_remap_index], fn)
+#define CALL_Fogxv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, const GLfixed *)), driDispatchRemapTable[Fogxv_remap_index], parameters)
+#define GET_Fogxv(disp) GET_by_offset(disp, driDispatchRemapTable[Fogxv_remap_index])
+#define SET_Fogxv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Fogxv_remap_index], fn)
+#define CALL_Frustumf(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat)), driDispatchRemapTable[Frustumf_remap_index], parameters)
+#define GET_Frustumf(disp) GET_by_offset(disp, driDispatchRemapTable[Frustumf_remap_index])
+#define SET_Frustumf(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Frustumf_remap_index], fn)
+#define CALL_Frustumx(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfixed, GLfixed, GLfixed, GLfixed, GLfixed, GLfixed)), driDispatchRemapTable[Frustumx_remap_index], parameters)
+#define GET_Frustumx(disp) GET_by_offset(disp, driDispatchRemapTable[Frustumx_remap_index])
+#define SET_Frustumx(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Frustumx_remap_index], fn)
+#define CALL_LightModelx(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLfixed)), driDispatchRemapTable[LightModelx_remap_index], parameters)
+#define GET_LightModelx(disp) GET_by_offset(disp, driDispatchRemapTable[LightModelx_remap_index])
+#define SET_LightModelx(disp, fn) SET_by_offset(disp, driDispatchRemapTable[LightModelx_remap_index], fn)
+#define CALL_LightModelxv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, const GLfixed *)), driDispatchRemapTable[LightModelxv_remap_index], parameters)
+#define GET_LightModelxv(disp) GET_by_offset(disp, driDispatchRemapTable[LightModelxv_remap_index])
+#define SET_LightModelxv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[LightModelxv_remap_index], fn)
+#define CALL_Lightx(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfixed)), driDispatchRemapTable[Lightx_remap_index], parameters)
+#define GET_Lightx(disp) GET_by_offset(disp, driDispatchRemapTable[Lightx_remap_index])
+#define SET_Lightx(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Lightx_remap_index], fn)
+#define CALL_Lightxv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, const GLfixed *)), driDispatchRemapTable[Lightxv_remap_index], parameters)
+#define GET_Lightxv(disp) GET_by_offset(disp, driDispatchRemapTable[Lightxv_remap_index])
+#define SET_Lightxv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Lightxv_remap_index], fn)
+#define CALL_LineWidthx(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfixed)), driDispatchRemapTable[LineWidthx_remap_index], parameters)
+#define GET_LineWidthx(disp) GET_by_offset(disp, driDispatchRemapTable[LineWidthx_remap_index])
+#define SET_LineWidthx(disp, fn) SET_by_offset(disp, driDispatchRemapTable[LineWidthx_remap_index], fn)
+#define CALL_LoadMatrixx(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(const GLfixed *)), driDispatchRemapTable[LoadMatrixx_remap_index], parameters)
+#define GET_LoadMatrixx(disp) GET_by_offset(disp, driDispatchRemapTable[LoadMatrixx_remap_index])
+#define SET_LoadMatrixx(disp, fn) SET_by_offset(disp, driDispatchRemapTable[LoadMatrixx_remap_index], fn)
+#define CALL_Materialx(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfixed)), driDispatchRemapTable[Materialx_remap_index], parameters)
+#define GET_Materialx(disp) GET_by_offset(disp, driDispatchRemapTable[Materialx_remap_index])
+#define SET_Materialx(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Materialx_remap_index], fn)
+#define CALL_Materialxv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, const GLfixed *)), driDispatchRemapTable[Materialxv_remap_index], parameters)
+#define GET_Materialxv(disp) GET_by_offset(disp, driDispatchRemapTable[Materialxv_remap_index])
+#define SET_Materialxv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Materialxv_remap_index], fn)
+#define CALL_MultMatrixx(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(const GLfixed *)), driDispatchRemapTable[MultMatrixx_remap_index], parameters)
+#define GET_MultMatrixx(disp) GET_by_offset(disp, driDispatchRemapTable[MultMatrixx_remap_index])
+#define SET_MultMatrixx(disp, fn) SET_by_offset(disp, driDispatchRemapTable[MultMatrixx_remap_index], fn)
+#define CALL_MultiTexCoord4x(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLfixed, GLfixed, GLfixed, GLfixed)), driDispatchRemapTable[MultiTexCoord4x_remap_index], parameters)
+#define GET_MultiTexCoord4x(disp) GET_by_offset(disp, driDispatchRemapTable[MultiTexCoord4x_remap_index])
+#define SET_MultiTexCoord4x(disp, fn) SET_by_offset(disp, driDispatchRemapTable[MultiTexCoord4x_remap_index], fn)
+#define CALL_Normal3x(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfixed, GLfixed, GLfixed)), driDispatchRemapTable[Normal3x_remap_index], parameters)
+#define GET_Normal3x(disp) GET_by_offset(disp, driDispatchRemapTable[Normal3x_remap_index])
+#define SET_Normal3x(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Normal3x_remap_index], fn)
+#define CALL_Orthof(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat)), driDispatchRemapTable[Orthof_remap_index], parameters)
+#define GET_Orthof(disp) GET_by_offset(disp, driDispatchRemapTable[Orthof_remap_index])
+#define SET_Orthof(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Orthof_remap_index], fn)
+#define CALL_Orthox(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfixed, GLfixed, GLfixed, GLfixed, GLfixed, GLfixed)), driDispatchRemapTable[Orthox_remap_index], parameters)
+#define GET_Orthox(disp) GET_by_offset(disp, driDispatchRemapTable[Orthox_remap_index])
+#define SET_Orthox(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Orthox_remap_index], fn)
+#define CALL_PointSizex(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfixed)), driDispatchRemapTable[PointSizex_remap_index], parameters)
+#define GET_PointSizex(disp) GET_by_offset(disp, driDispatchRemapTable[PointSizex_remap_index])
+#define SET_PointSizex(disp, fn) SET_by_offset(disp, driDispatchRemapTable[PointSizex_remap_index], fn)
+#define CALL_PolygonOffsetx(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfixed, GLfixed)), driDispatchRemapTable[PolygonOffsetx_remap_index], parameters)
+#define GET_PolygonOffsetx(disp) GET_by_offset(disp, driDispatchRemapTable[PolygonOffsetx_remap_index])
+#define SET_PolygonOffsetx(disp, fn) SET_by_offset(disp, driDispatchRemapTable[PolygonOffsetx_remap_index], fn)
+#define CALL_Rotatex(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfixed, GLfixed, GLfixed, GLfixed)), driDispatchRemapTable[Rotatex_remap_index], parameters)
+#define GET_Rotatex(disp) GET_by_offset(disp, driDispatchRemapTable[Rotatex_remap_index])
+#define SET_Rotatex(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Rotatex_remap_index], fn)
+#define CALL_SampleCoveragex(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLclampx, GLboolean)), driDispatchRemapTable[SampleCoveragex_remap_index], parameters)
+#define GET_SampleCoveragex(disp) GET_by_offset(disp, driDispatchRemapTable[SampleCoveragex_remap_index])
+#define SET_SampleCoveragex(disp, fn) SET_by_offset(disp, driDispatchRemapTable[SampleCoveragex_remap_index], fn)
+#define CALL_Scalex(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfixed, GLfixed, GLfixed)), driDispatchRemapTable[Scalex_remap_index], parameters)
+#define GET_Scalex(disp) GET_by_offset(disp, driDispatchRemapTable[Scalex_remap_index])
+#define SET_Scalex(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Scalex_remap_index], fn)
+#define CALL_TexEnvx(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfixed)), driDispatchRemapTable[TexEnvx_remap_index], parameters)
+#define GET_TexEnvx(disp) GET_by_offset(disp, driDispatchRemapTable[TexEnvx_remap_index])
+#define SET_TexEnvx(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexEnvx_remap_index], fn)
+#define CALL_TexEnvxv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, const GLfixed *)), driDispatchRemapTable[TexEnvxv_remap_index], parameters)
+#define GET_TexEnvxv(disp) GET_by_offset(disp, driDispatchRemapTable[TexEnvxv_remap_index])
+#define SET_TexEnvxv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexEnvxv_remap_index], fn)
+#define CALL_TexParameterx(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfixed)), driDispatchRemapTable[TexParameterx_remap_index], parameters)
+#define GET_TexParameterx(disp) GET_by_offset(disp, driDispatchRemapTable[TexParameterx_remap_index])
+#define SET_TexParameterx(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexParameterx_remap_index], fn)
+#define CALL_Translatex(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLfixed, GLfixed, GLfixed)), driDispatchRemapTable[Translatex_remap_index], parameters)
+#define GET_Translatex(disp) GET_by_offset(disp, driDispatchRemapTable[Translatex_remap_index])
+#define SET_Translatex(disp, fn) SET_by_offset(disp, driDispatchRemapTable[Translatex_remap_index], fn)
+#define CALL_ClipPlanef(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, const GLfloat *)), driDispatchRemapTable[ClipPlanef_remap_index], parameters)
+#define GET_ClipPlanef(disp) GET_by_offset(disp, driDispatchRemapTable[ClipPlanef_remap_index])
+#define SET_ClipPlanef(disp, fn) SET_by_offset(disp, driDispatchRemapTable[ClipPlanef_remap_index], fn)
+#define CALL_ClipPlanex(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, const GLfixed *)), driDispatchRemapTable[ClipPlanex_remap_index], parameters)
+#define GET_ClipPlanex(disp) GET_by_offset(disp, driDispatchRemapTable[ClipPlanex_remap_index])
+#define SET_ClipPlanex(disp, fn) SET_by_offset(disp, driDispatchRemapTable[ClipPlanex_remap_index], fn)
+#define CALL_GetClipPlanef(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLfloat *)), driDispatchRemapTable[GetClipPlanef_remap_index], parameters)
+#define GET_GetClipPlanef(disp) GET_by_offset(disp, driDispatchRemapTable[GetClipPlanef_remap_index])
+#define SET_GetClipPlanef(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetClipPlanef_remap_index], fn)
+#define CALL_GetClipPlanex(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLfixed *)), driDispatchRemapTable[GetClipPlanex_remap_index], parameters)
+#define GET_GetClipPlanex(disp) GET_by_offset(disp, driDispatchRemapTable[GetClipPlanex_remap_index])
+#define SET_GetClipPlanex(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetClipPlanex_remap_index], fn)
+#define CALL_GetFixedv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLfixed *)), driDispatchRemapTable[GetFixedv_remap_index], parameters)
+#define GET_GetFixedv(disp) GET_by_offset(disp, driDispatchRemapTable[GetFixedv_remap_index])
+#define SET_GetFixedv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetFixedv_remap_index], fn)
+#define CALL_GetLightxv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfixed *)), driDispatchRemapTable[GetLightxv_remap_index], parameters)
+#define GET_GetLightxv(disp) GET_by_offset(disp, driDispatchRemapTable[GetLightxv_remap_index])
+#define SET_GetLightxv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetLightxv_remap_index], fn)
+#define CALL_GetMaterialxv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfixed *)), driDispatchRemapTable[GetMaterialxv_remap_index], parameters)
+#define GET_GetMaterialxv(disp) GET_by_offset(disp, driDispatchRemapTable[GetMaterialxv_remap_index])
+#define SET_GetMaterialxv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetMaterialxv_remap_index], fn)
+#define CALL_GetTexEnvxv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfixed *)), driDispatchRemapTable[GetTexEnvxv_remap_index], parameters)
+#define GET_GetTexEnvxv(disp) GET_by_offset(disp, driDispatchRemapTable[GetTexEnvxv_remap_index])
+#define SET_GetTexEnvxv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetTexEnvxv_remap_index], fn)
+#define CALL_GetTexParameterxv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, GLfixed *)), driDispatchRemapTable[GetTexParameterxv_remap_index], parameters)
+#define GET_GetTexParameterxv(disp) GET_by_offset(disp, driDispatchRemapTable[GetTexParameterxv_remap_index])
+#define SET_GetTexParameterxv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetTexParameterxv_remap_index], fn)
+#define CALL_PointParameterx(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLfixed)), driDispatchRemapTable[PointParameterx_remap_index], parameters)
+#define GET_PointParameterx(disp) GET_by_offset(disp, driDispatchRemapTable[PointParameterx_remap_index])
+#define SET_PointParameterx(disp, fn) SET_by_offset(disp, driDispatchRemapTable[PointParameterx_remap_index], fn)
+#define CALL_PointParameterxv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, const GLfixed *)), driDispatchRemapTable[PointParameterxv_remap_index], parameters)
+#define GET_PointParameterxv(disp) GET_by_offset(disp, driDispatchRemapTable[PointParameterxv_remap_index])
+#define SET_PointParameterxv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[PointParameterxv_remap_index], fn)
+#define CALL_TexParameterxv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLenum, const GLfixed *)), driDispatchRemapTable[TexParameterxv_remap_index], parameters)
+#define GET_TexParameterxv(disp) GET_by_offset(disp, driDispatchRemapTable[TexParameterxv_remap_index])
+#define SET_TexParameterxv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[TexParameterxv_remap_index], fn)
+#define CALL_PointParameterf(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLfloat)), driDispatchRemapTable[PointParameterf_remap_index], parameters)
+#define GET_PointParameterf(disp) GET_by_offset(disp, driDispatchRemapTable[PointParameterf_remap_index])
+#define SET_PointParameterf(disp, fn) SET_by_offset(disp, driDispatchRemapTable[PointParameterf_remap_index], fn)
+#define CALL_PointParameterfv(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, const GLfloat *)), driDispatchRemapTable[PointParameterfv_remap_index], parameters)
+#define GET_PointParameterfv(disp) GET_by_offset(disp, driDispatchRemapTable[PointParameterfv_remap_index])
+#define SET_PointParameterfv(disp, fn) SET_by_offset(disp, driDispatchRemapTable[PointParameterfv_remap_index], fn)
+
+#endif /* !defined(IN_DRI_DRIVER) */
+
+/* define aliases for compatibility */
+#define CALL_TexGenf(disp, parameters) CALL_TexGenfOES(disp, parameters)
+#define GET_TexGenf(disp) GET_TexGenfOES(disp)
+#define SET_TexGenf(disp, fn) SET_TexGenfOES(disp, fn)
+#define CALL_TexGenfv(disp, parameters) CALL_TexGenfvOES(disp, parameters)
+#define GET_TexGenfv(disp) GET_TexGenfvOES(disp)
+#define SET_TexGenfv(disp, fn) SET_TexGenfvOES(disp, fn)
+#define CALL_TexGeni(disp, parameters) CALL_TexGeniOES(disp, parameters)
+#define GET_TexGeni(disp) GET_TexGeniOES(disp)
+#define SET_TexGeni(disp, fn) SET_TexGeniOES(disp, fn)
+#define CALL_TexGeniv(disp, parameters) CALL_TexGenivOES(disp, parameters)
+#define GET_TexGeniv(disp) GET_TexGenivOES(disp)
+#define SET_TexGeniv(disp, fn) SET_TexGenivOES(disp, fn)
+#define CALL_GetTexGenfv(disp, parameters) CALL_GetTexGenfvOES(disp, parameters)
+#define GET_GetTexGenfv(disp) GET_GetTexGenfvOES(disp)
+#define SET_GetTexGenfv(disp, fn) SET_GetTexGenfvOES(disp, fn)
+#define CALL_GetTexGeniv(disp, parameters) CALL_GetTexGenivOES(disp, parameters)
+#define GET_GetTexGeniv(disp) GET_GetTexGenivOES(disp)
+#define SET_GetTexGeniv(disp, fn) SET_GetTexGenivOES(disp, fn)
+#define CALL_BlendEquation(disp, parameters) CALL_BlendEquationOES(disp, parameters)
+#define GET_BlendEquation(disp) GET_BlendEquationOES(disp)
+#define SET_BlendEquation(disp, fn) SET_BlendEquationOES(disp, fn)
+#define CALL_ActiveTextureARB(disp, parameters) CALL_ActiveTexture(disp, parameters)
+#define GET_ActiveTextureARB(disp) GET_ActiveTexture(disp)
+#define SET_ActiveTextureARB(disp, fn) SET_ActiveTexture(disp, fn)
+#define CALL_ClientActiveTextureARB(disp, parameters) CALL_ClientActiveTexture(disp, parameters)
+#define GET_ClientActiveTextureARB(disp) GET_ClientActiveTexture(disp)
+#define SET_ClientActiveTextureARB(disp, fn) SET_ClientActiveTexture(disp, fn)
+#define CALL_MultiTexCoord4fARB(disp, parameters) CALL_MultiTexCoord4f(disp, parameters)
+#define GET_MultiTexCoord4fARB(disp) GET_MultiTexCoord4f(disp)
+#define SET_MultiTexCoord4fARB(disp, fn) SET_MultiTexCoord4f(disp, fn)
+#define CALL_AlphaFuncxOES(disp, parameters) CALL_AlphaFuncx(disp, parameters)
+#define GET_AlphaFuncxOES(disp) GET_AlphaFuncx(disp)
+#define SET_AlphaFuncxOES(disp, fn) SET_AlphaFuncx(disp, fn)
+#define CALL_ClearColorxOES(disp, parameters) CALL_ClearColorx(disp, parameters)
+#define GET_ClearColorxOES(disp) GET_ClearColorx(disp)
+#define SET_ClearColorxOES(disp, fn) SET_ClearColorx(disp, fn)
+#define CALL_ClearDepthfOES(disp, parameters) CALL_ClearDepthf(disp, parameters)
+#define GET_ClearDepthfOES(disp) GET_ClearDepthf(disp)
+#define SET_ClearDepthfOES(disp, fn) SET_ClearDepthf(disp, fn)
+#define CALL_ClearDepthxOES(disp, parameters) CALL_ClearDepthx(disp, parameters)
+#define GET_ClearDepthxOES(disp) GET_ClearDepthx(disp)
+#define SET_ClearDepthxOES(disp, fn) SET_ClearDepthx(disp, fn)
+#define CALL_Color4xOES(disp, parameters) CALL_Color4x(disp, parameters)
+#define GET_Color4xOES(disp) GET_Color4x(disp)
+#define SET_Color4xOES(disp, fn) SET_Color4x(disp, fn)
+#define CALL_DepthRangefOES(disp, parameters) CALL_DepthRangef(disp, parameters)
+#define GET_DepthRangefOES(disp) GET_DepthRangef(disp)
+#define SET_DepthRangefOES(disp, fn) SET_DepthRangef(disp, fn)
+#define CALL_DepthRangexOES(disp, parameters) CALL_DepthRangex(disp, parameters)
+#define GET_DepthRangexOES(disp) GET_DepthRangex(disp)
+#define SET_DepthRangexOES(disp, fn) SET_DepthRangex(disp, fn)
+#define CALL_FogxOES(disp, parameters) CALL_Fogx(disp, parameters)
+#define GET_FogxOES(disp) GET_Fogx(disp)
+#define SET_FogxOES(disp, fn) SET_Fogx(disp, fn)
+#define CALL_FogxvOES(disp, parameters) CALL_Fogxv(disp, parameters)
+#define GET_FogxvOES(disp) GET_Fogxv(disp)
+#define SET_FogxvOES(disp, fn) SET_Fogxv(disp, fn)
+#define CALL_FrustumfOES(disp, parameters) CALL_Frustumf(disp, parameters)
+#define GET_FrustumfOES(disp) GET_Frustumf(disp)
+#define SET_FrustumfOES(disp, fn) SET_Frustumf(disp, fn)
+#define CALL_FrustumxOES(disp, parameters) CALL_Frustumx(disp, parameters)
+#define GET_FrustumxOES(disp) GET_Frustumx(disp)
+#define SET_FrustumxOES(disp, fn) SET_Frustumx(disp, fn)
+#define CALL_LightModelxOES(disp, parameters) CALL_LightModelx(disp, parameters)
+#define GET_LightModelxOES(disp) GET_LightModelx(disp)
+#define SET_LightModelxOES(disp, fn) SET_LightModelx(disp, fn)
+#define CALL_LightModelxvOES(disp, parameters) CALL_LightModelxv(disp, parameters)
+#define GET_LightModelxvOES(disp) GET_LightModelxv(disp)
+#define SET_LightModelxvOES(disp, fn) SET_LightModelxv(disp, fn)
+#define CALL_LightxOES(disp, parameters) CALL_Lightx(disp, parameters)
+#define GET_LightxOES(disp) GET_Lightx(disp)
+#define SET_LightxOES(disp, fn) SET_Lightx(disp, fn)
+#define CALL_LightxvOES(disp, parameters) CALL_Lightxv(disp, parameters)
+#define GET_LightxvOES(disp) GET_Lightxv(disp)
+#define SET_LightxvOES(disp, fn) SET_Lightxv(disp, fn)
+#define CALL_LineWidthxOES(disp, parameters) CALL_LineWidthx(disp, parameters)
+#define GET_LineWidthxOES(disp) GET_LineWidthx(disp)
+#define SET_LineWidthxOES(disp, fn) SET_LineWidthx(disp, fn)
+#define CALL_LoadMatrixxOES(disp, parameters) CALL_LoadMatrixx(disp, parameters)
+#define GET_LoadMatrixxOES(disp) GET_LoadMatrixx(disp)
+#define SET_LoadMatrixxOES(disp, fn) SET_LoadMatrixx(disp, fn)
+#define CALL_MaterialxOES(disp, parameters) CALL_Materialx(disp, parameters)
+#define GET_MaterialxOES(disp) GET_Materialx(disp)
+#define SET_MaterialxOES(disp, fn) SET_Materialx(disp, fn)
+#define CALL_MaterialxvOES(disp, parameters) CALL_Materialxv(disp, parameters)
+#define GET_MaterialxvOES(disp) GET_Materialxv(disp)
+#define SET_MaterialxvOES(disp, fn) SET_Materialxv(disp, fn)
+#define CALL_MultMatrixxOES(disp, parameters) CALL_MultMatrixx(disp, parameters)
+#define GET_MultMatrixxOES(disp) GET_MultMatrixx(disp)
+#define SET_MultMatrixxOES(disp, fn) SET_MultMatrixx(disp, fn)
+#define CALL_MultiTexCoord4xOES(disp, parameters) CALL_MultiTexCoord4x(disp, parameters)
+#define GET_MultiTexCoord4xOES(disp) GET_MultiTexCoord4x(disp)
+#define SET_MultiTexCoord4xOES(disp, fn) SET_MultiTexCoord4x(disp, fn)
+#define CALL_Normal3xOES(disp, parameters) CALL_Normal3x(disp, parameters)
+#define GET_Normal3xOES(disp) GET_Normal3x(disp)
+#define SET_Normal3xOES(disp, fn) SET_Normal3x(disp, fn)
+#define CALL_OrthofOES(disp, parameters) CALL_Orthof(disp, parameters)
+#define GET_OrthofOES(disp) GET_Orthof(disp)
+#define SET_OrthofOES(disp, fn) SET_Orthof(disp, fn)
+#define CALL_OrthoxOES(disp, parameters) CALL_Orthox(disp, parameters)
+#define GET_OrthoxOES(disp) GET_Orthox(disp)
+#define SET_OrthoxOES(disp, fn) SET_Orthox(disp, fn)
+#define CALL_PointSizexOES(disp, parameters) CALL_PointSizex(disp, parameters)
+#define GET_PointSizexOES(disp) GET_PointSizex(disp)
+#define SET_PointSizexOES(disp, fn) SET_PointSizex(disp, fn)
+#define CALL_PolygonOffsetxOES(disp, parameters) CALL_PolygonOffsetx(disp, parameters)
+#define GET_PolygonOffsetxOES(disp) GET_PolygonOffsetx(disp)
+#define SET_PolygonOffsetxOES(disp, fn) SET_PolygonOffsetx(disp, fn)
+#define CALL_RotatexOES(disp, parameters) CALL_Rotatex(disp, parameters)
+#define GET_RotatexOES(disp) GET_Rotatex(disp)
+#define SET_RotatexOES(disp, fn) SET_Rotatex(disp, fn)
+#define CALL_SampleCoveragexOES(disp, parameters) CALL_SampleCoveragex(disp, parameters)
+#define GET_SampleCoveragexOES(disp) GET_SampleCoveragex(disp)
+#define SET_SampleCoveragexOES(disp, fn) SET_SampleCoveragex(disp, fn)
+#define CALL_ScalexOES(disp, parameters) CALL_Scalex(disp, parameters)
+#define GET_ScalexOES(disp) GET_Scalex(disp)
+#define SET_ScalexOES(disp, fn) SET_Scalex(disp, fn)
+#define CALL_TexEnvxOES(disp, parameters) CALL_TexEnvx(disp, parameters)
+#define GET_TexEnvxOES(disp) GET_TexEnvx(disp)
+#define SET_TexEnvxOES(disp, fn) SET_TexEnvx(disp, fn)
+#define CALL_TexEnvxvOES(disp, parameters) CALL_TexEnvxv(disp, parameters)
+#define GET_TexEnvxvOES(disp) GET_TexEnvxv(disp)
+#define SET_TexEnvxvOES(disp, fn) SET_TexEnvxv(disp, fn)
+#define CALL_TexParameterxOES(disp, parameters) CALL_TexParameterx(disp, parameters)
+#define GET_TexParameterxOES(disp) GET_TexParameterx(disp)
+#define SET_TexParameterxOES(disp, fn) SET_TexParameterx(disp, fn)
+#define CALL_TranslatexOES(disp, parameters) CALL_Translatex(disp, parameters)
+#define GET_TranslatexOES(disp) GET_Translatex(disp)
+#define SET_TranslatexOES(disp, fn) SET_Translatex(disp, fn)
+#define CALL_ClipPlanefOES(disp, parameters) CALL_ClipPlanef(disp, parameters)
+#define GET_ClipPlanefOES(disp) GET_ClipPlanef(disp)
+#define SET_ClipPlanefOES(disp, fn) SET_ClipPlanef(disp, fn)
+#define CALL_ClipPlanexOES(disp, parameters) CALL_ClipPlanex(disp, parameters)
+#define GET_ClipPlanexOES(disp) GET_ClipPlanex(disp)
+#define SET_ClipPlanexOES(disp, fn) SET_ClipPlanex(disp, fn)
+#define CALL_GetClipPlanefOES(disp, parameters) CALL_GetClipPlanef(disp, parameters)
+#define GET_GetClipPlanefOES(disp) GET_GetClipPlanef(disp)
+#define SET_GetClipPlanefOES(disp, fn) SET_GetClipPlanef(disp, fn)
+#define CALL_GetClipPlanexOES(disp, parameters) CALL_GetClipPlanex(disp, parameters)
+#define GET_GetClipPlanexOES(disp) GET_GetClipPlanex(disp)
+#define SET_GetClipPlanexOES(disp, fn) SET_GetClipPlanex(disp, fn)
+#define CALL_GetFixedvOES(disp, parameters) CALL_GetFixedv(disp, parameters)
+#define GET_GetFixedvOES(disp) GET_GetFixedv(disp)
+#define SET_GetFixedvOES(disp, fn) SET_GetFixedv(disp, fn)
+#define CALL_GetLightxvOES(disp, parameters) CALL_GetLightxv(disp, parameters)
+#define GET_GetLightxvOES(disp) GET_GetLightxv(disp)
+#define SET_GetLightxvOES(disp, fn) SET_GetLightxv(disp, fn)
+#define CALL_GetMaterialxvOES(disp, parameters) CALL_GetMaterialxv(disp, parameters)
+#define GET_GetMaterialxvOES(disp) GET_GetMaterialxv(disp)
+#define SET_GetMaterialxvOES(disp, fn) SET_GetMaterialxv(disp, fn)
+#define CALL_GetTexEnvxvOES(disp, parameters) CALL_GetTexEnvxv(disp, parameters)
+#define GET_GetTexEnvxvOES(disp) GET_GetTexEnvxv(disp)
+#define SET_GetTexEnvxvOES(disp, fn) SET_GetTexEnvxv(disp, fn)
+#define CALL_GetTexParameterxvOES(disp, parameters) CALL_GetTexParameterxv(disp, parameters)
+#define GET_GetTexParameterxvOES(disp) GET_GetTexParameterxv(disp)
+#define SET_GetTexParameterxvOES(disp, fn) SET_GetTexParameterxv(disp, fn)
+#define CALL_PointParameterxOES(disp, parameters) CALL_PointParameterx(disp, parameters)
+#define GET_PointParameterxOES(disp) GET_PointParameterx(disp)
+#define SET_PointParameterxOES(disp, fn) SET_PointParameterx(disp, fn)
+#define CALL_PointParameterxvOES(disp, parameters) CALL_PointParameterxv(disp, parameters)
+#define GET_PointParameterxvOES(disp) GET_PointParameterxv(disp)
+#define SET_PointParameterxvOES(disp, fn) SET_PointParameterxv(disp, fn)
+#define CALL_TexParameterxvOES(disp, parameters) CALL_TexParameterxv(disp, parameters)
+#define GET_TexParameterxvOES(disp) GET_TexParameterxv(disp)
+#define SET_TexParameterxvOES(disp, fn) SET_TexParameterxv(disp, fn)
+
+#if defined(IN_DRI_DRIVER)
+#define TexGenf_remap_index TexGenfOES_remap_index
+#define TexGenfv_remap_index TexGenfvOES_remap_index
+#define TexGeni_remap_index TexGeniOES_remap_index
+#define TexGeniv_remap_index TexGenivOES_remap_index
+#define GetTexGenfv_remap_index GetTexGenfvOES_remap_index
+#define GetTexGeniv_remap_index GetTexGenivOES_remap_index
+#define BlendEquation_remap_index BlendEquationOES_remap_index
+#define ActiveTextureARB_remap_index ActiveTexture_remap_index
+#define ClientActiveTextureARB_remap_index ClientActiveTexture_remap_index
+#define MultiTexCoord4fARB_remap_index MultiTexCoord4f_remap_index
+#define AlphaFuncxOES_remap_index AlphaFuncx_remap_index
+#define ClearColorxOES_remap_index ClearColorx_remap_index
+#define ClearDepthfOES_remap_index ClearDepthf_remap_index
+#define ClearDepthxOES_remap_index ClearDepthx_remap_index
+#define Color4xOES_remap_index Color4x_remap_index
+#define DepthRangefOES_remap_index DepthRangef_remap_index
+#define DepthRangexOES_remap_index DepthRangex_remap_index
+#define FogxOES_remap_index Fogx_remap_index
+#define FogxvOES_remap_index Fogxv_remap_index
+#define FrustumfOES_remap_index Frustumf_remap_index
+#define FrustumxOES_remap_index Frustumx_remap_index
+#define LightModelxOES_remap_index LightModelx_remap_index
+#define LightModelxvOES_remap_index LightModelxv_remap_index
+#define LightxOES_remap_index Lightx_remap_index
+#define LightxvOES_remap_index Lightxv_remap_index
+#define LineWidthxOES_remap_index LineWidthx_remap_index
+#define LoadMatrixxOES_remap_index LoadMatrixx_remap_index
+#define MaterialxOES_remap_index Materialx_remap_index
+#define MaterialxvOES_remap_index Materialxv_remap_index
+#define MultMatrixxOES_remap_index MultMatrixx_remap_index
+#define MultiTexCoord4xOES_remap_index MultiTexCoord4x_remap_index
+#define Normal3xOES_remap_index Normal3x_remap_index
+#define OrthofOES_remap_index Orthof_remap_index
+#define OrthoxOES_remap_index Orthox_remap_index
+#define PointSizexOES_remap_index PointSizex_remap_index
+#define PolygonOffsetxOES_remap_index PolygonOffsetx_remap_index
+#define RotatexOES_remap_index Rotatex_remap_index
+#define SampleCoveragexOES_remap_index SampleCoveragex_remap_index
+#define ScalexOES_remap_index Scalex_remap_index
+#define TexEnvxOES_remap_index TexEnvx_remap_index
+#define TexEnvxvOES_remap_index TexEnvxv_remap_index
+#define TexParameterxOES_remap_index TexParameterx_remap_index
+#define TranslatexOES_remap_index Translatex_remap_index
+#define ClipPlanefOES_remap_index ClipPlanef_remap_index
+#define ClipPlanexOES_remap_index ClipPlanex_remap_index
+#define GetClipPlanefOES_remap_index GetClipPlanef_remap_index
+#define GetClipPlanexOES_remap_index GetClipPlanex_remap_index
+#define GetFixedvOES_remap_index GetFixedv_remap_index
+#define GetLightxvOES_remap_index GetLightxv_remap_index
+#define GetMaterialxvOES_remap_index GetMaterialxv_remap_index
+#define GetTexEnvxvOES_remap_index GetTexEnvxv_remap_index
+#define GetTexParameterxvOES_remap_index GetTexParameterxv_remap_index
+#define PointParameterxOES_remap_index PointParameterx_remap_index
+#define PointParameterxvOES_remap_index PointParameterxv_remap_index
+#define TexParameterxvOES_remap_index TexParameterxv_remap_index
+#endif /* defined(IN_DRI_DRIVER) */
+
+
+#endif /* !defined( _DISPATCH_H_ ) */
diff --git a/src/mesa/es/glapi/headers-es1/glapi/glapioffsets.h b/src/mesa/es/glapi/headers-es1/glapi/glapioffsets.h
new file mode 100644
index 0000000000..b05c5a7848
--- /dev/null
+++ b/src/mesa/es/glapi/headers-es1/glapi/glapioffsets.h
@@ -0,0 +1,797 @@
+/* DO NOT EDIT - This file generated automatically by gl_offsets.py (from Mesa) script */
+
+/*
+ * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
+ * (C) Copyright IBM Corporation 2004
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sub license,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+ * BRIAN PAUL, IBM,
+ * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+ * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+#if !defined( _GLAPI_OFFSETS_H_ )
+# define _GLAPI_OFFSETS_H_
+
+#define _gloffset_NewList 0
+#define _gloffset_EndList 1
+#define _gloffset_CallList 2
+#define _gloffset_CallLists 3
+#define _gloffset_DeleteLists 4
+#define _gloffset_GenLists 5
+#define _gloffset_ListBase 6
+#define _gloffset_Begin 7
+#define _gloffset_Bitmap 8
+#define _gloffset_Color3b 9
+#define _gloffset_Color3bv 10
+#define _gloffset_Color3d 11
+#define _gloffset_Color3dv 12
+#define _gloffset_Color3f 13
+#define _gloffset_Color3fv 14
+#define _gloffset_Color3i 15
+#define _gloffset_Color3iv 16
+#define _gloffset_Color3s 17
+#define _gloffset_Color3sv 18
+#define _gloffset_Color3ub 19
+#define _gloffset_Color3ubv 20
+#define _gloffset_Color3ui 21
+#define _gloffset_Color3uiv 22
+#define _gloffset_Color3us 23
+#define _gloffset_Color3usv 24
+#define _gloffset_Color4b 25
+#define _gloffset_Color4bv 26
+#define _gloffset_Color4d 27
+#define _gloffset_Color4dv 28
+#define _gloffset_Color4fv 30
+#define _gloffset_Color4i 31
+#define _gloffset_Color4iv 32
+#define _gloffset_Color4s 33
+#define _gloffset_Color4sv 34
+#define _gloffset_Color4ubv 36
+#define _gloffset_Color4ui 37
+#define _gloffset_Color4uiv 38
+#define _gloffset_Color4us 39
+#define _gloffset_Color4usv 40
+#define _gloffset_EdgeFlag 41
+#define _gloffset_EdgeFlagv 42
+#define _gloffset_End 43
+#define _gloffset_Indexd 44
+#define _gloffset_Indexdv 45
+#define _gloffset_Indexf 46
+#define _gloffset_Indexfv 47
+#define _gloffset_Indexi 48
+#define _gloffset_Indexiv 49
+#define _gloffset_Indexs 50
+#define _gloffset_Indexsv 51
+#define _gloffset_Normal3b 52
+#define _gloffset_Normal3bv 53
+#define _gloffset_Normal3d 54
+#define _gloffset_Normal3dv 55
+#define _gloffset_Normal3fv 57
+#define _gloffset_Normal3i 58
+#define _gloffset_Normal3iv 59
+#define _gloffset_Normal3s 60
+#define _gloffset_Normal3sv 61
+#define _gloffset_RasterPos2d 62
+#define _gloffset_RasterPos2dv 63
+#define _gloffset_RasterPos2f 64
+#define _gloffset_RasterPos2fv 65
+#define _gloffset_RasterPos2i 66
+#define _gloffset_RasterPos2iv 67
+#define _gloffset_RasterPos2s 68
+#define _gloffset_RasterPos2sv 69
+#define _gloffset_RasterPos3d 70
+#define _gloffset_RasterPos3dv 71
+#define _gloffset_RasterPos3f 72
+#define _gloffset_RasterPos3fv 73
+#define _gloffset_RasterPos3i 74
+#define _gloffset_RasterPos3iv 75
+#define _gloffset_RasterPos3s 76
+#define _gloffset_RasterPos3sv 77
+#define _gloffset_RasterPos4d 78
+#define _gloffset_RasterPos4dv 79
+#define _gloffset_RasterPos4f 80
+#define _gloffset_RasterPos4fv 81
+#define _gloffset_RasterPos4i 82
+#define _gloffset_RasterPos4iv 83
+#define _gloffset_RasterPos4s 84
+#define _gloffset_RasterPos4sv 85
+#define _gloffset_Rectd 86
+#define _gloffset_Rectdv 87
+#define _gloffset_Rectf 88
+#define _gloffset_Rectfv 89
+#define _gloffset_Recti 90
+#define _gloffset_Rectiv 91
+#define _gloffset_Rects 92
+#define _gloffset_Rectsv 93
+#define _gloffset_TexCoord1d 94
+#define _gloffset_TexCoord1dv 95
+#define _gloffset_TexCoord1f 96
+#define _gloffset_TexCoord1fv 97
+#define _gloffset_TexCoord1i 98
+#define _gloffset_TexCoord1iv 99
+#define _gloffset_TexCoord1s 100
+#define _gloffset_TexCoord1sv 101
+#define _gloffset_TexCoord2d 102
+#define _gloffset_TexCoord2dv 103
+#define _gloffset_TexCoord2f 104
+#define _gloffset_TexCoord2fv 105
+#define _gloffset_TexCoord2i 106
+#define _gloffset_TexCoord2iv 107
+#define _gloffset_TexCoord2s 108
+#define _gloffset_TexCoord2sv 109
+#define _gloffset_TexCoord3d 110
+#define _gloffset_TexCoord3dv 111
+#define _gloffset_TexCoord3f 112
+#define _gloffset_TexCoord3fv 113
+#define _gloffset_TexCoord3i 114
+#define _gloffset_TexCoord3iv 115
+#define _gloffset_TexCoord3s 116
+#define _gloffset_TexCoord3sv 117
+#define _gloffset_TexCoord4d 118
+#define _gloffset_TexCoord4dv 119
+#define _gloffset_TexCoord4f 120
+#define _gloffset_TexCoord4fv 121
+#define _gloffset_TexCoord4i 122
+#define _gloffset_TexCoord4iv 123
+#define _gloffset_TexCoord4s 124
+#define _gloffset_TexCoord4sv 125
+#define _gloffset_Vertex2d 126
+#define _gloffset_Vertex2dv 127
+#define _gloffset_Vertex2f 128
+#define _gloffset_Vertex2fv 129
+#define _gloffset_Vertex2i 130
+#define _gloffset_Vertex2iv 131
+#define _gloffset_Vertex2s 132
+#define _gloffset_Vertex2sv 133
+#define _gloffset_Vertex3d 134
+#define _gloffset_Vertex3dv 135
+#define _gloffset_Vertex3f 136
+#define _gloffset_Vertex3fv 137
+#define _gloffset_Vertex3i 138
+#define _gloffset_Vertex3iv 139
+#define _gloffset_Vertex3s 140
+#define _gloffset_Vertex3sv 141
+#define _gloffset_Vertex4d 142
+#define _gloffset_Vertex4dv 143
+#define _gloffset_Vertex4f 144
+#define _gloffset_Vertex4fv 145
+#define _gloffset_Vertex4i 146
+#define _gloffset_Vertex4iv 147
+#define _gloffset_Vertex4s 148
+#define _gloffset_Vertex4sv 149
+#define _gloffset_ClipPlane 150
+#define _gloffset_ColorMaterial 151
+#define _gloffset_Fogi 155
+#define _gloffset_Fogiv 156
+#define _gloffset_Lighti 161
+#define _gloffset_Lightiv 162
+#define _gloffset_LightModeli 165
+#define _gloffset_LightModeliv 166
+#define _gloffset_LineStipple 167
+#define _gloffset_Materiali 171
+#define _gloffset_Materialiv 172
+#define _gloffset_PolygonMode 174
+#define _gloffset_PolygonStipple 175
+#define _gloffset_TexImage1D 182
+#define _gloffset_TexGend 188
+#define _gloffset_TexGendv 189
+#define _gloffset_FeedbackBuffer 194
+#define _gloffset_SelectBuffer 195
+#define _gloffset_RenderMode 196
+#define _gloffset_InitNames 197
+#define _gloffset_LoadName 198
+#define _gloffset_PassThrough 199
+#define _gloffset_PopName 200
+#define _gloffset_PushName 201
+#define _gloffset_DrawBuffer 202
+#define _gloffset_ClearAccum 204
+#define _gloffset_ClearIndex 205
+#define _gloffset_ClearDepth 208
+#define _gloffset_IndexMask 212
+#define _gloffset_Accum 213
+#define _gloffset_PopAttrib 218
+#define _gloffset_PushAttrib 219
+#define _gloffset_Map1d 220
+#define _gloffset_Map1f 221
+#define _gloffset_Map2d 222
+#define _gloffset_Map2f 223
+#define _gloffset_MapGrid1d 224
+#define _gloffset_MapGrid1f 225
+#define _gloffset_MapGrid2d 226
+#define _gloffset_MapGrid2f 227
+#define _gloffset_EvalCoord1d 228
+#define _gloffset_EvalCoord1dv 229
+#define _gloffset_EvalCoord1f 230
+#define _gloffset_EvalCoord1fv 231
+#define _gloffset_EvalCoord2d 232
+#define _gloffset_EvalCoord2dv 233
+#define _gloffset_EvalCoord2f 234
+#define _gloffset_EvalCoord2fv 235
+#define _gloffset_EvalMesh1 236
+#define _gloffset_EvalPoint1 237
+#define _gloffset_EvalMesh2 238
+#define _gloffset_EvalPoint2 239
+#define _gloffset_PixelZoom 246
+#define _gloffset_PixelTransferf 247
+#define _gloffset_PixelTransferi 248
+#define _gloffset_PixelStoref 249
+#define _gloffset_PixelMapfv 251
+#define _gloffset_PixelMapuiv 252
+#define _gloffset_PixelMapusv 253
+#define _gloffset_ReadBuffer 254
+#define _gloffset_CopyPixels 255
+#define _gloffset_DrawPixels 257
+#define _gloffset_GetClipPlane 259
+#define _gloffset_GetDoublev 260
+#define _gloffset_GetLightiv 265
+#define _gloffset_GetMapdv 266
+#define _gloffset_GetMapfv 267
+#define _gloffset_GetMapiv 268
+#define _gloffset_GetMaterialiv 270
+#define _gloffset_GetPixelMapfv 271
+#define _gloffset_GetPixelMapuiv 272
+#define _gloffset_GetPixelMapusv 273
+#define _gloffset_GetPolygonStipple 274
+#define _gloffset_GetTexGendv 278
+#define _gloffset_GetTexImage 281
+#define _gloffset_GetTexLevelParameterfv 284
+#define _gloffset_GetTexLevelParameteriv 285
+#define _gloffset_IsList 287
+#define _gloffset_DepthRange 288
+#define _gloffset_Frustum 289
+#define _gloffset_LoadMatrixd 292
+#define _gloffset_MultMatrixd 295
+#define _gloffset_Ortho 296
+#define _gloffset_Rotated 299
+#define _gloffset_Scaled 301
+#define _gloffset_Translated 303
+#define _gloffset_ArrayElement 306
+#define _gloffset_EdgeFlagPointer 312
+#define _gloffset_IndexPointer 314
+#define _gloffset_Indexub 315
+#define _gloffset_Indexubv 316
+#define _gloffset_InterleavedArrays 317
+#define _gloffset_AreTexturesResident 322
+#define _gloffset_CopyTexImage1D 323
+#define _gloffset_CopyTexSubImage1D 325
+#define _gloffset_PrioritizeTextures 331
+#define _gloffset_TexSubImage1D 332
+#define _gloffset_PopClientAttrib 334
+#define _gloffset_PushClientAttrib 335
+#define _gloffset_DrawRangeElements 338
+#define _gloffset_ColorTable 339
+#define _gloffset_ColorTableParameterfv 340
+#define _gloffset_ColorTableParameteriv 341
+#define _gloffset_CopyColorTable 342
+#define _gloffset_GetColorTable 343
+#define _gloffset_GetColorTableParameterfv 344
+#define _gloffset_GetColorTableParameteriv 345
+#define _gloffset_ColorSubTable 346
+#define _gloffset_CopyColorSubTable 347
+#define _gloffset_ConvolutionFilter1D 348
+#define _gloffset_ConvolutionFilter2D 349
+#define _gloffset_ConvolutionParameterf 350
+#define _gloffset_ConvolutionParameterfv 351
+#define _gloffset_ConvolutionParameteri 352
+#define _gloffset_ConvolutionParameteriv 353
+#define _gloffset_CopyConvolutionFilter1D 354
+#define _gloffset_CopyConvolutionFilter2D 355
+#define _gloffset_GetConvolutionFilter 356
+#define _gloffset_GetConvolutionParameterfv 357
+#define _gloffset_GetConvolutionParameteriv 358
+#define _gloffset_GetSeparableFilter 359
+#define _gloffset_SeparableFilter2D 360
+#define _gloffset_GetHistogram 361
+#define _gloffset_GetHistogramParameterfv 362
+#define _gloffset_GetHistogramParameteriv 363
+#define _gloffset_GetMinmax 364
+#define _gloffset_GetMinmaxParameterfv 365
+#define _gloffset_GetMinmaxParameteriv 366
+#define _gloffset_Histogram 367
+#define _gloffset_Minmax 368
+#define _gloffset_ResetHistogram 369
+#define _gloffset_ResetMinmax 370
+#define _gloffset_MultiTexCoord1dARB 376
+#define _gloffset_MultiTexCoord1dvARB 377
+#define _gloffset_MultiTexCoord1fARB 378
+#define _gloffset_MultiTexCoord1fvARB 379
+#define _gloffset_MultiTexCoord1iARB 380
+#define _gloffset_MultiTexCoord1ivARB 381
+#define _gloffset_MultiTexCoord1sARB 382
+#define _gloffset_MultiTexCoord1svARB 383
+#define _gloffset_MultiTexCoord2dARB 384
+#define _gloffset_MultiTexCoord2dvARB 385
+#define _gloffset_MultiTexCoord2fARB 386
+#define _gloffset_MultiTexCoord2fvARB 387
+#define _gloffset_MultiTexCoord2iARB 388
+#define _gloffset_MultiTexCoord2ivARB 389
+#define _gloffset_MultiTexCoord2sARB 390
+#define _gloffset_MultiTexCoord2svARB 391
+#define _gloffset_MultiTexCoord3dARB 392
+#define _gloffset_MultiTexCoord3dvARB 393
+#define _gloffset_MultiTexCoord3fARB 394
+#define _gloffset_MultiTexCoord3fvARB 395
+#define _gloffset_MultiTexCoord3iARB 396
+#define _gloffset_MultiTexCoord3ivARB 397
+#define _gloffset_MultiTexCoord3sARB 398
+#define _gloffset_MultiTexCoord3svARB 399
+#define _gloffset_MultiTexCoord4dARB 400
+#define _gloffset_MultiTexCoord4dvARB 401
+#define _gloffset_MultiTexCoord4fvARB 403
+#define _gloffset_MultiTexCoord4iARB 404
+#define _gloffset_MultiTexCoord4ivARB 405
+#define _gloffset_MultiTexCoord4sARB 406
+#define _gloffset_MultiTexCoord4svARB 407
+
+#if !defined(IN_DRI_DRIVER)
+
+#define _gloffset_Color4f 29
+#define _gloffset_Color4ub 35
+#define _gloffset_Normal3f 56
+#define _gloffset_CullFace 152
+#define _gloffset_Fogf 153
+#define _gloffset_Fogfv 154
+#define _gloffset_FrontFace 157
+#define _gloffset_Hint 158
+#define _gloffset_Lightf 159
+#define _gloffset_Lightfv 160
+#define _gloffset_LightModelf 163
+#define _gloffset_LightModelfv 164
+#define _gloffset_LineWidth 168
+#define _gloffset_Materialf 169
+#define _gloffset_Materialfv 170
+#define _gloffset_PointSize 173
+#define _gloffset_Scissor 176
+#define _gloffset_ShadeModel 177
+#define _gloffset_TexParameterf 178
+#define _gloffset_TexParameterfv 179
+#define _gloffset_TexParameteri 180
+#define _gloffset_TexParameteriv 181
+#define _gloffset_TexImage2D 183
+#define _gloffset_TexEnvf 184
+#define _gloffset_TexEnvfv 185
+#define _gloffset_TexEnvi 186
+#define _gloffset_TexEnviv 187
+#define _gloffset_TexGenfOES 190
+#define _gloffset_TexGenfvOES 191
+#define _gloffset_TexGeniOES 192
+#define _gloffset_TexGenivOES 193
+#define _gloffset_Clear 203
+#define _gloffset_ClearColor 206
+#define _gloffset_ClearStencil 207
+#define _gloffset_StencilMask 209
+#define _gloffset_ColorMask 210
+#define _gloffset_DepthMask 211
+#define _gloffset_Disable 214
+#define _gloffset_Enable 215
+#define _gloffset_Finish 216
+#define _gloffset_Flush 217
+#define _gloffset_AlphaFunc 240
+#define _gloffset_BlendFunc 241
+#define _gloffset_LogicOp 242
+#define _gloffset_StencilFunc 243
+#define _gloffset_StencilOp 244
+#define _gloffset_DepthFunc 245
+#define _gloffset_PixelStorei 250
+#define _gloffset_ReadPixels 256
+#define _gloffset_GetBooleanv 258
+#define _gloffset_GetError 261
+#define _gloffset_GetFloatv 262
+#define _gloffset_GetIntegerv 263
+#define _gloffset_GetLightfv 264
+#define _gloffset_GetMaterialfv 269
+#define _gloffset_GetString 275
+#define _gloffset_GetTexEnvfv 276
+#define _gloffset_GetTexEnviv 277
+#define _gloffset_GetTexGenfvOES 279
+#define _gloffset_GetTexGenivOES 280
+#define _gloffset_GetTexParameterfv 282
+#define _gloffset_GetTexParameteriv 283
+#define _gloffset_IsEnabled 286
+#define _gloffset_LoadIdentity 290
+#define _gloffset_LoadMatrixf 291
+#define _gloffset_MatrixMode 293
+#define _gloffset_MultMatrixf 294
+#define _gloffset_PopMatrix 297
+#define _gloffset_PushMatrix 298
+#define _gloffset_Rotatef 300
+#define _gloffset_Scalef 302
+#define _gloffset_Translatef 304
+#define _gloffset_Viewport 305
+#define _gloffset_BindTexture 307
+#define _gloffset_ColorPointer 308
+#define _gloffset_DisableClientState 309
+#define _gloffset_DrawArrays 310
+#define _gloffset_DrawElements 311
+#define _gloffset_EnableClientState 313
+#define _gloffset_NormalPointer 318
+#define _gloffset_PolygonOffset 319
+#define _gloffset_TexCoordPointer 320
+#define _gloffset_VertexPointer 321
+#define _gloffset_CopyTexImage2D 324
+#define _gloffset_CopyTexSubImage2D 326
+#define _gloffset_DeleteTextures 327
+#define _gloffset_GenTextures 328
+#define _gloffset_GetPointerv 329
+#define _gloffset_IsTexture 330
+#define _gloffset_TexSubImage2D 333
+#define _gloffset_BlendColor 336
+#define _gloffset_BlendEquationOES 337
+#define _gloffset_TexImage3D 371
+#define _gloffset_TexSubImage3D 372
+#define _gloffset_CopyTexSubImage3D 373
+#define _gloffset_ActiveTexture 374
+#define _gloffset_ClientActiveTexture 375
+#define _gloffset_MultiTexCoord4f 402
+#define _gloffset_BlendEquationSeparateOES 408
+#define _gloffset_BlendFuncSeparateOES 409
+#define _gloffset_DrawTexfOES 410
+#define _gloffset_DrawTexfvOES 411
+#define _gloffset_DrawTexiOES 412
+#define _gloffset_DrawTexivOES 413
+#define _gloffset_DrawTexsOES 414
+#define _gloffset_DrawTexsvOES 415
+#define _gloffset_DrawTexxOES 416
+#define _gloffset_DrawTexxvOES 417
+#define _gloffset_BindFramebufferOES 418
+#define _gloffset_BindRenderbufferOES 419
+#define _gloffset_CheckFramebufferStatusOES 420
+#define _gloffset_DeleteFramebuffersOES 421
+#define _gloffset_DeleteRenderbuffersOES 422
+#define _gloffset_FramebufferRenderbufferOES 423
+#define _gloffset_FramebufferTexture2DOES 424
+#define _gloffset_GenFramebuffersOES 425
+#define _gloffset_GenRenderbuffersOES 426
+#define _gloffset_GenerateMipmapOES 427
+#define _gloffset_GetFramebufferAttachmentParameterivOES 428
+#define _gloffset_GetRenderbufferParameterivOES 429
+#define _gloffset_IsFramebufferOES 430
+#define _gloffset_IsRenderbufferOES 431
+#define _gloffset_RenderbufferStorageOES 432
+#define _gloffset_PointSizePointerOES 433
+#define _gloffset_QueryMatrixxOES 434
+#define _gloffset_GetTexGenxvOES 435
+#define _gloffset_TexGenxOES 436
+#define _gloffset_TexGenxvOES 437
+#define _gloffset_EGLImageTargetRenderbufferStorageOES 438
+#define _gloffset_EGLImageTargetTexture2DOES 439
+#define _gloffset_GetBufferPointervOES 440
+#define _gloffset_MapBufferOES 441
+#define _gloffset_UnmapBufferOES 442
+#define _gloffset_BindVertexArrayAPPLE 443
+#define _gloffset_DeleteVertexArraysAPPLE 444
+#define _gloffset_GenVertexArraysAPPLE 445
+#define _gloffset_IsVertexArrayAPPLE 446
+#define _gloffset_CompressedTexImage2D 447
+#define _gloffset_CompressedTexSubImage2D 448
+#define _gloffset_SampleCoverage 449
+#define _gloffset_BindBuffer 450
+#define _gloffset_BufferData 451
+#define _gloffset_BufferSubData 452
+#define _gloffset_DeleteBuffers 453
+#define _gloffset_GenBuffers 454
+#define _gloffset_GetBufferParameteriv 455
+#define _gloffset_IsBuffer 456
+#define _gloffset_AlphaFuncx 457
+#define _gloffset_ClearColorx 458
+#define _gloffset_ClearDepthf 459
+#define _gloffset_ClearDepthx 460
+#define _gloffset_Color4x 461
+#define _gloffset_DepthRangef 462
+#define _gloffset_DepthRangex 463
+#define _gloffset_Fogx 464
+#define _gloffset_Fogxv 465
+#define _gloffset_Frustumf 466
+#define _gloffset_Frustumx 467
+#define _gloffset_LightModelx 468
+#define _gloffset_LightModelxv 469
+#define _gloffset_Lightx 470
+#define _gloffset_Lightxv 471
+#define _gloffset_LineWidthx 472
+#define _gloffset_LoadMatrixx 473
+#define _gloffset_Materialx 474
+#define _gloffset_Materialxv 475
+#define _gloffset_MultMatrixx 476
+#define _gloffset_MultiTexCoord4x 477
+#define _gloffset_Normal3x 478
+#define _gloffset_Orthof 479
+#define _gloffset_Orthox 480
+#define _gloffset_PointSizex 481
+#define _gloffset_PolygonOffsetx 482
+#define _gloffset_Rotatex 483
+#define _gloffset_SampleCoveragex 484
+#define _gloffset_Scalex 485
+#define _gloffset_TexEnvx 486
+#define _gloffset_TexEnvxv 487
+#define _gloffset_TexParameterx 488
+#define _gloffset_Translatex 489
+#define _gloffset_ClipPlanef 490
+#define _gloffset_ClipPlanex 491
+#define _gloffset_GetClipPlanef 492
+#define _gloffset_GetClipPlanex 493
+#define _gloffset_GetFixedv 494
+#define _gloffset_GetLightxv 495
+#define _gloffset_GetMaterialxv 496
+#define _gloffset_GetTexEnvxv 497
+#define _gloffset_GetTexParameterxv 498
+#define _gloffset_PointParameterx 499
+#define _gloffset_PointParameterxv 500
+#define _gloffset_TexParameterxv 501
+#define _gloffset_PointParameterf 502
+#define _gloffset_PointParameterfv 503
+#define _gloffset_FIRST_DYNAMIC 504
+
+#else
+
+#define _gloffset_Color4f driDispatchRemapTable[Color4f_remap_index]
+#define _gloffset_Color4ub driDispatchRemapTable[Color4ub_remap_index]
+#define _gloffset_Normal3f driDispatchRemapTable[Normal3f_remap_index]
+#define _gloffset_CullFace driDispatchRemapTable[CullFace_remap_index]
+#define _gloffset_Fogf driDispatchRemapTable[Fogf_remap_index]
+#define _gloffset_Fogfv driDispatchRemapTable[Fogfv_remap_index]
+#define _gloffset_FrontFace driDispatchRemapTable[FrontFace_remap_index]
+#define _gloffset_Hint driDispatchRemapTable[Hint_remap_index]
+#define _gloffset_Lightf driDispatchRemapTable[Lightf_remap_index]
+#define _gloffset_Lightfv driDispatchRemapTable[Lightfv_remap_index]
+#define _gloffset_LightModelf driDispatchRemapTable[LightModelf_remap_index]
+#define _gloffset_LightModelfv driDispatchRemapTable[LightModelfv_remap_index]
+#define _gloffset_LineWidth driDispatchRemapTable[LineWidth_remap_index]
+#define _gloffset_Materialf driDispatchRemapTable[Materialf_remap_index]
+#define _gloffset_Materialfv driDispatchRemapTable[Materialfv_remap_index]
+#define _gloffset_PointSize driDispatchRemapTable[PointSize_remap_index]
+#define _gloffset_Scissor driDispatchRemapTable[Scissor_remap_index]
+#define _gloffset_ShadeModel driDispatchRemapTable[ShadeModel_remap_index]
+#define _gloffset_TexParameterf driDispatchRemapTable[TexParameterf_remap_index]
+#define _gloffset_TexParameterfv driDispatchRemapTable[TexParameterfv_remap_index]
+#define _gloffset_TexParameteri driDispatchRemapTable[TexParameteri_remap_index]
+#define _gloffset_TexParameteriv driDispatchRemapTable[TexParameteriv_remap_index]
+#define _gloffset_TexImage2D driDispatchRemapTable[TexImage2D_remap_index]
+#define _gloffset_TexEnvf driDispatchRemapTable[TexEnvf_remap_index]
+#define _gloffset_TexEnvfv driDispatchRemapTable[TexEnvfv_remap_index]
+#define _gloffset_TexEnvi driDispatchRemapTable[TexEnvi_remap_index]
+#define _gloffset_TexEnviv driDispatchRemapTable[TexEnviv_remap_index]
+#define _gloffset_TexGenfOES driDispatchRemapTable[TexGenfOES_remap_index]
+#define _gloffset_TexGenfvOES driDispatchRemapTable[TexGenfvOES_remap_index]
+#define _gloffset_TexGeniOES driDispatchRemapTable[TexGeniOES_remap_index]
+#define _gloffset_TexGenivOES driDispatchRemapTable[TexGenivOES_remap_index]
+#define _gloffset_Clear driDispatchRemapTable[Clear_remap_index]
+#define _gloffset_ClearColor driDispatchRemapTable[ClearColor_remap_index]
+#define _gloffset_ClearStencil driDispatchRemapTable[ClearStencil_remap_index]
+#define _gloffset_StencilMask driDispatchRemapTable[StencilMask_remap_index]
+#define _gloffset_ColorMask driDispatchRemapTable[ColorMask_remap_index]
+#define _gloffset_DepthMask driDispatchRemapTable[DepthMask_remap_index]
+#define _gloffset_Disable driDispatchRemapTable[Disable_remap_index]
+#define _gloffset_Enable driDispatchRemapTable[Enable_remap_index]
+#define _gloffset_Finish driDispatchRemapTable[Finish_remap_index]
+#define _gloffset_Flush driDispatchRemapTable[Flush_remap_index]
+#define _gloffset_AlphaFunc driDispatchRemapTable[AlphaFunc_remap_index]
+#define _gloffset_BlendFunc driDispatchRemapTable[BlendFunc_remap_index]
+#define _gloffset_LogicOp driDispatchRemapTable[LogicOp_remap_index]
+#define _gloffset_StencilFunc driDispatchRemapTable[StencilFunc_remap_index]
+#define _gloffset_StencilOp driDispatchRemapTable[StencilOp_remap_index]
+#define _gloffset_DepthFunc driDispatchRemapTable[DepthFunc_remap_index]
+#define _gloffset_PixelStorei driDispatchRemapTable[PixelStorei_remap_index]
+#define _gloffset_ReadPixels driDispatchRemapTable[ReadPixels_remap_index]
+#define _gloffset_GetBooleanv driDispatchRemapTable[GetBooleanv_remap_index]
+#define _gloffset_GetError driDispatchRemapTable[GetError_remap_index]
+#define _gloffset_GetFloatv driDispatchRemapTable[GetFloatv_remap_index]
+#define _gloffset_GetIntegerv driDispatchRemapTable[GetIntegerv_remap_index]
+#define _gloffset_GetLightfv driDispatchRemapTable[GetLightfv_remap_index]
+#define _gloffset_GetMaterialfv driDispatchRemapTable[GetMaterialfv_remap_index]
+#define _gloffset_GetString driDispatchRemapTable[GetString_remap_index]
+#define _gloffset_GetTexEnvfv driDispatchRemapTable[GetTexEnvfv_remap_index]
+#define _gloffset_GetTexEnviv driDispatchRemapTable[GetTexEnviv_remap_index]
+#define _gloffset_GetTexGenfvOES driDispatchRemapTable[GetTexGenfvOES_remap_index]
+#define _gloffset_GetTexGenivOES driDispatchRemapTable[GetTexGenivOES_remap_index]
+#define _gloffset_GetTexParameterfv driDispatchRemapTable[GetTexParameterfv_remap_index]
+#define _gloffset_GetTexParameteriv driDispatchRemapTable[GetTexParameteriv_remap_index]
+#define _gloffset_IsEnabled driDispatchRemapTable[IsEnabled_remap_index]
+#define _gloffset_LoadIdentity driDispatchRemapTable[LoadIdentity_remap_index]
+#define _gloffset_LoadMatrixf driDispatchRemapTable[LoadMatrixf_remap_index]
+#define _gloffset_MatrixMode driDispatchRemapTable[MatrixMode_remap_index]
+#define _gloffset_MultMatrixf driDispatchRemapTable[MultMatrixf_remap_index]
+#define _gloffset_PopMatrix driDispatchRemapTable[PopMatrix_remap_index]
+#define _gloffset_PushMatrix driDispatchRemapTable[PushMatrix_remap_index]
+#define _gloffset_Rotatef driDispatchRemapTable[Rotatef_remap_index]
+#define _gloffset_Scalef driDispatchRemapTable[Scalef_remap_index]
+#define _gloffset_Translatef driDispatchRemapTable[Translatef_remap_index]
+#define _gloffset_Viewport driDispatchRemapTable[Viewport_remap_index]
+#define _gloffset_BindTexture driDispatchRemapTable[BindTexture_remap_index]
+#define _gloffset_ColorPointer driDispatchRemapTable[ColorPointer_remap_index]
+#define _gloffset_DisableClientState driDispatchRemapTable[DisableClientState_remap_index]
+#define _gloffset_DrawArrays driDispatchRemapTable[DrawArrays_remap_index]
+#define _gloffset_DrawElements driDispatchRemapTable[DrawElements_remap_index]
+#define _gloffset_EnableClientState driDispatchRemapTable[EnableClientState_remap_index]
+#define _gloffset_NormalPointer driDispatchRemapTable[NormalPointer_remap_index]
+#define _gloffset_PolygonOffset driDispatchRemapTable[PolygonOffset_remap_index]
+#define _gloffset_TexCoordPointer driDispatchRemapTable[TexCoordPointer_remap_index]
+#define _gloffset_VertexPointer driDispatchRemapTable[VertexPointer_remap_index]
+#define _gloffset_CopyTexImage2D driDispatchRemapTable[CopyTexImage2D_remap_index]
+#define _gloffset_CopyTexSubImage2D driDispatchRemapTable[CopyTexSubImage2D_remap_index]
+#define _gloffset_DeleteTextures driDispatchRemapTable[DeleteTextures_remap_index]
+#define _gloffset_GenTextures driDispatchRemapTable[GenTextures_remap_index]
+#define _gloffset_GetPointerv driDispatchRemapTable[GetPointerv_remap_index]
+#define _gloffset_IsTexture driDispatchRemapTable[IsTexture_remap_index]
+#define _gloffset_TexSubImage2D driDispatchRemapTable[TexSubImage2D_remap_index]
+#define _gloffset_BlendColor driDispatchRemapTable[BlendColor_remap_index]
+#define _gloffset_BlendEquationOES driDispatchRemapTable[BlendEquationOES_remap_index]
+#define _gloffset_TexImage3D driDispatchRemapTable[TexImage3D_remap_index]
+#define _gloffset_TexSubImage3D driDispatchRemapTable[TexSubImage3D_remap_index]
+#define _gloffset_CopyTexSubImage3D driDispatchRemapTable[CopyTexSubImage3D_remap_index]
+#define _gloffset_ActiveTexture driDispatchRemapTable[ActiveTexture_remap_index]
+#define _gloffset_ClientActiveTexture driDispatchRemapTable[ClientActiveTexture_remap_index]
+#define _gloffset_MultiTexCoord4f driDispatchRemapTable[MultiTexCoord4f_remap_index]
+#define _gloffset_BlendEquationSeparateOES driDispatchRemapTable[BlendEquationSeparateOES_remap_index]
+#define _gloffset_BlendFuncSeparateOES driDispatchRemapTable[BlendFuncSeparateOES_remap_index]
+#define _gloffset_DrawTexfOES driDispatchRemapTable[DrawTexfOES_remap_index]
+#define _gloffset_DrawTexfvOES driDispatchRemapTable[DrawTexfvOES_remap_index]
+#define _gloffset_DrawTexiOES driDispatchRemapTable[DrawTexiOES_remap_index]
+#define _gloffset_DrawTexivOES driDispatchRemapTable[DrawTexivOES_remap_index]
+#define _gloffset_DrawTexsOES driDispatchRemapTable[DrawTexsOES_remap_index]
+#define _gloffset_DrawTexsvOES driDispatchRemapTable[DrawTexsvOES_remap_index]
+#define _gloffset_DrawTexxOES driDispatchRemapTable[DrawTexxOES_remap_index]
+#define _gloffset_DrawTexxvOES driDispatchRemapTable[DrawTexxvOES_remap_index]
+#define _gloffset_BindFramebufferOES driDispatchRemapTable[BindFramebufferOES_remap_index]
+#define _gloffset_BindRenderbufferOES driDispatchRemapTable[BindRenderbufferOES_remap_index]
+#define _gloffset_CheckFramebufferStatusOES driDispatchRemapTable[CheckFramebufferStatusOES_remap_index]
+#define _gloffset_DeleteFramebuffersOES driDispatchRemapTable[DeleteFramebuffersOES_remap_index]
+#define _gloffset_DeleteRenderbuffersOES driDispatchRemapTable[DeleteRenderbuffersOES_remap_index]
+#define _gloffset_FramebufferRenderbufferOES driDispatchRemapTable[FramebufferRenderbufferOES_remap_index]
+#define _gloffset_FramebufferTexture2DOES driDispatchRemapTable[FramebufferTexture2DOES_remap_index]
+#define _gloffset_GenFramebuffersOES driDispatchRemapTable[GenFramebuffersOES_remap_index]
+#define _gloffset_GenRenderbuffersOES driDispatchRemapTable[GenRenderbuffersOES_remap_index]
+#define _gloffset_GenerateMipmapOES driDispatchRemapTable[GenerateMipmapOES_remap_index]
+#define _gloffset_GetFramebufferAttachmentParameterivOES driDispatchRemapTable[GetFramebufferAttachmentParameterivOES_remap_index]
+#define _gloffset_GetRenderbufferParameterivOES driDispatchRemapTable[GetRenderbufferParameterivOES_remap_index]
+#define _gloffset_IsFramebufferOES driDispatchRemapTable[IsFramebufferOES_remap_index]
+#define _gloffset_IsRenderbufferOES driDispatchRemapTable[IsRenderbufferOES_remap_index]
+#define _gloffset_RenderbufferStorageOES driDispatchRemapTable[RenderbufferStorageOES_remap_index]
+#define _gloffset_PointSizePointerOES driDispatchRemapTable[PointSizePointerOES_remap_index]
+#define _gloffset_QueryMatrixxOES driDispatchRemapTable[QueryMatrixxOES_remap_index]
+#define _gloffset_GetTexGenxvOES driDispatchRemapTable[GetTexGenxvOES_remap_index]
+#define _gloffset_TexGenxOES driDispatchRemapTable[TexGenxOES_remap_index]
+#define _gloffset_TexGenxvOES driDispatchRemapTable[TexGenxvOES_remap_index]
+#define _gloffset_EGLImageTargetRenderbufferStorageOES driDispatchRemapTable[EGLImageTargetRenderbufferStorageOES_remap_index]
+#define _gloffset_EGLImageTargetTexture2DOES driDispatchRemapTable[EGLImageTargetTexture2DOES_remap_index]
+#define _gloffset_GetBufferPointervOES driDispatchRemapTable[GetBufferPointervOES_remap_index]
+#define _gloffset_MapBufferOES driDispatchRemapTable[MapBufferOES_remap_index]
+#define _gloffset_UnmapBufferOES driDispatchRemapTable[UnmapBufferOES_remap_index]
+#define _gloffset_BindVertexArrayAPPLE driDispatchRemapTable[BindVertexArrayAPPLE_remap_index]
+#define _gloffset_DeleteVertexArraysAPPLE driDispatchRemapTable[DeleteVertexArraysAPPLE_remap_index]
+#define _gloffset_GenVertexArraysAPPLE driDispatchRemapTable[GenVertexArraysAPPLE_remap_index]
+#define _gloffset_IsVertexArrayAPPLE driDispatchRemapTable[IsVertexArrayAPPLE_remap_index]
+#define _gloffset_CompressedTexImage2D driDispatchRemapTable[CompressedTexImage2D_remap_index]
+#define _gloffset_CompressedTexSubImage2D driDispatchRemapTable[CompressedTexSubImage2D_remap_index]
+#define _gloffset_SampleCoverage driDispatchRemapTable[SampleCoverage_remap_index]
+#define _gloffset_BindBuffer driDispatchRemapTable[BindBuffer_remap_index]
+#define _gloffset_BufferData driDispatchRemapTable[BufferData_remap_index]
+#define _gloffset_BufferSubData driDispatchRemapTable[BufferSubData_remap_index]
+#define _gloffset_DeleteBuffers driDispatchRemapTable[DeleteBuffers_remap_index]
+#define _gloffset_GenBuffers driDispatchRemapTable[GenBuffers_remap_index]
+#define _gloffset_GetBufferParameteriv driDispatchRemapTable[GetBufferParameteriv_remap_index]
+#define _gloffset_IsBuffer driDispatchRemapTable[IsBuffer_remap_index]
+#define _gloffset_AlphaFuncx driDispatchRemapTable[AlphaFuncx_remap_index]
+#define _gloffset_ClearColorx driDispatchRemapTable[ClearColorx_remap_index]
+#define _gloffset_ClearDepthf driDispatchRemapTable[ClearDepthf_remap_index]
+#define _gloffset_ClearDepthx driDispatchRemapTable[ClearDepthx_remap_index]
+#define _gloffset_Color4x driDispatchRemapTable[Color4x_remap_index]
+#define _gloffset_DepthRangef driDispatchRemapTable[DepthRangef_remap_index]
+#define _gloffset_DepthRangex driDispatchRemapTable[DepthRangex_remap_index]
+#define _gloffset_Fogx driDispatchRemapTable[Fogx_remap_index]
+#define _gloffset_Fogxv driDispatchRemapTable[Fogxv_remap_index]
+#define _gloffset_Frustumf driDispatchRemapTable[Frustumf_remap_index]
+#define _gloffset_Frustumx driDispatchRemapTable[Frustumx_remap_index]
+#define _gloffset_LightModelx driDispatchRemapTable[LightModelx_remap_index]
+#define _gloffset_LightModelxv driDispatchRemapTable[LightModelxv_remap_index]
+#define _gloffset_Lightx driDispatchRemapTable[Lightx_remap_index]
+#define _gloffset_Lightxv driDispatchRemapTable[Lightxv_remap_index]
+#define _gloffset_LineWidthx driDispatchRemapTable[LineWidthx_remap_index]
+#define _gloffset_LoadMatrixx driDispatchRemapTable[LoadMatrixx_remap_index]
+#define _gloffset_Materialx driDispatchRemapTable[Materialx_remap_index]
+#define _gloffset_Materialxv driDispatchRemapTable[Materialxv_remap_index]
+#define _gloffset_MultMatrixx driDispatchRemapTable[MultMatrixx_remap_index]
+#define _gloffset_MultiTexCoord4x driDispatchRemapTable[MultiTexCoord4x_remap_index]
+#define _gloffset_Normal3x driDispatchRemapTable[Normal3x_remap_index]
+#define _gloffset_Orthof driDispatchRemapTable[Orthof_remap_index]
+#define _gloffset_Orthox driDispatchRemapTable[Orthox_remap_index]
+#define _gloffset_PointSizex driDispatchRemapTable[PointSizex_remap_index]
+#define _gloffset_PolygonOffsetx driDispatchRemapTable[PolygonOffsetx_remap_index]
+#define _gloffset_Rotatex driDispatchRemapTable[Rotatex_remap_index]
+#define _gloffset_SampleCoveragex driDispatchRemapTable[SampleCoveragex_remap_index]
+#define _gloffset_Scalex driDispatchRemapTable[Scalex_remap_index]
+#define _gloffset_TexEnvx driDispatchRemapTable[TexEnvx_remap_index]
+#define _gloffset_TexEnvxv driDispatchRemapTable[TexEnvxv_remap_index]
+#define _gloffset_TexParameterx driDispatchRemapTable[TexParameterx_remap_index]
+#define _gloffset_Translatex driDispatchRemapTable[Translatex_remap_index]
+#define _gloffset_ClipPlanef driDispatchRemapTable[ClipPlanef_remap_index]
+#define _gloffset_ClipPlanex driDispatchRemapTable[ClipPlanex_remap_index]
+#define _gloffset_GetClipPlanef driDispatchRemapTable[GetClipPlanef_remap_index]
+#define _gloffset_GetClipPlanex driDispatchRemapTable[GetClipPlanex_remap_index]
+#define _gloffset_GetFixedv driDispatchRemapTable[GetFixedv_remap_index]
+#define _gloffset_GetLightxv driDispatchRemapTable[GetLightxv_remap_index]
+#define _gloffset_GetMaterialxv driDispatchRemapTable[GetMaterialxv_remap_index]
+#define _gloffset_GetTexEnvxv driDispatchRemapTable[GetTexEnvxv_remap_index]
+#define _gloffset_GetTexParameterxv driDispatchRemapTable[GetTexParameterxv_remap_index]
+#define _gloffset_PointParameterx driDispatchRemapTable[PointParameterx_remap_index]
+#define _gloffset_PointParameterxv driDispatchRemapTable[PointParameterxv_remap_index]
+#define _gloffset_TexParameterxv driDispatchRemapTable[TexParameterxv_remap_index]
+#define _gloffset_PointParameterf driDispatchRemapTable[PointParameterf_remap_index]
+#define _gloffset_PointParameterfv driDispatchRemapTable[PointParameterfv_remap_index]
+
+#endif /* !defined(IN_DRI_DRIVER) */
+
+/* define aliases for compatibility */
+#define _gloffset_TexGenf _gloffset_TexGenfOES
+#define _gloffset_TexGenfv _gloffset_TexGenfvOES
+#define _gloffset_TexGeni _gloffset_TexGeniOES
+#define _gloffset_TexGeniv _gloffset_TexGenivOES
+#define _gloffset_GetTexGenfv _gloffset_GetTexGenfvOES
+#define _gloffset_GetTexGeniv _gloffset_GetTexGenivOES
+#define _gloffset_BlendEquation _gloffset_BlendEquationOES
+#define _gloffset_ActiveTextureARB _gloffset_ActiveTexture
+#define _gloffset_ClientActiveTextureARB _gloffset_ClientActiveTexture
+#define _gloffset_MultiTexCoord4fARB _gloffset_MultiTexCoord4f
+#define _gloffset_AlphaFuncxOES _gloffset_AlphaFuncx
+#define _gloffset_ClearColorxOES _gloffset_ClearColorx
+#define _gloffset_ClearDepthfOES _gloffset_ClearDepthf
+#define _gloffset_ClearDepthxOES _gloffset_ClearDepthx
+#define _gloffset_Color4xOES _gloffset_Color4x
+#define _gloffset_DepthRangefOES _gloffset_DepthRangef
+#define _gloffset_DepthRangexOES _gloffset_DepthRangex
+#define _gloffset_FogxOES _gloffset_Fogx
+#define _gloffset_FogxvOES _gloffset_Fogxv
+#define _gloffset_FrustumfOES _gloffset_Frustumf
+#define _gloffset_FrustumxOES _gloffset_Frustumx
+#define _gloffset_LightModelxOES _gloffset_LightModelx
+#define _gloffset_LightModelxvOES _gloffset_LightModelxv
+#define _gloffset_LightxOES _gloffset_Lightx
+#define _gloffset_LightxvOES _gloffset_Lightxv
+#define _gloffset_LineWidthxOES _gloffset_LineWidthx
+#define _gloffset_LoadMatrixxOES _gloffset_LoadMatrixx
+#define _gloffset_MaterialxOES _gloffset_Materialx
+#define _gloffset_MaterialxvOES _gloffset_Materialxv
+#define _gloffset_MultMatrixxOES _gloffset_MultMatrixx
+#define _gloffset_MultiTexCoord4xOES _gloffset_MultiTexCoord4x
+#define _gloffset_Normal3xOES _gloffset_Normal3x
+#define _gloffset_OrthofOES _gloffset_Orthof
+#define _gloffset_OrthoxOES _gloffset_Orthox
+#define _gloffset_PointSizexOES _gloffset_PointSizex
+#define _gloffset_PolygonOffsetxOES _gloffset_PolygonOffsetx
+#define _gloffset_RotatexOES _gloffset_Rotatex
+#define _gloffset_SampleCoveragexOES _gloffset_SampleCoveragex
+#define _gloffset_ScalexOES _gloffset_Scalex
+#define _gloffset_TexEnvxOES _gloffset_TexEnvx
+#define _gloffset_TexEnvxvOES _gloffset_TexEnvxv
+#define _gloffset_TexParameterxOES _gloffset_TexParameterx
+#define _gloffset_TranslatexOES _gloffset_Translatex
+#define _gloffset_ClipPlanefOES _gloffset_ClipPlanef
+#define _gloffset_ClipPlanexOES _gloffset_ClipPlanex
+#define _gloffset_GetClipPlanefOES _gloffset_GetClipPlanef
+#define _gloffset_GetClipPlanexOES _gloffset_GetClipPlanex
+#define _gloffset_GetFixedvOES _gloffset_GetFixedv
+#define _gloffset_GetLightxvOES _gloffset_GetLightxv
+#define _gloffset_GetMaterialxvOES _gloffset_GetMaterialxv
+#define _gloffset_GetTexEnvxvOES _gloffset_GetTexEnvxv
+#define _gloffset_GetTexParameterxvOES _gloffset_GetTexParameterxv
+#define _gloffset_PointParameterxOES _gloffset_PointParameterx
+#define _gloffset_PointParameterxvOES _gloffset_PointParameterxv
+#define _gloffset_TexParameterxvOES _gloffset_TexParameterxv
+
+#endif /* !defined( _GLAPI_OFFSETS_H_ ) */
diff --git a/src/mesa/es/glapi/headers-es1/glapi/glapitable.h b/src/mesa/es/glapi/headers-es1/glapi/glapitable.h
new file mode 100644
index 0000000000..510752848a
--- /dev/null
+++ b/src/mesa/es/glapi/headers-es1/glapi/glapitable.h
@@ -0,0 +1,554 @@
+/* DO NOT EDIT - This file generated automatically by gl_table.py (from Mesa) script */
+
+/*
+ * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
+ * (C) Copyright IBM Corporation 2004
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sub license,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+ * BRIAN PAUL, IBM,
+ * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+ * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+#if !defined( _GLAPI_TABLE_H_ )
+# define _GLAPI_TABLE_H_
+
+#ifndef GLAPIENTRYP
+# ifndef GLAPIENTRY
+# define GLAPIENTRY
+# endif
+
+# define GLAPIENTRYP GLAPIENTRY *
+#endif
+
+#ifndef HAVE_GLES_TYPES
+typedef void *GLeglImageOES;
+typedef int GLfixed;
+typedef int GLclampx;
+#endif
+
+struct _glapi_table
+{
+ void (GLAPIENTRYP NewList)(GLuint list, GLenum mode); /* 0 */
+ void (GLAPIENTRYP EndList)(void); /* 1 */
+ void (GLAPIENTRYP CallList)(GLuint list); /* 2 */
+ void (GLAPIENTRYP CallLists)(GLsizei n, GLenum type, const GLvoid * lists); /* 3 */
+ void (GLAPIENTRYP DeleteLists)(GLuint list, GLsizei range); /* 4 */
+ GLuint (GLAPIENTRYP GenLists)(GLsizei range); /* 5 */
+ void (GLAPIENTRYP ListBase)(GLuint base); /* 6 */
+ void (GLAPIENTRYP Begin)(GLenum mode); /* 7 */
+ void (GLAPIENTRYP Bitmap)(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte * bitmap); /* 8 */
+ void (GLAPIENTRYP Color3b)(GLbyte red, GLbyte green, GLbyte blue); /* 9 */
+ void (GLAPIENTRYP Color3bv)(const GLbyte * v); /* 10 */
+ void (GLAPIENTRYP Color3d)(GLdouble red, GLdouble green, GLdouble blue); /* 11 */
+ void (GLAPIENTRYP Color3dv)(const GLdouble * v); /* 12 */
+ void (GLAPIENTRYP Color3f)(GLfloat red, GLfloat green, GLfloat blue); /* 13 */
+ void (GLAPIENTRYP Color3fv)(const GLfloat * v); /* 14 */
+ void (GLAPIENTRYP Color3i)(GLint red, GLint green, GLint blue); /* 15 */
+ void (GLAPIENTRYP Color3iv)(const GLint * v); /* 16 */
+ void (GLAPIENTRYP Color3s)(GLshort red, GLshort green, GLshort blue); /* 17 */
+ void (GLAPIENTRYP Color3sv)(const GLshort * v); /* 18 */
+ void (GLAPIENTRYP Color3ub)(GLubyte red, GLubyte green, GLubyte blue); /* 19 */
+ void (GLAPIENTRYP Color3ubv)(const GLubyte * v); /* 20 */
+ void (GLAPIENTRYP Color3ui)(GLuint red, GLuint green, GLuint blue); /* 21 */
+ void (GLAPIENTRYP Color3uiv)(const GLuint * v); /* 22 */
+ void (GLAPIENTRYP Color3us)(GLushort red, GLushort green, GLushort blue); /* 23 */
+ void (GLAPIENTRYP Color3usv)(const GLushort * v); /* 24 */
+ void (GLAPIENTRYP Color4b)(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); /* 25 */
+ void (GLAPIENTRYP Color4bv)(const GLbyte * v); /* 26 */
+ void (GLAPIENTRYP Color4d)(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); /* 27 */
+ void (GLAPIENTRYP Color4dv)(const GLdouble * v); /* 28 */
+ void (GLAPIENTRYP Color4f)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); /* 29 */
+ void (GLAPIENTRYP Color4fv)(const GLfloat * v); /* 30 */
+ void (GLAPIENTRYP Color4i)(GLint red, GLint green, GLint blue, GLint alpha); /* 31 */
+ void (GLAPIENTRYP Color4iv)(const GLint * v); /* 32 */
+ void (GLAPIENTRYP Color4s)(GLshort red, GLshort green, GLshort blue, GLshort alpha); /* 33 */
+ void (GLAPIENTRYP Color4sv)(const GLshort * v); /* 34 */
+ void (GLAPIENTRYP Color4ub)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); /* 35 */
+ void (GLAPIENTRYP Color4ubv)(const GLubyte * v); /* 36 */
+ void (GLAPIENTRYP Color4ui)(GLuint red, GLuint green, GLuint blue, GLuint alpha); /* 37 */
+ void (GLAPIENTRYP Color4uiv)(const GLuint * v); /* 38 */
+ void (GLAPIENTRYP Color4us)(GLushort red, GLushort green, GLushort blue, GLushort alpha); /* 39 */
+ void (GLAPIENTRYP Color4usv)(const GLushort * v); /* 40 */
+ void (GLAPIENTRYP EdgeFlag)(GLboolean flag); /* 41 */
+ void (GLAPIENTRYP EdgeFlagv)(const GLboolean * flag); /* 42 */
+ void (GLAPIENTRYP End)(void); /* 43 */
+ void (GLAPIENTRYP Indexd)(GLdouble c); /* 44 */
+ void (GLAPIENTRYP Indexdv)(const GLdouble * c); /* 45 */
+ void (GLAPIENTRYP Indexf)(GLfloat c); /* 46 */
+ void (GLAPIENTRYP Indexfv)(const GLfloat * c); /* 47 */
+ void (GLAPIENTRYP Indexi)(GLint c); /* 48 */
+ void (GLAPIENTRYP Indexiv)(const GLint * c); /* 49 */
+ void (GLAPIENTRYP Indexs)(GLshort c); /* 50 */
+ void (GLAPIENTRYP Indexsv)(const GLshort * c); /* 51 */
+ void (GLAPIENTRYP Normal3b)(GLbyte nx, GLbyte ny, GLbyte nz); /* 52 */
+ void (GLAPIENTRYP Normal3bv)(const GLbyte * v); /* 53 */
+ void (GLAPIENTRYP Normal3d)(GLdouble nx, GLdouble ny, GLdouble nz); /* 54 */
+ void (GLAPIENTRYP Normal3dv)(const GLdouble * v); /* 55 */
+ void (GLAPIENTRYP Normal3f)(GLfloat nx, GLfloat ny, GLfloat nz); /* 56 */
+ void (GLAPIENTRYP Normal3fv)(const GLfloat * v); /* 57 */
+ void (GLAPIENTRYP Normal3i)(GLint nx, GLint ny, GLint nz); /* 58 */
+ void (GLAPIENTRYP Normal3iv)(const GLint * v); /* 59 */
+ void (GLAPIENTRYP Normal3s)(GLshort nx, GLshort ny, GLshort nz); /* 60 */
+ void (GLAPIENTRYP Normal3sv)(const GLshort * v); /* 61 */
+ void (GLAPIENTRYP RasterPos2d)(GLdouble x, GLdouble y); /* 62 */
+ void (GLAPIENTRYP RasterPos2dv)(const GLdouble * v); /* 63 */
+ void (GLAPIENTRYP RasterPos2f)(GLfloat x, GLfloat y); /* 64 */
+ void (GLAPIENTRYP RasterPos2fv)(const GLfloat * v); /* 65 */
+ void (GLAPIENTRYP RasterPos2i)(GLint x, GLint y); /* 66 */
+ void (GLAPIENTRYP RasterPos2iv)(const GLint * v); /* 67 */
+ void (GLAPIENTRYP RasterPos2s)(GLshort x, GLshort y); /* 68 */
+ void (GLAPIENTRYP RasterPos2sv)(const GLshort * v); /* 69 */
+ void (GLAPIENTRYP RasterPos3d)(GLdouble x, GLdouble y, GLdouble z); /* 70 */
+ void (GLAPIENTRYP RasterPos3dv)(const GLdouble * v); /* 71 */
+ void (GLAPIENTRYP RasterPos3f)(GLfloat x, GLfloat y, GLfloat z); /* 72 */
+ void (GLAPIENTRYP RasterPos3fv)(const GLfloat * v); /* 73 */
+ void (GLAPIENTRYP RasterPos3i)(GLint x, GLint y, GLint z); /* 74 */
+ void (GLAPIENTRYP RasterPos3iv)(const GLint * v); /* 75 */
+ void (GLAPIENTRYP RasterPos3s)(GLshort x, GLshort y, GLshort z); /* 76 */
+ void (GLAPIENTRYP RasterPos3sv)(const GLshort * v); /* 77 */
+ void (GLAPIENTRYP RasterPos4d)(GLdouble x, GLdouble y, GLdouble z, GLdouble w); /* 78 */
+ void (GLAPIENTRYP RasterPos4dv)(const GLdouble * v); /* 79 */
+ void (GLAPIENTRYP RasterPos4f)(GLfloat x, GLfloat y, GLfloat z, GLfloat w); /* 80 */
+ void (GLAPIENTRYP RasterPos4fv)(const GLfloat * v); /* 81 */
+ void (GLAPIENTRYP RasterPos4i)(GLint x, GLint y, GLint z, GLint w); /* 82 */
+ void (GLAPIENTRYP RasterPos4iv)(const GLint * v); /* 83 */
+ void (GLAPIENTRYP RasterPos4s)(GLshort x, GLshort y, GLshort z, GLshort w); /* 84 */
+ void (GLAPIENTRYP RasterPos4sv)(const GLshort * v); /* 85 */
+ void (GLAPIENTRYP Rectd)(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); /* 86 */
+ void (GLAPIENTRYP Rectdv)(const GLdouble * v1, const GLdouble * v2); /* 87 */
+ void (GLAPIENTRYP Rectf)(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); /* 88 */
+ void (GLAPIENTRYP Rectfv)(const GLfloat * v1, const GLfloat * v2); /* 89 */
+ void (GLAPIENTRYP Recti)(GLint x1, GLint y1, GLint x2, GLint y2); /* 90 */
+ void (GLAPIENTRYP Rectiv)(const GLint * v1, const GLint * v2); /* 91 */
+ void (GLAPIENTRYP Rects)(GLshort x1, GLshort y1, GLshort x2, GLshort y2); /* 92 */
+ void (GLAPIENTRYP Rectsv)(const GLshort * v1, const GLshort * v2); /* 93 */
+ void (GLAPIENTRYP TexCoord1d)(GLdouble s); /* 94 */
+ void (GLAPIENTRYP TexCoord1dv)(const GLdouble * v); /* 95 */
+ void (GLAPIENTRYP TexCoord1f)(GLfloat s); /* 96 */
+ void (GLAPIENTRYP TexCoord1fv)(const GLfloat * v); /* 97 */
+ void (GLAPIENTRYP TexCoord1i)(GLint s); /* 98 */
+ void (GLAPIENTRYP TexCoord1iv)(const GLint * v); /* 99 */
+ void (GLAPIENTRYP TexCoord1s)(GLshort s); /* 100 */
+ void (GLAPIENTRYP TexCoord1sv)(const GLshort * v); /* 101 */
+ void (GLAPIENTRYP TexCoord2d)(GLdouble s, GLdouble t); /* 102 */
+ void (GLAPIENTRYP TexCoord2dv)(const GLdouble * v); /* 103 */
+ void (GLAPIENTRYP TexCoord2f)(GLfloat s, GLfloat t); /* 104 */
+ void (GLAPIENTRYP TexCoord2fv)(const GLfloat * v); /* 105 */
+ void (GLAPIENTRYP TexCoord2i)(GLint s, GLint t); /* 106 */
+ void (GLAPIENTRYP TexCoord2iv)(const GLint * v); /* 107 */
+ void (GLAPIENTRYP TexCoord2s)(GLshort s, GLshort t); /* 108 */
+ void (GLAPIENTRYP TexCoord2sv)(const GLshort * v); /* 109 */
+ void (GLAPIENTRYP TexCoord3d)(GLdouble s, GLdouble t, GLdouble r); /* 110 */
+ void (GLAPIENTRYP TexCoord3dv)(const GLdouble * v); /* 111 */
+ void (GLAPIENTRYP TexCoord3f)(GLfloat s, GLfloat t, GLfloat r); /* 112 */
+ void (GLAPIENTRYP TexCoord3fv)(const GLfloat * v); /* 113 */
+ void (GLAPIENTRYP TexCoord3i)(GLint s, GLint t, GLint r); /* 114 */
+ void (GLAPIENTRYP TexCoord3iv)(const GLint * v); /* 115 */
+ void (GLAPIENTRYP TexCoord3s)(GLshort s, GLshort t, GLshort r); /* 116 */
+ void (GLAPIENTRYP TexCoord3sv)(const GLshort * v); /* 117 */
+ void (GLAPIENTRYP TexCoord4d)(GLdouble s, GLdouble t, GLdouble r, GLdouble q); /* 118 */
+ void (GLAPIENTRYP TexCoord4dv)(const GLdouble * v); /* 119 */
+ void (GLAPIENTRYP TexCoord4f)(GLfloat s, GLfloat t, GLfloat r, GLfloat q); /* 120 */
+ void (GLAPIENTRYP TexCoord4fv)(const GLfloat * v); /* 121 */
+ void (GLAPIENTRYP TexCoord4i)(GLint s, GLint t, GLint r, GLint q); /* 122 */
+ void (GLAPIENTRYP TexCoord4iv)(const GLint * v); /* 123 */
+ void (GLAPIENTRYP TexCoord4s)(GLshort s, GLshort t, GLshort r, GLshort q); /* 124 */
+ void (GLAPIENTRYP TexCoord4sv)(const GLshort * v); /* 125 */
+ void (GLAPIENTRYP Vertex2d)(GLdouble x, GLdouble y); /* 126 */
+ void (GLAPIENTRYP Vertex2dv)(const GLdouble * v); /* 127 */
+ void (GLAPIENTRYP Vertex2f)(GLfloat x, GLfloat y); /* 128 */
+ void (GLAPIENTRYP Vertex2fv)(const GLfloat * v); /* 129 */
+ void (GLAPIENTRYP Vertex2i)(GLint x, GLint y); /* 130 */
+ void (GLAPIENTRYP Vertex2iv)(const GLint * v); /* 131 */
+ void (GLAPIENTRYP Vertex2s)(GLshort x, GLshort y); /* 132 */
+ void (GLAPIENTRYP Vertex2sv)(const GLshort * v); /* 133 */
+ void (GLAPIENTRYP Vertex3d)(GLdouble x, GLdouble y, GLdouble z); /* 134 */
+ void (GLAPIENTRYP Vertex3dv)(const GLdouble * v); /* 135 */
+ void (GLAPIENTRYP Vertex3f)(GLfloat x, GLfloat y, GLfloat z); /* 136 */
+ void (GLAPIENTRYP Vertex3fv)(const GLfloat * v); /* 137 */
+ void (GLAPIENTRYP Vertex3i)(GLint x, GLint y, GLint z); /* 138 */
+ void (GLAPIENTRYP Vertex3iv)(const GLint * v); /* 139 */
+ void (GLAPIENTRYP Vertex3s)(GLshort x, GLshort y, GLshort z); /* 140 */
+ void (GLAPIENTRYP Vertex3sv)(const GLshort * v); /* 141 */
+ void (GLAPIENTRYP Vertex4d)(GLdouble x, GLdouble y, GLdouble z, GLdouble w); /* 142 */
+ void (GLAPIENTRYP Vertex4dv)(const GLdouble * v); /* 143 */
+ void (GLAPIENTRYP Vertex4f)(GLfloat x, GLfloat y, GLfloat z, GLfloat w); /* 144 */
+ void (GLAPIENTRYP Vertex4fv)(const GLfloat * v); /* 145 */
+ void (GLAPIENTRYP Vertex4i)(GLint x, GLint y, GLint z, GLint w); /* 146 */
+ void (GLAPIENTRYP Vertex4iv)(const GLint * v); /* 147 */
+ void (GLAPIENTRYP Vertex4s)(GLshort x, GLshort y, GLshort z, GLshort w); /* 148 */
+ void (GLAPIENTRYP Vertex4sv)(const GLshort * v); /* 149 */
+ void (GLAPIENTRYP ClipPlane)(GLenum plane, const GLdouble * equation); /* 150 */
+ void (GLAPIENTRYP ColorMaterial)(GLenum face, GLenum mode); /* 151 */
+ void (GLAPIENTRYP CullFace)(GLenum mode); /* 152 */
+ void (GLAPIENTRYP Fogf)(GLenum pname, GLfloat param); /* 153 */
+ void (GLAPIENTRYP Fogfv)(GLenum pname, const GLfloat * params); /* 154 */
+ void (GLAPIENTRYP Fogi)(GLenum pname, GLint param); /* 155 */
+ void (GLAPIENTRYP Fogiv)(GLenum pname, const GLint * params); /* 156 */
+ void (GLAPIENTRYP FrontFace)(GLenum mode); /* 157 */
+ void (GLAPIENTRYP Hint)(GLenum target, GLenum mode); /* 158 */
+ void (GLAPIENTRYP Lightf)(GLenum light, GLenum pname, GLfloat param); /* 159 */
+ void (GLAPIENTRYP Lightfv)(GLenum light, GLenum pname, const GLfloat * params); /* 160 */
+ void (GLAPIENTRYP Lighti)(GLenum light, GLenum pname, GLint param); /* 161 */
+ void (GLAPIENTRYP Lightiv)(GLenum light, GLenum pname, const GLint * params); /* 162 */
+ void (GLAPIENTRYP LightModelf)(GLenum pname, GLfloat param); /* 163 */
+ void (GLAPIENTRYP LightModelfv)(GLenum pname, const GLfloat * params); /* 164 */
+ void (GLAPIENTRYP LightModeli)(GLenum pname, GLint param); /* 165 */
+ void (GLAPIENTRYP LightModeliv)(GLenum pname, const GLint * params); /* 166 */
+ void (GLAPIENTRYP LineStipple)(GLint factor, GLushort pattern); /* 167 */
+ void (GLAPIENTRYP LineWidth)(GLfloat width); /* 168 */
+ void (GLAPIENTRYP Materialf)(GLenum face, GLenum pname, GLfloat param); /* 169 */
+ void (GLAPIENTRYP Materialfv)(GLenum face, GLenum pname, const GLfloat * params); /* 170 */
+ void (GLAPIENTRYP Materiali)(GLenum face, GLenum pname, GLint param); /* 171 */
+ void (GLAPIENTRYP Materialiv)(GLenum face, GLenum pname, const GLint * params); /* 172 */
+ void (GLAPIENTRYP PointSize)(GLfloat size); /* 173 */
+ void (GLAPIENTRYP PolygonMode)(GLenum face, GLenum mode); /* 174 */
+ void (GLAPIENTRYP PolygonStipple)(const GLubyte * mask); /* 175 */
+ void (GLAPIENTRYP Scissor)(GLint x, GLint y, GLsizei width, GLsizei height); /* 176 */
+ void (GLAPIENTRYP ShadeModel)(GLenum mode); /* 177 */
+ void (GLAPIENTRYP TexParameterf)(GLenum target, GLenum pname, GLfloat param); /* 178 */
+ void (GLAPIENTRYP TexParameterfv)(GLenum target, GLenum pname, const GLfloat * params); /* 179 */
+ void (GLAPIENTRYP TexParameteri)(GLenum target, GLenum pname, GLint param); /* 180 */
+ void (GLAPIENTRYP TexParameteriv)(GLenum target, GLenum pname, const GLint * params); /* 181 */
+ void (GLAPIENTRYP TexImage1D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid * pixels); /* 182 */
+ void (GLAPIENTRYP TexImage2D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels); /* 183 */
+ void (GLAPIENTRYP TexEnvf)(GLenum target, GLenum pname, GLfloat param); /* 184 */
+ void (GLAPIENTRYP TexEnvfv)(GLenum target, GLenum pname, const GLfloat * params); /* 185 */
+ void (GLAPIENTRYP TexEnvi)(GLenum target, GLenum pname, GLint param); /* 186 */
+ void (GLAPIENTRYP TexEnviv)(GLenum target, GLenum pname, const GLint * params); /* 187 */
+ void (GLAPIENTRYP TexGend)(GLenum coord, GLenum pname, GLdouble param); /* 188 */
+ void (GLAPIENTRYP TexGendv)(GLenum coord, GLenum pname, const GLdouble * params); /* 189 */
+ void (GLAPIENTRYP TexGenfOES)(GLenum coord, GLenum pname, GLfloat param); /* 190 */
+ void (GLAPIENTRYP TexGenfvOES)(GLenum coord, GLenum pname, const GLfloat * params); /* 191 */
+ void (GLAPIENTRYP TexGeniOES)(GLenum coord, GLenum pname, GLint param); /* 192 */
+ void (GLAPIENTRYP TexGenivOES)(GLenum coord, GLenum pname, const GLint * params); /* 193 */
+ void (GLAPIENTRYP FeedbackBuffer)(GLsizei size, GLenum type, GLfloat * buffer); /* 194 */
+ void (GLAPIENTRYP SelectBuffer)(GLsizei size, GLuint * buffer); /* 195 */
+ GLint (GLAPIENTRYP RenderMode)(GLenum mode); /* 196 */
+ void (GLAPIENTRYP InitNames)(void); /* 197 */
+ void (GLAPIENTRYP LoadName)(GLuint name); /* 198 */
+ void (GLAPIENTRYP PassThrough)(GLfloat token); /* 199 */
+ void (GLAPIENTRYP PopName)(void); /* 200 */
+ void (GLAPIENTRYP PushName)(GLuint name); /* 201 */
+ void (GLAPIENTRYP DrawBuffer)(GLenum mode); /* 202 */
+ void (GLAPIENTRYP Clear)(GLbitfield mask); /* 203 */
+ void (GLAPIENTRYP ClearAccum)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); /* 204 */
+ void (GLAPIENTRYP ClearIndex)(GLfloat c); /* 205 */
+ void (GLAPIENTRYP ClearColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); /* 206 */
+ void (GLAPIENTRYP ClearStencil)(GLint s); /* 207 */
+ void (GLAPIENTRYP ClearDepth)(GLclampd depth); /* 208 */
+ void (GLAPIENTRYP StencilMask)(GLuint mask); /* 209 */
+ void (GLAPIENTRYP ColorMask)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); /* 210 */
+ void (GLAPIENTRYP DepthMask)(GLboolean flag); /* 211 */
+ void (GLAPIENTRYP IndexMask)(GLuint mask); /* 212 */
+ void (GLAPIENTRYP Accum)(GLenum op, GLfloat value); /* 213 */
+ void (GLAPIENTRYP Disable)(GLenum cap); /* 214 */
+ void (GLAPIENTRYP Enable)(GLenum cap); /* 215 */
+ void (GLAPIENTRYP Finish)(void); /* 216 */
+ void (GLAPIENTRYP Flush)(void); /* 217 */
+ void (GLAPIENTRYP PopAttrib)(void); /* 218 */
+ void (GLAPIENTRYP PushAttrib)(GLbitfield mask); /* 219 */
+ void (GLAPIENTRYP Map1d)(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble * points); /* 220 */
+ void (GLAPIENTRYP Map1f)(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat * points); /* 221 */
+ void (GLAPIENTRYP Map2d)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble * points); /* 222 */
+ void (GLAPIENTRYP Map2f)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat * points); /* 223 */
+ void (GLAPIENTRYP MapGrid1d)(GLint un, GLdouble u1, GLdouble u2); /* 224 */
+ void (GLAPIENTRYP MapGrid1f)(GLint un, GLfloat u1, GLfloat u2); /* 225 */
+ void (GLAPIENTRYP MapGrid2d)(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); /* 226 */
+ void (GLAPIENTRYP MapGrid2f)(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); /* 227 */
+ void (GLAPIENTRYP EvalCoord1d)(GLdouble u); /* 228 */
+ void (GLAPIENTRYP EvalCoord1dv)(const GLdouble * u); /* 229 */
+ void (GLAPIENTRYP EvalCoord1f)(GLfloat u); /* 230 */
+ void (GLAPIENTRYP EvalCoord1fv)(const GLfloat * u); /* 231 */
+ void (GLAPIENTRYP EvalCoord2d)(GLdouble u, GLdouble v); /* 232 */
+ void (GLAPIENTRYP EvalCoord2dv)(const GLdouble * u); /* 233 */
+ void (GLAPIENTRYP EvalCoord2f)(GLfloat u, GLfloat v); /* 234 */
+ void (GLAPIENTRYP EvalCoord2fv)(const GLfloat * u); /* 235 */
+ void (GLAPIENTRYP EvalMesh1)(GLenum mode, GLint i1, GLint i2); /* 236 */
+ void (GLAPIENTRYP EvalPoint1)(GLint i); /* 237 */
+ void (GLAPIENTRYP EvalMesh2)(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); /* 238 */
+ void (GLAPIENTRYP EvalPoint2)(GLint i, GLint j); /* 239 */
+ void (GLAPIENTRYP AlphaFunc)(GLenum func, GLclampf ref); /* 240 */
+ void (GLAPIENTRYP BlendFunc)(GLenum sfactor, GLenum dfactor); /* 241 */
+ void (GLAPIENTRYP LogicOp)(GLenum opcode); /* 242 */
+ void (GLAPIENTRYP StencilFunc)(GLenum func, GLint ref, GLuint mask); /* 243 */
+ void (GLAPIENTRYP StencilOp)(GLenum fail, GLenum zfail, GLenum zpass); /* 244 */
+ void (GLAPIENTRYP DepthFunc)(GLenum func); /* 245 */
+ void (GLAPIENTRYP PixelZoom)(GLfloat xfactor, GLfloat yfactor); /* 246 */
+ void (GLAPIENTRYP PixelTransferf)(GLenum pname, GLfloat param); /* 247 */
+ void (GLAPIENTRYP PixelTransferi)(GLenum pname, GLint param); /* 248 */
+ void (GLAPIENTRYP PixelStoref)(GLenum pname, GLfloat param); /* 249 */
+ void (GLAPIENTRYP PixelStorei)(GLenum pname, GLint param); /* 250 */
+ void (GLAPIENTRYP PixelMapfv)(GLenum map, GLsizei mapsize, const GLfloat * values); /* 251 */
+ void (GLAPIENTRYP PixelMapuiv)(GLenum map, GLsizei mapsize, const GLuint * values); /* 252 */
+ void (GLAPIENTRYP PixelMapusv)(GLenum map, GLsizei mapsize, const GLushort * values); /* 253 */
+ void (GLAPIENTRYP ReadBuffer)(GLenum mode); /* 254 */
+ void (GLAPIENTRYP CopyPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); /* 255 */
+ void (GLAPIENTRYP ReadPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * pixels); /* 256 */
+ void (GLAPIENTRYP DrawPixels)(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels); /* 257 */
+ void (GLAPIENTRYP GetBooleanv)(GLenum pname, GLboolean * params); /* 258 */
+ void (GLAPIENTRYP GetClipPlane)(GLenum plane, GLdouble * equation); /* 259 */
+ void (GLAPIENTRYP GetDoublev)(GLenum pname, GLdouble * params); /* 260 */
+ GLenum (GLAPIENTRYP GetError)(void); /* 261 */
+ void (GLAPIENTRYP GetFloatv)(GLenum pname, GLfloat * params); /* 262 */
+ void (GLAPIENTRYP GetIntegerv)(GLenum pname, GLint * params); /* 263 */
+ void (GLAPIENTRYP GetLightfv)(GLenum light, GLenum pname, GLfloat * params); /* 264 */
+ void (GLAPIENTRYP GetLightiv)(GLenum light, GLenum pname, GLint * params); /* 265 */
+ void (GLAPIENTRYP GetMapdv)(GLenum target, GLenum query, GLdouble * v); /* 266 */
+ void (GLAPIENTRYP GetMapfv)(GLenum target, GLenum query, GLfloat * v); /* 267 */
+ void (GLAPIENTRYP GetMapiv)(GLenum target, GLenum query, GLint * v); /* 268 */
+ void (GLAPIENTRYP GetMaterialfv)(GLenum face, GLenum pname, GLfloat * params); /* 269 */
+ void (GLAPIENTRYP GetMaterialiv)(GLenum face, GLenum pname, GLint * params); /* 270 */
+ void (GLAPIENTRYP GetPixelMapfv)(GLenum map, GLfloat * values); /* 271 */
+ void (GLAPIENTRYP GetPixelMapuiv)(GLenum map, GLuint * values); /* 272 */
+ void (GLAPIENTRYP GetPixelMapusv)(GLenum map, GLushort * values); /* 273 */
+ void (GLAPIENTRYP GetPolygonStipple)(GLubyte * mask); /* 274 */
+ const GLubyte * (GLAPIENTRYP GetString)(GLenum name); /* 275 */
+ void (GLAPIENTRYP GetTexEnvfv)(GLenum target, GLenum pname, GLfloat * params); /* 276 */
+ void (GLAPIENTRYP GetTexEnviv)(GLenum target, GLenum pname, GLint * params); /* 277 */
+ void (GLAPIENTRYP GetTexGendv)(GLenum coord, GLenum pname, GLdouble * params); /* 278 */
+ void (GLAPIENTRYP GetTexGenfvOES)(GLenum coord, GLenum pname, GLfloat * params); /* 279 */
+ void (GLAPIENTRYP GetTexGenivOES)(GLenum coord, GLenum pname, GLint * params); /* 280 */
+ void (GLAPIENTRYP GetTexImage)(GLenum target, GLint level, GLenum format, GLenum type, GLvoid * pixels); /* 281 */
+ void (GLAPIENTRYP GetTexParameterfv)(GLenum target, GLenum pname, GLfloat * params); /* 282 */
+ void (GLAPIENTRYP GetTexParameteriv)(GLenum target, GLenum pname, GLint * params); /* 283 */
+ void (GLAPIENTRYP GetTexLevelParameterfv)(GLenum target, GLint level, GLenum pname, GLfloat * params); /* 284 */
+ void (GLAPIENTRYP GetTexLevelParameteriv)(GLenum target, GLint level, GLenum pname, GLint * params); /* 285 */
+ GLboolean (GLAPIENTRYP IsEnabled)(GLenum cap); /* 286 */
+ GLboolean (GLAPIENTRYP IsList)(GLuint list); /* 287 */
+ void (GLAPIENTRYP DepthRange)(GLclampd zNear, GLclampd zFar); /* 288 */
+ void (GLAPIENTRYP Frustum)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); /* 289 */
+ void (GLAPIENTRYP LoadIdentity)(void); /* 290 */
+ void (GLAPIENTRYP LoadMatrixf)(const GLfloat * m); /* 291 */
+ void (GLAPIENTRYP LoadMatrixd)(const GLdouble * m); /* 292 */
+ void (GLAPIENTRYP MatrixMode)(GLenum mode); /* 293 */
+ void (GLAPIENTRYP MultMatrixf)(const GLfloat * m); /* 294 */
+ void (GLAPIENTRYP MultMatrixd)(const GLdouble * m); /* 295 */
+ void (GLAPIENTRYP Ortho)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); /* 296 */
+ void (GLAPIENTRYP PopMatrix)(void); /* 297 */
+ void (GLAPIENTRYP PushMatrix)(void); /* 298 */
+ void (GLAPIENTRYP Rotated)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z); /* 299 */
+ void (GLAPIENTRYP Rotatef)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); /* 300 */
+ void (GLAPIENTRYP Scaled)(GLdouble x, GLdouble y, GLdouble z); /* 301 */
+ void (GLAPIENTRYP Scalef)(GLfloat x, GLfloat y, GLfloat z); /* 302 */
+ void (GLAPIENTRYP Translated)(GLdouble x, GLdouble y, GLdouble z); /* 303 */
+ void (GLAPIENTRYP Translatef)(GLfloat x, GLfloat y, GLfloat z); /* 304 */
+ void (GLAPIENTRYP Viewport)(GLint x, GLint y, GLsizei width, GLsizei height); /* 305 */
+ void (GLAPIENTRYP ArrayElement)(GLint i); /* 306 */
+ void (GLAPIENTRYP BindTexture)(GLenum target, GLuint texture); /* 307 */
+ void (GLAPIENTRYP ColorPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer); /* 308 */
+ void (GLAPIENTRYP DisableClientState)(GLenum array); /* 309 */
+ void (GLAPIENTRYP DrawArrays)(GLenum mode, GLint first, GLsizei count); /* 310 */
+ void (GLAPIENTRYP DrawElements)(GLenum mode, GLsizei count, GLenum type, const GLvoid * indices); /* 311 */
+ void (GLAPIENTRYP EdgeFlagPointer)(GLsizei stride, const GLvoid * pointer); /* 312 */
+ void (GLAPIENTRYP EnableClientState)(GLenum array); /* 313 */
+ void (GLAPIENTRYP IndexPointer)(GLenum type, GLsizei stride, const GLvoid * pointer); /* 314 */
+ void (GLAPIENTRYP Indexub)(GLubyte c); /* 315 */
+ void (GLAPIENTRYP Indexubv)(const GLubyte * c); /* 316 */
+ void (GLAPIENTRYP InterleavedArrays)(GLenum format, GLsizei stride, const GLvoid * pointer); /* 317 */
+ void (GLAPIENTRYP NormalPointer)(GLenum type, GLsizei stride, const GLvoid * pointer); /* 318 */
+ void (GLAPIENTRYP PolygonOffset)(GLfloat factor, GLfloat units); /* 319 */
+ void (GLAPIENTRYP TexCoordPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer); /* 320 */
+ void (GLAPIENTRYP VertexPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer); /* 321 */
+ GLboolean (GLAPIENTRYP AreTexturesResident)(GLsizei n, const GLuint * textures, GLboolean * residences); /* 322 */
+ void (GLAPIENTRYP CopyTexImage1D)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); /* 323 */
+ void (GLAPIENTRYP CopyTexImage2D)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); /* 324 */
+ void (GLAPIENTRYP CopyTexSubImage1D)(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); /* 325 */
+ void (GLAPIENTRYP CopyTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); /* 326 */
+ void (GLAPIENTRYP DeleteTextures)(GLsizei n, const GLuint * textures); /* 327 */
+ void (GLAPIENTRYP GenTextures)(GLsizei n, GLuint * textures); /* 328 */
+ void (GLAPIENTRYP GetPointerv)(GLenum pname, GLvoid ** params); /* 329 */
+ GLboolean (GLAPIENTRYP IsTexture)(GLuint texture); /* 330 */
+ void (GLAPIENTRYP PrioritizeTextures)(GLsizei n, const GLuint * textures, const GLclampf * priorities); /* 331 */
+ void (GLAPIENTRYP TexSubImage1D)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid * pixels); /* 332 */
+ void (GLAPIENTRYP TexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels); /* 333 */
+ void (GLAPIENTRYP PopClientAttrib)(void); /* 334 */
+ void (GLAPIENTRYP PushClientAttrib)(GLbitfield mask); /* 335 */
+ void (GLAPIENTRYP BlendColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); /* 336 */
+ void (GLAPIENTRYP BlendEquationOES)(GLenum mode); /* 337 */
+ void (GLAPIENTRYP DrawRangeElements)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid * indices); /* 338 */
+ void (GLAPIENTRYP ColorTable)(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * table); /* 339 */
+ void (GLAPIENTRYP ColorTableParameterfv)(GLenum target, GLenum pname, const GLfloat * params); /* 340 */
+ void (GLAPIENTRYP ColorTableParameteriv)(GLenum target, GLenum pname, const GLint * params); /* 341 */
+ void (GLAPIENTRYP CopyColorTable)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); /* 342 */
+ void (GLAPIENTRYP GetColorTable)(GLenum target, GLenum format, GLenum type, GLvoid * table); /* 343 */
+ void (GLAPIENTRYP GetColorTableParameterfv)(GLenum target, GLenum pname, GLfloat * params); /* 344 */
+ void (GLAPIENTRYP GetColorTableParameteriv)(GLenum target, GLenum pname, GLint * params); /* 345 */
+ void (GLAPIENTRYP ColorSubTable)(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid * data); /* 346 */
+ void (GLAPIENTRYP CopyColorSubTable)(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); /* 347 */
+ void (GLAPIENTRYP ConvolutionFilter1D)(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * image); /* 348 */
+ void (GLAPIENTRYP ConvolutionFilter2D)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * image); /* 349 */
+ void (GLAPIENTRYP ConvolutionParameterf)(GLenum target, GLenum pname, GLfloat params); /* 350 */
+ void (GLAPIENTRYP ConvolutionParameterfv)(GLenum target, GLenum pname, const GLfloat * params); /* 351 */
+ void (GLAPIENTRYP ConvolutionParameteri)(GLenum target, GLenum pname, GLint params); /* 352 */
+ void (GLAPIENTRYP ConvolutionParameteriv)(GLenum target, GLenum pname, const GLint * params); /* 353 */
+ void (GLAPIENTRYP CopyConvolutionFilter1D)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); /* 354 */
+ void (GLAPIENTRYP CopyConvolutionFilter2D)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); /* 355 */
+ void (GLAPIENTRYP GetConvolutionFilter)(GLenum target, GLenum format, GLenum type, GLvoid * image); /* 356 */
+ void (GLAPIENTRYP GetConvolutionParameterfv)(GLenum target, GLenum pname, GLfloat * params); /* 357 */
+ void (GLAPIENTRYP GetConvolutionParameteriv)(GLenum target, GLenum pname, GLint * params); /* 358 */
+ void (GLAPIENTRYP GetSeparableFilter)(GLenum target, GLenum format, GLenum type, GLvoid * row, GLvoid * column, GLvoid * span); /* 359 */
+ void (GLAPIENTRYP SeparableFilter2D)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * row, const GLvoid * column); /* 360 */
+ void (GLAPIENTRYP GetHistogram)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values); /* 361 */
+ void (GLAPIENTRYP GetHistogramParameterfv)(GLenum target, GLenum pname, GLfloat * params); /* 362 */
+ void (GLAPIENTRYP GetHistogramParameteriv)(GLenum target, GLenum pname, GLint * params); /* 363 */
+ void (GLAPIENTRYP GetMinmax)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values); /* 364 */
+ void (GLAPIENTRYP GetMinmaxParameterfv)(GLenum target, GLenum pname, GLfloat * params); /* 365 */
+ void (GLAPIENTRYP GetMinmaxParameteriv)(GLenum target, GLenum pname, GLint * params); /* 366 */
+ void (GLAPIENTRYP Histogram)(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); /* 367 */
+ void (GLAPIENTRYP Minmax)(GLenum target, GLenum internalformat, GLboolean sink); /* 368 */
+ void (GLAPIENTRYP ResetHistogram)(GLenum target); /* 369 */
+ void (GLAPIENTRYP ResetMinmax)(GLenum target); /* 370 */
+ void (GLAPIENTRYP TexImage3D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels); /* 371 */
+ void (GLAPIENTRYP TexSubImage3D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels); /* 372 */
+ void (GLAPIENTRYP CopyTexSubImage3D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); /* 373 */
+ void (GLAPIENTRYP ActiveTexture)(GLenum texture); /* 374 */
+ void (GLAPIENTRYP ClientActiveTexture)(GLenum texture); /* 375 */
+ void (GLAPIENTRYP MultiTexCoord1dARB)(GLenum target, GLdouble s); /* 376 */
+ void (GLAPIENTRYP MultiTexCoord1dvARB)(GLenum target, const GLdouble * v); /* 377 */
+ void (GLAPIENTRYP MultiTexCoord1fARB)(GLenum target, GLfloat s); /* 378 */
+ void (GLAPIENTRYP MultiTexCoord1fvARB)(GLenum target, const GLfloat * v); /* 379 */
+ void (GLAPIENTRYP MultiTexCoord1iARB)(GLenum target, GLint s); /* 380 */
+ void (GLAPIENTRYP MultiTexCoord1ivARB)(GLenum target, const GLint * v); /* 381 */
+ void (GLAPIENTRYP MultiTexCoord1sARB)(GLenum target, GLshort s); /* 382 */
+ void (GLAPIENTRYP MultiTexCoord1svARB)(GLenum target, const GLshort * v); /* 383 */
+ void (GLAPIENTRYP MultiTexCoord2dARB)(GLenum target, GLdouble s, GLdouble t); /* 384 */
+ void (GLAPIENTRYP MultiTexCoord2dvARB)(GLenum target, const GLdouble * v); /* 385 */
+ void (GLAPIENTRYP MultiTexCoord2fARB)(GLenum target, GLfloat s, GLfloat t); /* 386 */
+ void (GLAPIENTRYP MultiTexCoord2fvARB)(GLenum target, const GLfloat * v); /* 387 */
+ void (GLAPIENTRYP MultiTexCoord2iARB)(GLenum target, GLint s, GLint t); /* 388 */
+ void (GLAPIENTRYP MultiTexCoord2ivARB)(GLenum target, const GLint * v); /* 389 */
+ void (GLAPIENTRYP MultiTexCoord2sARB)(GLenum target, GLshort s, GLshort t); /* 390 */
+ void (GLAPIENTRYP MultiTexCoord2svARB)(GLenum target, const GLshort * v); /* 391 */
+ void (GLAPIENTRYP MultiTexCoord3dARB)(GLenum target, GLdouble s, GLdouble t, GLdouble r); /* 392 */
+ void (GLAPIENTRYP MultiTexCoord3dvARB)(GLenum target, const GLdouble * v); /* 393 */
+ void (GLAPIENTRYP MultiTexCoord3fARB)(GLenum target, GLfloat s, GLfloat t, GLfloat r); /* 394 */
+ void (GLAPIENTRYP MultiTexCoord3fvARB)(GLenum target, const GLfloat * v); /* 395 */
+ void (GLAPIENTRYP MultiTexCoord3iARB)(GLenum target, GLint s, GLint t, GLint r); /* 396 */
+ void (GLAPIENTRYP MultiTexCoord3ivARB)(GLenum target, const GLint * v); /* 397 */
+ void (GLAPIENTRYP MultiTexCoord3sARB)(GLenum target, GLshort s, GLshort t, GLshort r); /* 398 */
+ void (GLAPIENTRYP MultiTexCoord3svARB)(GLenum target, const GLshort * v); /* 399 */
+ void (GLAPIENTRYP MultiTexCoord4dARB)(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); /* 400 */
+ void (GLAPIENTRYP MultiTexCoord4dvARB)(GLenum target, const GLdouble * v); /* 401 */
+ void (GLAPIENTRYP MultiTexCoord4f)(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); /* 402 */
+ void (GLAPIENTRYP MultiTexCoord4fvARB)(GLenum target, const GLfloat * v); /* 403 */
+ void (GLAPIENTRYP MultiTexCoord4iARB)(GLenum target, GLint s, GLint t, GLint r, GLint q); /* 404 */
+ void (GLAPIENTRYP MultiTexCoord4ivARB)(GLenum target, const GLint * v); /* 405 */
+ void (GLAPIENTRYP MultiTexCoord4sARB)(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); /* 406 */
+ void (GLAPIENTRYP MultiTexCoord4svARB)(GLenum target, const GLshort * v); /* 407 */
+ void (GLAPIENTRYP BlendEquationSeparateOES)(GLenum modeRGB, GLenum modeA); /* 408 */
+ void (GLAPIENTRYP BlendFuncSeparateOES)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); /* 409 */
+ void (GLAPIENTRYP DrawTexfOES)(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height); /* 410 */
+ void (GLAPIENTRYP DrawTexfvOES)(const GLfloat * coords); /* 411 */
+ void (GLAPIENTRYP DrawTexiOES)(GLint x, GLint y, GLint z, GLint width, GLint height); /* 412 */
+ void (GLAPIENTRYP DrawTexivOES)(const GLint * coords); /* 413 */
+ void (GLAPIENTRYP DrawTexsOES)(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height); /* 414 */
+ void (GLAPIENTRYP DrawTexsvOES)(const GLshort * coords); /* 415 */
+ void (GLAPIENTRYP DrawTexxOES)(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height); /* 416 */
+ void (GLAPIENTRYP DrawTexxvOES)(const GLfixed * coords); /* 417 */
+ void (GLAPIENTRYP BindFramebufferOES)(GLenum target, GLuint framebuffer); /* 418 */
+ void (GLAPIENTRYP BindRenderbufferOES)(GLenum target, GLuint renderbuffer); /* 419 */
+ GLenum (GLAPIENTRYP CheckFramebufferStatusOES)(GLenum target); /* 420 */
+ void (GLAPIENTRYP DeleteFramebuffersOES)(GLsizei n, const GLuint * framebuffers); /* 421 */
+ void (GLAPIENTRYP DeleteRenderbuffersOES)(GLsizei n, const GLuint * renderbuffers); /* 422 */
+ void (GLAPIENTRYP FramebufferRenderbufferOES)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); /* 423 */
+ void (GLAPIENTRYP FramebufferTexture2DOES)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); /* 424 */
+ void (GLAPIENTRYP GenFramebuffersOES)(GLsizei n, GLuint * framebuffers); /* 425 */
+ void (GLAPIENTRYP GenRenderbuffersOES)(GLsizei n, GLuint * renderbuffers); /* 426 */
+ void (GLAPIENTRYP GenerateMipmapOES)(GLenum target); /* 427 */
+ void (GLAPIENTRYP GetFramebufferAttachmentParameterivOES)(GLenum target, GLenum attachment, GLenum pname, GLint * params); /* 428 */
+ void (GLAPIENTRYP GetRenderbufferParameterivOES)(GLenum target, GLenum pname, GLint * params); /* 429 */
+ GLboolean (GLAPIENTRYP IsFramebufferOES)(GLuint framebuffer); /* 430 */
+ GLboolean (GLAPIENTRYP IsRenderbufferOES)(GLuint renderbuffer); /* 431 */
+ void (GLAPIENTRYP RenderbufferStorageOES)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); /* 432 */
+ void (GLAPIENTRYP PointSizePointerOES)(GLenum type, GLsizei stride, const GLvoid * pointer); /* 433 */
+ GLbitfield (GLAPIENTRYP QueryMatrixxOES)(GLfixed * mantissa, GLint * exponent); /* 434 */
+ void (GLAPIENTRYP GetTexGenxvOES)(GLenum coord, GLenum pname, GLfixed * params); /* 435 */
+ void (GLAPIENTRYP TexGenxOES)(GLenum coord, GLenum pname, GLint param); /* 436 */
+ void (GLAPIENTRYP TexGenxvOES)(GLenum coord, GLenum pname, const GLfixed * params); /* 437 */
+ void (GLAPIENTRYP EGLImageTargetRenderbufferStorageOES)(GLenum target, GLeglImageOES image); /* 438 */
+ void (GLAPIENTRYP EGLImageTargetTexture2DOES)(GLenum target, GLeglImageOES image); /* 439 */
+ void (GLAPIENTRYP GetBufferPointervOES)(GLenum target, GLenum pname, GLvoid ** params); /* 440 */
+ GLvoid * (GLAPIENTRYP MapBufferOES)(GLenum target, GLenum access); /* 441 */
+ GLboolean (GLAPIENTRYP UnmapBufferOES)(GLenum target); /* 442 */
+ void (GLAPIENTRYP BindVertexArrayAPPLE)(GLuint array); /* 443 */
+ void (GLAPIENTRYP DeleteVertexArraysAPPLE)(GLsizei n, const GLuint * arrays); /* 444 */
+ void (GLAPIENTRYP GenVertexArraysAPPLE)(GLsizei n, GLuint * arrays); /* 445 */
+ GLboolean (GLAPIENTRYP IsVertexArrayAPPLE)(GLuint array); /* 446 */
+ void (GLAPIENTRYP CompressedTexImage2D)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * data); /* 447 */
+ void (GLAPIENTRYP CompressedTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * data); /* 448 */
+ void (GLAPIENTRYP SampleCoverage)(GLclampf value, GLboolean invert); /* 449 */
+ void (GLAPIENTRYP BindBuffer)(GLenum target, GLuint buffer); /* 450 */
+ void (GLAPIENTRYP BufferData)(GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage); /* 451 */
+ void (GLAPIENTRYP BufferSubData)(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid * data); /* 452 */
+ void (GLAPIENTRYP DeleteBuffers)(GLsizei n, const GLuint * buffer); /* 453 */
+ void (GLAPIENTRYP GenBuffers)(GLsizei n, GLuint * buffer); /* 454 */
+ void (GLAPIENTRYP GetBufferParameteriv)(GLenum target, GLenum pname, GLint * params); /* 455 */
+ GLboolean (GLAPIENTRYP IsBuffer)(GLuint buffer); /* 456 */
+ void (GLAPIENTRYP AlphaFuncx)(GLenum func, GLclampx ref); /* 457 */
+ void (GLAPIENTRYP ClearColorx)(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha); /* 458 */
+ void (GLAPIENTRYP ClearDepthf)(GLclampf depth); /* 459 */
+ void (GLAPIENTRYP ClearDepthx)(GLclampx depth); /* 460 */
+ void (GLAPIENTRYP Color4x)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); /* 461 */
+ void (GLAPIENTRYP DepthRangef)(GLclampf zNear, GLclampf zFar); /* 462 */
+ void (GLAPIENTRYP DepthRangex)(GLclampx zNear, GLclampx zFar); /* 463 */
+ void (GLAPIENTRYP Fogx)(GLenum pname, GLfixed param); /* 464 */
+ void (GLAPIENTRYP Fogxv)(GLenum pname, const GLfixed * params); /* 465 */
+ void (GLAPIENTRYP Frustumf)(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); /* 466 */
+ void (GLAPIENTRYP Frustumx)(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); /* 467 */
+ void (GLAPIENTRYP LightModelx)(GLenum pname, GLfixed param); /* 468 */
+ void (GLAPIENTRYP LightModelxv)(GLenum pname, const GLfixed * params); /* 469 */
+ void (GLAPIENTRYP Lightx)(GLenum light, GLenum pname, GLfixed param); /* 470 */
+ void (GLAPIENTRYP Lightxv)(GLenum light, GLenum pname, const GLfixed * params); /* 471 */
+ void (GLAPIENTRYP LineWidthx)(GLfixed width); /* 472 */
+ void (GLAPIENTRYP LoadMatrixx)(const GLfixed * m); /* 473 */
+ void (GLAPIENTRYP Materialx)(GLenum face, GLenum pname, GLfixed param); /* 474 */
+ void (GLAPIENTRYP Materialxv)(GLenum face, GLenum pname, const GLfixed * params); /* 475 */
+ void (GLAPIENTRYP MultMatrixx)(const GLfixed * m); /* 476 */
+ void (GLAPIENTRYP MultiTexCoord4x)(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q); /* 477 */
+ void (GLAPIENTRYP Normal3x)(GLfixed nx, GLfixed ny, GLfixed nz); /* 478 */
+ void (GLAPIENTRYP Orthof)(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); /* 479 */
+ void (GLAPIENTRYP Orthox)(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); /* 480 */
+ void (GLAPIENTRYP PointSizex)(GLfixed size); /* 481 */
+ void (GLAPIENTRYP PolygonOffsetx)(GLfixed factor, GLfixed units); /* 482 */
+ void (GLAPIENTRYP Rotatex)(GLfixed angle, GLfixed x, GLfixed y, GLfixed z); /* 483 */
+ void (GLAPIENTRYP SampleCoveragex)(GLclampx value, GLboolean invert); /* 484 */
+ void (GLAPIENTRYP Scalex)(GLfixed x, GLfixed y, GLfixed z); /* 485 */
+ void (GLAPIENTRYP TexEnvx)(GLenum target, GLenum pname, GLfixed param); /* 486 */
+ void (GLAPIENTRYP TexEnvxv)(GLenum target, GLenum pname, const GLfixed * params); /* 487 */
+ void (GLAPIENTRYP TexParameterx)(GLenum target, GLenum pname, GLfixed param); /* 488 */
+ void (GLAPIENTRYP Translatex)(GLfixed x, GLfixed y, GLfixed z); /* 489 */
+ void (GLAPIENTRYP ClipPlanef)(GLenum plane, const GLfloat * equation); /* 490 */
+ void (GLAPIENTRYP ClipPlanex)(GLenum plane, const GLfixed * equation); /* 491 */
+ void (GLAPIENTRYP GetClipPlanef)(GLenum plane, GLfloat * equation); /* 492 */
+ void (GLAPIENTRYP GetClipPlanex)(GLenum plane, GLfixed * equation); /* 493 */
+ void (GLAPIENTRYP GetFixedv)(GLenum pname, GLfixed * params); /* 494 */
+ void (GLAPIENTRYP GetLightxv)(GLenum light, GLenum pname, GLfixed * params); /* 495 */
+ void (GLAPIENTRYP GetMaterialxv)(GLenum face, GLenum pname, GLfixed * params); /* 496 */
+ void (GLAPIENTRYP GetTexEnvxv)(GLenum target, GLenum pname, GLfixed * params); /* 497 */
+ void (GLAPIENTRYP GetTexParameterxv)(GLenum target, GLenum pname, GLfixed * params); /* 498 */
+ void (GLAPIENTRYP PointParameterx)(GLenum pname, GLfixed param); /* 499 */
+ void (GLAPIENTRYP PointParameterxv)(GLenum pname, const GLfixed * params); /* 500 */
+ void (GLAPIENTRYP TexParameterxv)(GLenum target, GLenum pname, const GLfixed * params); /* 501 */
+ void (GLAPIENTRYP PointParameterf)(GLenum pname, GLfloat param); /* 502 */
+ void (GLAPIENTRYP PointParameterfv)(GLenum pname, const GLfloat * params); /* 503 */
+};
+
+#endif /* !defined( _GLAPI_TABLE_H_ ) */
diff --git a/src/mesa/es/glapi/headers-es1/glapi/glapitemp.h b/src/mesa/es/glapi/headers-es1/glapi/glapitemp.h
new file mode 100644
index 0000000000..9852face10
--- /dev/null
+++ b/src/mesa/es/glapi/headers-es1/glapi/glapitemp.h
@@ -0,0 +1,4223 @@
+/* DO NOT EDIT - This file generated automatically by gl_apitemp.py (from Mesa) script */
+
+/*
+ * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
+ * (C) Copyright IBM Corporation 2004
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sub license,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+ * BRIAN PAUL, IBM,
+ * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+ * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+
+# if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__)
+# define HIDDEN __attribute__((visibility("hidden")))
+# else
+# define HIDDEN
+# endif
+
+/*
+ * This file is a template which generates the OpenGL API entry point
+ * functions. It should be included by a .c file which first defines
+ * the following macros:
+ * KEYWORD1 - usually nothing, but might be __declspec(dllexport) on Win32
+ * KEYWORD2 - usually nothing, but might be __stdcall on Win32
+ * NAME(n) - builds the final function name (usually add "gl" prefix)
+ * DISPATCH(func, args, msg) - code to do dispatch of named function.
+ * msg is a printf-style debug message.
+ * RETURN_DISPATCH(func, args, msg) - code to do dispatch with a return value
+ *
+ * Here is an example which generates the usual OpenGL functions:
+ * #define KEYWORD1
+ * #define KEYWORD2
+ * #define NAME(func) gl##func
+ * #define DISPATCH(func, args, msg) \
+ * struct _glapi_table *dispatch = CurrentDispatch; \
+ * (*dispatch->func) args
+ * #define RETURN DISPATCH(func, args, msg) \
+ * struct _glapi_table *dispatch = CurrentDispatch; \
+ * return (*dispatch->func) args
+ *
+ */
+
+
+#if defined( NAME )
+#ifndef KEYWORD1
+#define KEYWORD1
+#endif
+
+#ifndef KEYWORD1_ALT
+#define KEYWORD1_ALT HIDDEN
+#endif
+
+#ifndef KEYWORD2
+#define KEYWORD2
+#endif
+
+#ifndef DISPATCH
+#error DISPATCH must be defined
+#endif
+
+#ifndef RETURN_DISPATCH
+#error RETURN_DISPATCH must be defined
+#endif
+
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_0)(GLuint list, GLenum mode);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_0)(GLuint list, GLenum mode)
+{
+ DISPATCH(NewList, (list, mode), (F, "glNewList(%d, 0x%x);\n", list, mode));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_1)(void);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_1)(void)
+{
+ DISPATCH(EndList, (), (F, "glEndList();\n"));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_2)(GLuint list);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_2)(GLuint list)
+{
+ DISPATCH(CallList, (list), (F, "glCallList(%d);\n", list));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_3)(GLsizei n, GLenum type, const GLvoid * lists);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_3)(GLsizei n, GLenum type, const GLvoid * lists)
+{
+ DISPATCH(CallLists, (n, type, lists), (F, "glCallLists(%d, 0x%x, %p);\n", n, type, (const void *) lists));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_4)(GLuint list, GLsizei range);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_4)(GLuint list, GLsizei range)
+{
+ DISPATCH(DeleteLists, (list, range), (F, "glDeleteLists(%d, %d);\n", list, range));
+}
+
+KEYWORD1_ALT GLuint KEYWORD2 NAME(_dispatch_stub_5)(GLsizei range);
+
+KEYWORD1_ALT GLuint KEYWORD2 NAME(_dispatch_stub_5)(GLsizei range)
+{
+ RETURN_DISPATCH(GenLists, (range), (F, "glGenLists(%d);\n", range));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_6)(GLuint base);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_6)(GLuint base)
+{
+ DISPATCH(ListBase, (base), (F, "glListBase(%d);\n", base));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_7)(GLenum mode);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_7)(GLenum mode)
+{
+ DISPATCH(Begin, (mode), (F, "glBegin(0x%x);\n", mode));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_8)(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte * bitmap);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_8)(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte * bitmap)
+{
+ DISPATCH(Bitmap, (width, height, xorig, yorig, xmove, ymove, bitmap), (F, "glBitmap(%d, %d, %f, %f, %f, %f, %p);\n", width, height, xorig, yorig, xmove, ymove, (const void *) bitmap));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_9)(GLbyte red, GLbyte green, GLbyte blue);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_9)(GLbyte red, GLbyte green, GLbyte blue)
+{
+ DISPATCH(Color3b, (red, green, blue), (F, "glColor3b(%d, %d, %d);\n", red, green, blue));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_10)(const GLbyte * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_10)(const GLbyte * v)
+{
+ DISPATCH(Color3bv, (v), (F, "glColor3bv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_11)(GLdouble red, GLdouble green, GLdouble blue);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_11)(GLdouble red, GLdouble green, GLdouble blue)
+{
+ DISPATCH(Color3d, (red, green, blue), (F, "glColor3d(%f, %f, %f);\n", red, green, blue));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_12)(const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_12)(const GLdouble * v)
+{
+ DISPATCH(Color3dv, (v), (F, "glColor3dv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_13)(GLfloat red, GLfloat green, GLfloat blue);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_13)(GLfloat red, GLfloat green, GLfloat blue)
+{
+ DISPATCH(Color3f, (red, green, blue), (F, "glColor3f(%f, %f, %f);\n", red, green, blue));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_14)(const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_14)(const GLfloat * v)
+{
+ DISPATCH(Color3fv, (v), (F, "glColor3fv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_15)(GLint red, GLint green, GLint blue);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_15)(GLint red, GLint green, GLint blue)
+{
+ DISPATCH(Color3i, (red, green, blue), (F, "glColor3i(%d, %d, %d);\n", red, green, blue));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_16)(const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_16)(const GLint * v)
+{
+ DISPATCH(Color3iv, (v), (F, "glColor3iv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_17)(GLshort red, GLshort green, GLshort blue);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_17)(GLshort red, GLshort green, GLshort blue)
+{
+ DISPATCH(Color3s, (red, green, blue), (F, "glColor3s(%d, %d, %d);\n", red, green, blue));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_18)(const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_18)(const GLshort * v)
+{
+ DISPATCH(Color3sv, (v), (F, "glColor3sv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_19)(GLubyte red, GLubyte green, GLubyte blue);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_19)(GLubyte red, GLubyte green, GLubyte blue)
+{
+ DISPATCH(Color3ub, (red, green, blue), (F, "glColor3ub(%d, %d, %d);\n", red, green, blue));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_20)(const GLubyte * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_20)(const GLubyte * v)
+{
+ DISPATCH(Color3ubv, (v), (F, "glColor3ubv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_21)(GLuint red, GLuint green, GLuint blue);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_21)(GLuint red, GLuint green, GLuint blue)
+{
+ DISPATCH(Color3ui, (red, green, blue), (F, "glColor3ui(%d, %d, %d);\n", red, green, blue));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_22)(const GLuint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_22)(const GLuint * v)
+{
+ DISPATCH(Color3uiv, (v), (F, "glColor3uiv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_23)(GLushort red, GLushort green, GLushort blue);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_23)(GLushort red, GLushort green, GLushort blue)
+{
+ DISPATCH(Color3us, (red, green, blue), (F, "glColor3us(%d, %d, %d);\n", red, green, blue));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_24)(const GLushort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_24)(const GLushort * v)
+{
+ DISPATCH(Color3usv, (v), (F, "glColor3usv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_25)(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_25)(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
+{
+ DISPATCH(Color4b, (red, green, blue, alpha), (F, "glColor4b(%d, %d, %d, %d);\n", red, green, blue, alpha));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_26)(const GLbyte * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_26)(const GLbyte * v)
+{
+ DISPATCH(Color4bv, (v), (F, "glColor4bv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_27)(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_27)(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
+{
+ DISPATCH(Color4d, (red, green, blue, alpha), (F, "glColor4d(%f, %f, %f, %f);\n", red, green, blue, alpha));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_28)(const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_28)(const GLdouble * v)
+{
+ DISPATCH(Color4dv, (v), (F, "glColor4dv(%p);\n", (const void *) v));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Color4f)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ DISPATCH(Color4f, (red, green, blue, alpha), (F, "glColor4f(%f, %f, %f, %f);\n", red, green, blue, alpha));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_30)(const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_30)(const GLfloat * v)
+{
+ DISPATCH(Color4fv, (v), (F, "glColor4fv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_31)(GLint red, GLint green, GLint blue, GLint alpha);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_31)(GLint red, GLint green, GLint blue, GLint alpha)
+{
+ DISPATCH(Color4i, (red, green, blue, alpha), (F, "glColor4i(%d, %d, %d, %d);\n", red, green, blue, alpha));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_32)(const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_32)(const GLint * v)
+{
+ DISPATCH(Color4iv, (v), (F, "glColor4iv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_33)(GLshort red, GLshort green, GLshort blue, GLshort alpha);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_33)(GLshort red, GLshort green, GLshort blue, GLshort alpha)
+{
+ DISPATCH(Color4s, (red, green, blue, alpha), (F, "glColor4s(%d, %d, %d, %d);\n", red, green, blue, alpha));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_34)(const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_34)(const GLshort * v)
+{
+ DISPATCH(Color4sv, (v), (F, "glColor4sv(%p);\n", (const void *) v));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Color4ub)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+{
+ DISPATCH(Color4ub, (red, green, blue, alpha), (F, "glColor4ub(%d, %d, %d, %d);\n", red, green, blue, alpha));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_36)(const GLubyte * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_36)(const GLubyte * v)
+{
+ DISPATCH(Color4ubv, (v), (F, "glColor4ubv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_37)(GLuint red, GLuint green, GLuint blue, GLuint alpha);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_37)(GLuint red, GLuint green, GLuint blue, GLuint alpha)
+{
+ DISPATCH(Color4ui, (red, green, blue, alpha), (F, "glColor4ui(%d, %d, %d, %d);\n", red, green, blue, alpha));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_38)(const GLuint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_38)(const GLuint * v)
+{
+ DISPATCH(Color4uiv, (v), (F, "glColor4uiv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_39)(GLushort red, GLushort green, GLushort blue, GLushort alpha);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_39)(GLushort red, GLushort green, GLushort blue, GLushort alpha)
+{
+ DISPATCH(Color4us, (red, green, blue, alpha), (F, "glColor4us(%d, %d, %d, %d);\n", red, green, blue, alpha));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_40)(const GLushort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_40)(const GLushort * v)
+{
+ DISPATCH(Color4usv, (v), (F, "glColor4usv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_41)(GLboolean flag);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_41)(GLboolean flag)
+{
+ DISPATCH(EdgeFlag, (flag), (F, "glEdgeFlag(%d);\n", flag));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_42)(const GLboolean * flag);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_42)(const GLboolean * flag)
+{
+ DISPATCH(EdgeFlagv, (flag), (F, "glEdgeFlagv(%p);\n", (const void *) flag));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_43)(void);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_43)(void)
+{
+ DISPATCH(End, (), (F, "glEnd();\n"));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_44)(GLdouble c);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_44)(GLdouble c)
+{
+ DISPATCH(Indexd, (c), (F, "glIndexd(%f);\n", c));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_45)(const GLdouble * c);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_45)(const GLdouble * c)
+{
+ DISPATCH(Indexdv, (c), (F, "glIndexdv(%p);\n", (const void *) c));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_46)(GLfloat c);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_46)(GLfloat c)
+{
+ DISPATCH(Indexf, (c), (F, "glIndexf(%f);\n", c));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_47)(const GLfloat * c);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_47)(const GLfloat * c)
+{
+ DISPATCH(Indexfv, (c), (F, "glIndexfv(%p);\n", (const void *) c));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_48)(GLint c);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_48)(GLint c)
+{
+ DISPATCH(Indexi, (c), (F, "glIndexi(%d);\n", c));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_49)(const GLint * c);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_49)(const GLint * c)
+{
+ DISPATCH(Indexiv, (c), (F, "glIndexiv(%p);\n", (const void *) c));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_50)(GLshort c);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_50)(GLshort c)
+{
+ DISPATCH(Indexs, (c), (F, "glIndexs(%d);\n", c));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_51)(const GLshort * c);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_51)(const GLshort * c)
+{
+ DISPATCH(Indexsv, (c), (F, "glIndexsv(%p);\n", (const void *) c));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_52)(GLbyte nx, GLbyte ny, GLbyte nz);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_52)(GLbyte nx, GLbyte ny, GLbyte nz)
+{
+ DISPATCH(Normal3b, (nx, ny, nz), (F, "glNormal3b(%d, %d, %d);\n", nx, ny, nz));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_53)(const GLbyte * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_53)(const GLbyte * v)
+{
+ DISPATCH(Normal3bv, (v), (F, "glNormal3bv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_54)(GLdouble nx, GLdouble ny, GLdouble nz);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_54)(GLdouble nx, GLdouble ny, GLdouble nz)
+{
+ DISPATCH(Normal3d, (nx, ny, nz), (F, "glNormal3d(%f, %f, %f);\n", nx, ny, nz));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_55)(const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_55)(const GLdouble * v)
+{
+ DISPATCH(Normal3dv, (v), (F, "glNormal3dv(%p);\n", (const void *) v));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Normal3f)(GLfloat nx, GLfloat ny, GLfloat nz)
+{
+ DISPATCH(Normal3f, (nx, ny, nz), (F, "glNormal3f(%f, %f, %f);\n", nx, ny, nz));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_57)(const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_57)(const GLfloat * v)
+{
+ DISPATCH(Normal3fv, (v), (F, "glNormal3fv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_58)(GLint nx, GLint ny, GLint nz);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_58)(GLint nx, GLint ny, GLint nz)
+{
+ DISPATCH(Normal3i, (nx, ny, nz), (F, "glNormal3i(%d, %d, %d);\n", nx, ny, nz));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_59)(const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_59)(const GLint * v)
+{
+ DISPATCH(Normal3iv, (v), (F, "glNormal3iv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_60)(GLshort nx, GLshort ny, GLshort nz);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_60)(GLshort nx, GLshort ny, GLshort nz)
+{
+ DISPATCH(Normal3s, (nx, ny, nz), (F, "glNormal3s(%d, %d, %d);\n", nx, ny, nz));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_61)(const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_61)(const GLshort * v)
+{
+ DISPATCH(Normal3sv, (v), (F, "glNormal3sv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_62)(GLdouble x, GLdouble y);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_62)(GLdouble x, GLdouble y)
+{
+ DISPATCH(RasterPos2d, (x, y), (F, "glRasterPos2d(%f, %f);\n", x, y));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_63)(const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_63)(const GLdouble * v)
+{
+ DISPATCH(RasterPos2dv, (v), (F, "glRasterPos2dv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_64)(GLfloat x, GLfloat y);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_64)(GLfloat x, GLfloat y)
+{
+ DISPATCH(RasterPos2f, (x, y), (F, "glRasterPos2f(%f, %f);\n", x, y));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_65)(const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_65)(const GLfloat * v)
+{
+ DISPATCH(RasterPos2fv, (v), (F, "glRasterPos2fv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_66)(GLint x, GLint y);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_66)(GLint x, GLint y)
+{
+ DISPATCH(RasterPos2i, (x, y), (F, "glRasterPos2i(%d, %d);\n", x, y));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_67)(const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_67)(const GLint * v)
+{
+ DISPATCH(RasterPos2iv, (v), (F, "glRasterPos2iv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_68)(GLshort x, GLshort y);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_68)(GLshort x, GLshort y)
+{
+ DISPATCH(RasterPos2s, (x, y), (F, "glRasterPos2s(%d, %d);\n", x, y));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_69)(const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_69)(const GLshort * v)
+{
+ DISPATCH(RasterPos2sv, (v), (F, "glRasterPos2sv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_70)(GLdouble x, GLdouble y, GLdouble z);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_70)(GLdouble x, GLdouble y, GLdouble z)
+{
+ DISPATCH(RasterPos3d, (x, y, z), (F, "glRasterPos3d(%f, %f, %f);\n", x, y, z));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_71)(const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_71)(const GLdouble * v)
+{
+ DISPATCH(RasterPos3dv, (v), (F, "glRasterPos3dv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_72)(GLfloat x, GLfloat y, GLfloat z);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_72)(GLfloat x, GLfloat y, GLfloat z)
+{
+ DISPATCH(RasterPos3f, (x, y, z), (F, "glRasterPos3f(%f, %f, %f);\n", x, y, z));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_73)(const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_73)(const GLfloat * v)
+{
+ DISPATCH(RasterPos3fv, (v), (F, "glRasterPos3fv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_74)(GLint x, GLint y, GLint z);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_74)(GLint x, GLint y, GLint z)
+{
+ DISPATCH(RasterPos3i, (x, y, z), (F, "glRasterPos3i(%d, %d, %d);\n", x, y, z));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_75)(const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_75)(const GLint * v)
+{
+ DISPATCH(RasterPos3iv, (v), (F, "glRasterPos3iv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_76)(GLshort x, GLshort y, GLshort z);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_76)(GLshort x, GLshort y, GLshort z)
+{
+ DISPATCH(RasterPos3s, (x, y, z), (F, "glRasterPos3s(%d, %d, %d);\n", x, y, z));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_77)(const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_77)(const GLshort * v)
+{
+ DISPATCH(RasterPos3sv, (v), (F, "glRasterPos3sv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_78)(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_78)(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ DISPATCH(RasterPos4d, (x, y, z, w), (F, "glRasterPos4d(%f, %f, %f, %f);\n", x, y, z, w));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_79)(const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_79)(const GLdouble * v)
+{
+ DISPATCH(RasterPos4dv, (v), (F, "glRasterPos4dv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_80)(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_80)(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ DISPATCH(RasterPos4f, (x, y, z, w), (F, "glRasterPos4f(%f, %f, %f, %f);\n", x, y, z, w));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_81)(const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_81)(const GLfloat * v)
+{
+ DISPATCH(RasterPos4fv, (v), (F, "glRasterPos4fv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_82)(GLint x, GLint y, GLint z, GLint w);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_82)(GLint x, GLint y, GLint z, GLint w)
+{
+ DISPATCH(RasterPos4i, (x, y, z, w), (F, "glRasterPos4i(%d, %d, %d, %d);\n", x, y, z, w));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_83)(const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_83)(const GLint * v)
+{
+ DISPATCH(RasterPos4iv, (v), (F, "glRasterPos4iv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_84)(GLshort x, GLshort y, GLshort z, GLshort w);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_84)(GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ DISPATCH(RasterPos4s, (x, y, z, w), (F, "glRasterPos4s(%d, %d, %d, %d);\n", x, y, z, w));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_85)(const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_85)(const GLshort * v)
+{
+ DISPATCH(RasterPos4sv, (v), (F, "glRasterPos4sv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_86)(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_86)(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
+{
+ DISPATCH(Rectd, (x1, y1, x2, y2), (F, "glRectd(%f, %f, %f, %f);\n", x1, y1, x2, y2));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_87)(const GLdouble * v1, const GLdouble * v2);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_87)(const GLdouble * v1, const GLdouble * v2)
+{
+ DISPATCH(Rectdv, (v1, v2), (F, "glRectdv(%p, %p);\n", (const void *) v1, (const void *) v2));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_88)(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_88)(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
+{
+ DISPATCH(Rectf, (x1, y1, x2, y2), (F, "glRectf(%f, %f, %f, %f);\n", x1, y1, x2, y2));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_89)(const GLfloat * v1, const GLfloat * v2);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_89)(const GLfloat * v1, const GLfloat * v2)
+{
+ DISPATCH(Rectfv, (v1, v2), (F, "glRectfv(%p, %p);\n", (const void *) v1, (const void *) v2));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_90)(GLint x1, GLint y1, GLint x2, GLint y2);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_90)(GLint x1, GLint y1, GLint x2, GLint y2)
+{
+ DISPATCH(Recti, (x1, y1, x2, y2), (F, "glRecti(%d, %d, %d, %d);\n", x1, y1, x2, y2));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_91)(const GLint * v1, const GLint * v2);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_91)(const GLint * v1, const GLint * v2)
+{
+ DISPATCH(Rectiv, (v1, v2), (F, "glRectiv(%p, %p);\n", (const void *) v1, (const void *) v2));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_92)(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_92)(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
+{
+ DISPATCH(Rects, (x1, y1, x2, y2), (F, "glRects(%d, %d, %d, %d);\n", x1, y1, x2, y2));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_93)(const GLshort * v1, const GLshort * v2);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_93)(const GLshort * v1, const GLshort * v2)
+{
+ DISPATCH(Rectsv, (v1, v2), (F, "glRectsv(%p, %p);\n", (const void *) v1, (const void *) v2));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_94)(GLdouble s);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_94)(GLdouble s)
+{
+ DISPATCH(TexCoord1d, (s), (F, "glTexCoord1d(%f);\n", s));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_95)(const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_95)(const GLdouble * v)
+{
+ DISPATCH(TexCoord1dv, (v), (F, "glTexCoord1dv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_96)(GLfloat s);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_96)(GLfloat s)
+{
+ DISPATCH(TexCoord1f, (s), (F, "glTexCoord1f(%f);\n", s));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_97)(const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_97)(const GLfloat * v)
+{
+ DISPATCH(TexCoord1fv, (v), (F, "glTexCoord1fv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_98)(GLint s);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_98)(GLint s)
+{
+ DISPATCH(TexCoord1i, (s), (F, "glTexCoord1i(%d);\n", s));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_99)(const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_99)(const GLint * v)
+{
+ DISPATCH(TexCoord1iv, (v), (F, "glTexCoord1iv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_100)(GLshort s);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_100)(GLshort s)
+{
+ DISPATCH(TexCoord1s, (s), (F, "glTexCoord1s(%d);\n", s));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_101)(const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_101)(const GLshort * v)
+{
+ DISPATCH(TexCoord1sv, (v), (F, "glTexCoord1sv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_102)(GLdouble s, GLdouble t);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_102)(GLdouble s, GLdouble t)
+{
+ DISPATCH(TexCoord2d, (s, t), (F, "glTexCoord2d(%f, %f);\n", s, t));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_103)(const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_103)(const GLdouble * v)
+{
+ DISPATCH(TexCoord2dv, (v), (F, "glTexCoord2dv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_104)(GLfloat s, GLfloat t);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_104)(GLfloat s, GLfloat t)
+{
+ DISPATCH(TexCoord2f, (s, t), (F, "glTexCoord2f(%f, %f);\n", s, t));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_105)(const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_105)(const GLfloat * v)
+{
+ DISPATCH(TexCoord2fv, (v), (F, "glTexCoord2fv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_106)(GLint s, GLint t);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_106)(GLint s, GLint t)
+{
+ DISPATCH(TexCoord2i, (s, t), (F, "glTexCoord2i(%d, %d);\n", s, t));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_107)(const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_107)(const GLint * v)
+{
+ DISPATCH(TexCoord2iv, (v), (F, "glTexCoord2iv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_108)(GLshort s, GLshort t);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_108)(GLshort s, GLshort t)
+{
+ DISPATCH(TexCoord2s, (s, t), (F, "glTexCoord2s(%d, %d);\n", s, t));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_109)(const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_109)(const GLshort * v)
+{
+ DISPATCH(TexCoord2sv, (v), (F, "glTexCoord2sv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_110)(GLdouble s, GLdouble t, GLdouble r);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_110)(GLdouble s, GLdouble t, GLdouble r)
+{
+ DISPATCH(TexCoord3d, (s, t, r), (F, "glTexCoord3d(%f, %f, %f);\n", s, t, r));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_111)(const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_111)(const GLdouble * v)
+{
+ DISPATCH(TexCoord3dv, (v), (F, "glTexCoord3dv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_112)(GLfloat s, GLfloat t, GLfloat r);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_112)(GLfloat s, GLfloat t, GLfloat r)
+{
+ DISPATCH(TexCoord3f, (s, t, r), (F, "glTexCoord3f(%f, %f, %f);\n", s, t, r));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_113)(const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_113)(const GLfloat * v)
+{
+ DISPATCH(TexCoord3fv, (v), (F, "glTexCoord3fv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_114)(GLint s, GLint t, GLint r);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_114)(GLint s, GLint t, GLint r)
+{
+ DISPATCH(TexCoord3i, (s, t, r), (F, "glTexCoord3i(%d, %d, %d);\n", s, t, r));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_115)(const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_115)(const GLint * v)
+{
+ DISPATCH(TexCoord3iv, (v), (F, "glTexCoord3iv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_116)(GLshort s, GLshort t, GLshort r);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_116)(GLshort s, GLshort t, GLshort r)
+{
+ DISPATCH(TexCoord3s, (s, t, r), (F, "glTexCoord3s(%d, %d, %d);\n", s, t, r));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_117)(const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_117)(const GLshort * v)
+{
+ DISPATCH(TexCoord3sv, (v), (F, "glTexCoord3sv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_118)(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_118)(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ DISPATCH(TexCoord4d, (s, t, r, q), (F, "glTexCoord4d(%f, %f, %f, %f);\n", s, t, r, q));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_119)(const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_119)(const GLdouble * v)
+{
+ DISPATCH(TexCoord4dv, (v), (F, "glTexCoord4dv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_120)(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_120)(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ DISPATCH(TexCoord4f, (s, t, r, q), (F, "glTexCoord4f(%f, %f, %f, %f);\n", s, t, r, q));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_121)(const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_121)(const GLfloat * v)
+{
+ DISPATCH(TexCoord4fv, (v), (F, "glTexCoord4fv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_122)(GLint s, GLint t, GLint r, GLint q);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_122)(GLint s, GLint t, GLint r, GLint q)
+{
+ DISPATCH(TexCoord4i, (s, t, r, q), (F, "glTexCoord4i(%d, %d, %d, %d);\n", s, t, r, q));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_123)(const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_123)(const GLint * v)
+{
+ DISPATCH(TexCoord4iv, (v), (F, "glTexCoord4iv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_124)(GLshort s, GLshort t, GLshort r, GLshort q);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_124)(GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ DISPATCH(TexCoord4s, (s, t, r, q), (F, "glTexCoord4s(%d, %d, %d, %d);\n", s, t, r, q));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_125)(const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_125)(const GLshort * v)
+{
+ DISPATCH(TexCoord4sv, (v), (F, "glTexCoord4sv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_126)(GLdouble x, GLdouble y);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_126)(GLdouble x, GLdouble y)
+{
+ DISPATCH(Vertex2d, (x, y), (F, "glVertex2d(%f, %f);\n", x, y));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_127)(const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_127)(const GLdouble * v)
+{
+ DISPATCH(Vertex2dv, (v), (F, "glVertex2dv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_128)(GLfloat x, GLfloat y);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_128)(GLfloat x, GLfloat y)
+{
+ DISPATCH(Vertex2f, (x, y), (F, "glVertex2f(%f, %f);\n", x, y));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_129)(const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_129)(const GLfloat * v)
+{
+ DISPATCH(Vertex2fv, (v), (F, "glVertex2fv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_130)(GLint x, GLint y);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_130)(GLint x, GLint y)
+{
+ DISPATCH(Vertex2i, (x, y), (F, "glVertex2i(%d, %d);\n", x, y));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_131)(const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_131)(const GLint * v)
+{
+ DISPATCH(Vertex2iv, (v), (F, "glVertex2iv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_132)(GLshort x, GLshort y);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_132)(GLshort x, GLshort y)
+{
+ DISPATCH(Vertex2s, (x, y), (F, "glVertex2s(%d, %d);\n", x, y));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_133)(const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_133)(const GLshort * v)
+{
+ DISPATCH(Vertex2sv, (v), (F, "glVertex2sv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_134)(GLdouble x, GLdouble y, GLdouble z);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_134)(GLdouble x, GLdouble y, GLdouble z)
+{
+ DISPATCH(Vertex3d, (x, y, z), (F, "glVertex3d(%f, %f, %f);\n", x, y, z));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_135)(const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_135)(const GLdouble * v)
+{
+ DISPATCH(Vertex3dv, (v), (F, "glVertex3dv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_136)(GLfloat x, GLfloat y, GLfloat z);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_136)(GLfloat x, GLfloat y, GLfloat z)
+{
+ DISPATCH(Vertex3f, (x, y, z), (F, "glVertex3f(%f, %f, %f);\n", x, y, z));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_137)(const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_137)(const GLfloat * v)
+{
+ DISPATCH(Vertex3fv, (v), (F, "glVertex3fv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_138)(GLint x, GLint y, GLint z);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_138)(GLint x, GLint y, GLint z)
+{
+ DISPATCH(Vertex3i, (x, y, z), (F, "glVertex3i(%d, %d, %d);\n", x, y, z));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_139)(const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_139)(const GLint * v)
+{
+ DISPATCH(Vertex3iv, (v), (F, "glVertex3iv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_140)(GLshort x, GLshort y, GLshort z);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_140)(GLshort x, GLshort y, GLshort z)
+{
+ DISPATCH(Vertex3s, (x, y, z), (F, "glVertex3s(%d, %d, %d);\n", x, y, z));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_141)(const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_141)(const GLshort * v)
+{
+ DISPATCH(Vertex3sv, (v), (F, "glVertex3sv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_142)(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_142)(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ DISPATCH(Vertex4d, (x, y, z, w), (F, "glVertex4d(%f, %f, %f, %f);\n", x, y, z, w));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_143)(const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_143)(const GLdouble * v)
+{
+ DISPATCH(Vertex4dv, (v), (F, "glVertex4dv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_144)(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_144)(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ DISPATCH(Vertex4f, (x, y, z, w), (F, "glVertex4f(%f, %f, %f, %f);\n", x, y, z, w));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_145)(const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_145)(const GLfloat * v)
+{
+ DISPATCH(Vertex4fv, (v), (F, "glVertex4fv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_146)(GLint x, GLint y, GLint z, GLint w);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_146)(GLint x, GLint y, GLint z, GLint w)
+{
+ DISPATCH(Vertex4i, (x, y, z, w), (F, "glVertex4i(%d, %d, %d, %d);\n", x, y, z, w));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_147)(const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_147)(const GLint * v)
+{
+ DISPATCH(Vertex4iv, (v), (F, "glVertex4iv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_148)(GLshort x, GLshort y, GLshort z, GLshort w);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_148)(GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ DISPATCH(Vertex4s, (x, y, z, w), (F, "glVertex4s(%d, %d, %d, %d);\n", x, y, z, w));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_149)(const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_149)(const GLshort * v)
+{
+ DISPATCH(Vertex4sv, (v), (F, "glVertex4sv(%p);\n", (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_150)(GLenum plane, const GLdouble * equation);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_150)(GLenum plane, const GLdouble * equation)
+{
+ DISPATCH(ClipPlane, (plane, equation), (F, "glClipPlane(0x%x, %p);\n", plane, (const void *) equation));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_151)(GLenum face, GLenum mode);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_151)(GLenum face, GLenum mode)
+{
+ DISPATCH(ColorMaterial, (face, mode), (F, "glColorMaterial(0x%x, 0x%x);\n", face, mode));
+}
+
+KEYWORD1 void KEYWORD2 NAME(CullFace)(GLenum mode)
+{
+ DISPATCH(CullFace, (mode), (F, "glCullFace(0x%x);\n", mode));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Fogf)(GLenum pname, GLfloat param)
+{
+ DISPATCH(Fogf, (pname, param), (F, "glFogf(0x%x, %f);\n", pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Fogfv)(GLenum pname, const GLfloat * params)
+{
+ DISPATCH(Fogfv, (pname, params), (F, "glFogfv(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_155)(GLenum pname, GLint param);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_155)(GLenum pname, GLint param)
+{
+ DISPATCH(Fogi, (pname, param), (F, "glFogi(0x%x, %d);\n", pname, param));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_156)(GLenum pname, const GLint * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_156)(GLenum pname, const GLint * params)
+{
+ DISPATCH(Fogiv, (pname, params), (F, "glFogiv(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(FrontFace)(GLenum mode)
+{
+ DISPATCH(FrontFace, (mode), (F, "glFrontFace(0x%x);\n", mode));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Hint)(GLenum target, GLenum mode)
+{
+ DISPATCH(Hint, (target, mode), (F, "glHint(0x%x, 0x%x);\n", target, mode));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Lightf)(GLenum light, GLenum pname, GLfloat param)
+{
+ DISPATCH(Lightf, (light, pname, param), (F, "glLightf(0x%x, 0x%x, %f);\n", light, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Lightfv)(GLenum light, GLenum pname, const GLfloat * params)
+{
+ DISPATCH(Lightfv, (light, pname, params), (F, "glLightfv(0x%x, 0x%x, %p);\n", light, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_161)(GLenum light, GLenum pname, GLint param);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_161)(GLenum light, GLenum pname, GLint param)
+{
+ DISPATCH(Lighti, (light, pname, param), (F, "glLighti(0x%x, 0x%x, %d);\n", light, pname, param));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_162)(GLenum light, GLenum pname, const GLint * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_162)(GLenum light, GLenum pname, const GLint * params)
+{
+ DISPATCH(Lightiv, (light, pname, params), (F, "glLightiv(0x%x, 0x%x, %p);\n", light, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LightModelf)(GLenum pname, GLfloat param)
+{
+ DISPATCH(LightModelf, (pname, param), (F, "glLightModelf(0x%x, %f);\n", pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LightModelfv)(GLenum pname, const GLfloat * params)
+{
+ DISPATCH(LightModelfv, (pname, params), (F, "glLightModelfv(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_165)(GLenum pname, GLint param);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_165)(GLenum pname, GLint param)
+{
+ DISPATCH(LightModeli, (pname, param), (F, "glLightModeli(0x%x, %d);\n", pname, param));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_166)(GLenum pname, const GLint * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_166)(GLenum pname, const GLint * params)
+{
+ DISPATCH(LightModeliv, (pname, params), (F, "glLightModeliv(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_167)(GLint factor, GLushort pattern);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_167)(GLint factor, GLushort pattern)
+{
+ DISPATCH(LineStipple, (factor, pattern), (F, "glLineStipple(%d, %d);\n", factor, pattern));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LineWidth)(GLfloat width)
+{
+ DISPATCH(LineWidth, (width), (F, "glLineWidth(%f);\n", width));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Materialf)(GLenum face, GLenum pname, GLfloat param)
+{
+ DISPATCH(Materialf, (face, pname, param), (F, "glMaterialf(0x%x, 0x%x, %f);\n", face, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Materialfv)(GLenum face, GLenum pname, const GLfloat * params)
+{
+ DISPATCH(Materialfv, (face, pname, params), (F, "glMaterialfv(0x%x, 0x%x, %p);\n", face, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_171)(GLenum face, GLenum pname, GLint param);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_171)(GLenum face, GLenum pname, GLint param)
+{
+ DISPATCH(Materiali, (face, pname, param), (F, "glMateriali(0x%x, 0x%x, %d);\n", face, pname, param));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_172)(GLenum face, GLenum pname, const GLint * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_172)(GLenum face, GLenum pname, const GLint * params)
+{
+ DISPATCH(Materialiv, (face, pname, params), (F, "glMaterialiv(0x%x, 0x%x, %p);\n", face, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PointSize)(GLfloat size)
+{
+ DISPATCH(PointSize, (size), (F, "glPointSize(%f);\n", size));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_174)(GLenum face, GLenum mode);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_174)(GLenum face, GLenum mode)
+{
+ DISPATCH(PolygonMode, (face, mode), (F, "glPolygonMode(0x%x, 0x%x);\n", face, mode));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_175)(const GLubyte * mask);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_175)(const GLubyte * mask)
+{
+ DISPATCH(PolygonStipple, (mask), (F, "glPolygonStipple(%p);\n", (const void *) mask));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Scissor)(GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ DISPATCH(Scissor, (x, y, width, height), (F, "glScissor(%d, %d, %d, %d);\n", x, y, width, height));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ShadeModel)(GLenum mode)
+{
+ DISPATCH(ShadeModel, (mode), (F, "glShadeModel(0x%x);\n", mode));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexParameterf)(GLenum target, GLenum pname, GLfloat param)
+{
+ DISPATCH(TexParameterf, (target, pname, param), (F, "glTexParameterf(0x%x, 0x%x, %f);\n", target, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexParameterfv)(GLenum target, GLenum pname, const GLfloat * params)
+{
+ DISPATCH(TexParameterfv, (target, pname, params), (F, "glTexParameterfv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexParameteri)(GLenum target, GLenum pname, GLint param)
+{
+ DISPATCH(TexParameteri, (target, pname, param), (F, "glTexParameteri(0x%x, 0x%x, %d);\n", target, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexParameteriv)(GLenum target, GLenum pname, const GLint * params)
+{
+ DISPATCH(TexParameteriv, (target, pname, params), (F, "glTexParameteriv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_182)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_182)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid * pixels)
+{
+ DISPATCH(TexImage1D, (target, level, internalformat, width, border, format, type, pixels), (F, "glTexImage1D(0x%x, %d, %d, %d, %d, 0x%x, 0x%x, %p);\n", target, level, internalformat, width, border, format, type, (const void *) pixels));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexImage2D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels)
+{
+ DISPATCH(TexImage2D, (target, level, internalformat, width, height, border, format, type, pixels), (F, "glTexImage2D(0x%x, %d, %d, %d, %d, %d, 0x%x, 0x%x, %p);\n", target, level, internalformat, width, height, border, format, type, (const void *) pixels));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexEnvf)(GLenum target, GLenum pname, GLfloat param)
+{
+ DISPATCH(TexEnvf, (target, pname, param), (F, "glTexEnvf(0x%x, 0x%x, %f);\n", target, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexEnvfv)(GLenum target, GLenum pname, const GLfloat * params)
+{
+ DISPATCH(TexEnvfv, (target, pname, params), (F, "glTexEnvfv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexEnvi)(GLenum target, GLenum pname, GLint param)
+{
+ DISPATCH(TexEnvi, (target, pname, param), (F, "glTexEnvi(0x%x, 0x%x, %d);\n", target, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexEnviv)(GLenum target, GLenum pname, const GLint * params)
+{
+ DISPATCH(TexEnviv, (target, pname, params), (F, "glTexEnviv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_188)(GLenum coord, GLenum pname, GLdouble param);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_188)(GLenum coord, GLenum pname, GLdouble param)
+{
+ DISPATCH(TexGend, (coord, pname, param), (F, "glTexGend(0x%x, 0x%x, %f);\n", coord, pname, param));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_189)(GLenum coord, GLenum pname, const GLdouble * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_189)(GLenum coord, GLenum pname, const GLdouble * params)
+{
+ DISPATCH(TexGendv, (coord, pname, params), (F, "glTexGendv(0x%x, 0x%x, %p);\n", coord, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexGenfOES)(GLenum coord, GLenum pname, GLfloat param)
+{
+ DISPATCH(TexGenfOES, (coord, pname, param), (F, "glTexGenfOES(0x%x, 0x%x, %f);\n", coord, pname, param));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_190)(GLenum coord, GLenum pname, GLfloat param);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_190)(GLenum coord, GLenum pname, GLfloat param)
+{
+ DISPATCH(TexGenfOES, (coord, pname, param), (F, "glTexGenf(0x%x, 0x%x, %f);\n", coord, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexGenfvOES)(GLenum coord, GLenum pname, const GLfloat * params)
+{
+ DISPATCH(TexGenfvOES, (coord, pname, params), (F, "glTexGenfvOES(0x%x, 0x%x, %p);\n", coord, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_191)(GLenum coord, GLenum pname, const GLfloat * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_191)(GLenum coord, GLenum pname, const GLfloat * params)
+{
+ DISPATCH(TexGenfvOES, (coord, pname, params), (F, "glTexGenfv(0x%x, 0x%x, %p);\n", coord, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexGeniOES)(GLenum coord, GLenum pname, GLint param)
+{
+ DISPATCH(TexGeniOES, (coord, pname, param), (F, "glTexGeniOES(0x%x, 0x%x, %d);\n", coord, pname, param));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_192)(GLenum coord, GLenum pname, GLint param);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_192)(GLenum coord, GLenum pname, GLint param)
+{
+ DISPATCH(TexGeniOES, (coord, pname, param), (F, "glTexGeni(0x%x, 0x%x, %d);\n", coord, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexGenivOES)(GLenum coord, GLenum pname, const GLint * params)
+{
+ DISPATCH(TexGenivOES, (coord, pname, params), (F, "glTexGenivOES(0x%x, 0x%x, %p);\n", coord, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_193)(GLenum coord, GLenum pname, const GLint * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_193)(GLenum coord, GLenum pname, const GLint * params)
+{
+ DISPATCH(TexGenivOES, (coord, pname, params), (F, "glTexGeniv(0x%x, 0x%x, %p);\n", coord, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_194)(GLsizei size, GLenum type, GLfloat * buffer);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_194)(GLsizei size, GLenum type, GLfloat * buffer)
+{
+ DISPATCH(FeedbackBuffer, (size, type, buffer), (F, "glFeedbackBuffer(%d, 0x%x, %p);\n", size, type, (const void *) buffer));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_195)(GLsizei size, GLuint * buffer);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_195)(GLsizei size, GLuint * buffer)
+{
+ DISPATCH(SelectBuffer, (size, buffer), (F, "glSelectBuffer(%d, %p);\n", size, (const void *) buffer));
+}
+
+KEYWORD1_ALT GLint KEYWORD2 NAME(_dispatch_stub_196)(GLenum mode);
+
+KEYWORD1_ALT GLint KEYWORD2 NAME(_dispatch_stub_196)(GLenum mode)
+{
+ RETURN_DISPATCH(RenderMode, (mode), (F, "glRenderMode(0x%x);\n", mode));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_197)(void);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_197)(void)
+{
+ DISPATCH(InitNames, (), (F, "glInitNames();\n"));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_198)(GLuint name);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_198)(GLuint name)
+{
+ DISPATCH(LoadName, (name), (F, "glLoadName(%d);\n", name));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_199)(GLfloat token);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_199)(GLfloat token)
+{
+ DISPATCH(PassThrough, (token), (F, "glPassThrough(%f);\n", token));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_200)(void);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_200)(void)
+{
+ DISPATCH(PopName, (), (F, "glPopName();\n"));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_201)(GLuint name);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_201)(GLuint name)
+{
+ DISPATCH(PushName, (name), (F, "glPushName(%d);\n", name));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_202)(GLenum mode);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_202)(GLenum mode)
+{
+ DISPATCH(DrawBuffer, (mode), (F, "glDrawBuffer(0x%x);\n", mode));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Clear)(GLbitfield mask)
+{
+ DISPATCH(Clear, (mask), (F, "glClear(%d);\n", mask));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_204)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_204)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ DISPATCH(ClearAccum, (red, green, blue, alpha), (F, "glClearAccum(%f, %f, %f, %f);\n", red, green, blue, alpha));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_205)(GLfloat c);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_205)(GLfloat c)
+{
+ DISPATCH(ClearIndex, (c), (F, "glClearIndex(%f);\n", c));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ClearColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
+{
+ DISPATCH(ClearColor, (red, green, blue, alpha), (F, "glClearColor(%f, %f, %f, %f);\n", red, green, blue, alpha));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ClearStencil)(GLint s)
+{
+ DISPATCH(ClearStencil, (s), (F, "glClearStencil(%d);\n", s));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_208)(GLclampd depth);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_208)(GLclampd depth)
+{
+ DISPATCH(ClearDepth, (depth), (F, "glClearDepth(%f);\n", depth));
+}
+
+KEYWORD1 void KEYWORD2 NAME(StencilMask)(GLuint mask)
+{
+ DISPATCH(StencilMask, (mask), (F, "glStencilMask(%d);\n", mask));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ColorMask)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+{
+ DISPATCH(ColorMask, (red, green, blue, alpha), (F, "glColorMask(%d, %d, %d, %d);\n", red, green, blue, alpha));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DepthMask)(GLboolean flag)
+{
+ DISPATCH(DepthMask, (flag), (F, "glDepthMask(%d);\n", flag));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_212)(GLuint mask);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_212)(GLuint mask)
+{
+ DISPATCH(IndexMask, (mask), (F, "glIndexMask(%d);\n", mask));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_213)(GLenum op, GLfloat value);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_213)(GLenum op, GLfloat value)
+{
+ DISPATCH(Accum, (op, value), (F, "glAccum(0x%x, %f);\n", op, value));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Disable)(GLenum cap)
+{
+ DISPATCH(Disable, (cap), (F, "glDisable(0x%x);\n", cap));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Enable)(GLenum cap)
+{
+ DISPATCH(Enable, (cap), (F, "glEnable(0x%x);\n", cap));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Finish)(void)
+{
+ DISPATCH(Finish, (), (F, "glFinish();\n"));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Flush)(void)
+{
+ DISPATCH(Flush, (), (F, "glFlush();\n"));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_218)(void);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_218)(void)
+{
+ DISPATCH(PopAttrib, (), (F, "glPopAttrib();\n"));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_219)(GLbitfield mask);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_219)(GLbitfield mask)
+{
+ DISPATCH(PushAttrib, (mask), (F, "glPushAttrib(%d);\n", mask));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_220)(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble * points);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_220)(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble * points)
+{
+ DISPATCH(Map1d, (target, u1, u2, stride, order, points), (F, "glMap1d(0x%x, %f, %f, %d, %d, %p);\n", target, u1, u2, stride, order, (const void *) points));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_221)(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat * points);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_221)(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat * points)
+{
+ DISPATCH(Map1f, (target, u1, u2, stride, order, points), (F, "glMap1f(0x%x, %f, %f, %d, %d, %p);\n", target, u1, u2, stride, order, (const void *) points));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_222)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble * points);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_222)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble * points)
+{
+ DISPATCH(Map2d, (target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points), (F, "glMap2d(0x%x, %f, %f, %d, %d, %f, %f, %d, %d, %p);\n", target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, (const void *) points));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_223)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat * points);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_223)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat * points)
+{
+ DISPATCH(Map2f, (target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points), (F, "glMap2f(0x%x, %f, %f, %d, %d, %f, %f, %d, %d, %p);\n", target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, (const void *) points));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_224)(GLint un, GLdouble u1, GLdouble u2);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_224)(GLint un, GLdouble u1, GLdouble u2)
+{
+ DISPATCH(MapGrid1d, (un, u1, u2), (F, "glMapGrid1d(%d, %f, %f);\n", un, u1, u2));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_225)(GLint un, GLfloat u1, GLfloat u2);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_225)(GLint un, GLfloat u1, GLfloat u2)
+{
+ DISPATCH(MapGrid1f, (un, u1, u2), (F, "glMapGrid1f(%d, %f, %f);\n", un, u1, u2));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_226)(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_226)(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
+{
+ DISPATCH(MapGrid2d, (un, u1, u2, vn, v1, v2), (F, "glMapGrid2d(%d, %f, %f, %d, %f, %f);\n", un, u1, u2, vn, v1, v2));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_227)(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_227)(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
+{
+ DISPATCH(MapGrid2f, (un, u1, u2, vn, v1, v2), (F, "glMapGrid2f(%d, %f, %f, %d, %f, %f);\n", un, u1, u2, vn, v1, v2));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_228)(GLdouble u);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_228)(GLdouble u)
+{
+ DISPATCH(EvalCoord1d, (u), (F, "glEvalCoord1d(%f);\n", u));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_229)(const GLdouble * u);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_229)(const GLdouble * u)
+{
+ DISPATCH(EvalCoord1dv, (u), (F, "glEvalCoord1dv(%p);\n", (const void *) u));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_230)(GLfloat u);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_230)(GLfloat u)
+{
+ DISPATCH(EvalCoord1f, (u), (F, "glEvalCoord1f(%f);\n", u));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_231)(const GLfloat * u);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_231)(const GLfloat * u)
+{
+ DISPATCH(EvalCoord1fv, (u), (F, "glEvalCoord1fv(%p);\n", (const void *) u));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_232)(GLdouble u, GLdouble v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_232)(GLdouble u, GLdouble v)
+{
+ DISPATCH(EvalCoord2d, (u, v), (F, "glEvalCoord2d(%f, %f);\n", u, v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_233)(const GLdouble * u);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_233)(const GLdouble * u)
+{
+ DISPATCH(EvalCoord2dv, (u), (F, "glEvalCoord2dv(%p);\n", (const void *) u));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_234)(GLfloat u, GLfloat v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_234)(GLfloat u, GLfloat v)
+{
+ DISPATCH(EvalCoord2f, (u, v), (F, "glEvalCoord2f(%f, %f);\n", u, v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_235)(const GLfloat * u);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_235)(const GLfloat * u)
+{
+ DISPATCH(EvalCoord2fv, (u), (F, "glEvalCoord2fv(%p);\n", (const void *) u));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_236)(GLenum mode, GLint i1, GLint i2);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_236)(GLenum mode, GLint i1, GLint i2)
+{
+ DISPATCH(EvalMesh1, (mode, i1, i2), (F, "glEvalMesh1(0x%x, %d, %d);\n", mode, i1, i2));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_237)(GLint i);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_237)(GLint i)
+{
+ DISPATCH(EvalPoint1, (i), (F, "glEvalPoint1(%d);\n", i));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_238)(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_238)(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
+{
+ DISPATCH(EvalMesh2, (mode, i1, i2, j1, j2), (F, "glEvalMesh2(0x%x, %d, %d, %d, %d);\n", mode, i1, i2, j1, j2));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_239)(GLint i, GLint j);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_239)(GLint i, GLint j)
+{
+ DISPATCH(EvalPoint2, (i, j), (F, "glEvalPoint2(%d, %d);\n", i, j));
+}
+
+KEYWORD1 void KEYWORD2 NAME(AlphaFunc)(GLenum func, GLclampf ref)
+{
+ DISPATCH(AlphaFunc, (func, ref), (F, "glAlphaFunc(0x%x, %f);\n", func, ref));
+}
+
+KEYWORD1 void KEYWORD2 NAME(BlendFunc)(GLenum sfactor, GLenum dfactor)
+{
+ DISPATCH(BlendFunc, (sfactor, dfactor), (F, "glBlendFunc(0x%x, 0x%x);\n", sfactor, dfactor));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LogicOp)(GLenum opcode)
+{
+ DISPATCH(LogicOp, (opcode), (F, "glLogicOp(0x%x);\n", opcode));
+}
+
+KEYWORD1 void KEYWORD2 NAME(StencilFunc)(GLenum func, GLint ref, GLuint mask)
+{
+ DISPATCH(StencilFunc, (func, ref, mask), (F, "glStencilFunc(0x%x, %d, %d);\n", func, ref, mask));
+}
+
+KEYWORD1 void KEYWORD2 NAME(StencilOp)(GLenum fail, GLenum zfail, GLenum zpass)
+{
+ DISPATCH(StencilOp, (fail, zfail, zpass), (F, "glStencilOp(0x%x, 0x%x, 0x%x);\n", fail, zfail, zpass));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DepthFunc)(GLenum func)
+{
+ DISPATCH(DepthFunc, (func), (F, "glDepthFunc(0x%x);\n", func));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_246)(GLfloat xfactor, GLfloat yfactor);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_246)(GLfloat xfactor, GLfloat yfactor)
+{
+ DISPATCH(PixelZoom, (xfactor, yfactor), (F, "glPixelZoom(%f, %f);\n", xfactor, yfactor));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_247)(GLenum pname, GLfloat param);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_247)(GLenum pname, GLfloat param)
+{
+ DISPATCH(PixelTransferf, (pname, param), (F, "glPixelTransferf(0x%x, %f);\n", pname, param));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_248)(GLenum pname, GLint param);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_248)(GLenum pname, GLint param)
+{
+ DISPATCH(PixelTransferi, (pname, param), (F, "glPixelTransferi(0x%x, %d);\n", pname, param));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_249)(GLenum pname, GLfloat param);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_249)(GLenum pname, GLfloat param)
+{
+ DISPATCH(PixelStoref, (pname, param), (F, "glPixelStoref(0x%x, %f);\n", pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PixelStorei)(GLenum pname, GLint param)
+{
+ DISPATCH(PixelStorei, (pname, param), (F, "glPixelStorei(0x%x, %d);\n", pname, param));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_251)(GLenum map, GLsizei mapsize, const GLfloat * values);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_251)(GLenum map, GLsizei mapsize, const GLfloat * values)
+{
+ DISPATCH(PixelMapfv, (map, mapsize, values), (F, "glPixelMapfv(0x%x, %d, %p);\n", map, mapsize, (const void *) values));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_252)(GLenum map, GLsizei mapsize, const GLuint * values);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_252)(GLenum map, GLsizei mapsize, const GLuint * values)
+{
+ DISPATCH(PixelMapuiv, (map, mapsize, values), (F, "glPixelMapuiv(0x%x, %d, %p);\n", map, mapsize, (const void *) values));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_253)(GLenum map, GLsizei mapsize, const GLushort * values);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_253)(GLenum map, GLsizei mapsize, const GLushort * values)
+{
+ DISPATCH(PixelMapusv, (map, mapsize, values), (F, "glPixelMapusv(0x%x, %d, %p);\n", map, mapsize, (const void *) values));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_254)(GLenum mode);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_254)(GLenum mode)
+{
+ DISPATCH(ReadBuffer, (mode), (F, "glReadBuffer(0x%x);\n", mode));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_255)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_255)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type)
+{
+ DISPATCH(CopyPixels, (x, y, width, height, type), (F, "glCopyPixels(%d, %d, %d, %d, 0x%x);\n", x, y, width, height, type));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ReadPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * pixels)
+{
+ DISPATCH(ReadPixels, (x, y, width, height, format, type, pixels), (F, "glReadPixels(%d, %d, %d, %d, 0x%x, 0x%x, %p);\n", x, y, width, height, format, type, (const void *) pixels));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_257)(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_257)(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels)
+{
+ DISPATCH(DrawPixels, (width, height, format, type, pixels), (F, "glDrawPixels(%d, %d, 0x%x, 0x%x, %p);\n", width, height, format, type, (const void *) pixels));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetBooleanv)(GLenum pname, GLboolean * params)
+{
+ DISPATCH(GetBooleanv, (pname, params), (F, "glGetBooleanv(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_259)(GLenum plane, GLdouble * equation);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_259)(GLenum plane, GLdouble * equation)
+{
+ DISPATCH(GetClipPlane, (plane, equation), (F, "glGetClipPlane(0x%x, %p);\n", plane, (const void *) equation));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_260)(GLenum pname, GLdouble * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_260)(GLenum pname, GLdouble * params)
+{
+ DISPATCH(GetDoublev, (pname, params), (F, "glGetDoublev(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1 GLenum KEYWORD2 NAME(GetError)(void)
+{
+ RETURN_DISPATCH(GetError, (), (F, "glGetError();\n"));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetFloatv)(GLenum pname, GLfloat * params)
+{
+ DISPATCH(GetFloatv, (pname, params), (F, "glGetFloatv(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetIntegerv)(GLenum pname, GLint * params)
+{
+ DISPATCH(GetIntegerv, (pname, params), (F, "glGetIntegerv(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetLightfv)(GLenum light, GLenum pname, GLfloat * params)
+{
+ DISPATCH(GetLightfv, (light, pname, params), (F, "glGetLightfv(0x%x, 0x%x, %p);\n", light, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_265)(GLenum light, GLenum pname, GLint * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_265)(GLenum light, GLenum pname, GLint * params)
+{
+ DISPATCH(GetLightiv, (light, pname, params), (F, "glGetLightiv(0x%x, 0x%x, %p);\n", light, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_266)(GLenum target, GLenum query, GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_266)(GLenum target, GLenum query, GLdouble * v)
+{
+ DISPATCH(GetMapdv, (target, query, v), (F, "glGetMapdv(0x%x, 0x%x, %p);\n", target, query, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_267)(GLenum target, GLenum query, GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_267)(GLenum target, GLenum query, GLfloat * v)
+{
+ DISPATCH(GetMapfv, (target, query, v), (F, "glGetMapfv(0x%x, 0x%x, %p);\n", target, query, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_268)(GLenum target, GLenum query, GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_268)(GLenum target, GLenum query, GLint * v)
+{
+ DISPATCH(GetMapiv, (target, query, v), (F, "glGetMapiv(0x%x, 0x%x, %p);\n", target, query, (const void *) v));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetMaterialfv)(GLenum face, GLenum pname, GLfloat * params)
+{
+ DISPATCH(GetMaterialfv, (face, pname, params), (F, "glGetMaterialfv(0x%x, 0x%x, %p);\n", face, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_270)(GLenum face, GLenum pname, GLint * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_270)(GLenum face, GLenum pname, GLint * params)
+{
+ DISPATCH(GetMaterialiv, (face, pname, params), (F, "glGetMaterialiv(0x%x, 0x%x, %p);\n", face, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_271)(GLenum map, GLfloat * values);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_271)(GLenum map, GLfloat * values)
+{
+ DISPATCH(GetPixelMapfv, (map, values), (F, "glGetPixelMapfv(0x%x, %p);\n", map, (const void *) values));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_272)(GLenum map, GLuint * values);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_272)(GLenum map, GLuint * values)
+{
+ DISPATCH(GetPixelMapuiv, (map, values), (F, "glGetPixelMapuiv(0x%x, %p);\n", map, (const void *) values));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_273)(GLenum map, GLushort * values);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_273)(GLenum map, GLushort * values)
+{
+ DISPATCH(GetPixelMapusv, (map, values), (F, "glGetPixelMapusv(0x%x, %p);\n", map, (const void *) values));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_274)(GLubyte * mask);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_274)(GLubyte * mask)
+{
+ DISPATCH(GetPolygonStipple, (mask), (F, "glGetPolygonStipple(%p);\n", (const void *) mask));
+}
+
+KEYWORD1 const GLubyte * KEYWORD2 NAME(GetString)(GLenum name)
+{
+ RETURN_DISPATCH(GetString, (name), (F, "glGetString(0x%x);\n", name));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetTexEnvfv)(GLenum target, GLenum pname, GLfloat * params)
+{
+ DISPATCH(GetTexEnvfv, (target, pname, params), (F, "glGetTexEnvfv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetTexEnviv)(GLenum target, GLenum pname, GLint * params)
+{
+ DISPATCH(GetTexEnviv, (target, pname, params), (F, "glGetTexEnviv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_278)(GLenum coord, GLenum pname, GLdouble * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_278)(GLenum coord, GLenum pname, GLdouble * params)
+{
+ DISPATCH(GetTexGendv, (coord, pname, params), (F, "glGetTexGendv(0x%x, 0x%x, %p);\n", coord, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetTexGenfvOES)(GLenum coord, GLenum pname, GLfloat * params)
+{
+ DISPATCH(GetTexGenfvOES, (coord, pname, params), (F, "glGetTexGenfvOES(0x%x, 0x%x, %p);\n", coord, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_279)(GLenum coord, GLenum pname, GLfloat * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_279)(GLenum coord, GLenum pname, GLfloat * params)
+{
+ DISPATCH(GetTexGenfvOES, (coord, pname, params), (F, "glGetTexGenfv(0x%x, 0x%x, %p);\n", coord, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetTexGenivOES)(GLenum coord, GLenum pname, GLint * params)
+{
+ DISPATCH(GetTexGenivOES, (coord, pname, params), (F, "glGetTexGenivOES(0x%x, 0x%x, %p);\n", coord, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_280)(GLenum coord, GLenum pname, GLint * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_280)(GLenum coord, GLenum pname, GLint * params)
+{
+ DISPATCH(GetTexGenivOES, (coord, pname, params), (F, "glGetTexGeniv(0x%x, 0x%x, %p);\n", coord, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_281)(GLenum target, GLint level, GLenum format, GLenum type, GLvoid * pixels);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_281)(GLenum target, GLint level, GLenum format, GLenum type, GLvoid * pixels)
+{
+ DISPATCH(GetTexImage, (target, level, format, type, pixels), (F, "glGetTexImage(0x%x, %d, 0x%x, 0x%x, %p);\n", target, level, format, type, (const void *) pixels));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetTexParameterfv)(GLenum target, GLenum pname, GLfloat * params)
+{
+ DISPATCH(GetTexParameterfv, (target, pname, params), (F, "glGetTexParameterfv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetTexParameteriv)(GLenum target, GLenum pname, GLint * params)
+{
+ DISPATCH(GetTexParameteriv, (target, pname, params), (F, "glGetTexParameteriv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_284)(GLenum target, GLint level, GLenum pname, GLfloat * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_284)(GLenum target, GLint level, GLenum pname, GLfloat * params)
+{
+ DISPATCH(GetTexLevelParameterfv, (target, level, pname, params), (F, "glGetTexLevelParameterfv(0x%x, %d, 0x%x, %p);\n", target, level, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_285)(GLenum target, GLint level, GLenum pname, GLint * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_285)(GLenum target, GLint level, GLenum pname, GLint * params)
+{
+ DISPATCH(GetTexLevelParameteriv, (target, level, pname, params), (F, "glGetTexLevelParameteriv(0x%x, %d, 0x%x, %p);\n", target, level, pname, (const void *) params));
+}
+
+KEYWORD1 GLboolean KEYWORD2 NAME(IsEnabled)(GLenum cap)
+{
+ RETURN_DISPATCH(IsEnabled, (cap), (F, "glIsEnabled(0x%x);\n", cap));
+}
+
+KEYWORD1_ALT GLboolean KEYWORD2 NAME(_dispatch_stub_287)(GLuint list);
+
+KEYWORD1_ALT GLboolean KEYWORD2 NAME(_dispatch_stub_287)(GLuint list)
+{
+ RETURN_DISPATCH(IsList, (list), (F, "glIsList(%d);\n", list));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_288)(GLclampd zNear, GLclampd zFar);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_288)(GLclampd zNear, GLclampd zFar)
+{
+ DISPATCH(DepthRange, (zNear, zFar), (F, "glDepthRange(%f, %f);\n", zNear, zFar));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_289)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_289)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ DISPATCH(Frustum, (left, right, bottom, top, zNear, zFar), (F, "glFrustum(%f, %f, %f, %f, %f, %f);\n", left, right, bottom, top, zNear, zFar));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LoadIdentity)(void)
+{
+ DISPATCH(LoadIdentity, (), (F, "glLoadIdentity();\n"));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LoadMatrixf)(const GLfloat * m)
+{
+ DISPATCH(LoadMatrixf, (m), (F, "glLoadMatrixf(%p);\n", (const void *) m));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_292)(const GLdouble * m);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_292)(const GLdouble * m)
+{
+ DISPATCH(LoadMatrixd, (m), (F, "glLoadMatrixd(%p);\n", (const void *) m));
+}
+
+KEYWORD1 void KEYWORD2 NAME(MatrixMode)(GLenum mode)
+{
+ DISPATCH(MatrixMode, (mode), (F, "glMatrixMode(0x%x);\n", mode));
+}
+
+KEYWORD1 void KEYWORD2 NAME(MultMatrixf)(const GLfloat * m)
+{
+ DISPATCH(MultMatrixf, (m), (F, "glMultMatrixf(%p);\n", (const void *) m));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_295)(const GLdouble * m);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_295)(const GLdouble * m)
+{
+ DISPATCH(MultMatrixd, (m), (F, "glMultMatrixd(%p);\n", (const void *) m));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_296)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_296)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ DISPATCH(Ortho, (left, right, bottom, top, zNear, zFar), (F, "glOrtho(%f, %f, %f, %f, %f, %f);\n", left, right, bottom, top, zNear, zFar));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PopMatrix)(void)
+{
+ DISPATCH(PopMatrix, (), (F, "glPopMatrix();\n"));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PushMatrix)(void)
+{
+ DISPATCH(PushMatrix, (), (F, "glPushMatrix();\n"));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_299)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_299)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
+{
+ DISPATCH(Rotated, (angle, x, y, z), (F, "glRotated(%f, %f, %f, %f);\n", angle, x, y, z));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Rotatef)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+{
+ DISPATCH(Rotatef, (angle, x, y, z), (F, "glRotatef(%f, %f, %f, %f);\n", angle, x, y, z));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_301)(GLdouble x, GLdouble y, GLdouble z);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_301)(GLdouble x, GLdouble y, GLdouble z)
+{
+ DISPATCH(Scaled, (x, y, z), (F, "glScaled(%f, %f, %f);\n", x, y, z));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Scalef)(GLfloat x, GLfloat y, GLfloat z)
+{
+ DISPATCH(Scalef, (x, y, z), (F, "glScalef(%f, %f, %f);\n", x, y, z));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_303)(GLdouble x, GLdouble y, GLdouble z);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_303)(GLdouble x, GLdouble y, GLdouble z)
+{
+ DISPATCH(Translated, (x, y, z), (F, "glTranslated(%f, %f, %f);\n", x, y, z));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Translatef)(GLfloat x, GLfloat y, GLfloat z)
+{
+ DISPATCH(Translatef, (x, y, z), (F, "glTranslatef(%f, %f, %f);\n", x, y, z));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Viewport)(GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ DISPATCH(Viewport, (x, y, width, height), (F, "glViewport(%d, %d, %d, %d);\n", x, y, width, height));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_306)(GLint i);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_306)(GLint i)
+{
+ DISPATCH(ArrayElement, (i), (F, "glArrayElement(%d);\n", i));
+}
+
+KEYWORD1 void KEYWORD2 NAME(BindTexture)(GLenum target, GLuint texture)
+{
+ DISPATCH(BindTexture, (target, texture), (F, "glBindTexture(0x%x, %d);\n", target, texture));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ColorPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer)
+{
+ DISPATCH(ColorPointer, (size, type, stride, pointer), (F, "glColorPointer(%d, 0x%x, %d, %p);\n", size, type, stride, (const void *) pointer));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DisableClientState)(GLenum array)
+{
+ DISPATCH(DisableClientState, (array), (F, "glDisableClientState(0x%x);\n", array));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DrawArrays)(GLenum mode, GLint first, GLsizei count)
+{
+ DISPATCH(DrawArrays, (mode, first, count), (F, "glDrawArrays(0x%x, %d, %d);\n", mode, first, count));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DrawElements)(GLenum mode, GLsizei count, GLenum type, const GLvoid * indices)
+{
+ DISPATCH(DrawElements, (mode, count, type, indices), (F, "glDrawElements(0x%x, %d, 0x%x, %p);\n", mode, count, type, (const void *) indices));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_312)(GLsizei stride, const GLvoid * pointer);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_312)(GLsizei stride, const GLvoid * pointer)
+{
+ DISPATCH(EdgeFlagPointer, (stride, pointer), (F, "glEdgeFlagPointer(%d, %p);\n", stride, (const void *) pointer));
+}
+
+KEYWORD1 void KEYWORD2 NAME(EnableClientState)(GLenum array)
+{
+ DISPATCH(EnableClientState, (array), (F, "glEnableClientState(0x%x);\n", array));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_314)(GLenum type, GLsizei stride, const GLvoid * pointer);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_314)(GLenum type, GLsizei stride, const GLvoid * pointer)
+{
+ DISPATCH(IndexPointer, (type, stride, pointer), (F, "glIndexPointer(0x%x, %d, %p);\n", type, stride, (const void *) pointer));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_315)(GLubyte c);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_315)(GLubyte c)
+{
+ DISPATCH(Indexub, (c), (F, "glIndexub(%d);\n", c));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_316)(const GLubyte * c);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_316)(const GLubyte * c)
+{
+ DISPATCH(Indexubv, (c), (F, "glIndexubv(%p);\n", (const void *) c));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_317)(GLenum format, GLsizei stride, const GLvoid * pointer);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_317)(GLenum format, GLsizei stride, const GLvoid * pointer)
+{
+ DISPATCH(InterleavedArrays, (format, stride, pointer), (F, "glInterleavedArrays(0x%x, %d, %p);\n", format, stride, (const void *) pointer));
+}
+
+KEYWORD1 void KEYWORD2 NAME(NormalPointer)(GLenum type, GLsizei stride, const GLvoid * pointer)
+{
+ DISPATCH(NormalPointer, (type, stride, pointer), (F, "glNormalPointer(0x%x, %d, %p);\n", type, stride, (const void *) pointer));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PolygonOffset)(GLfloat factor, GLfloat units)
+{
+ DISPATCH(PolygonOffset, (factor, units), (F, "glPolygonOffset(%f, %f);\n", factor, units));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexCoordPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer)
+{
+ DISPATCH(TexCoordPointer, (size, type, stride, pointer), (F, "glTexCoordPointer(%d, 0x%x, %d, %p);\n", size, type, stride, (const void *) pointer));
+}
+
+KEYWORD1 void KEYWORD2 NAME(VertexPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer)
+{
+ DISPATCH(VertexPointer, (size, type, stride, pointer), (F, "glVertexPointer(%d, 0x%x, %d, %p);\n", size, type, stride, (const void *) pointer));
+}
+
+KEYWORD1_ALT GLboolean KEYWORD2 NAME(_dispatch_stub_322)(GLsizei n, const GLuint * textures, GLboolean * residences);
+
+KEYWORD1_ALT GLboolean KEYWORD2 NAME(_dispatch_stub_322)(GLsizei n, const GLuint * textures, GLboolean * residences)
+{
+ RETURN_DISPATCH(AreTexturesResident, (n, textures, residences), (F, "glAreTexturesResident(%d, %p, %p);\n", n, (const void *) textures, (const void *) residences));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_323)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_323)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border)
+{
+ DISPATCH(CopyTexImage1D, (target, level, internalformat, x, y, width, border), (F, "glCopyTexImage1D(0x%x, %d, 0x%x, %d, %d, %d, %d);\n", target, level, internalformat, x, y, width, border));
+}
+
+KEYWORD1 void KEYWORD2 NAME(CopyTexImage2D)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+{
+ DISPATCH(CopyTexImage2D, (target, level, internalformat, x, y, width, height, border), (F, "glCopyTexImage2D(0x%x, %d, 0x%x, %d, %d, %d, %d, %d);\n", target, level, internalformat, x, y, width, height, border));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_325)(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_325)(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
+{
+ DISPATCH(CopyTexSubImage1D, (target, level, xoffset, x, y, width), (F, "glCopyTexSubImage1D(0x%x, %d, %d, %d, %d, %d);\n", target, level, xoffset, x, y, width));
+}
+
+KEYWORD1 void KEYWORD2 NAME(CopyTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ DISPATCH(CopyTexSubImage2D, (target, level, xoffset, yoffset, x, y, width, height), (F, "glCopyTexSubImage2D(0x%x, %d, %d, %d, %d, %d, %d, %d);\n", target, level, xoffset, yoffset, x, y, width, height));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DeleteTextures)(GLsizei n, const GLuint * textures)
+{
+ DISPATCH(DeleteTextures, (n, textures), (F, "glDeleteTextures(%d, %p);\n", n, (const void *) textures));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GenTextures)(GLsizei n, GLuint * textures)
+{
+ DISPATCH(GenTextures, (n, textures), (F, "glGenTextures(%d, %p);\n", n, (const void *) textures));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetPointerv)(GLenum pname, GLvoid ** params)
+{
+ DISPATCH(GetPointerv, (pname, params), (F, "glGetPointerv(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1 GLboolean KEYWORD2 NAME(IsTexture)(GLuint texture)
+{
+ RETURN_DISPATCH(IsTexture, (texture), (F, "glIsTexture(%d);\n", texture));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_331)(GLsizei n, const GLuint * textures, const GLclampf * priorities);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_331)(GLsizei n, const GLuint * textures, const GLclampf * priorities)
+{
+ DISPATCH(PrioritizeTextures, (n, textures, priorities), (F, "glPrioritizeTextures(%d, %p, %p);\n", n, (const void *) textures, (const void *) priorities));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_332)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid * pixels);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_332)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid * pixels)
+{
+ DISPATCH(TexSubImage1D, (target, level, xoffset, width, format, type, pixels), (F, "glTexSubImage1D(0x%x, %d, %d, %d, 0x%x, 0x%x, %p);\n", target, level, xoffset, width, format, type, (const void *) pixels));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels)
+{
+ DISPATCH(TexSubImage2D, (target, level, xoffset, yoffset, width, height, format, type, pixels), (F, "glTexSubImage2D(0x%x, %d, %d, %d, %d, %d, 0x%x, 0x%x, %p);\n", target, level, xoffset, yoffset, width, height, format, type, (const void *) pixels));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_334)(void);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_334)(void)
+{
+ DISPATCH(PopClientAttrib, (), (F, "glPopClientAttrib();\n"));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_335)(GLbitfield mask);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_335)(GLbitfield mask)
+{
+ DISPATCH(PushClientAttrib, (mask), (F, "glPushClientAttrib(%d);\n", mask));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_336)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_336)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
+{
+ DISPATCH(BlendColor, (red, green, blue, alpha), (F, "glBlendColor(%f, %f, %f, %f);\n", red, green, blue, alpha));
+}
+
+KEYWORD1 void KEYWORD2 NAME(BlendEquationOES)(GLenum mode)
+{
+ DISPATCH(BlendEquationOES, (mode), (F, "glBlendEquationOES(0x%x);\n", mode));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_337)(GLenum mode);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_337)(GLenum mode)
+{
+ DISPATCH(BlendEquationOES, (mode), (F, "glBlendEquation(0x%x);\n", mode));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_338)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid * indices);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_338)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid * indices)
+{
+ DISPATCH(DrawRangeElements, (mode, start, end, count, type, indices), (F, "glDrawRangeElements(0x%x, %d, %d, %d, 0x%x, %p);\n", mode, start, end, count, type, (const void *) indices));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_339)(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * table);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_339)(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * table)
+{
+ DISPATCH(ColorTable, (target, internalformat, width, format, type, table), (F, "glColorTable(0x%x, 0x%x, %d, 0x%x, 0x%x, %p);\n", target, internalformat, width, format, type, (const void *) table));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_340)(GLenum target, GLenum pname, const GLfloat * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_340)(GLenum target, GLenum pname, const GLfloat * params)
+{
+ DISPATCH(ColorTableParameterfv, (target, pname, params), (F, "glColorTableParameterfv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_341)(GLenum target, GLenum pname, const GLint * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_341)(GLenum target, GLenum pname, const GLint * params)
+{
+ DISPATCH(ColorTableParameteriv, (target, pname, params), (F, "glColorTableParameteriv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_342)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_342)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)
+{
+ DISPATCH(CopyColorTable, (target, internalformat, x, y, width), (F, "glCopyColorTable(0x%x, 0x%x, %d, %d, %d);\n", target, internalformat, x, y, width));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_343)(GLenum target, GLenum format, GLenum type, GLvoid * table);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_343)(GLenum target, GLenum format, GLenum type, GLvoid * table)
+{
+ DISPATCH(GetColorTable, (target, format, type, table), (F, "glGetColorTable(0x%x, 0x%x, 0x%x, %p);\n", target, format, type, (const void *) table));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_344)(GLenum target, GLenum pname, GLfloat * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_344)(GLenum target, GLenum pname, GLfloat * params)
+{
+ DISPATCH(GetColorTableParameterfv, (target, pname, params), (F, "glGetColorTableParameterfv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_345)(GLenum target, GLenum pname, GLint * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_345)(GLenum target, GLenum pname, GLint * params)
+{
+ DISPATCH(GetColorTableParameteriv, (target, pname, params), (F, "glGetColorTableParameteriv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_346)(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid * data);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_346)(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid * data)
+{
+ DISPATCH(ColorSubTable, (target, start, count, format, type, data), (F, "glColorSubTable(0x%x, %d, %d, 0x%x, 0x%x, %p);\n", target, start, count, format, type, (const void *) data));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_347)(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_347)(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
+{
+ DISPATCH(CopyColorSubTable, (target, start, x, y, width), (F, "glCopyColorSubTable(0x%x, %d, %d, %d, %d);\n", target, start, x, y, width));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_348)(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * image);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_348)(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * image)
+{
+ DISPATCH(ConvolutionFilter1D, (target, internalformat, width, format, type, image), (F, "glConvolutionFilter1D(0x%x, 0x%x, %d, 0x%x, 0x%x, %p);\n", target, internalformat, width, format, type, (const void *) image));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_349)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * image);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_349)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * image)
+{
+ DISPATCH(ConvolutionFilter2D, (target, internalformat, width, height, format, type, image), (F, "glConvolutionFilter2D(0x%x, 0x%x, %d, %d, 0x%x, 0x%x, %p);\n", target, internalformat, width, height, format, type, (const void *) image));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_350)(GLenum target, GLenum pname, GLfloat params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_350)(GLenum target, GLenum pname, GLfloat params)
+{
+ DISPATCH(ConvolutionParameterf, (target, pname, params), (F, "glConvolutionParameterf(0x%x, 0x%x, %f);\n", target, pname, params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_351)(GLenum target, GLenum pname, const GLfloat * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_351)(GLenum target, GLenum pname, const GLfloat * params)
+{
+ DISPATCH(ConvolutionParameterfv, (target, pname, params), (F, "glConvolutionParameterfv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_352)(GLenum target, GLenum pname, GLint params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_352)(GLenum target, GLenum pname, GLint params)
+{
+ DISPATCH(ConvolutionParameteri, (target, pname, params), (F, "glConvolutionParameteri(0x%x, 0x%x, %d);\n", target, pname, params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_353)(GLenum target, GLenum pname, const GLint * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_353)(GLenum target, GLenum pname, const GLint * params)
+{
+ DISPATCH(ConvolutionParameteriv, (target, pname, params), (F, "glConvolutionParameteriv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_354)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_354)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)
+{
+ DISPATCH(CopyConvolutionFilter1D, (target, internalformat, x, y, width), (F, "glCopyConvolutionFilter1D(0x%x, 0x%x, %d, %d, %d);\n", target, internalformat, x, y, width));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_355)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_355)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ DISPATCH(CopyConvolutionFilter2D, (target, internalformat, x, y, width, height), (F, "glCopyConvolutionFilter2D(0x%x, 0x%x, %d, %d, %d, %d);\n", target, internalformat, x, y, width, height));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_356)(GLenum target, GLenum format, GLenum type, GLvoid * image);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_356)(GLenum target, GLenum format, GLenum type, GLvoid * image)
+{
+ DISPATCH(GetConvolutionFilter, (target, format, type, image), (F, "glGetConvolutionFilter(0x%x, 0x%x, 0x%x, %p);\n", target, format, type, (const void *) image));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_357)(GLenum target, GLenum pname, GLfloat * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_357)(GLenum target, GLenum pname, GLfloat * params)
+{
+ DISPATCH(GetConvolutionParameterfv, (target, pname, params), (F, "glGetConvolutionParameterfv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_358)(GLenum target, GLenum pname, GLint * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_358)(GLenum target, GLenum pname, GLint * params)
+{
+ DISPATCH(GetConvolutionParameteriv, (target, pname, params), (F, "glGetConvolutionParameteriv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_359)(GLenum target, GLenum format, GLenum type, GLvoid * row, GLvoid * column, GLvoid * span);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_359)(GLenum target, GLenum format, GLenum type, GLvoid * row, GLvoid * column, GLvoid * span)
+{
+ DISPATCH(GetSeparableFilter, (target, format, type, row, column, span), (F, "glGetSeparableFilter(0x%x, 0x%x, 0x%x, %p, %p, %p);\n", target, format, type, (const void *) row, (const void *) column, (const void *) span));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_360)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * row, const GLvoid * column);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_360)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * row, const GLvoid * column)
+{
+ DISPATCH(SeparableFilter2D, (target, internalformat, width, height, format, type, row, column), (F, "glSeparableFilter2D(0x%x, 0x%x, %d, %d, 0x%x, 0x%x, %p, %p);\n", target, internalformat, width, height, format, type, (const void *) row, (const void *) column));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_361)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_361)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values)
+{
+ DISPATCH(GetHistogram, (target, reset, format, type, values), (F, "glGetHistogram(0x%x, %d, 0x%x, 0x%x, %p);\n", target, reset, format, type, (const void *) values));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_362)(GLenum target, GLenum pname, GLfloat * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_362)(GLenum target, GLenum pname, GLfloat * params)
+{
+ DISPATCH(GetHistogramParameterfv, (target, pname, params), (F, "glGetHistogramParameterfv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_363)(GLenum target, GLenum pname, GLint * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_363)(GLenum target, GLenum pname, GLint * params)
+{
+ DISPATCH(GetHistogramParameteriv, (target, pname, params), (F, "glGetHistogramParameteriv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_364)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_364)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values)
+{
+ DISPATCH(GetMinmax, (target, reset, format, type, values), (F, "glGetMinmax(0x%x, %d, 0x%x, 0x%x, %p);\n", target, reset, format, type, (const void *) values));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_365)(GLenum target, GLenum pname, GLfloat * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_365)(GLenum target, GLenum pname, GLfloat * params)
+{
+ DISPATCH(GetMinmaxParameterfv, (target, pname, params), (F, "glGetMinmaxParameterfv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_366)(GLenum target, GLenum pname, GLint * params);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_366)(GLenum target, GLenum pname, GLint * params)
+{
+ DISPATCH(GetMinmaxParameteriv, (target, pname, params), (F, "glGetMinmaxParameteriv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_367)(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_367)(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink)
+{
+ DISPATCH(Histogram, (target, width, internalformat, sink), (F, "glHistogram(0x%x, %d, 0x%x, %d);\n", target, width, internalformat, sink));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_368)(GLenum target, GLenum internalformat, GLboolean sink);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_368)(GLenum target, GLenum internalformat, GLboolean sink)
+{
+ DISPATCH(Minmax, (target, internalformat, sink), (F, "glMinmax(0x%x, 0x%x, %d);\n", target, internalformat, sink));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_369)(GLenum target);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_369)(GLenum target)
+{
+ DISPATCH(ResetHistogram, (target), (F, "glResetHistogram(0x%x);\n", target));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_370)(GLenum target);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_370)(GLenum target)
+{
+ DISPATCH(ResetMinmax, (target), (F, "glResetMinmax(0x%x);\n", target));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_371)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_371)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels)
+{
+ DISPATCH(TexImage3D, (target, level, internalformat, width, height, depth, border, format, type, pixels), (F, "glTexImage3D(0x%x, %d, %d, %d, %d, %d, %d, 0x%x, 0x%x, %p);\n", target, level, internalformat, width, height, depth, border, format, type, (const void *) pixels));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_372)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_372)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels)
+{
+ DISPATCH(TexSubImage3D, (target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels), (F, "glTexSubImage3D(0x%x, %d, %d, %d, %d, %d, %d, %d, 0x%x, 0x%x, %p);\n", target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (const void *) pixels));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_373)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_373)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ DISPATCH(CopyTexSubImage3D, (target, level, xoffset, yoffset, zoffset, x, y, width, height), (F, "glCopyTexSubImage3D(0x%x, %d, %d, %d, %d, %d, %d, %d, %d);\n", target, level, xoffset, yoffset, zoffset, x, y, width, height));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ActiveTexture)(GLenum texture)
+{
+ DISPATCH(ActiveTexture, (texture), (F, "glActiveTexture(0x%x);\n", texture));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_374)(GLenum texture);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_374)(GLenum texture)
+{
+ DISPATCH(ActiveTexture, (texture), (F, "glActiveTextureARB(0x%x);\n", texture));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ClientActiveTexture)(GLenum texture)
+{
+ DISPATCH(ClientActiveTexture, (texture), (F, "glClientActiveTexture(0x%x);\n", texture));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_375)(GLenum texture);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_375)(GLenum texture)
+{
+ DISPATCH(ClientActiveTexture, (texture), (F, "glClientActiveTextureARB(0x%x);\n", texture));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_376)(GLenum target, GLdouble s);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_376)(GLenum target, GLdouble s)
+{
+ DISPATCH(MultiTexCoord1dARB, (target, s), (F, "glMultiTexCoord1dARB(0x%x, %f);\n", target, s));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_377)(GLenum target, const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_377)(GLenum target, const GLdouble * v)
+{
+ DISPATCH(MultiTexCoord1dvARB, (target, v), (F, "glMultiTexCoord1dvARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_378)(GLenum target, GLfloat s);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_378)(GLenum target, GLfloat s)
+{
+ DISPATCH(MultiTexCoord1fARB, (target, s), (F, "glMultiTexCoord1fARB(0x%x, %f);\n", target, s));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_379)(GLenum target, const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_379)(GLenum target, const GLfloat * v)
+{
+ DISPATCH(MultiTexCoord1fvARB, (target, v), (F, "glMultiTexCoord1fvARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_380)(GLenum target, GLint s);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_380)(GLenum target, GLint s)
+{
+ DISPATCH(MultiTexCoord1iARB, (target, s), (F, "glMultiTexCoord1iARB(0x%x, %d);\n", target, s));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_381)(GLenum target, const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_381)(GLenum target, const GLint * v)
+{
+ DISPATCH(MultiTexCoord1ivARB, (target, v), (F, "glMultiTexCoord1ivARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_382)(GLenum target, GLshort s);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_382)(GLenum target, GLshort s)
+{
+ DISPATCH(MultiTexCoord1sARB, (target, s), (F, "glMultiTexCoord1sARB(0x%x, %d);\n", target, s));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_383)(GLenum target, const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_383)(GLenum target, const GLshort * v)
+{
+ DISPATCH(MultiTexCoord1svARB, (target, v), (F, "glMultiTexCoord1svARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_384)(GLenum target, GLdouble s, GLdouble t);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_384)(GLenum target, GLdouble s, GLdouble t)
+{
+ DISPATCH(MultiTexCoord2dARB, (target, s, t), (F, "glMultiTexCoord2dARB(0x%x, %f, %f);\n", target, s, t));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_385)(GLenum target, const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_385)(GLenum target, const GLdouble * v)
+{
+ DISPATCH(MultiTexCoord2dvARB, (target, v), (F, "glMultiTexCoord2dvARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_386)(GLenum target, GLfloat s, GLfloat t);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_386)(GLenum target, GLfloat s, GLfloat t)
+{
+ DISPATCH(MultiTexCoord2fARB, (target, s, t), (F, "glMultiTexCoord2fARB(0x%x, %f, %f);\n", target, s, t));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_387)(GLenum target, const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_387)(GLenum target, const GLfloat * v)
+{
+ DISPATCH(MultiTexCoord2fvARB, (target, v), (F, "glMultiTexCoord2fvARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_388)(GLenum target, GLint s, GLint t);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_388)(GLenum target, GLint s, GLint t)
+{
+ DISPATCH(MultiTexCoord2iARB, (target, s, t), (F, "glMultiTexCoord2iARB(0x%x, %d, %d);\n", target, s, t));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_389)(GLenum target, const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_389)(GLenum target, const GLint * v)
+{
+ DISPATCH(MultiTexCoord2ivARB, (target, v), (F, "glMultiTexCoord2ivARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_390)(GLenum target, GLshort s, GLshort t);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_390)(GLenum target, GLshort s, GLshort t)
+{
+ DISPATCH(MultiTexCoord2sARB, (target, s, t), (F, "glMultiTexCoord2sARB(0x%x, %d, %d);\n", target, s, t));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_391)(GLenum target, const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_391)(GLenum target, const GLshort * v)
+{
+ DISPATCH(MultiTexCoord2svARB, (target, v), (F, "glMultiTexCoord2svARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_392)(GLenum target, GLdouble s, GLdouble t, GLdouble r);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_392)(GLenum target, GLdouble s, GLdouble t, GLdouble r)
+{
+ DISPATCH(MultiTexCoord3dARB, (target, s, t, r), (F, "glMultiTexCoord3dARB(0x%x, %f, %f, %f);\n", target, s, t, r));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_393)(GLenum target, const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_393)(GLenum target, const GLdouble * v)
+{
+ DISPATCH(MultiTexCoord3dvARB, (target, v), (F, "glMultiTexCoord3dvARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_394)(GLenum target, GLfloat s, GLfloat t, GLfloat r);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_394)(GLenum target, GLfloat s, GLfloat t, GLfloat r)
+{
+ DISPATCH(MultiTexCoord3fARB, (target, s, t, r), (F, "glMultiTexCoord3fARB(0x%x, %f, %f, %f);\n", target, s, t, r));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_395)(GLenum target, const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_395)(GLenum target, const GLfloat * v)
+{
+ DISPATCH(MultiTexCoord3fvARB, (target, v), (F, "glMultiTexCoord3fvARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_396)(GLenum target, GLint s, GLint t, GLint r);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_396)(GLenum target, GLint s, GLint t, GLint r)
+{
+ DISPATCH(MultiTexCoord3iARB, (target, s, t, r), (F, "glMultiTexCoord3iARB(0x%x, %d, %d, %d);\n", target, s, t, r));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_397)(GLenum target, const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_397)(GLenum target, const GLint * v)
+{
+ DISPATCH(MultiTexCoord3ivARB, (target, v), (F, "glMultiTexCoord3ivARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_398)(GLenum target, GLshort s, GLshort t, GLshort r);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_398)(GLenum target, GLshort s, GLshort t, GLshort r)
+{
+ DISPATCH(MultiTexCoord3sARB, (target, s, t, r), (F, "glMultiTexCoord3sARB(0x%x, %d, %d, %d);\n", target, s, t, r));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_399)(GLenum target, const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_399)(GLenum target, const GLshort * v)
+{
+ DISPATCH(MultiTexCoord3svARB, (target, v), (F, "glMultiTexCoord3svARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_400)(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_400)(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ DISPATCH(MultiTexCoord4dARB, (target, s, t, r, q), (F, "glMultiTexCoord4dARB(0x%x, %f, %f, %f, %f);\n", target, s, t, r, q));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_401)(GLenum target, const GLdouble * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_401)(GLenum target, const GLdouble * v)
+{
+ DISPATCH(MultiTexCoord4dvARB, (target, v), (F, "glMultiTexCoord4dvARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1 void KEYWORD2 NAME(MultiTexCoord4f)(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ DISPATCH(MultiTexCoord4f, (target, s, t, r, q), (F, "glMultiTexCoord4f(0x%x, %f, %f, %f, %f);\n", target, s, t, r, q));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_402)(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_402)(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ DISPATCH(MultiTexCoord4f, (target, s, t, r, q), (F, "glMultiTexCoord4fARB(0x%x, %f, %f, %f, %f);\n", target, s, t, r, q));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_403)(GLenum target, const GLfloat * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_403)(GLenum target, const GLfloat * v)
+{
+ DISPATCH(MultiTexCoord4fvARB, (target, v), (F, "glMultiTexCoord4fvARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_404)(GLenum target, GLint s, GLint t, GLint r, GLint q);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_404)(GLenum target, GLint s, GLint t, GLint r, GLint q)
+{
+ DISPATCH(MultiTexCoord4iARB, (target, s, t, r, q), (F, "glMultiTexCoord4iARB(0x%x, %d, %d, %d, %d);\n", target, s, t, r, q));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_405)(GLenum target, const GLint * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_405)(GLenum target, const GLint * v)
+{
+ DISPATCH(MultiTexCoord4ivARB, (target, v), (F, "glMultiTexCoord4ivARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_406)(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_406)(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ DISPATCH(MultiTexCoord4sARB, (target, s, t, r, q), (F, "glMultiTexCoord4sARB(0x%x, %d, %d, %d, %d);\n", target, s, t, r, q));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_407)(GLenum target, const GLshort * v);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_407)(GLenum target, const GLshort * v)
+{
+ DISPATCH(MultiTexCoord4svARB, (target, v), (F, "glMultiTexCoord4svARB(0x%x, %p);\n", target, (const void *) v));
+}
+
+KEYWORD1 void KEYWORD2 NAME(BlendEquationSeparateOES)(GLenum modeRGB, GLenum modeA)
+{
+ DISPATCH(BlendEquationSeparateOES, (modeRGB, modeA), (F, "glBlendEquationSeparateOES(0x%x, 0x%x);\n", modeRGB, modeA));
+}
+
+KEYWORD1 void KEYWORD2 NAME(BlendFuncSeparateOES)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
+{
+ DISPATCH(BlendFuncSeparateOES, (sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha), (F, "glBlendFuncSeparateOES(0x%x, 0x%x, 0x%x, 0x%x);\n", sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DrawTexfOES)(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height)
+{
+ DISPATCH(DrawTexfOES, (x, y, z, width, height), (F, "glDrawTexfOES(%f, %f, %f, %f, %f);\n", x, y, z, width, height));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DrawTexfvOES)(const GLfloat * coords)
+{
+ DISPATCH(DrawTexfvOES, (coords), (F, "glDrawTexfvOES(%p);\n", (const void *) coords));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DrawTexiOES)(GLint x, GLint y, GLint z, GLint width, GLint height)
+{
+ DISPATCH(DrawTexiOES, (x, y, z, width, height), (F, "glDrawTexiOES(%d, %d, %d, %d, %d);\n", x, y, z, width, height));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DrawTexivOES)(const GLint * coords)
+{
+ DISPATCH(DrawTexivOES, (coords), (F, "glDrawTexivOES(%p);\n", (const void *) coords));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DrawTexsOES)(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height)
+{
+ DISPATCH(DrawTexsOES, (x, y, z, width, height), (F, "glDrawTexsOES(%d, %d, %d, %d, %d);\n", x, y, z, width, height));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DrawTexsvOES)(const GLshort * coords)
+{
+ DISPATCH(DrawTexsvOES, (coords), (F, "glDrawTexsvOES(%p);\n", (const void *) coords));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DrawTexxOES)(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height)
+{
+ DISPATCH(DrawTexxOES, (x, y, z, width, height), (F, "glDrawTexxOES(%d, %d, %d, %d, %d);\n", x, y, z, width, height));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DrawTexxvOES)(const GLfixed * coords)
+{
+ DISPATCH(DrawTexxvOES, (coords), (F, "glDrawTexxvOES(%p);\n", (const void *) coords));
+}
+
+KEYWORD1 void KEYWORD2 NAME(BindFramebufferOES)(GLenum target, GLuint framebuffer)
+{
+ DISPATCH(BindFramebufferOES, (target, framebuffer), (F, "glBindFramebufferOES(0x%x, %d);\n", target, framebuffer));
+}
+
+KEYWORD1 void KEYWORD2 NAME(BindRenderbufferOES)(GLenum target, GLuint renderbuffer)
+{
+ DISPATCH(BindRenderbufferOES, (target, renderbuffer), (F, "glBindRenderbufferOES(0x%x, %d);\n", target, renderbuffer));
+}
+
+KEYWORD1 GLenum KEYWORD2 NAME(CheckFramebufferStatusOES)(GLenum target)
+{
+ RETURN_DISPATCH(CheckFramebufferStatusOES, (target), (F, "glCheckFramebufferStatusOES(0x%x);\n", target));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DeleteFramebuffersOES)(GLsizei n, const GLuint * framebuffers)
+{
+ DISPATCH(DeleteFramebuffersOES, (n, framebuffers), (F, "glDeleteFramebuffersOES(%d, %p);\n", n, (const void *) framebuffers));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DeleteRenderbuffersOES)(GLsizei n, const GLuint * renderbuffers)
+{
+ DISPATCH(DeleteRenderbuffersOES, (n, renderbuffers), (F, "glDeleteRenderbuffersOES(%d, %p);\n", n, (const void *) renderbuffers));
+}
+
+KEYWORD1 void KEYWORD2 NAME(FramebufferRenderbufferOES)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
+{
+ DISPATCH(FramebufferRenderbufferOES, (target, attachment, renderbuffertarget, renderbuffer), (F, "glFramebufferRenderbufferOES(0x%x, 0x%x, 0x%x, %d);\n", target, attachment, renderbuffertarget, renderbuffer));
+}
+
+KEYWORD1 void KEYWORD2 NAME(FramebufferTexture2DOES)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
+{
+ DISPATCH(FramebufferTexture2DOES, (target, attachment, textarget, texture, level), (F, "glFramebufferTexture2DOES(0x%x, 0x%x, 0x%x, %d, %d);\n", target, attachment, textarget, texture, level));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GenFramebuffersOES)(GLsizei n, GLuint * framebuffers)
+{
+ DISPATCH(GenFramebuffersOES, (n, framebuffers), (F, "glGenFramebuffersOES(%d, %p);\n", n, (const void *) framebuffers));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GenRenderbuffersOES)(GLsizei n, GLuint * renderbuffers)
+{
+ DISPATCH(GenRenderbuffersOES, (n, renderbuffers), (F, "glGenRenderbuffersOES(%d, %p);\n", n, (const void *) renderbuffers));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GenerateMipmapOES)(GLenum target)
+{
+ DISPATCH(GenerateMipmapOES, (target), (F, "glGenerateMipmapOES(0x%x);\n", target));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetFramebufferAttachmentParameterivOES)(GLenum target, GLenum attachment, GLenum pname, GLint * params)
+{
+ DISPATCH(GetFramebufferAttachmentParameterivOES, (target, attachment, pname, params), (F, "glGetFramebufferAttachmentParameterivOES(0x%x, 0x%x, 0x%x, %p);\n", target, attachment, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetRenderbufferParameterivOES)(GLenum target, GLenum pname, GLint * params)
+{
+ DISPATCH(GetRenderbufferParameterivOES, (target, pname, params), (F, "glGetRenderbufferParameterivOES(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 GLboolean KEYWORD2 NAME(IsFramebufferOES)(GLuint framebuffer)
+{
+ RETURN_DISPATCH(IsFramebufferOES, (framebuffer), (F, "glIsFramebufferOES(%d);\n", framebuffer));
+}
+
+KEYWORD1 GLboolean KEYWORD2 NAME(IsRenderbufferOES)(GLuint renderbuffer)
+{
+ RETURN_DISPATCH(IsRenderbufferOES, (renderbuffer), (F, "glIsRenderbufferOES(%d);\n", renderbuffer));
+}
+
+KEYWORD1 void KEYWORD2 NAME(RenderbufferStorageOES)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
+{
+ DISPATCH(RenderbufferStorageOES, (target, internalformat, width, height), (F, "glRenderbufferStorageOES(0x%x, 0x%x, %d, %d);\n", target, internalformat, width, height));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PointSizePointerOES)(GLenum type, GLsizei stride, const GLvoid * pointer)
+{
+ DISPATCH(PointSizePointerOES, (type, stride, pointer), (F, "glPointSizePointerOES(0x%x, %d, %p);\n", type, stride, (const void *) pointer));
+}
+
+KEYWORD1 GLbitfield KEYWORD2 NAME(QueryMatrixxOES)(GLfixed * mantissa, GLint * exponent)
+{
+ RETURN_DISPATCH(QueryMatrixxOES, (mantissa, exponent), (F, "glQueryMatrixxOES(%p, %p);\n", (const void *) mantissa, (const void *) exponent));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetTexGenxvOES)(GLenum coord, GLenum pname, GLfixed * params)
+{
+ DISPATCH(GetTexGenxvOES, (coord, pname, params), (F, "glGetTexGenxvOES(0x%x, 0x%x, %p);\n", coord, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexGenxOES)(GLenum coord, GLenum pname, GLint param)
+{
+ DISPATCH(TexGenxOES, (coord, pname, param), (F, "glTexGenxOES(0x%x, 0x%x, %d);\n", coord, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexGenxvOES)(GLenum coord, GLenum pname, const GLfixed * params)
+{
+ DISPATCH(TexGenxvOES, (coord, pname, params), (F, "glTexGenxvOES(0x%x, 0x%x, %p);\n", coord, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(EGLImageTargetRenderbufferStorageOES)(GLenum target, GLeglImageOES image)
+{
+ DISPATCH(EGLImageTargetRenderbufferStorageOES, (target, image), (F, "glEGLImageTargetRenderbufferStorageOES(0x%x, %d);\n", target, image));
+}
+
+KEYWORD1 void KEYWORD2 NAME(EGLImageTargetTexture2DOES)(GLenum target, GLeglImageOES image)
+{
+ DISPATCH(EGLImageTargetTexture2DOES, (target, image), (F, "glEGLImageTargetTexture2DOES(0x%x, %d);\n", target, image));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetBufferPointervOES)(GLenum target, GLenum pname, GLvoid ** params)
+{
+ DISPATCH(GetBufferPointervOES, (target, pname, params), (F, "glGetBufferPointervOES(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 GLvoid * KEYWORD2 NAME(MapBufferOES)(GLenum target, GLenum access)
+{
+ RETURN_DISPATCH(MapBufferOES, (target, access), (F, "glMapBufferOES(0x%x, 0x%x);\n", target, access));
+}
+
+KEYWORD1 GLboolean KEYWORD2 NAME(UnmapBufferOES)(GLenum target)
+{
+ RETURN_DISPATCH(UnmapBufferOES, (target), (F, "glUnmapBufferOES(0x%x);\n", target));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_443)(GLuint array);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_443)(GLuint array)
+{
+ DISPATCH(BindVertexArrayAPPLE, (array), (F, "glBindVertexArrayAPPLE(%d);\n", array));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_444)(GLsizei n, const GLuint * arrays);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_444)(GLsizei n, const GLuint * arrays)
+{
+ DISPATCH(DeleteVertexArraysAPPLE, (n, arrays), (F, "glDeleteVertexArraysAPPLE(%d, %p);\n", n, (const void *) arrays));
+}
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_445)(GLsizei n, GLuint * arrays);
+
+KEYWORD1_ALT void KEYWORD2 NAME(_dispatch_stub_445)(GLsizei n, GLuint * arrays)
+{
+ DISPATCH(GenVertexArraysAPPLE, (n, arrays), (F, "glGenVertexArraysAPPLE(%d, %p);\n", n, (const void *) arrays));
+}
+
+KEYWORD1_ALT GLboolean KEYWORD2 NAME(_dispatch_stub_446)(GLuint array);
+
+KEYWORD1_ALT GLboolean KEYWORD2 NAME(_dispatch_stub_446)(GLuint array)
+{
+ RETURN_DISPATCH(IsVertexArrayAPPLE, (array), (F, "glIsVertexArrayAPPLE(%d);\n", array));
+}
+
+KEYWORD1 void KEYWORD2 NAME(CompressedTexImage2D)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * data)
+{
+ DISPATCH(CompressedTexImage2D, (target, level, internalformat, width, height, border, imageSize, data), (F, "glCompressedTexImage2D(0x%x, %d, 0x%x, %d, %d, %d, %d, %p);\n", target, level, internalformat, width, height, border, imageSize, (const void *) data));
+}
+
+KEYWORD1 void KEYWORD2 NAME(CompressedTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * data)
+{
+ DISPATCH(CompressedTexSubImage2D, (target, level, xoffset, yoffset, width, height, format, imageSize, data), (F, "glCompressedTexSubImage2D(0x%x, %d, %d, %d, %d, %d, 0x%x, %d, %p);\n", target, level, xoffset, yoffset, width, height, format, imageSize, (const void *) data));
+}
+
+KEYWORD1 void KEYWORD2 NAME(SampleCoverage)(GLclampf value, GLboolean invert)
+{
+ DISPATCH(SampleCoverage, (value, invert), (F, "glSampleCoverage(%f, %d);\n", value, invert));
+}
+
+KEYWORD1 void KEYWORD2 NAME(BindBuffer)(GLenum target, GLuint buffer)
+{
+ DISPATCH(BindBuffer, (target, buffer), (F, "glBindBuffer(0x%x, %d);\n", target, buffer));
+}
+
+KEYWORD1 void KEYWORD2 NAME(BufferData)(GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage)
+{
+ DISPATCH(BufferData, (target, size, data, usage), (F, "glBufferData(0x%x, %d, %p, 0x%x);\n", target, size, (const void *) data, usage));
+}
+
+KEYWORD1 void KEYWORD2 NAME(BufferSubData)(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid * data)
+{
+ DISPATCH(BufferSubData, (target, offset, size, data), (F, "glBufferSubData(0x%x, %d, %d, %p);\n", target, offset, size, (const void *) data));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DeleteBuffers)(GLsizei n, const GLuint * buffer)
+{
+ DISPATCH(DeleteBuffers, (n, buffer), (F, "glDeleteBuffers(%d, %p);\n", n, (const void *) buffer));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GenBuffers)(GLsizei n, GLuint * buffer)
+{
+ DISPATCH(GenBuffers, (n, buffer), (F, "glGenBuffers(%d, %p);\n", n, (const void *) buffer));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetBufferParameteriv)(GLenum target, GLenum pname, GLint * params)
+{
+ DISPATCH(GetBufferParameteriv, (target, pname, params), (F, "glGetBufferParameteriv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 GLboolean KEYWORD2 NAME(IsBuffer)(GLuint buffer)
+{
+ RETURN_DISPATCH(IsBuffer, (buffer), (F, "glIsBuffer(%d);\n", buffer));
+}
+
+KEYWORD1 void KEYWORD2 NAME(AlphaFuncx)(GLenum func, GLclampx ref)
+{
+ DISPATCH(AlphaFuncx, (func, ref), (F, "glAlphaFuncx(0x%x, %d);\n", func, ref));
+}
+
+KEYWORD1 void KEYWORD2 NAME(AlphaFuncxOES)(GLenum func, GLclampx ref)
+{
+ DISPATCH(AlphaFuncx, (func, ref), (F, "glAlphaFuncxOES(0x%x, %d);\n", func, ref));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ClearColorx)(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha)
+{
+ DISPATCH(ClearColorx, (red, green, blue, alpha), (F, "glClearColorx(%d, %d, %d, %d);\n", red, green, blue, alpha));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ClearColorxOES)(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha)
+{
+ DISPATCH(ClearColorx, (red, green, blue, alpha), (F, "glClearColorxOES(%d, %d, %d, %d);\n", red, green, blue, alpha));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ClearDepthf)(GLclampf depth)
+{
+ DISPATCH(ClearDepthf, (depth), (F, "glClearDepthf(%f);\n", depth));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ClearDepthfOES)(GLclampf depth)
+{
+ DISPATCH(ClearDepthf, (depth), (F, "glClearDepthfOES(%f);\n", depth));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ClearDepthx)(GLclampx depth)
+{
+ DISPATCH(ClearDepthx, (depth), (F, "glClearDepthx(%d);\n", depth));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ClearDepthxOES)(GLclampx depth)
+{
+ DISPATCH(ClearDepthx, (depth), (F, "glClearDepthxOES(%d);\n", depth));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Color4x)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
+{
+ DISPATCH(Color4x, (red, green, blue, alpha), (F, "glColor4x(%d, %d, %d, %d);\n", red, green, blue, alpha));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Color4xOES)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
+{
+ DISPATCH(Color4x, (red, green, blue, alpha), (F, "glColor4xOES(%d, %d, %d, %d);\n", red, green, blue, alpha));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DepthRangef)(GLclampf zNear, GLclampf zFar)
+{
+ DISPATCH(DepthRangef, (zNear, zFar), (F, "glDepthRangef(%f, %f);\n", zNear, zFar));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DepthRangefOES)(GLclampf zNear, GLclampf zFar)
+{
+ DISPATCH(DepthRangef, (zNear, zFar), (F, "glDepthRangefOES(%f, %f);\n", zNear, zFar));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DepthRangex)(GLclampx zNear, GLclampx zFar)
+{
+ DISPATCH(DepthRangex, (zNear, zFar), (F, "glDepthRangex(%d, %d);\n", zNear, zFar));
+}
+
+KEYWORD1 void KEYWORD2 NAME(DepthRangexOES)(GLclampx zNear, GLclampx zFar)
+{
+ DISPATCH(DepthRangex, (zNear, zFar), (F, "glDepthRangexOES(%d, %d);\n", zNear, zFar));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Fogx)(GLenum pname, GLfixed param)
+{
+ DISPATCH(Fogx, (pname, param), (F, "glFogx(0x%x, %d);\n", pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(FogxOES)(GLenum pname, GLfixed param)
+{
+ DISPATCH(Fogx, (pname, param), (F, "glFogxOES(0x%x, %d);\n", pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Fogxv)(GLenum pname, const GLfixed * params)
+{
+ DISPATCH(Fogxv, (pname, params), (F, "glFogxv(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(FogxvOES)(GLenum pname, const GLfixed * params)
+{
+ DISPATCH(Fogxv, (pname, params), (F, "glFogxvOES(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Frustumf)(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
+{
+ DISPATCH(Frustumf, (left, right, bottom, top, zNear, zFar), (F, "glFrustumf(%f, %f, %f, %f, %f, %f);\n", left, right, bottom, top, zNear, zFar));
+}
+
+KEYWORD1 void KEYWORD2 NAME(FrustumfOES)(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
+{
+ DISPATCH(Frustumf, (left, right, bottom, top, zNear, zFar), (F, "glFrustumfOES(%f, %f, %f, %f, %f, %f);\n", left, right, bottom, top, zNear, zFar));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Frustumx)(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
+{
+ DISPATCH(Frustumx, (left, right, bottom, top, zNear, zFar), (F, "glFrustumx(%d, %d, %d, %d, %d, %d);\n", left, right, bottom, top, zNear, zFar));
+}
+
+KEYWORD1 void KEYWORD2 NAME(FrustumxOES)(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
+{
+ DISPATCH(Frustumx, (left, right, bottom, top, zNear, zFar), (F, "glFrustumxOES(%d, %d, %d, %d, %d, %d);\n", left, right, bottom, top, zNear, zFar));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LightModelx)(GLenum pname, GLfixed param)
+{
+ DISPATCH(LightModelx, (pname, param), (F, "glLightModelx(0x%x, %d);\n", pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LightModelxOES)(GLenum pname, GLfixed param)
+{
+ DISPATCH(LightModelx, (pname, param), (F, "glLightModelxOES(0x%x, %d);\n", pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LightModelxv)(GLenum pname, const GLfixed * params)
+{
+ DISPATCH(LightModelxv, (pname, params), (F, "glLightModelxv(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LightModelxvOES)(GLenum pname, const GLfixed * params)
+{
+ DISPATCH(LightModelxv, (pname, params), (F, "glLightModelxvOES(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Lightx)(GLenum light, GLenum pname, GLfixed param)
+{
+ DISPATCH(Lightx, (light, pname, param), (F, "glLightx(0x%x, 0x%x, %d);\n", light, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LightxOES)(GLenum light, GLenum pname, GLfixed param)
+{
+ DISPATCH(Lightx, (light, pname, param), (F, "glLightxOES(0x%x, 0x%x, %d);\n", light, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Lightxv)(GLenum light, GLenum pname, const GLfixed * params)
+{
+ DISPATCH(Lightxv, (light, pname, params), (F, "glLightxv(0x%x, 0x%x, %p);\n", light, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LightxvOES)(GLenum light, GLenum pname, const GLfixed * params)
+{
+ DISPATCH(Lightxv, (light, pname, params), (F, "glLightxvOES(0x%x, 0x%x, %p);\n", light, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LineWidthx)(GLfixed width)
+{
+ DISPATCH(LineWidthx, (width), (F, "glLineWidthx(%d);\n", width));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LineWidthxOES)(GLfixed width)
+{
+ DISPATCH(LineWidthx, (width), (F, "glLineWidthxOES(%d);\n", width));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LoadMatrixx)(const GLfixed * m)
+{
+ DISPATCH(LoadMatrixx, (m), (F, "glLoadMatrixx(%p);\n", (const void *) m));
+}
+
+KEYWORD1 void KEYWORD2 NAME(LoadMatrixxOES)(const GLfixed * m)
+{
+ DISPATCH(LoadMatrixx, (m), (F, "glLoadMatrixxOES(%p);\n", (const void *) m));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Materialx)(GLenum face, GLenum pname, GLfixed param)
+{
+ DISPATCH(Materialx, (face, pname, param), (F, "glMaterialx(0x%x, 0x%x, %d);\n", face, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(MaterialxOES)(GLenum face, GLenum pname, GLfixed param)
+{
+ DISPATCH(Materialx, (face, pname, param), (F, "glMaterialxOES(0x%x, 0x%x, %d);\n", face, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Materialxv)(GLenum face, GLenum pname, const GLfixed * params)
+{
+ DISPATCH(Materialxv, (face, pname, params), (F, "glMaterialxv(0x%x, 0x%x, %p);\n", face, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(MaterialxvOES)(GLenum face, GLenum pname, const GLfixed * params)
+{
+ DISPATCH(Materialxv, (face, pname, params), (F, "glMaterialxvOES(0x%x, 0x%x, %p);\n", face, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(MultMatrixx)(const GLfixed * m)
+{
+ DISPATCH(MultMatrixx, (m), (F, "glMultMatrixx(%p);\n", (const void *) m));
+}
+
+KEYWORD1 void KEYWORD2 NAME(MultMatrixxOES)(const GLfixed * m)
+{
+ DISPATCH(MultMatrixx, (m), (F, "glMultMatrixxOES(%p);\n", (const void *) m));
+}
+
+KEYWORD1 void KEYWORD2 NAME(MultiTexCoord4x)(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q)
+{
+ DISPATCH(MultiTexCoord4x, (target, s, t, r, q), (F, "glMultiTexCoord4x(0x%x, %d, %d, %d, %d);\n", target, s, t, r, q));
+}
+
+KEYWORD1 void KEYWORD2 NAME(MultiTexCoord4xOES)(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q)
+{
+ DISPATCH(MultiTexCoord4x, (target, s, t, r, q), (F, "glMultiTexCoord4xOES(0x%x, %d, %d, %d, %d);\n", target, s, t, r, q));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Normal3x)(GLfixed nx, GLfixed ny, GLfixed nz)
+{
+ DISPATCH(Normal3x, (nx, ny, nz), (F, "glNormal3x(%d, %d, %d);\n", nx, ny, nz));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Normal3xOES)(GLfixed nx, GLfixed ny, GLfixed nz)
+{
+ DISPATCH(Normal3x, (nx, ny, nz), (F, "glNormal3xOES(%d, %d, %d);\n", nx, ny, nz));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Orthof)(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
+{
+ DISPATCH(Orthof, (left, right, bottom, top, zNear, zFar), (F, "glOrthof(%f, %f, %f, %f, %f, %f);\n", left, right, bottom, top, zNear, zFar));
+}
+
+KEYWORD1 void KEYWORD2 NAME(OrthofOES)(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
+{
+ DISPATCH(Orthof, (left, right, bottom, top, zNear, zFar), (F, "glOrthofOES(%f, %f, %f, %f, %f, %f);\n", left, right, bottom, top, zNear, zFar));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Orthox)(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
+{
+ DISPATCH(Orthox, (left, right, bottom, top, zNear, zFar), (F, "glOrthox(%d, %d, %d, %d, %d, %d);\n", left, right, bottom, top, zNear, zFar));
+}
+
+KEYWORD1 void KEYWORD2 NAME(OrthoxOES)(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
+{
+ DISPATCH(Orthox, (left, right, bottom, top, zNear, zFar), (F, "glOrthoxOES(%d, %d, %d, %d, %d, %d);\n", left, right, bottom, top, zNear, zFar));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PointSizex)(GLfixed size)
+{
+ DISPATCH(PointSizex, (size), (F, "glPointSizex(%d);\n", size));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PointSizexOES)(GLfixed size)
+{
+ DISPATCH(PointSizex, (size), (F, "glPointSizexOES(%d);\n", size));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PolygonOffsetx)(GLfixed factor, GLfixed units)
+{
+ DISPATCH(PolygonOffsetx, (factor, units), (F, "glPolygonOffsetx(%d, %d);\n", factor, units));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PolygonOffsetxOES)(GLfixed factor, GLfixed units)
+{
+ DISPATCH(PolygonOffsetx, (factor, units), (F, "glPolygonOffsetxOES(%d, %d);\n", factor, units));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Rotatex)(GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
+{
+ DISPATCH(Rotatex, (angle, x, y, z), (F, "glRotatex(%d, %d, %d, %d);\n", angle, x, y, z));
+}
+
+KEYWORD1 void KEYWORD2 NAME(RotatexOES)(GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
+{
+ DISPATCH(Rotatex, (angle, x, y, z), (F, "glRotatexOES(%d, %d, %d, %d);\n", angle, x, y, z));
+}
+
+KEYWORD1 void KEYWORD2 NAME(SampleCoveragex)(GLclampx value, GLboolean invert)
+{
+ DISPATCH(SampleCoveragex, (value, invert), (F, "glSampleCoveragex(%d, %d);\n", value, invert));
+}
+
+KEYWORD1 void KEYWORD2 NAME(SampleCoveragexOES)(GLclampx value, GLboolean invert)
+{
+ DISPATCH(SampleCoveragex, (value, invert), (F, "glSampleCoveragexOES(%d, %d);\n", value, invert));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Scalex)(GLfixed x, GLfixed y, GLfixed z)
+{
+ DISPATCH(Scalex, (x, y, z), (F, "glScalex(%d, %d, %d);\n", x, y, z));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ScalexOES)(GLfixed x, GLfixed y, GLfixed z)
+{
+ DISPATCH(Scalex, (x, y, z), (F, "glScalexOES(%d, %d, %d);\n", x, y, z));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexEnvx)(GLenum target, GLenum pname, GLfixed param)
+{
+ DISPATCH(TexEnvx, (target, pname, param), (F, "glTexEnvx(0x%x, 0x%x, %d);\n", target, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexEnvxOES)(GLenum target, GLenum pname, GLfixed param)
+{
+ DISPATCH(TexEnvx, (target, pname, param), (F, "glTexEnvxOES(0x%x, 0x%x, %d);\n", target, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexEnvxv)(GLenum target, GLenum pname, const GLfixed * params)
+{
+ DISPATCH(TexEnvxv, (target, pname, params), (F, "glTexEnvxv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexEnvxvOES)(GLenum target, GLenum pname, const GLfixed * params)
+{
+ DISPATCH(TexEnvxv, (target, pname, params), (F, "glTexEnvxvOES(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexParameterx)(GLenum target, GLenum pname, GLfixed param)
+{
+ DISPATCH(TexParameterx, (target, pname, param), (F, "glTexParameterx(0x%x, 0x%x, %d);\n", target, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexParameterxOES)(GLenum target, GLenum pname, GLfixed param)
+{
+ DISPATCH(TexParameterx, (target, pname, param), (F, "glTexParameterxOES(0x%x, 0x%x, %d);\n", target, pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(Translatex)(GLfixed x, GLfixed y, GLfixed z)
+{
+ DISPATCH(Translatex, (x, y, z), (F, "glTranslatex(%d, %d, %d);\n", x, y, z));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TranslatexOES)(GLfixed x, GLfixed y, GLfixed z)
+{
+ DISPATCH(Translatex, (x, y, z), (F, "glTranslatexOES(%d, %d, %d);\n", x, y, z));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ClipPlanef)(GLenum plane, const GLfloat * equation)
+{
+ DISPATCH(ClipPlanef, (plane, equation), (F, "glClipPlanef(0x%x, %p);\n", plane, (const void *) equation));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ClipPlanefOES)(GLenum plane, const GLfloat * equation)
+{
+ DISPATCH(ClipPlanef, (plane, equation), (F, "glClipPlanefOES(0x%x, %p);\n", plane, (const void *) equation));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ClipPlanex)(GLenum plane, const GLfixed * equation)
+{
+ DISPATCH(ClipPlanex, (plane, equation), (F, "glClipPlanex(0x%x, %p);\n", plane, (const void *) equation));
+}
+
+KEYWORD1 void KEYWORD2 NAME(ClipPlanexOES)(GLenum plane, const GLfixed * equation)
+{
+ DISPATCH(ClipPlanex, (plane, equation), (F, "glClipPlanexOES(0x%x, %p);\n", plane, (const void *) equation));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetClipPlanef)(GLenum plane, GLfloat * equation)
+{
+ DISPATCH(GetClipPlanef, (plane, equation), (F, "glGetClipPlanef(0x%x, %p);\n", plane, (const void *) equation));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetClipPlanefOES)(GLenum plane, GLfloat * equation)
+{
+ DISPATCH(GetClipPlanef, (plane, equation), (F, "glGetClipPlanefOES(0x%x, %p);\n", plane, (const void *) equation));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetClipPlanex)(GLenum plane, GLfixed * equation)
+{
+ DISPATCH(GetClipPlanex, (plane, equation), (F, "glGetClipPlanex(0x%x, %p);\n", plane, (const void *) equation));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetClipPlanexOES)(GLenum plane, GLfixed * equation)
+{
+ DISPATCH(GetClipPlanex, (plane, equation), (F, "glGetClipPlanexOES(0x%x, %p);\n", plane, (const void *) equation));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetFixedv)(GLenum pname, GLfixed * params)
+{
+ DISPATCH(GetFixedv, (pname, params), (F, "glGetFixedv(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetFixedvOES)(GLenum pname, GLfixed * params)
+{
+ DISPATCH(GetFixedv, (pname, params), (F, "glGetFixedvOES(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetLightxv)(GLenum light, GLenum pname, GLfixed * params)
+{
+ DISPATCH(GetLightxv, (light, pname, params), (F, "glGetLightxv(0x%x, 0x%x, %p);\n", light, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetLightxvOES)(GLenum light, GLenum pname, GLfixed * params)
+{
+ DISPATCH(GetLightxv, (light, pname, params), (F, "glGetLightxvOES(0x%x, 0x%x, %p);\n", light, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetMaterialxv)(GLenum face, GLenum pname, GLfixed * params)
+{
+ DISPATCH(GetMaterialxv, (face, pname, params), (F, "glGetMaterialxv(0x%x, 0x%x, %p);\n", face, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetMaterialxvOES)(GLenum face, GLenum pname, GLfixed * params)
+{
+ DISPATCH(GetMaterialxv, (face, pname, params), (F, "glGetMaterialxvOES(0x%x, 0x%x, %p);\n", face, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetTexEnvxv)(GLenum target, GLenum pname, GLfixed * params)
+{
+ DISPATCH(GetTexEnvxv, (target, pname, params), (F, "glGetTexEnvxv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetTexEnvxvOES)(GLenum target, GLenum pname, GLfixed * params)
+{
+ DISPATCH(GetTexEnvxv, (target, pname, params), (F, "glGetTexEnvxvOES(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetTexParameterxv)(GLenum target, GLenum pname, GLfixed * params)
+{
+ DISPATCH(GetTexParameterxv, (target, pname, params), (F, "glGetTexParameterxv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(GetTexParameterxvOES)(GLenum target, GLenum pname, GLfixed * params)
+{
+ DISPATCH(GetTexParameterxv, (target, pname, params), (F, "glGetTexParameterxvOES(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PointParameterx)(GLenum pname, GLfixed param)
+{
+ DISPATCH(PointParameterx, (pname, param), (F, "glPointParameterx(0x%x, %d);\n", pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PointParameterxOES)(GLenum pname, GLfixed param)
+{
+ DISPATCH(PointParameterx, (pname, param), (F, "glPointParameterxOES(0x%x, %d);\n", pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PointParameterxv)(GLenum pname, const GLfixed * params)
+{
+ DISPATCH(PointParameterxv, (pname, params), (F, "glPointParameterxv(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PointParameterxvOES)(GLenum pname, const GLfixed * params)
+{
+ DISPATCH(PointParameterxv, (pname, params), (F, "glPointParameterxvOES(0x%x, %p);\n", pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexParameterxv)(GLenum target, GLenum pname, const GLfixed * params)
+{
+ DISPATCH(TexParameterxv, (target, pname, params), (F, "glTexParameterxv(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(TexParameterxvOES)(GLenum target, GLenum pname, const GLfixed * params)
+{
+ DISPATCH(TexParameterxv, (target, pname, params), (F, "glTexParameterxvOES(0x%x, 0x%x, %p);\n", target, pname, (const void *) params));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PointParameterf)(GLenum pname, GLfloat param)
+{
+ DISPATCH(PointParameterf, (pname, param), (F, "glPointParameterf(0x%x, %f);\n", pname, param));
+}
+
+KEYWORD1 void KEYWORD2 NAME(PointParameterfv)(GLenum pname, const GLfloat * params)
+{
+ DISPATCH(PointParameterfv, (pname, params), (F, "glPointParameterfv(0x%x, %p);\n", pname, (const void *) params));
+}
+
+
+#endif /* defined( NAME ) */
+
+/*
+ * This is how a dispatch table can be initialized with all the functions
+ * we generated above.
+ */
+#ifdef DISPATCH_TABLE_NAME
+
+#ifndef TABLE_ENTRY
+#error TABLE_ENTRY must be defined
+#endif
+
+static _glapi_proc DISPATCH_TABLE_NAME[] = {
+ TABLE_ENTRY(_dispatch_stub_0),
+ TABLE_ENTRY(_dispatch_stub_1),
+ TABLE_ENTRY(_dispatch_stub_2),
+ TABLE_ENTRY(_dispatch_stub_3),
+ TABLE_ENTRY(_dispatch_stub_4),
+ TABLE_ENTRY(_dispatch_stub_5),
+ TABLE_ENTRY(_dispatch_stub_6),
+ TABLE_ENTRY(_dispatch_stub_7),
+ TABLE_ENTRY(_dispatch_stub_8),
+ TABLE_ENTRY(_dispatch_stub_9),
+ TABLE_ENTRY(_dispatch_stub_10),
+ TABLE_ENTRY(_dispatch_stub_11),
+ TABLE_ENTRY(_dispatch_stub_12),
+ TABLE_ENTRY(_dispatch_stub_13),
+ TABLE_ENTRY(_dispatch_stub_14),
+ TABLE_ENTRY(_dispatch_stub_15),
+ TABLE_ENTRY(_dispatch_stub_16),
+ TABLE_ENTRY(_dispatch_stub_17),
+ TABLE_ENTRY(_dispatch_stub_18),
+ TABLE_ENTRY(_dispatch_stub_19),
+ TABLE_ENTRY(_dispatch_stub_20),
+ TABLE_ENTRY(_dispatch_stub_21),
+ TABLE_ENTRY(_dispatch_stub_22),
+ TABLE_ENTRY(_dispatch_stub_23),
+ TABLE_ENTRY(_dispatch_stub_24),
+ TABLE_ENTRY(_dispatch_stub_25),
+ TABLE_ENTRY(_dispatch_stub_26),
+ TABLE_ENTRY(_dispatch_stub_27),
+ TABLE_ENTRY(_dispatch_stub_28),
+ TABLE_ENTRY(Color4f),
+ TABLE_ENTRY(_dispatch_stub_30),
+ TABLE_ENTRY(_dispatch_stub_31),
+ TABLE_ENTRY(_dispatch_stub_32),
+ TABLE_ENTRY(_dispatch_stub_33),
+ TABLE_ENTRY(_dispatch_stub_34),
+ TABLE_ENTRY(Color4ub),
+ TABLE_ENTRY(_dispatch_stub_36),
+ TABLE_ENTRY(_dispatch_stub_37),
+ TABLE_ENTRY(_dispatch_stub_38),
+ TABLE_ENTRY(_dispatch_stub_39),
+ TABLE_ENTRY(_dispatch_stub_40),
+ TABLE_ENTRY(_dispatch_stub_41),
+ TABLE_ENTRY(_dispatch_stub_42),
+ TABLE_ENTRY(_dispatch_stub_43),
+ TABLE_ENTRY(_dispatch_stub_44),
+ TABLE_ENTRY(_dispatch_stub_45),
+ TABLE_ENTRY(_dispatch_stub_46),
+ TABLE_ENTRY(_dispatch_stub_47),
+ TABLE_ENTRY(_dispatch_stub_48),
+ TABLE_ENTRY(_dispatch_stub_49),
+ TABLE_ENTRY(_dispatch_stub_50),
+ TABLE_ENTRY(_dispatch_stub_51),
+ TABLE_ENTRY(_dispatch_stub_52),
+ TABLE_ENTRY(_dispatch_stub_53),
+ TABLE_ENTRY(_dispatch_stub_54),
+ TABLE_ENTRY(_dispatch_stub_55),
+ TABLE_ENTRY(Normal3f),
+ TABLE_ENTRY(_dispatch_stub_57),
+ TABLE_ENTRY(_dispatch_stub_58),
+ TABLE_ENTRY(_dispatch_stub_59),
+ TABLE_ENTRY(_dispatch_stub_60),
+ TABLE_ENTRY(_dispatch_stub_61),
+ TABLE_ENTRY(_dispatch_stub_62),
+ TABLE_ENTRY(_dispatch_stub_63),
+ TABLE_ENTRY(_dispatch_stub_64),
+ TABLE_ENTRY(_dispatch_stub_65),
+ TABLE_ENTRY(_dispatch_stub_66),
+ TABLE_ENTRY(_dispatch_stub_67),
+ TABLE_ENTRY(_dispatch_stub_68),
+ TABLE_ENTRY(_dispatch_stub_69),
+ TABLE_ENTRY(_dispatch_stub_70),
+ TABLE_ENTRY(_dispatch_stub_71),
+ TABLE_ENTRY(_dispatch_stub_72),
+ TABLE_ENTRY(_dispatch_stub_73),
+ TABLE_ENTRY(_dispatch_stub_74),
+ TABLE_ENTRY(_dispatch_stub_75),
+ TABLE_ENTRY(_dispatch_stub_76),
+ TABLE_ENTRY(_dispatch_stub_77),
+ TABLE_ENTRY(_dispatch_stub_78),
+ TABLE_ENTRY(_dispatch_stub_79),
+ TABLE_ENTRY(_dispatch_stub_80),
+ TABLE_ENTRY(_dispatch_stub_81),
+ TABLE_ENTRY(_dispatch_stub_82),
+ TABLE_ENTRY(_dispatch_stub_83),
+ TABLE_ENTRY(_dispatch_stub_84),
+ TABLE_ENTRY(_dispatch_stub_85),
+ TABLE_ENTRY(_dispatch_stub_86),
+ TABLE_ENTRY(_dispatch_stub_87),
+ TABLE_ENTRY(_dispatch_stub_88),
+ TABLE_ENTRY(_dispatch_stub_89),
+ TABLE_ENTRY(_dispatch_stub_90),
+ TABLE_ENTRY(_dispatch_stub_91),
+ TABLE_ENTRY(_dispatch_stub_92),
+ TABLE_ENTRY(_dispatch_stub_93),
+ TABLE_ENTRY(_dispatch_stub_94),
+ TABLE_ENTRY(_dispatch_stub_95),
+ TABLE_ENTRY(_dispatch_stub_96),
+ TABLE_ENTRY(_dispatch_stub_97),
+ TABLE_ENTRY(_dispatch_stub_98),
+ TABLE_ENTRY(_dispatch_stub_99),
+ TABLE_ENTRY(_dispatch_stub_100),
+ TABLE_ENTRY(_dispatch_stub_101),
+ TABLE_ENTRY(_dispatch_stub_102),
+ TABLE_ENTRY(_dispatch_stub_103),
+ TABLE_ENTRY(_dispatch_stub_104),
+ TABLE_ENTRY(_dispatch_stub_105),
+ TABLE_ENTRY(_dispatch_stub_106),
+ TABLE_ENTRY(_dispatch_stub_107),
+ TABLE_ENTRY(_dispatch_stub_108),
+ TABLE_ENTRY(_dispatch_stub_109),
+ TABLE_ENTRY(_dispatch_stub_110),
+ TABLE_ENTRY(_dispatch_stub_111),
+ TABLE_ENTRY(_dispatch_stub_112),
+ TABLE_ENTRY(_dispatch_stub_113),
+ TABLE_ENTRY(_dispatch_stub_114),
+ TABLE_ENTRY(_dispatch_stub_115),
+ TABLE_ENTRY(_dispatch_stub_116),
+ TABLE_ENTRY(_dispatch_stub_117),
+ TABLE_ENTRY(_dispatch_stub_118),
+ TABLE_ENTRY(_dispatch_stub_119),
+ TABLE_ENTRY(_dispatch_stub_120),
+ TABLE_ENTRY(_dispatch_stub_121),
+ TABLE_ENTRY(_dispatch_stub_122),
+ TABLE_ENTRY(_dispatch_stub_123),
+ TABLE_ENTRY(_dispatch_stub_124),
+ TABLE_ENTRY(_dispatch_stub_125),
+ TABLE_ENTRY(_dispatch_stub_126),
+ TABLE_ENTRY(_dispatch_stub_127),
+ TABLE_ENTRY(_dispatch_stub_128),
+ TABLE_ENTRY(_dispatch_stub_129),
+ TABLE_ENTRY(_dispatch_stub_130),
+ TABLE_ENTRY(_dispatch_stub_131),
+ TABLE_ENTRY(_dispatch_stub_132),
+ TABLE_ENTRY(_dispatch_stub_133),
+ TABLE_ENTRY(_dispatch_stub_134),
+ TABLE_ENTRY(_dispatch_stub_135),
+ TABLE_ENTRY(_dispatch_stub_136),
+ TABLE_ENTRY(_dispatch_stub_137),
+ TABLE_ENTRY(_dispatch_stub_138),
+ TABLE_ENTRY(_dispatch_stub_139),
+ TABLE_ENTRY(_dispatch_stub_140),
+ TABLE_ENTRY(_dispatch_stub_141),
+ TABLE_ENTRY(_dispatch_stub_142),
+ TABLE_ENTRY(_dispatch_stub_143),
+ TABLE_ENTRY(_dispatch_stub_144),
+ TABLE_ENTRY(_dispatch_stub_145),
+ TABLE_ENTRY(_dispatch_stub_146),
+ TABLE_ENTRY(_dispatch_stub_147),
+ TABLE_ENTRY(_dispatch_stub_148),
+ TABLE_ENTRY(_dispatch_stub_149),
+ TABLE_ENTRY(_dispatch_stub_150),
+ TABLE_ENTRY(_dispatch_stub_151),
+ TABLE_ENTRY(CullFace),
+ TABLE_ENTRY(Fogf),
+ TABLE_ENTRY(Fogfv),
+ TABLE_ENTRY(_dispatch_stub_155),
+ TABLE_ENTRY(_dispatch_stub_156),
+ TABLE_ENTRY(FrontFace),
+ TABLE_ENTRY(Hint),
+ TABLE_ENTRY(Lightf),
+ TABLE_ENTRY(Lightfv),
+ TABLE_ENTRY(_dispatch_stub_161),
+ TABLE_ENTRY(_dispatch_stub_162),
+ TABLE_ENTRY(LightModelf),
+ TABLE_ENTRY(LightModelfv),
+ TABLE_ENTRY(_dispatch_stub_165),
+ TABLE_ENTRY(_dispatch_stub_166),
+ TABLE_ENTRY(_dispatch_stub_167),
+ TABLE_ENTRY(LineWidth),
+ TABLE_ENTRY(Materialf),
+ TABLE_ENTRY(Materialfv),
+ TABLE_ENTRY(_dispatch_stub_171),
+ TABLE_ENTRY(_dispatch_stub_172),
+ TABLE_ENTRY(PointSize),
+ TABLE_ENTRY(_dispatch_stub_174),
+ TABLE_ENTRY(_dispatch_stub_175),
+ TABLE_ENTRY(Scissor),
+ TABLE_ENTRY(ShadeModel),
+ TABLE_ENTRY(TexParameterf),
+ TABLE_ENTRY(TexParameterfv),
+ TABLE_ENTRY(TexParameteri),
+ TABLE_ENTRY(TexParameteriv),
+ TABLE_ENTRY(_dispatch_stub_182),
+ TABLE_ENTRY(TexImage2D),
+ TABLE_ENTRY(TexEnvf),
+ TABLE_ENTRY(TexEnvfv),
+ TABLE_ENTRY(TexEnvi),
+ TABLE_ENTRY(TexEnviv),
+ TABLE_ENTRY(_dispatch_stub_188),
+ TABLE_ENTRY(_dispatch_stub_189),
+ TABLE_ENTRY(TexGenfOES),
+ TABLE_ENTRY(TexGenfvOES),
+ TABLE_ENTRY(TexGeniOES),
+ TABLE_ENTRY(TexGenivOES),
+ TABLE_ENTRY(_dispatch_stub_194),
+ TABLE_ENTRY(_dispatch_stub_195),
+ TABLE_ENTRY(_dispatch_stub_196),
+ TABLE_ENTRY(_dispatch_stub_197),
+ TABLE_ENTRY(_dispatch_stub_198),
+ TABLE_ENTRY(_dispatch_stub_199),
+ TABLE_ENTRY(_dispatch_stub_200),
+ TABLE_ENTRY(_dispatch_stub_201),
+ TABLE_ENTRY(_dispatch_stub_202),
+ TABLE_ENTRY(Clear),
+ TABLE_ENTRY(_dispatch_stub_204),
+ TABLE_ENTRY(_dispatch_stub_205),
+ TABLE_ENTRY(ClearColor),
+ TABLE_ENTRY(ClearStencil),
+ TABLE_ENTRY(_dispatch_stub_208),
+ TABLE_ENTRY(StencilMask),
+ TABLE_ENTRY(ColorMask),
+ TABLE_ENTRY(DepthMask),
+ TABLE_ENTRY(_dispatch_stub_212),
+ TABLE_ENTRY(_dispatch_stub_213),
+ TABLE_ENTRY(Disable),
+ TABLE_ENTRY(Enable),
+ TABLE_ENTRY(Finish),
+ TABLE_ENTRY(Flush),
+ TABLE_ENTRY(_dispatch_stub_218),
+ TABLE_ENTRY(_dispatch_stub_219),
+ TABLE_ENTRY(_dispatch_stub_220),
+ TABLE_ENTRY(_dispatch_stub_221),
+ TABLE_ENTRY(_dispatch_stub_222),
+ TABLE_ENTRY(_dispatch_stub_223),
+ TABLE_ENTRY(_dispatch_stub_224),
+ TABLE_ENTRY(_dispatch_stub_225),
+ TABLE_ENTRY(_dispatch_stub_226),
+ TABLE_ENTRY(_dispatch_stub_227),
+ TABLE_ENTRY(_dispatch_stub_228),
+ TABLE_ENTRY(_dispatch_stub_229),
+ TABLE_ENTRY(_dispatch_stub_230),
+ TABLE_ENTRY(_dispatch_stub_231),
+ TABLE_ENTRY(_dispatch_stub_232),
+ TABLE_ENTRY(_dispatch_stub_233),
+ TABLE_ENTRY(_dispatch_stub_234),
+ TABLE_ENTRY(_dispatch_stub_235),
+ TABLE_ENTRY(_dispatch_stub_236),
+ TABLE_ENTRY(_dispatch_stub_237),
+ TABLE_ENTRY(_dispatch_stub_238),
+ TABLE_ENTRY(_dispatch_stub_239),
+ TABLE_ENTRY(AlphaFunc),
+ TABLE_ENTRY(BlendFunc),
+ TABLE_ENTRY(LogicOp),
+ TABLE_ENTRY(StencilFunc),
+ TABLE_ENTRY(StencilOp),
+ TABLE_ENTRY(DepthFunc),
+ TABLE_ENTRY(_dispatch_stub_246),
+ TABLE_ENTRY(_dispatch_stub_247),
+ TABLE_ENTRY(_dispatch_stub_248),
+ TABLE_ENTRY(_dispatch_stub_249),
+ TABLE_ENTRY(PixelStorei),
+ TABLE_ENTRY(_dispatch_stub_251),
+ TABLE_ENTRY(_dispatch_stub_252),
+ TABLE_ENTRY(_dispatch_stub_253),
+ TABLE_ENTRY(_dispatch_stub_254),
+ TABLE_ENTRY(_dispatch_stub_255),
+ TABLE_ENTRY(ReadPixels),
+ TABLE_ENTRY(_dispatch_stub_257),
+ TABLE_ENTRY(GetBooleanv),
+ TABLE_ENTRY(_dispatch_stub_259),
+ TABLE_ENTRY(_dispatch_stub_260),
+ TABLE_ENTRY(GetError),
+ TABLE_ENTRY(GetFloatv),
+ TABLE_ENTRY(GetIntegerv),
+ TABLE_ENTRY(GetLightfv),
+ TABLE_ENTRY(_dispatch_stub_265),
+ TABLE_ENTRY(_dispatch_stub_266),
+ TABLE_ENTRY(_dispatch_stub_267),
+ TABLE_ENTRY(_dispatch_stub_268),
+ TABLE_ENTRY(GetMaterialfv),
+ TABLE_ENTRY(_dispatch_stub_270),
+ TABLE_ENTRY(_dispatch_stub_271),
+ TABLE_ENTRY(_dispatch_stub_272),
+ TABLE_ENTRY(_dispatch_stub_273),
+ TABLE_ENTRY(_dispatch_stub_274),
+ TABLE_ENTRY(GetString),
+ TABLE_ENTRY(GetTexEnvfv),
+ TABLE_ENTRY(GetTexEnviv),
+ TABLE_ENTRY(_dispatch_stub_278),
+ TABLE_ENTRY(GetTexGenfvOES),
+ TABLE_ENTRY(GetTexGenivOES),
+ TABLE_ENTRY(_dispatch_stub_281),
+ TABLE_ENTRY(GetTexParameterfv),
+ TABLE_ENTRY(GetTexParameteriv),
+ TABLE_ENTRY(_dispatch_stub_284),
+ TABLE_ENTRY(_dispatch_stub_285),
+ TABLE_ENTRY(IsEnabled),
+ TABLE_ENTRY(_dispatch_stub_287),
+ TABLE_ENTRY(_dispatch_stub_288),
+ TABLE_ENTRY(_dispatch_stub_289),
+ TABLE_ENTRY(LoadIdentity),
+ TABLE_ENTRY(LoadMatrixf),
+ TABLE_ENTRY(_dispatch_stub_292),
+ TABLE_ENTRY(MatrixMode),
+ TABLE_ENTRY(MultMatrixf),
+ TABLE_ENTRY(_dispatch_stub_295),
+ TABLE_ENTRY(_dispatch_stub_296),
+ TABLE_ENTRY(PopMatrix),
+ TABLE_ENTRY(PushMatrix),
+ TABLE_ENTRY(_dispatch_stub_299),
+ TABLE_ENTRY(Rotatef),
+ TABLE_ENTRY(_dispatch_stub_301),
+ TABLE_ENTRY(Scalef),
+ TABLE_ENTRY(_dispatch_stub_303),
+ TABLE_ENTRY(Translatef),
+ TABLE_ENTRY(Viewport),
+ TABLE_ENTRY(_dispatch_stub_306),
+ TABLE_ENTRY(BindTexture),
+ TABLE_ENTRY(ColorPointer),
+ TABLE_ENTRY(DisableClientState),
+ TABLE_ENTRY(DrawArrays),
+ TABLE_ENTRY(DrawElements),
+ TABLE_ENTRY(_dispatch_stub_312),
+ TABLE_ENTRY(EnableClientState),
+ TABLE_ENTRY(_dispatch_stub_314),
+ TABLE_ENTRY(_dispatch_stub_315),
+ TABLE_ENTRY(_dispatch_stub_316),
+ TABLE_ENTRY(_dispatch_stub_317),
+ TABLE_ENTRY(NormalPointer),
+ TABLE_ENTRY(PolygonOffset),
+ TABLE_ENTRY(TexCoordPointer),
+ TABLE_ENTRY(VertexPointer),
+ TABLE_ENTRY(_dispatch_stub_322),
+ TABLE_ENTRY(_dispatch_stub_323),
+ TABLE_ENTRY(CopyTexImage2D),
+ TABLE_ENTRY(_dispatch_stub_325),
+ TABLE_ENTRY(CopyTexSubImage2D),
+ TABLE_ENTRY(DeleteTextures),
+ TABLE_ENTRY(GenTextures),
+ TABLE_ENTRY(GetPointerv),
+ TABLE_ENTRY(IsTexture),
+ TABLE_ENTRY(_dispatch_stub_331),
+ TABLE_ENTRY(_dispatch_stub_332),
+ TABLE_ENTRY(TexSubImage2D),
+ TABLE_ENTRY(_dispatch_stub_334),
+ TABLE_ENTRY(_dispatch_stub_335),
+ TABLE_ENTRY(_dispatch_stub_336),
+ TABLE_ENTRY(BlendEquationOES),
+ TABLE_ENTRY(_dispatch_stub_338),
+ TABLE_ENTRY(_dispatch_stub_339),
+ TABLE_ENTRY(_dispatch_stub_340),
+ TABLE_ENTRY(_dispatch_stub_341),
+ TABLE_ENTRY(_dispatch_stub_342),
+ TABLE_ENTRY(_dispatch_stub_343),
+ TABLE_ENTRY(_dispatch_stub_344),
+ TABLE_ENTRY(_dispatch_stub_345),
+ TABLE_ENTRY(_dispatch_stub_346),
+ TABLE_ENTRY(_dispatch_stub_347),
+ TABLE_ENTRY(_dispatch_stub_348),
+ TABLE_ENTRY(_dispatch_stub_349),
+ TABLE_ENTRY(_dispatch_stub_350),
+ TABLE_ENTRY(_dispatch_stub_351),
+ TABLE_ENTRY(_dispatch_stub_352),
+ TABLE_ENTRY(_dispatch_stub_353),
+ TABLE_ENTRY(_dispatch_stub_354),
+ TABLE_ENTRY(_dispatch_stub_355),
+ TABLE_ENTRY(_dispatch_stub_356),
+ TABLE_ENTRY(_dispatch_stub_357),
+ TABLE_ENTRY(_dispatch_stub_358),
+ TABLE_ENTRY(_dispatch_stub_359),
+ TABLE_ENTRY(_dispatch_stub_360),
+ TABLE_ENTRY(_dispatch_stub_361),
+ TABLE_ENTRY(_dispatch_stub_362),
+ TABLE_ENTRY(_dispatch_stub_363),
+ TABLE_ENTRY(_dispatch_stub_364),
+ TABLE_ENTRY(_dispatch_stub_365),
+ TABLE_ENTRY(_dispatch_stub_366),
+ TABLE_ENTRY(_dispatch_stub_367),
+ TABLE_ENTRY(_dispatch_stub_368),
+ TABLE_ENTRY(_dispatch_stub_369),
+ TABLE_ENTRY(_dispatch_stub_370),
+ TABLE_ENTRY(_dispatch_stub_371),
+ TABLE_ENTRY(_dispatch_stub_372),
+ TABLE_ENTRY(_dispatch_stub_373),
+ TABLE_ENTRY(ActiveTexture),
+ TABLE_ENTRY(ClientActiveTexture),
+ TABLE_ENTRY(_dispatch_stub_376),
+ TABLE_ENTRY(_dispatch_stub_377),
+ TABLE_ENTRY(_dispatch_stub_378),
+ TABLE_ENTRY(_dispatch_stub_379),
+ TABLE_ENTRY(_dispatch_stub_380),
+ TABLE_ENTRY(_dispatch_stub_381),
+ TABLE_ENTRY(_dispatch_stub_382),
+ TABLE_ENTRY(_dispatch_stub_383),
+ TABLE_ENTRY(_dispatch_stub_384),
+ TABLE_ENTRY(_dispatch_stub_385),
+ TABLE_ENTRY(_dispatch_stub_386),
+ TABLE_ENTRY(_dispatch_stub_387),
+ TABLE_ENTRY(_dispatch_stub_388),
+ TABLE_ENTRY(_dispatch_stub_389),
+ TABLE_ENTRY(_dispatch_stub_390),
+ TABLE_ENTRY(_dispatch_stub_391),
+ TABLE_ENTRY(_dispatch_stub_392),
+ TABLE_ENTRY(_dispatch_stub_393),
+ TABLE_ENTRY(_dispatch_stub_394),
+ TABLE_ENTRY(_dispatch_stub_395),
+ TABLE_ENTRY(_dispatch_stub_396),
+ TABLE_ENTRY(_dispatch_stub_397),
+ TABLE_ENTRY(_dispatch_stub_398),
+ TABLE_ENTRY(_dispatch_stub_399),
+ TABLE_ENTRY(_dispatch_stub_400),
+ TABLE_ENTRY(_dispatch_stub_401),
+ TABLE_ENTRY(MultiTexCoord4f),
+ TABLE_ENTRY(_dispatch_stub_403),
+ TABLE_ENTRY(_dispatch_stub_404),
+ TABLE_ENTRY(_dispatch_stub_405),
+ TABLE_ENTRY(_dispatch_stub_406),
+ TABLE_ENTRY(_dispatch_stub_407),
+ TABLE_ENTRY(BlendEquationSeparateOES),
+ TABLE_ENTRY(BlendFuncSeparateOES),
+ TABLE_ENTRY(DrawTexfOES),
+ TABLE_ENTRY(DrawTexfvOES),
+ TABLE_ENTRY(DrawTexiOES),
+ TABLE_ENTRY(DrawTexivOES),
+ TABLE_ENTRY(DrawTexsOES),
+ TABLE_ENTRY(DrawTexsvOES),
+ TABLE_ENTRY(DrawTexxOES),
+ TABLE_ENTRY(DrawTexxvOES),
+ TABLE_ENTRY(BindFramebufferOES),
+ TABLE_ENTRY(BindRenderbufferOES),
+ TABLE_ENTRY(CheckFramebufferStatusOES),
+ TABLE_ENTRY(DeleteFramebuffersOES),
+ TABLE_ENTRY(DeleteRenderbuffersOES),
+ TABLE_ENTRY(FramebufferRenderbufferOES),
+ TABLE_ENTRY(FramebufferTexture2DOES),
+ TABLE_ENTRY(GenFramebuffersOES),
+ TABLE_ENTRY(GenRenderbuffersOES),
+ TABLE_ENTRY(GenerateMipmapOES),
+ TABLE_ENTRY(GetFramebufferAttachmentParameterivOES),
+ TABLE_ENTRY(GetRenderbufferParameterivOES),
+ TABLE_ENTRY(IsFramebufferOES),
+ TABLE_ENTRY(IsRenderbufferOES),
+ TABLE_ENTRY(RenderbufferStorageOES),
+ TABLE_ENTRY(PointSizePointerOES),
+ TABLE_ENTRY(QueryMatrixxOES),
+ TABLE_ENTRY(GetTexGenxvOES),
+ TABLE_ENTRY(TexGenxOES),
+ TABLE_ENTRY(TexGenxvOES),
+ TABLE_ENTRY(EGLImageTargetRenderbufferStorageOES),
+ TABLE_ENTRY(EGLImageTargetTexture2DOES),
+ TABLE_ENTRY(GetBufferPointervOES),
+ TABLE_ENTRY(MapBufferOES),
+ TABLE_ENTRY(UnmapBufferOES),
+ TABLE_ENTRY(_dispatch_stub_443),
+ TABLE_ENTRY(_dispatch_stub_444),
+ TABLE_ENTRY(_dispatch_stub_445),
+ TABLE_ENTRY(_dispatch_stub_446),
+ TABLE_ENTRY(CompressedTexImage2D),
+ TABLE_ENTRY(CompressedTexSubImage2D),
+ TABLE_ENTRY(SampleCoverage),
+ TABLE_ENTRY(BindBuffer),
+ TABLE_ENTRY(BufferData),
+ TABLE_ENTRY(BufferSubData),
+ TABLE_ENTRY(DeleteBuffers),
+ TABLE_ENTRY(GenBuffers),
+ TABLE_ENTRY(GetBufferParameteriv),
+ TABLE_ENTRY(IsBuffer),
+ TABLE_ENTRY(AlphaFuncx),
+ TABLE_ENTRY(ClearColorx),
+ TABLE_ENTRY(ClearDepthf),
+ TABLE_ENTRY(ClearDepthx),
+ TABLE_ENTRY(Color4x),
+ TABLE_ENTRY(DepthRangef),
+ TABLE_ENTRY(DepthRangex),
+ TABLE_ENTRY(Fogx),
+ TABLE_ENTRY(Fogxv),
+ TABLE_ENTRY(Frustumf),
+ TABLE_ENTRY(Frustumx),
+ TABLE_ENTRY(LightModelx),
+ TABLE_ENTRY(LightModelxv),
+ TABLE_ENTRY(Lightx),
+ TABLE_ENTRY(Lightxv),
+ TABLE_ENTRY(LineWidthx),
+ TABLE_ENTRY(LoadMatrixx),
+ TABLE_ENTRY(Materialx),
+ TABLE_ENTRY(Materialxv),
+ TABLE_ENTRY(MultMatrixx),
+ TABLE_ENTRY(MultiTexCoord4x),
+ TABLE_ENTRY(Normal3x),
+ TABLE_ENTRY(Orthof),
+ TABLE_ENTRY(Orthox),
+ TABLE_ENTRY(PointSizex),
+ TABLE_ENTRY(PolygonOffsetx),
+ TABLE_ENTRY(Rotatex),
+ TABLE_ENTRY(SampleCoveragex),
+ TABLE_ENTRY(Scalex),
+ TABLE_ENTRY(TexEnvx),
+ TABLE_ENTRY(TexEnvxv),
+ TABLE_ENTRY(TexParameterx),
+ TABLE_ENTRY(Translatex),
+ TABLE_ENTRY(ClipPlanef),
+ TABLE_ENTRY(ClipPlanex),
+ TABLE_ENTRY(GetClipPlanef),
+ TABLE_ENTRY(GetClipPlanex),
+ TABLE_ENTRY(GetFixedv),
+ TABLE_ENTRY(GetLightxv),
+ TABLE_ENTRY(GetMaterialxv),
+ TABLE_ENTRY(GetTexEnvxv),
+ TABLE_ENTRY(GetTexParameterxv),
+ TABLE_ENTRY(PointParameterx),
+ TABLE_ENTRY(PointParameterxv),
+ TABLE_ENTRY(TexParameterxv),
+ TABLE_ENTRY(PointParameterf),
+ TABLE_ENTRY(PointParameterfv),
+ /* A whole bunch of no-op functions. These might be called
+ * when someone tries to call a dynamically-registered
+ * extension function without a current rendering context.
+ */
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+ TABLE_ENTRY(Unused),
+};
+#endif /* DISPATCH_TABLE_NAME */
+
+
+/*
+ * This is just used to silence compiler warnings.
+ * We list the functions which are not otherwise used.
+ */
+#ifdef UNUSED_TABLE_NAME
+static _glapi_proc UNUSED_TABLE_NAME[] = {
+ TABLE_ENTRY(AlphaFuncxOES),
+ TABLE_ENTRY(ClearColorxOES),
+ TABLE_ENTRY(ClearDepthfOES),
+ TABLE_ENTRY(ClearDepthxOES),
+ TABLE_ENTRY(Color4xOES),
+ TABLE_ENTRY(DepthRangefOES),
+ TABLE_ENTRY(DepthRangexOES),
+ TABLE_ENTRY(FogxOES),
+ TABLE_ENTRY(FogxvOES),
+ TABLE_ENTRY(FrustumfOES),
+ TABLE_ENTRY(FrustumxOES),
+ TABLE_ENTRY(LightModelxOES),
+ TABLE_ENTRY(LightModelxvOES),
+ TABLE_ENTRY(LightxOES),
+ TABLE_ENTRY(LightxvOES),
+ TABLE_ENTRY(LineWidthxOES),
+ TABLE_ENTRY(LoadMatrixxOES),
+ TABLE_ENTRY(MaterialxOES),
+ TABLE_ENTRY(MaterialxvOES),
+ TABLE_ENTRY(MultMatrixxOES),
+ TABLE_ENTRY(MultiTexCoord4xOES),
+ TABLE_ENTRY(Normal3xOES),
+ TABLE_ENTRY(OrthofOES),
+ TABLE_ENTRY(OrthoxOES),
+ TABLE_ENTRY(PointSizexOES),
+ TABLE_ENTRY(PolygonOffsetxOES),
+ TABLE_ENTRY(RotatexOES),
+ TABLE_ENTRY(SampleCoveragexOES),
+ TABLE_ENTRY(ScalexOES),
+ TABLE_ENTRY(TexEnvxOES),
+ TABLE_ENTRY(TexEnvxvOES),
+ TABLE_ENTRY(TexParameterxOES),
+ TABLE_ENTRY(TranslatexOES),
+ TABLE_ENTRY(ClipPlanefOES),
+ TABLE_ENTRY(ClipPlanexOES),
+ TABLE_ENTRY(GetClipPlanefOES),
+ TABLE_ENTRY(GetClipPlanexOES),
+ TABLE_ENTRY(GetFixedvOES),
+ TABLE_ENTRY(GetLightxvOES),
+ TABLE_ENTRY(GetMaterialxvOES),
+ TABLE_ENTRY(GetTexEnvxvOES),
+ TABLE_ENTRY(GetTexParameterxvOES),
+ TABLE_ENTRY(PointParameterxOES),
+ TABLE_ENTRY(PointParameterxvOES),
+ TABLE_ENTRY(TexParameterxvOES),
+};
+#endif /*UNUSED_TABLE_NAME*/
+
+
+# undef KEYWORD1
+# undef KEYWORD1_ALT
+# undef KEYWORD2
+# undef NAME
+# undef DISPATCH
+# undef RETURN_DISPATCH
+# undef DISPATCH_TABLE_NAME
+# undef UNUSED_TABLE_NAME
+# undef TABLE_ENTRY
+# undef HIDDEN
diff --git a/src/mesa/es/glapi/headers-es1/glapi/glprocs.h b/src/mesa/es/glapi/headers-es1/glapi/glprocs.h
new file mode 100644
index 0000000000..98b2e8078e
--- /dev/null
+++ b/src/mesa/es/glapi/headers-es1/glapi/glprocs.h
@@ -0,0 +1,2089 @@
+/* DO NOT EDIT - This file generated automatically by gl_procs.py (from Mesa) script */
+
+/*
+ * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
+ * (C) Copyright IBM Corporation 2004, 2006
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sub license,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+ * BRIAN PAUL, IBM,
+ * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+ * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+
+/* This file is only included by glapi.c and is used for
+ * the GetProcAddress() function
+ */
+
+typedef struct {
+ GLint Name_offset;
+#if defined(NEED_FUNCTION_POINTER) || defined(GLX_INDIRECT_RENDERING)
+ _glapi_proc Address;
+#endif
+ GLuint Offset;
+} glprocs_table_t;
+
+#if !defined(NEED_FUNCTION_POINTER) && !defined(GLX_INDIRECT_RENDERING)
+# define NAME_FUNC_OFFSET(n,f1,f2,f3,o) { n , o }
+#elif defined(NEED_FUNCTION_POINTER) && !defined(GLX_INDIRECT_RENDERING)
+# define NAME_FUNC_OFFSET(n,f1,f2,f3,o) { n , (_glapi_proc) f1 , o }
+#elif defined(NEED_FUNCTION_POINTER) && defined(GLX_INDIRECT_RENDERING)
+# define NAME_FUNC_OFFSET(n,f1,f2,f3,o) { n , (_glapi_proc) f2 , o }
+#elif !defined(NEED_FUNCTION_POINTER) && defined(GLX_INDIRECT_RENDERING)
+# define NAME_FUNC_OFFSET(n,f1,f2,f3,o) { n , (_glapi_proc) f3 , o }
+#endif
+
+
+
+/* OpenGL ES specific prototypes */
+/* category GL_OES_texture_cube_map */
+GLAPI void GLAPIENTRY glTexGenfOES(GLenum coord, GLenum pname, GLfloat param);
+/* category GL_OES_texture_cube_map */
+GLAPI void GLAPIENTRY glTexGenfvOES(GLenum coord, GLenum pname, const GLfloat * params);
+/* category GL_OES_texture_cube_map */
+GLAPI void GLAPIENTRY glTexGeniOES(GLenum coord, GLenum pname, GLint param);
+/* category GL_OES_texture_cube_map */
+GLAPI void GLAPIENTRY glTexGenivOES(GLenum coord, GLenum pname, const GLint * params);
+/* category GL_OES_texture_cube_map */
+GLAPI void GLAPIENTRY glGetTexGenfvOES(GLenum coord, GLenum pname, GLfloat * params);
+/* category GL_OES_texture_cube_map */
+GLAPI void GLAPIENTRY glGetTexGenivOES(GLenum coord, GLenum pname, GLint * params);
+/* category GL_OES_blend_subtract */
+GLAPI void GLAPIENTRY glBlendEquationOES(GLenum mode);
+/* category GL_OES_blend_equation_separate */
+GLAPI void GLAPIENTRY glBlendEquationSeparateOES(GLenum modeRGB, GLenum modeA);
+/* category GL_OES_blend_func_separate */
+GLAPI void GLAPIENTRY glBlendFuncSeparateOES(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+/* category GL_OES_draw_texture */
+GLAPI void GLAPIENTRY glDrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
+/* category GL_OES_draw_texture */
+GLAPI void GLAPIENTRY glDrawTexfvOES(const GLfloat * coords);
+/* category GL_OES_draw_texture */
+GLAPI void GLAPIENTRY glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height);
+/* category GL_OES_draw_texture */
+GLAPI void GLAPIENTRY glDrawTexivOES(const GLint * coords);
+/* category GL_OES_draw_texture */
+GLAPI void GLAPIENTRY glDrawTexsOES(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
+/* category GL_OES_draw_texture */
+GLAPI void GLAPIENTRY glDrawTexsvOES(const GLshort * coords);
+/* category GL_OES_draw_texture */
+GLAPI void GLAPIENTRY glDrawTexxOES(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
+/* category GL_OES_draw_texture */
+GLAPI void GLAPIENTRY glDrawTexxvOES(const GLfixed * coords);
+/* category GL_OES_framebuffer_object */
+GLAPI void GLAPIENTRY glBindFramebufferOES(GLenum target, GLuint framebuffer);
+/* category GL_OES_framebuffer_object */
+GLAPI void GLAPIENTRY glBindRenderbufferOES(GLenum target, GLuint renderbuffer);
+/* category GL_OES_framebuffer_object */
+GLAPI GLenum GLAPIENTRY glCheckFramebufferStatusOES(GLenum target);
+/* category GL_OES_framebuffer_object */
+GLAPI void GLAPIENTRY glDeleteFramebuffersOES(GLsizei n, const GLuint * framebuffers);
+/* category GL_OES_framebuffer_object */
+GLAPI void GLAPIENTRY glDeleteRenderbuffersOES(GLsizei n, const GLuint * renderbuffers);
+/* category GL_OES_framebuffer_object */
+GLAPI void GLAPIENTRY glFramebufferRenderbufferOES(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+/* category GL_OES_framebuffer_object */
+GLAPI void GLAPIENTRY glFramebufferTexture2DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+/* category GL_OES_framebuffer_object */
+GLAPI void GLAPIENTRY glGenFramebuffersOES(GLsizei n, GLuint * framebuffers);
+/* category GL_OES_framebuffer_object */
+GLAPI void GLAPIENTRY glGenRenderbuffersOES(GLsizei n, GLuint * renderbuffers);
+/* category GL_OES_framebuffer_object */
+GLAPI void GLAPIENTRY glGenerateMipmapOES(GLenum target);
+/* category GL_OES_framebuffer_object */
+GLAPI void GLAPIENTRY glGetFramebufferAttachmentParameterivOES(GLenum target, GLenum attachment, GLenum pname, GLint * params);
+/* category GL_OES_framebuffer_object */
+GLAPI void GLAPIENTRY glGetRenderbufferParameterivOES(GLenum target, GLenum pname, GLint * params);
+/* category GL_OES_framebuffer_object */
+GLAPI GLboolean GLAPIENTRY glIsFramebufferOES(GLuint framebuffer);
+/* category GL_OES_framebuffer_object */
+GLAPI GLboolean GLAPIENTRY glIsRenderbufferOES(GLuint renderbuffer);
+/* category GL_OES_framebuffer_object */
+GLAPI void GLAPIENTRY glRenderbufferStorageOES(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+/* category GL_OES_point_size_array */
+GLAPI void GLAPIENTRY glPointSizePointerOES(GLenum type, GLsizei stride, const GLvoid * pointer);
+/* category GL_OES_query_matrix */
+GLAPI GLbitfield GLAPIENTRY glQueryMatrixxOES(GLfixed * mantissa, GLint * exponent);
+/* category GL_OES_texture_cube_map */
+GLAPI void GLAPIENTRY glGetTexGenxvOES(GLenum coord, GLenum pname, GLfixed * params);
+/* category GL_OES_texture_cube_map */
+GLAPI void GLAPIENTRY glTexGenxOES(GLenum coord, GLenum pname, GLint param);
+/* category GL_OES_texture_cube_map */
+GLAPI void GLAPIENTRY glTexGenxvOES(GLenum coord, GLenum pname, const GLfixed * params);
+/* category GL_OES_EGL_image */
+GLAPI void GLAPIENTRY glEGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image);
+/* category GL_OES_EGL_image */
+GLAPI void GLAPIENTRY glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image);
+/* category GL_OES_mapbuffer */
+GLAPI void GLAPIENTRY glGetBufferPointervOES(GLenum target, GLenum pname, GLvoid ** params);
+/* category GL_OES_mapbuffer */
+GLAPI GLvoid * GLAPIENTRY glMapBufferOES(GLenum target, GLenum access);
+/* category GL_OES_mapbuffer */
+GLAPI GLboolean GLAPIENTRY glUnmapBufferOES(GLenum target);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glAlphaFuncx(GLenum func, GLclampx ref);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glAlphaFuncxOES(GLenum func, GLclampx ref);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glClearColorx(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glClearColorxOES(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glClearDepthf(GLclampf depth);
+/* category GL_OES_single_precision */
+GLAPI void GLAPIENTRY glClearDepthfOES(GLclampf depth);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glClearDepthx(GLclampx depth);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glClearDepthxOES(GLclampx depth);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glColor4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glColor4xOES(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glDepthRangef(GLclampf zNear, GLclampf zFar);
+/* category GL_OES_single_precision */
+GLAPI void GLAPIENTRY glDepthRangefOES(GLclampf zNear, GLclampf zFar);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glDepthRangex(GLclampx zNear, GLclampx zFar);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glDepthRangexOES(GLclampx zNear, GLclampx zFar);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glFogx(GLenum pname, GLfixed param);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glFogxOES(GLenum pname, GLfixed param);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glFogxv(GLenum pname, const GLfixed * params);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glFogxvOES(GLenum pname, const GLfixed * params);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glFrustumf(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
+/* category GL_OES_single_precision */
+GLAPI void GLAPIENTRY glFrustumfOES(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glFrustumx(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glFrustumxOES(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glLightModelx(GLenum pname, GLfixed param);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glLightModelxOES(GLenum pname, GLfixed param);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glLightModelxv(GLenum pname, const GLfixed * params);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glLightModelxvOES(GLenum pname, const GLfixed * params);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glLightx(GLenum light, GLenum pname, GLfixed param);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glLightxOES(GLenum light, GLenum pname, GLfixed param);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glLightxv(GLenum light, GLenum pname, const GLfixed * params);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glLightxvOES(GLenum light, GLenum pname, const GLfixed * params);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glLineWidthx(GLfixed width);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glLineWidthxOES(GLfixed width);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glLoadMatrixx(const GLfixed * m);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glLoadMatrixxOES(const GLfixed * m);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glMaterialx(GLenum face, GLenum pname, GLfixed param);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glMaterialxOES(GLenum face, GLenum pname, GLfixed param);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glMaterialxv(GLenum face, GLenum pname, const GLfixed * params);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glMaterialxvOES(GLenum face, GLenum pname, const GLfixed * params);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glMultMatrixx(const GLfixed * m);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glMultMatrixxOES(const GLfixed * m);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glMultiTexCoord4x(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glMultiTexCoord4xOES(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glNormal3x(GLfixed nx, GLfixed ny, GLfixed nz);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glNormal3xOES(GLfixed nx, GLfixed ny, GLfixed nz);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glOrthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
+/* category GL_OES_single_precision */
+GLAPI void GLAPIENTRY glOrthofOES(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glOrthox(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glOrthoxOES(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glPointSizex(GLfixed size);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glPointSizexOES(GLfixed size);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glPolygonOffsetx(GLfixed factor, GLfixed units);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glPolygonOffsetxOES(GLfixed factor, GLfixed units);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glRotatex(GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glRotatexOES(GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glSampleCoveragex(GLclampx value, GLboolean invert);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glSampleCoveragexOES(GLclampx value, GLboolean invert);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glScalex(GLfixed x, GLfixed y, GLfixed z);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glScalexOES(GLfixed x, GLfixed y, GLfixed z);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glTexEnvx(GLenum target, GLenum pname, GLfixed param);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glTexEnvxOES(GLenum target, GLenum pname, GLfixed param);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glTexEnvxv(GLenum target, GLenum pname, const GLfixed * params);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glTexEnvxvOES(GLenum target, GLenum pname, const GLfixed * params);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glTexParameterx(GLenum target, GLenum pname, GLfixed param);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glTexParameterxOES(GLenum target, GLenum pname, GLfixed param);
+/* category es1.0 */
+GLAPI void GLAPIENTRY glTranslatex(GLfixed x, GLfixed y, GLfixed z);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glTranslatexOES(GLfixed x, GLfixed y, GLfixed z);
+/* category es1.1 */
+GLAPI void GLAPIENTRY glClipPlanef(GLenum plane, const GLfloat * equation);
+/* category GL_OES_single_precision */
+GLAPI void GLAPIENTRY glClipPlanefOES(GLenum plane, const GLfloat * equation);
+/* category es1.1 */
+GLAPI void GLAPIENTRY glClipPlanex(GLenum plane, const GLfixed * equation);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glClipPlanexOES(GLenum plane, const GLfixed * equation);
+/* category es1.1 */
+GLAPI void GLAPIENTRY glGetClipPlanef(GLenum plane, GLfloat * equation);
+/* category GL_OES_single_precision */
+GLAPI void GLAPIENTRY glGetClipPlanefOES(GLenum plane, GLfloat * equation);
+/* category es1.1 */
+GLAPI void GLAPIENTRY glGetClipPlanex(GLenum plane, GLfixed * equation);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glGetClipPlanexOES(GLenum plane, GLfixed * equation);
+/* category es1.1 */
+GLAPI void GLAPIENTRY glGetFixedv(GLenum pname, GLfixed * params);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glGetFixedvOES(GLenum pname, GLfixed * params);
+/* category es1.1 */
+GLAPI void GLAPIENTRY glGetLightxv(GLenum light, GLenum pname, GLfixed * params);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glGetLightxvOES(GLenum light, GLenum pname, GLfixed * params);
+/* category es1.1 */
+GLAPI void GLAPIENTRY glGetMaterialxv(GLenum face, GLenum pname, GLfixed * params);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glGetMaterialxvOES(GLenum face, GLenum pname, GLfixed * params);
+/* category es1.1 */
+GLAPI void GLAPIENTRY glGetTexEnvxv(GLenum target, GLenum pname, GLfixed * params);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glGetTexEnvxvOES(GLenum target, GLenum pname, GLfixed * params);
+/* category es1.1 */
+GLAPI void GLAPIENTRY glGetTexParameterxv(GLenum target, GLenum pname, GLfixed * params);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glGetTexParameterxvOES(GLenum target, GLenum pname, GLfixed * params);
+/* category es1.1 */
+GLAPI void GLAPIENTRY glPointParameterx(GLenum pname, GLfixed param);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glPointParameterxOES(GLenum pname, GLfixed param);
+/* category es1.1 */
+GLAPI void GLAPIENTRY glPointParameterxv(GLenum pname, const GLfixed * params);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glPointParameterxvOES(GLenum pname, const GLfixed * params);
+/* category es1.1 */
+GLAPI void GLAPIENTRY glTexParameterxv(GLenum target, GLenum pname, const GLfixed * params);
+/* category GL_OES_fixed_point */
+GLAPI void GLAPIENTRY glTexParameterxvOES(GLenum target, GLenum pname, const GLfixed * params);
+
+static const char gl_string_table[] =
+ "glNewList\0"
+ "glEndList\0"
+ "glCallList\0"
+ "glCallLists\0"
+ "glDeleteLists\0"
+ "glGenLists\0"
+ "glListBase\0"
+ "glBegin\0"
+ "glBitmap\0"
+ "glColor3b\0"
+ "glColor3bv\0"
+ "glColor3d\0"
+ "glColor3dv\0"
+ "glColor3f\0"
+ "glColor3fv\0"
+ "glColor3i\0"
+ "glColor3iv\0"
+ "glColor3s\0"
+ "glColor3sv\0"
+ "glColor3ub\0"
+ "glColor3ubv\0"
+ "glColor3ui\0"
+ "glColor3uiv\0"
+ "glColor3us\0"
+ "glColor3usv\0"
+ "glColor4b\0"
+ "glColor4bv\0"
+ "glColor4d\0"
+ "glColor4dv\0"
+ "glColor4f\0"
+ "glColor4fv\0"
+ "glColor4i\0"
+ "glColor4iv\0"
+ "glColor4s\0"
+ "glColor4sv\0"
+ "glColor4ub\0"
+ "glColor4ubv\0"
+ "glColor4ui\0"
+ "glColor4uiv\0"
+ "glColor4us\0"
+ "glColor4usv\0"
+ "glEdgeFlag\0"
+ "glEdgeFlagv\0"
+ "glEnd\0"
+ "glIndexd\0"
+ "glIndexdv\0"
+ "glIndexf\0"
+ "glIndexfv\0"
+ "glIndexi\0"
+ "glIndexiv\0"
+ "glIndexs\0"
+ "glIndexsv\0"
+ "glNormal3b\0"
+ "glNormal3bv\0"
+ "glNormal3d\0"
+ "glNormal3dv\0"
+ "glNormal3f\0"
+ "glNormal3fv\0"
+ "glNormal3i\0"
+ "glNormal3iv\0"
+ "glNormal3s\0"
+ "glNormal3sv\0"
+ "glRasterPos2d\0"
+ "glRasterPos2dv\0"
+ "glRasterPos2f\0"
+ "glRasterPos2fv\0"
+ "glRasterPos2i\0"
+ "glRasterPos2iv\0"
+ "glRasterPos2s\0"
+ "glRasterPos2sv\0"
+ "glRasterPos3d\0"
+ "glRasterPos3dv\0"
+ "glRasterPos3f\0"
+ "glRasterPos3fv\0"
+ "glRasterPos3i\0"
+ "glRasterPos3iv\0"
+ "glRasterPos3s\0"
+ "glRasterPos3sv\0"
+ "glRasterPos4d\0"
+ "glRasterPos4dv\0"
+ "glRasterPos4f\0"
+ "glRasterPos4fv\0"
+ "glRasterPos4i\0"
+ "glRasterPos4iv\0"
+ "glRasterPos4s\0"
+ "glRasterPos4sv\0"
+ "glRectd\0"
+ "glRectdv\0"
+ "glRectf\0"
+ "glRectfv\0"
+ "glRecti\0"
+ "glRectiv\0"
+ "glRects\0"
+ "glRectsv\0"
+ "glTexCoord1d\0"
+ "glTexCoord1dv\0"
+ "glTexCoord1f\0"
+ "glTexCoord1fv\0"
+ "glTexCoord1i\0"
+ "glTexCoord1iv\0"
+ "glTexCoord1s\0"
+ "glTexCoord1sv\0"
+ "glTexCoord2d\0"
+ "glTexCoord2dv\0"
+ "glTexCoord2f\0"
+ "glTexCoord2fv\0"
+ "glTexCoord2i\0"
+ "glTexCoord2iv\0"
+ "glTexCoord2s\0"
+ "glTexCoord2sv\0"
+ "glTexCoord3d\0"
+ "glTexCoord3dv\0"
+ "glTexCoord3f\0"
+ "glTexCoord3fv\0"
+ "glTexCoord3i\0"
+ "glTexCoord3iv\0"
+ "glTexCoord3s\0"
+ "glTexCoord3sv\0"
+ "glTexCoord4d\0"
+ "glTexCoord4dv\0"
+ "glTexCoord4f\0"
+ "glTexCoord4fv\0"
+ "glTexCoord4i\0"
+ "glTexCoord4iv\0"
+ "glTexCoord4s\0"
+ "glTexCoord4sv\0"
+ "glVertex2d\0"
+ "glVertex2dv\0"
+ "glVertex2f\0"
+ "glVertex2fv\0"
+ "glVertex2i\0"
+ "glVertex2iv\0"
+ "glVertex2s\0"
+ "glVertex2sv\0"
+ "glVertex3d\0"
+ "glVertex3dv\0"
+ "glVertex3f\0"
+ "glVertex3fv\0"
+ "glVertex3i\0"
+ "glVertex3iv\0"
+ "glVertex3s\0"
+ "glVertex3sv\0"
+ "glVertex4d\0"
+ "glVertex4dv\0"
+ "glVertex4f\0"
+ "glVertex4fv\0"
+ "glVertex4i\0"
+ "glVertex4iv\0"
+ "glVertex4s\0"
+ "glVertex4sv\0"
+ "glClipPlane\0"
+ "glColorMaterial\0"
+ "glCullFace\0"
+ "glFogf\0"
+ "glFogfv\0"
+ "glFogi\0"
+ "glFogiv\0"
+ "glFrontFace\0"
+ "glHint\0"
+ "glLightf\0"
+ "glLightfv\0"
+ "glLighti\0"
+ "glLightiv\0"
+ "glLightModelf\0"
+ "glLightModelfv\0"
+ "glLightModeli\0"
+ "glLightModeliv\0"
+ "glLineStipple\0"
+ "glLineWidth\0"
+ "glMaterialf\0"
+ "glMaterialfv\0"
+ "glMateriali\0"
+ "glMaterialiv\0"
+ "glPointSize\0"
+ "glPolygonMode\0"
+ "glPolygonStipple\0"
+ "glScissor\0"
+ "glShadeModel\0"
+ "glTexParameterf\0"
+ "glTexParameterfv\0"
+ "glTexParameteri\0"
+ "glTexParameteriv\0"
+ "glTexImage1D\0"
+ "glTexImage2D\0"
+ "glTexEnvf\0"
+ "glTexEnvfv\0"
+ "glTexEnvi\0"
+ "glTexEnviv\0"
+ "glTexGend\0"
+ "glTexGendv\0"
+ "glTexGenfOES\0"
+ "glTexGenfvOES\0"
+ "glTexGeniOES\0"
+ "glTexGenivOES\0"
+ "glFeedbackBuffer\0"
+ "glSelectBuffer\0"
+ "glRenderMode\0"
+ "glInitNames\0"
+ "glLoadName\0"
+ "glPassThrough\0"
+ "glPopName\0"
+ "glPushName\0"
+ "glDrawBuffer\0"
+ "glClear\0"
+ "glClearAccum\0"
+ "glClearIndex\0"
+ "glClearColor\0"
+ "glClearStencil\0"
+ "glClearDepth\0"
+ "glStencilMask\0"
+ "glColorMask\0"
+ "glDepthMask\0"
+ "glIndexMask\0"
+ "glAccum\0"
+ "glDisable\0"
+ "glEnable\0"
+ "glFinish\0"
+ "glFlush\0"
+ "glPopAttrib\0"
+ "glPushAttrib\0"
+ "glMap1d\0"
+ "glMap1f\0"
+ "glMap2d\0"
+ "glMap2f\0"
+ "glMapGrid1d\0"
+ "glMapGrid1f\0"
+ "glMapGrid2d\0"
+ "glMapGrid2f\0"
+ "glEvalCoord1d\0"
+ "glEvalCoord1dv\0"
+ "glEvalCoord1f\0"
+ "glEvalCoord1fv\0"
+ "glEvalCoord2d\0"
+ "glEvalCoord2dv\0"
+ "glEvalCoord2f\0"
+ "glEvalCoord2fv\0"
+ "glEvalMesh1\0"
+ "glEvalPoint1\0"
+ "glEvalMesh2\0"
+ "glEvalPoint2\0"
+ "glAlphaFunc\0"
+ "glBlendFunc\0"
+ "glLogicOp\0"
+ "glStencilFunc\0"
+ "glStencilOp\0"
+ "glDepthFunc\0"
+ "glPixelZoom\0"
+ "glPixelTransferf\0"
+ "glPixelTransferi\0"
+ "glPixelStoref\0"
+ "glPixelStorei\0"
+ "glPixelMapfv\0"
+ "glPixelMapuiv\0"
+ "glPixelMapusv\0"
+ "glReadBuffer\0"
+ "glCopyPixels\0"
+ "glReadPixels\0"
+ "glDrawPixels\0"
+ "glGetBooleanv\0"
+ "glGetClipPlane\0"
+ "glGetDoublev\0"
+ "glGetError\0"
+ "glGetFloatv\0"
+ "glGetIntegerv\0"
+ "glGetLightfv\0"
+ "glGetLightiv\0"
+ "glGetMapdv\0"
+ "glGetMapfv\0"
+ "glGetMapiv\0"
+ "glGetMaterialfv\0"
+ "glGetMaterialiv\0"
+ "glGetPixelMapfv\0"
+ "glGetPixelMapuiv\0"
+ "glGetPixelMapusv\0"
+ "glGetPolygonStipple\0"
+ "glGetString\0"
+ "glGetTexEnvfv\0"
+ "glGetTexEnviv\0"
+ "glGetTexGendv\0"
+ "glGetTexGenfvOES\0"
+ "glGetTexGenivOES\0"
+ "glGetTexImage\0"
+ "glGetTexParameterfv\0"
+ "glGetTexParameteriv\0"
+ "glGetTexLevelParameterfv\0"
+ "glGetTexLevelParameteriv\0"
+ "glIsEnabled\0"
+ "glIsList\0"
+ "glDepthRange\0"
+ "glFrustum\0"
+ "glLoadIdentity\0"
+ "glLoadMatrixf\0"
+ "glLoadMatrixd\0"
+ "glMatrixMode\0"
+ "glMultMatrixf\0"
+ "glMultMatrixd\0"
+ "glOrtho\0"
+ "glPopMatrix\0"
+ "glPushMatrix\0"
+ "glRotated\0"
+ "glRotatef\0"
+ "glScaled\0"
+ "glScalef\0"
+ "glTranslated\0"
+ "glTranslatef\0"
+ "glViewport\0"
+ "glArrayElement\0"
+ "glBindTexture\0"
+ "glColorPointer\0"
+ "glDisableClientState\0"
+ "glDrawArrays\0"
+ "glDrawElements\0"
+ "glEdgeFlagPointer\0"
+ "glEnableClientState\0"
+ "glIndexPointer\0"
+ "glIndexub\0"
+ "glIndexubv\0"
+ "glInterleavedArrays\0"
+ "glNormalPointer\0"
+ "glPolygonOffset\0"
+ "glTexCoordPointer\0"
+ "glVertexPointer\0"
+ "glAreTexturesResident\0"
+ "glCopyTexImage1D\0"
+ "glCopyTexImage2D\0"
+ "glCopyTexSubImage1D\0"
+ "glCopyTexSubImage2D\0"
+ "glDeleteTextures\0"
+ "glGenTextures\0"
+ "glGetPointerv\0"
+ "glIsTexture\0"
+ "glPrioritizeTextures\0"
+ "glTexSubImage1D\0"
+ "glTexSubImage2D\0"
+ "glPopClientAttrib\0"
+ "glPushClientAttrib\0"
+ "glBlendColor\0"
+ "glBlendEquationOES\0"
+ "glDrawRangeElements\0"
+ "glColorTable\0"
+ "glColorTableParameterfv\0"
+ "glColorTableParameteriv\0"
+ "glCopyColorTable\0"
+ "glGetColorTable\0"
+ "glGetColorTableParameterfv\0"
+ "glGetColorTableParameteriv\0"
+ "glColorSubTable\0"
+ "glCopyColorSubTable\0"
+ "glConvolutionFilter1D\0"
+ "glConvolutionFilter2D\0"
+ "glConvolutionParameterf\0"
+ "glConvolutionParameterfv\0"
+ "glConvolutionParameteri\0"
+ "glConvolutionParameteriv\0"
+ "glCopyConvolutionFilter1D\0"
+ "glCopyConvolutionFilter2D\0"
+ "glGetConvolutionFilter\0"
+ "glGetConvolutionParameterfv\0"
+ "glGetConvolutionParameteriv\0"
+ "glGetSeparableFilter\0"
+ "glSeparableFilter2D\0"
+ "glGetHistogram\0"
+ "glGetHistogramParameterfv\0"
+ "glGetHistogramParameteriv\0"
+ "glGetMinmax\0"
+ "glGetMinmaxParameterfv\0"
+ "glGetMinmaxParameteriv\0"
+ "glHistogram\0"
+ "glMinmax\0"
+ "glResetHistogram\0"
+ "glResetMinmax\0"
+ "glTexImage3D\0"
+ "glTexSubImage3D\0"
+ "glCopyTexSubImage3D\0"
+ "glActiveTexture\0"
+ "glClientActiveTexture\0"
+ "glMultiTexCoord1dARB\0"
+ "glMultiTexCoord1dvARB\0"
+ "glMultiTexCoord1fARB\0"
+ "glMultiTexCoord1fvARB\0"
+ "glMultiTexCoord1iARB\0"
+ "glMultiTexCoord1ivARB\0"
+ "glMultiTexCoord1sARB\0"
+ "glMultiTexCoord1svARB\0"
+ "glMultiTexCoord2dARB\0"
+ "glMultiTexCoord2dvARB\0"
+ "glMultiTexCoord2fARB\0"
+ "glMultiTexCoord2fvARB\0"
+ "glMultiTexCoord2iARB\0"
+ "glMultiTexCoord2ivARB\0"
+ "glMultiTexCoord2sARB\0"
+ "glMultiTexCoord2svARB\0"
+ "glMultiTexCoord3dARB\0"
+ "glMultiTexCoord3dvARB\0"
+ "glMultiTexCoord3fARB\0"
+ "glMultiTexCoord3fvARB\0"
+ "glMultiTexCoord3iARB\0"
+ "glMultiTexCoord3ivARB\0"
+ "glMultiTexCoord3sARB\0"
+ "glMultiTexCoord3svARB\0"
+ "glMultiTexCoord4dARB\0"
+ "glMultiTexCoord4dvARB\0"
+ "glMultiTexCoord4f\0"
+ "glMultiTexCoord4fvARB\0"
+ "glMultiTexCoord4iARB\0"
+ "glMultiTexCoord4ivARB\0"
+ "glMultiTexCoord4sARB\0"
+ "glMultiTexCoord4svARB\0"
+ "glBlendEquationSeparateOES\0"
+ "glBlendFuncSeparateOES\0"
+ "glDrawTexfOES\0"
+ "glDrawTexfvOES\0"
+ "glDrawTexiOES\0"
+ "glDrawTexivOES\0"
+ "glDrawTexsOES\0"
+ "glDrawTexsvOES\0"
+ "glDrawTexxOES\0"
+ "glDrawTexxvOES\0"
+ "glBindFramebufferOES\0"
+ "glBindRenderbufferOES\0"
+ "glCheckFramebufferStatusOES\0"
+ "glDeleteFramebuffersOES\0"
+ "glDeleteRenderbuffersOES\0"
+ "glFramebufferRenderbufferOES\0"
+ "glFramebufferTexture2DOES\0"
+ "glGenFramebuffersOES\0"
+ "glGenRenderbuffersOES\0"
+ "glGenerateMipmapOES\0"
+ "glGetFramebufferAttachmentParameterivOES\0"
+ "glGetRenderbufferParameterivOES\0"
+ "glIsFramebufferOES\0"
+ "glIsRenderbufferOES\0"
+ "glRenderbufferStorageOES\0"
+ "glPointSizePointerOES\0"
+ "glQueryMatrixxOES\0"
+ "glGetTexGenxvOES\0"
+ "glTexGenxOES\0"
+ "glTexGenxvOES\0"
+ "glEGLImageTargetRenderbufferStorageOES\0"
+ "glEGLImageTargetTexture2DOES\0"
+ "glGetBufferPointervOES\0"
+ "glMapBufferOES\0"
+ "glUnmapBufferOES\0"
+ "glBindVertexArrayAPPLE\0"
+ "glDeleteVertexArraysAPPLE\0"
+ "glGenVertexArraysAPPLE\0"
+ "glIsVertexArrayAPPLE\0"
+ "glCompressedTexImage2D\0"
+ "glCompressedTexSubImage2D\0"
+ "glSampleCoverage\0"
+ "glBindBuffer\0"
+ "glBufferData\0"
+ "glBufferSubData\0"
+ "glDeleteBuffers\0"
+ "glGenBuffers\0"
+ "glGetBufferParameteriv\0"
+ "glIsBuffer\0"
+ "glAlphaFuncx\0"
+ "glClearColorx\0"
+ "glClearDepthf\0"
+ "glClearDepthx\0"
+ "glColor4x\0"
+ "glDepthRangef\0"
+ "glDepthRangex\0"
+ "glFogx\0"
+ "glFogxv\0"
+ "glFrustumf\0"
+ "glFrustumx\0"
+ "glLightModelx\0"
+ "glLightModelxv\0"
+ "glLightx\0"
+ "glLightxv\0"
+ "glLineWidthx\0"
+ "glLoadMatrixx\0"
+ "glMaterialx\0"
+ "glMaterialxv\0"
+ "glMultMatrixx\0"
+ "glMultiTexCoord4x\0"
+ "glNormal3x\0"
+ "glOrthof\0"
+ "glOrthox\0"
+ "glPointSizex\0"
+ "glPolygonOffsetx\0"
+ "glRotatex\0"
+ "glSampleCoveragex\0"
+ "glScalex\0"
+ "glTexEnvx\0"
+ "glTexEnvxv\0"
+ "glTexParameterx\0"
+ "glTranslatex\0"
+ "glClipPlanef\0"
+ "glClipPlanex\0"
+ "glGetClipPlanef\0"
+ "glGetClipPlanex\0"
+ "glGetFixedv\0"
+ "glGetLightxv\0"
+ "glGetMaterialxv\0"
+ "glGetTexEnvxv\0"
+ "glGetTexParameterxv\0"
+ "glPointParameterx\0"
+ "glPointParameterxv\0"
+ "glTexParameterxv\0"
+ "glPointParameterf\0"
+ "glPointParameterfv\0"
+ "glTexGenf\0"
+ "glTexGenfv\0"
+ "glTexGeni\0"
+ "glTexGeniv\0"
+ "glGetTexGenfv\0"
+ "glGetTexGeniv\0"
+ "glBlendEquation\0"
+ "glActiveTextureARB\0"
+ "glClientActiveTextureARB\0"
+ "glMultiTexCoord4fARB\0"
+ "glAlphaFuncxOES\0"
+ "glClearColorxOES\0"
+ "glClearDepthfOES\0"
+ "glClearDepthxOES\0"
+ "glColor4xOES\0"
+ "glDepthRangefOES\0"
+ "glDepthRangexOES\0"
+ "glFogxOES\0"
+ "glFogxvOES\0"
+ "glFrustumfOES\0"
+ "glFrustumxOES\0"
+ "glLightModelxOES\0"
+ "glLightModelxvOES\0"
+ "glLightxOES\0"
+ "glLightxvOES\0"
+ "glLineWidthxOES\0"
+ "glLoadMatrixxOES\0"
+ "glMaterialxOES\0"
+ "glMaterialxvOES\0"
+ "glMultMatrixxOES\0"
+ "glMultiTexCoord4xOES\0"
+ "glNormal3xOES\0"
+ "glOrthofOES\0"
+ "glOrthoxOES\0"
+ "glPointSizexOES\0"
+ "glPolygonOffsetxOES\0"
+ "glRotatexOES\0"
+ "glSampleCoveragexOES\0"
+ "glScalexOES\0"
+ "glTexEnvxOES\0"
+ "glTexEnvxvOES\0"
+ "glTexParameterxOES\0"
+ "glTranslatexOES\0"
+ "glClipPlanefOES\0"
+ "glClipPlanexOES\0"
+ "glGetClipPlanefOES\0"
+ "glGetClipPlanexOES\0"
+ "glGetFixedvOES\0"
+ "glGetLightxvOES\0"
+ "glGetMaterialxvOES\0"
+ "glGetTexEnvxvOES\0"
+ "glGetTexParameterxvOES\0"
+ "glPointParameterxOES\0"
+ "glPointParameterxvOES\0"
+ "glTexParameterxvOES\0"
+ ;
+
+
+#ifdef USE_MGL_NAMESPACE
+#define gl_dispatch_stub_0 mgl_dispatch_stub_0
+#define gl_dispatch_stub_1 mgl_dispatch_stub_1
+#define gl_dispatch_stub_2 mgl_dispatch_stub_2
+#define gl_dispatch_stub_3 mgl_dispatch_stub_3
+#define gl_dispatch_stub_4 mgl_dispatch_stub_4
+#define gl_dispatch_stub_5 mgl_dispatch_stub_5
+#define gl_dispatch_stub_6 mgl_dispatch_stub_6
+#define gl_dispatch_stub_7 mgl_dispatch_stub_7
+#define gl_dispatch_stub_8 mgl_dispatch_stub_8
+#define gl_dispatch_stub_9 mgl_dispatch_stub_9
+#define gl_dispatch_stub_10 mgl_dispatch_stub_10
+#define gl_dispatch_stub_11 mgl_dispatch_stub_11
+#define gl_dispatch_stub_12 mgl_dispatch_stub_12
+#define gl_dispatch_stub_13 mgl_dispatch_stub_13
+#define gl_dispatch_stub_14 mgl_dispatch_stub_14
+#define gl_dispatch_stub_15 mgl_dispatch_stub_15
+#define gl_dispatch_stub_16 mgl_dispatch_stub_16
+#define gl_dispatch_stub_17 mgl_dispatch_stub_17
+#define gl_dispatch_stub_18 mgl_dispatch_stub_18
+#define gl_dispatch_stub_19 mgl_dispatch_stub_19
+#define gl_dispatch_stub_20 mgl_dispatch_stub_20
+#define gl_dispatch_stub_21 mgl_dispatch_stub_21
+#define gl_dispatch_stub_22 mgl_dispatch_stub_22
+#define gl_dispatch_stub_23 mgl_dispatch_stub_23
+#define gl_dispatch_stub_24 mgl_dispatch_stub_24
+#define gl_dispatch_stub_25 mgl_dispatch_stub_25
+#define gl_dispatch_stub_26 mgl_dispatch_stub_26
+#define gl_dispatch_stub_27 mgl_dispatch_stub_27
+#define gl_dispatch_stub_28 mgl_dispatch_stub_28
+#define gl_dispatch_stub_30 mgl_dispatch_stub_30
+#define gl_dispatch_stub_31 mgl_dispatch_stub_31
+#define gl_dispatch_stub_32 mgl_dispatch_stub_32
+#define gl_dispatch_stub_33 mgl_dispatch_stub_33
+#define gl_dispatch_stub_34 mgl_dispatch_stub_34
+#define gl_dispatch_stub_36 mgl_dispatch_stub_36
+#define gl_dispatch_stub_37 mgl_dispatch_stub_37
+#define gl_dispatch_stub_38 mgl_dispatch_stub_38
+#define gl_dispatch_stub_39 mgl_dispatch_stub_39
+#define gl_dispatch_stub_40 mgl_dispatch_stub_40
+#define gl_dispatch_stub_41 mgl_dispatch_stub_41
+#define gl_dispatch_stub_42 mgl_dispatch_stub_42
+#define gl_dispatch_stub_43 mgl_dispatch_stub_43
+#define gl_dispatch_stub_44 mgl_dispatch_stub_44
+#define gl_dispatch_stub_45 mgl_dispatch_stub_45
+#define gl_dispatch_stub_46 mgl_dispatch_stub_46
+#define gl_dispatch_stub_47 mgl_dispatch_stub_47
+#define gl_dispatch_stub_48 mgl_dispatch_stub_48
+#define gl_dispatch_stub_49 mgl_dispatch_stub_49
+#define gl_dispatch_stub_50 mgl_dispatch_stub_50
+#define gl_dispatch_stub_51 mgl_dispatch_stub_51
+#define gl_dispatch_stub_52 mgl_dispatch_stub_52
+#define gl_dispatch_stub_53 mgl_dispatch_stub_53
+#define gl_dispatch_stub_54 mgl_dispatch_stub_54
+#define gl_dispatch_stub_55 mgl_dispatch_stub_55
+#define gl_dispatch_stub_57 mgl_dispatch_stub_57
+#define gl_dispatch_stub_58 mgl_dispatch_stub_58
+#define gl_dispatch_stub_59 mgl_dispatch_stub_59
+#define gl_dispatch_stub_60 mgl_dispatch_stub_60
+#define gl_dispatch_stub_61 mgl_dispatch_stub_61
+#define gl_dispatch_stub_62 mgl_dispatch_stub_62
+#define gl_dispatch_stub_63 mgl_dispatch_stub_63
+#define gl_dispatch_stub_64 mgl_dispatch_stub_64
+#define gl_dispatch_stub_65 mgl_dispatch_stub_65
+#define gl_dispatch_stub_66 mgl_dispatch_stub_66
+#define gl_dispatch_stub_67 mgl_dispatch_stub_67
+#define gl_dispatch_stub_68 mgl_dispatch_stub_68
+#define gl_dispatch_stub_69 mgl_dispatch_stub_69
+#define gl_dispatch_stub_70 mgl_dispatch_stub_70
+#define gl_dispatch_stub_71 mgl_dispatch_stub_71
+#define gl_dispatch_stub_72 mgl_dispatch_stub_72
+#define gl_dispatch_stub_73 mgl_dispatch_stub_73
+#define gl_dispatch_stub_74 mgl_dispatch_stub_74
+#define gl_dispatch_stub_75 mgl_dispatch_stub_75
+#define gl_dispatch_stub_76 mgl_dispatch_stub_76
+#define gl_dispatch_stub_77 mgl_dispatch_stub_77
+#define gl_dispatch_stub_78 mgl_dispatch_stub_78
+#define gl_dispatch_stub_79 mgl_dispatch_stub_79
+#define gl_dispatch_stub_80 mgl_dispatch_stub_80
+#define gl_dispatch_stub_81 mgl_dispatch_stub_81
+#define gl_dispatch_stub_82 mgl_dispatch_stub_82
+#define gl_dispatch_stub_83 mgl_dispatch_stub_83
+#define gl_dispatch_stub_84 mgl_dispatch_stub_84
+#define gl_dispatch_stub_85 mgl_dispatch_stub_85
+#define gl_dispatch_stub_86 mgl_dispatch_stub_86
+#define gl_dispatch_stub_87 mgl_dispatch_stub_87
+#define gl_dispatch_stub_88 mgl_dispatch_stub_88
+#define gl_dispatch_stub_89 mgl_dispatch_stub_89
+#define gl_dispatch_stub_90 mgl_dispatch_stub_90
+#define gl_dispatch_stub_91 mgl_dispatch_stub_91
+#define gl_dispatch_stub_92 mgl_dispatch_stub_92
+#define gl_dispatch_stub_93 mgl_dispatch_stub_93
+#define gl_dispatch_stub_94 mgl_dispatch_stub_94
+#define gl_dispatch_stub_95 mgl_dispatch_stub_95
+#define gl_dispatch_stub_96 mgl_dispatch_stub_96
+#define gl_dispatch_stub_97 mgl_dispatch_stub_97
+#define gl_dispatch_stub_98 mgl_dispatch_stub_98
+#define gl_dispatch_stub_99 mgl_dispatch_stub_99
+#define gl_dispatch_stub_100 mgl_dispatch_stub_100
+#define gl_dispatch_stub_101 mgl_dispatch_stub_101
+#define gl_dispatch_stub_102 mgl_dispatch_stub_102
+#define gl_dispatch_stub_103 mgl_dispatch_stub_103
+#define gl_dispatch_stub_104 mgl_dispatch_stub_104
+#define gl_dispatch_stub_105 mgl_dispatch_stub_105
+#define gl_dispatch_stub_106 mgl_dispatch_stub_106
+#define gl_dispatch_stub_107 mgl_dispatch_stub_107
+#define gl_dispatch_stub_108 mgl_dispatch_stub_108
+#define gl_dispatch_stub_109 mgl_dispatch_stub_109
+#define gl_dispatch_stub_110 mgl_dispatch_stub_110
+#define gl_dispatch_stub_111 mgl_dispatch_stub_111
+#define gl_dispatch_stub_112 mgl_dispatch_stub_112
+#define gl_dispatch_stub_113 mgl_dispatch_stub_113
+#define gl_dispatch_stub_114 mgl_dispatch_stub_114
+#define gl_dispatch_stub_115 mgl_dispatch_stub_115
+#define gl_dispatch_stub_116 mgl_dispatch_stub_116
+#define gl_dispatch_stub_117 mgl_dispatch_stub_117
+#define gl_dispatch_stub_118 mgl_dispatch_stub_118
+#define gl_dispatch_stub_119 mgl_dispatch_stub_119
+#define gl_dispatch_stub_120 mgl_dispatch_stub_120
+#define gl_dispatch_stub_121 mgl_dispatch_stub_121
+#define gl_dispatch_stub_122 mgl_dispatch_stub_122
+#define gl_dispatch_stub_123 mgl_dispatch_stub_123
+#define gl_dispatch_stub_124 mgl_dispatch_stub_124
+#define gl_dispatch_stub_125 mgl_dispatch_stub_125
+#define gl_dispatch_stub_126 mgl_dispatch_stub_126
+#define gl_dispatch_stub_127 mgl_dispatch_stub_127
+#define gl_dispatch_stub_128 mgl_dispatch_stub_128
+#define gl_dispatch_stub_129 mgl_dispatch_stub_129
+#define gl_dispatch_stub_130 mgl_dispatch_stub_130
+#define gl_dispatch_stub_131 mgl_dispatch_stub_131
+#define gl_dispatch_stub_132 mgl_dispatch_stub_132
+#define gl_dispatch_stub_133 mgl_dispatch_stub_133
+#define gl_dispatch_stub_134 mgl_dispatch_stub_134
+#define gl_dispatch_stub_135 mgl_dispatch_stub_135
+#define gl_dispatch_stub_136 mgl_dispatch_stub_136
+#define gl_dispatch_stub_137 mgl_dispatch_stub_137
+#define gl_dispatch_stub_138 mgl_dispatch_stub_138
+#define gl_dispatch_stub_139 mgl_dispatch_stub_139
+#define gl_dispatch_stub_140 mgl_dispatch_stub_140
+#define gl_dispatch_stub_141 mgl_dispatch_stub_141
+#define gl_dispatch_stub_142 mgl_dispatch_stub_142
+#define gl_dispatch_stub_143 mgl_dispatch_stub_143
+#define gl_dispatch_stub_144 mgl_dispatch_stub_144
+#define gl_dispatch_stub_145 mgl_dispatch_stub_145
+#define gl_dispatch_stub_146 mgl_dispatch_stub_146
+#define gl_dispatch_stub_147 mgl_dispatch_stub_147
+#define gl_dispatch_stub_148 mgl_dispatch_stub_148
+#define gl_dispatch_stub_149 mgl_dispatch_stub_149
+#define gl_dispatch_stub_150 mgl_dispatch_stub_150
+#define gl_dispatch_stub_151 mgl_dispatch_stub_151
+#define gl_dispatch_stub_155 mgl_dispatch_stub_155
+#define gl_dispatch_stub_156 mgl_dispatch_stub_156
+#define gl_dispatch_stub_161 mgl_dispatch_stub_161
+#define gl_dispatch_stub_162 mgl_dispatch_stub_162
+#define gl_dispatch_stub_165 mgl_dispatch_stub_165
+#define gl_dispatch_stub_166 mgl_dispatch_stub_166
+#define gl_dispatch_stub_167 mgl_dispatch_stub_167
+#define gl_dispatch_stub_171 mgl_dispatch_stub_171
+#define gl_dispatch_stub_172 mgl_dispatch_stub_172
+#define gl_dispatch_stub_174 mgl_dispatch_stub_174
+#define gl_dispatch_stub_175 mgl_dispatch_stub_175
+#define gl_dispatch_stub_182 mgl_dispatch_stub_182
+#define gl_dispatch_stub_188 mgl_dispatch_stub_188
+#define gl_dispatch_stub_189 mgl_dispatch_stub_189
+#define gl_dispatch_stub_194 mgl_dispatch_stub_194
+#define gl_dispatch_stub_195 mgl_dispatch_stub_195
+#define gl_dispatch_stub_196 mgl_dispatch_stub_196
+#define gl_dispatch_stub_197 mgl_dispatch_stub_197
+#define gl_dispatch_stub_198 mgl_dispatch_stub_198
+#define gl_dispatch_stub_199 mgl_dispatch_stub_199
+#define gl_dispatch_stub_200 mgl_dispatch_stub_200
+#define gl_dispatch_stub_201 mgl_dispatch_stub_201
+#define gl_dispatch_stub_202 mgl_dispatch_stub_202
+#define gl_dispatch_stub_204 mgl_dispatch_stub_204
+#define gl_dispatch_stub_205 mgl_dispatch_stub_205
+#define gl_dispatch_stub_208 mgl_dispatch_stub_208
+#define gl_dispatch_stub_212 mgl_dispatch_stub_212
+#define gl_dispatch_stub_213 mgl_dispatch_stub_213
+#define gl_dispatch_stub_218 mgl_dispatch_stub_218
+#define gl_dispatch_stub_219 mgl_dispatch_stub_219
+#define gl_dispatch_stub_220 mgl_dispatch_stub_220
+#define gl_dispatch_stub_221 mgl_dispatch_stub_221
+#define gl_dispatch_stub_222 mgl_dispatch_stub_222
+#define gl_dispatch_stub_223 mgl_dispatch_stub_223
+#define gl_dispatch_stub_224 mgl_dispatch_stub_224
+#define gl_dispatch_stub_225 mgl_dispatch_stub_225
+#define gl_dispatch_stub_226 mgl_dispatch_stub_226
+#define gl_dispatch_stub_227 mgl_dispatch_stub_227
+#define gl_dispatch_stub_228 mgl_dispatch_stub_228
+#define gl_dispatch_stub_229 mgl_dispatch_stub_229
+#define gl_dispatch_stub_230 mgl_dispatch_stub_230
+#define gl_dispatch_stub_231 mgl_dispatch_stub_231
+#define gl_dispatch_stub_232 mgl_dispatch_stub_232
+#define gl_dispatch_stub_233 mgl_dispatch_stub_233
+#define gl_dispatch_stub_234 mgl_dispatch_stub_234
+#define gl_dispatch_stub_235 mgl_dispatch_stub_235
+#define gl_dispatch_stub_236 mgl_dispatch_stub_236
+#define gl_dispatch_stub_237 mgl_dispatch_stub_237
+#define gl_dispatch_stub_238 mgl_dispatch_stub_238
+#define gl_dispatch_stub_239 mgl_dispatch_stub_239
+#define gl_dispatch_stub_246 mgl_dispatch_stub_246
+#define gl_dispatch_stub_247 mgl_dispatch_stub_247
+#define gl_dispatch_stub_248 mgl_dispatch_stub_248
+#define gl_dispatch_stub_249 mgl_dispatch_stub_249
+#define gl_dispatch_stub_251 mgl_dispatch_stub_251
+#define gl_dispatch_stub_252 mgl_dispatch_stub_252
+#define gl_dispatch_stub_253 mgl_dispatch_stub_253
+#define gl_dispatch_stub_254 mgl_dispatch_stub_254
+#define gl_dispatch_stub_255 mgl_dispatch_stub_255
+#define gl_dispatch_stub_257 mgl_dispatch_stub_257
+#define gl_dispatch_stub_259 mgl_dispatch_stub_259
+#define gl_dispatch_stub_260 mgl_dispatch_stub_260
+#define gl_dispatch_stub_265 mgl_dispatch_stub_265
+#define gl_dispatch_stub_266 mgl_dispatch_stub_266
+#define gl_dispatch_stub_267 mgl_dispatch_stub_267
+#define gl_dispatch_stub_268 mgl_dispatch_stub_268
+#define gl_dispatch_stub_270 mgl_dispatch_stub_270
+#define gl_dispatch_stub_271 mgl_dispatch_stub_271
+#define gl_dispatch_stub_272 mgl_dispatch_stub_272
+#define gl_dispatch_stub_273 mgl_dispatch_stub_273
+#define gl_dispatch_stub_274 mgl_dispatch_stub_274
+#define gl_dispatch_stub_278 mgl_dispatch_stub_278
+#define gl_dispatch_stub_281 mgl_dispatch_stub_281
+#define gl_dispatch_stub_284 mgl_dispatch_stub_284
+#define gl_dispatch_stub_285 mgl_dispatch_stub_285
+#define gl_dispatch_stub_287 mgl_dispatch_stub_287
+#define gl_dispatch_stub_288 mgl_dispatch_stub_288
+#define gl_dispatch_stub_289 mgl_dispatch_stub_289
+#define gl_dispatch_stub_292 mgl_dispatch_stub_292
+#define gl_dispatch_stub_295 mgl_dispatch_stub_295
+#define gl_dispatch_stub_296 mgl_dispatch_stub_296
+#define gl_dispatch_stub_299 mgl_dispatch_stub_299
+#define gl_dispatch_stub_301 mgl_dispatch_stub_301
+#define gl_dispatch_stub_303 mgl_dispatch_stub_303
+#define gl_dispatch_stub_306 mgl_dispatch_stub_306
+#define gl_dispatch_stub_312 mgl_dispatch_stub_312
+#define gl_dispatch_stub_314 mgl_dispatch_stub_314
+#define gl_dispatch_stub_315 mgl_dispatch_stub_315
+#define gl_dispatch_stub_316 mgl_dispatch_stub_316
+#define gl_dispatch_stub_317 mgl_dispatch_stub_317
+#define gl_dispatch_stub_322 mgl_dispatch_stub_322
+#define gl_dispatch_stub_323 mgl_dispatch_stub_323
+#define gl_dispatch_stub_325 mgl_dispatch_stub_325
+#define gl_dispatch_stub_331 mgl_dispatch_stub_331
+#define gl_dispatch_stub_332 mgl_dispatch_stub_332
+#define gl_dispatch_stub_334 mgl_dispatch_stub_334
+#define gl_dispatch_stub_335 mgl_dispatch_stub_335
+#define gl_dispatch_stub_336 mgl_dispatch_stub_336
+#define gl_dispatch_stub_338 mgl_dispatch_stub_338
+#define gl_dispatch_stub_339 mgl_dispatch_stub_339
+#define gl_dispatch_stub_340 mgl_dispatch_stub_340
+#define gl_dispatch_stub_341 mgl_dispatch_stub_341
+#define gl_dispatch_stub_342 mgl_dispatch_stub_342
+#define gl_dispatch_stub_343 mgl_dispatch_stub_343
+#define gl_dispatch_stub_344 mgl_dispatch_stub_344
+#define gl_dispatch_stub_345 mgl_dispatch_stub_345
+#define gl_dispatch_stub_346 mgl_dispatch_stub_346
+#define gl_dispatch_stub_347 mgl_dispatch_stub_347
+#define gl_dispatch_stub_348 mgl_dispatch_stub_348
+#define gl_dispatch_stub_349 mgl_dispatch_stub_349
+#define gl_dispatch_stub_350 mgl_dispatch_stub_350
+#define gl_dispatch_stub_351 mgl_dispatch_stub_351
+#define gl_dispatch_stub_352 mgl_dispatch_stub_352
+#define gl_dispatch_stub_353 mgl_dispatch_stub_353
+#define gl_dispatch_stub_354 mgl_dispatch_stub_354
+#define gl_dispatch_stub_355 mgl_dispatch_stub_355
+#define gl_dispatch_stub_356 mgl_dispatch_stub_356
+#define gl_dispatch_stub_357 mgl_dispatch_stub_357
+#define gl_dispatch_stub_358 mgl_dispatch_stub_358
+#define gl_dispatch_stub_359 mgl_dispatch_stub_359
+#define gl_dispatch_stub_360 mgl_dispatch_stub_360
+#define gl_dispatch_stub_361 mgl_dispatch_stub_361
+#define gl_dispatch_stub_362 mgl_dispatch_stub_362
+#define gl_dispatch_stub_363 mgl_dispatch_stub_363
+#define gl_dispatch_stub_364 mgl_dispatch_stub_364
+#define gl_dispatch_stub_365 mgl_dispatch_stub_365
+#define gl_dispatch_stub_366 mgl_dispatch_stub_366
+#define gl_dispatch_stub_367 mgl_dispatch_stub_367
+#define gl_dispatch_stub_368 mgl_dispatch_stub_368
+#define gl_dispatch_stub_369 mgl_dispatch_stub_369
+#define gl_dispatch_stub_370 mgl_dispatch_stub_370
+#define gl_dispatch_stub_371 mgl_dispatch_stub_371
+#define gl_dispatch_stub_372 mgl_dispatch_stub_372
+#define gl_dispatch_stub_373 mgl_dispatch_stub_373
+#define gl_dispatch_stub_376 mgl_dispatch_stub_376
+#define gl_dispatch_stub_377 mgl_dispatch_stub_377
+#define gl_dispatch_stub_378 mgl_dispatch_stub_378
+#define gl_dispatch_stub_379 mgl_dispatch_stub_379
+#define gl_dispatch_stub_380 mgl_dispatch_stub_380
+#define gl_dispatch_stub_381 mgl_dispatch_stub_381
+#define gl_dispatch_stub_382 mgl_dispatch_stub_382
+#define gl_dispatch_stub_383 mgl_dispatch_stub_383
+#define gl_dispatch_stub_384 mgl_dispatch_stub_384
+#define gl_dispatch_stub_385 mgl_dispatch_stub_385
+#define gl_dispatch_stub_386 mgl_dispatch_stub_386
+#define gl_dispatch_stub_387 mgl_dispatch_stub_387
+#define gl_dispatch_stub_388 mgl_dispatch_stub_388
+#define gl_dispatch_stub_389 mgl_dispatch_stub_389
+#define gl_dispatch_stub_390 mgl_dispatch_stub_390
+#define gl_dispatch_stub_391 mgl_dispatch_stub_391
+#define gl_dispatch_stub_392 mgl_dispatch_stub_392
+#define gl_dispatch_stub_393 mgl_dispatch_stub_393
+#define gl_dispatch_stub_394 mgl_dispatch_stub_394
+#define gl_dispatch_stub_395 mgl_dispatch_stub_395
+#define gl_dispatch_stub_396 mgl_dispatch_stub_396
+#define gl_dispatch_stub_397 mgl_dispatch_stub_397
+#define gl_dispatch_stub_398 mgl_dispatch_stub_398
+#define gl_dispatch_stub_399 mgl_dispatch_stub_399
+#define gl_dispatch_stub_400 mgl_dispatch_stub_400
+#define gl_dispatch_stub_401 mgl_dispatch_stub_401
+#define gl_dispatch_stub_403 mgl_dispatch_stub_403
+#define gl_dispatch_stub_404 mgl_dispatch_stub_404
+#define gl_dispatch_stub_405 mgl_dispatch_stub_405
+#define gl_dispatch_stub_406 mgl_dispatch_stub_406
+#define gl_dispatch_stub_407 mgl_dispatch_stub_407
+#define gl_dispatch_stub_443 mgl_dispatch_stub_443
+#define gl_dispatch_stub_444 mgl_dispatch_stub_444
+#define gl_dispatch_stub_445 mgl_dispatch_stub_445
+#define gl_dispatch_stub_446 mgl_dispatch_stub_446
+#endif /* USE_MGL_NAMESPACE */
+
+
+#if defined(NEED_FUNCTION_POINTER) || defined(GLX_INDIRECT_RENDERING)
+void GLAPIENTRY gl_dispatch_stub_0(GLuint list, GLenum mode);
+void GLAPIENTRY gl_dispatch_stub_1(void);
+void GLAPIENTRY gl_dispatch_stub_2(GLuint list);
+void GLAPIENTRY gl_dispatch_stub_3(GLsizei n, GLenum type, const GLvoid * lists);
+void GLAPIENTRY gl_dispatch_stub_4(GLuint list, GLsizei range);
+GLuint GLAPIENTRY gl_dispatch_stub_5(GLsizei range);
+void GLAPIENTRY gl_dispatch_stub_6(GLuint base);
+void GLAPIENTRY gl_dispatch_stub_7(GLenum mode);
+void GLAPIENTRY gl_dispatch_stub_8(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte * bitmap);
+void GLAPIENTRY gl_dispatch_stub_9(GLbyte red, GLbyte green, GLbyte blue);
+void GLAPIENTRY gl_dispatch_stub_10(const GLbyte * v);
+void GLAPIENTRY gl_dispatch_stub_11(GLdouble red, GLdouble green, GLdouble blue);
+void GLAPIENTRY gl_dispatch_stub_12(const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_13(GLfloat red, GLfloat green, GLfloat blue);
+void GLAPIENTRY gl_dispatch_stub_14(const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_15(GLint red, GLint green, GLint blue);
+void GLAPIENTRY gl_dispatch_stub_16(const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_17(GLshort red, GLshort green, GLshort blue);
+void GLAPIENTRY gl_dispatch_stub_18(const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_19(GLubyte red, GLubyte green, GLubyte blue);
+void GLAPIENTRY gl_dispatch_stub_20(const GLubyte * v);
+void GLAPIENTRY gl_dispatch_stub_21(GLuint red, GLuint green, GLuint blue);
+void GLAPIENTRY gl_dispatch_stub_22(const GLuint * v);
+void GLAPIENTRY gl_dispatch_stub_23(GLushort red, GLushort green, GLushort blue);
+void GLAPIENTRY gl_dispatch_stub_24(const GLushort * v);
+void GLAPIENTRY gl_dispatch_stub_25(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
+void GLAPIENTRY gl_dispatch_stub_26(const GLbyte * v);
+void GLAPIENTRY gl_dispatch_stub_27(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
+void GLAPIENTRY gl_dispatch_stub_28(const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_30(const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_31(GLint red, GLint green, GLint blue, GLint alpha);
+void GLAPIENTRY gl_dispatch_stub_32(const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_33(GLshort red, GLshort green, GLshort blue, GLshort alpha);
+void GLAPIENTRY gl_dispatch_stub_34(const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_36(const GLubyte * v);
+void GLAPIENTRY gl_dispatch_stub_37(GLuint red, GLuint green, GLuint blue, GLuint alpha);
+void GLAPIENTRY gl_dispatch_stub_38(const GLuint * v);
+void GLAPIENTRY gl_dispatch_stub_39(GLushort red, GLushort green, GLushort blue, GLushort alpha);
+void GLAPIENTRY gl_dispatch_stub_40(const GLushort * v);
+void GLAPIENTRY gl_dispatch_stub_41(GLboolean flag);
+void GLAPIENTRY gl_dispatch_stub_42(const GLboolean * flag);
+void GLAPIENTRY gl_dispatch_stub_43(void);
+void GLAPIENTRY gl_dispatch_stub_44(GLdouble c);
+void GLAPIENTRY gl_dispatch_stub_45(const GLdouble * c);
+void GLAPIENTRY gl_dispatch_stub_46(GLfloat c);
+void GLAPIENTRY gl_dispatch_stub_47(const GLfloat * c);
+void GLAPIENTRY gl_dispatch_stub_48(GLint c);
+void GLAPIENTRY gl_dispatch_stub_49(const GLint * c);
+void GLAPIENTRY gl_dispatch_stub_50(GLshort c);
+void GLAPIENTRY gl_dispatch_stub_51(const GLshort * c);
+void GLAPIENTRY gl_dispatch_stub_52(GLbyte nx, GLbyte ny, GLbyte nz);
+void GLAPIENTRY gl_dispatch_stub_53(const GLbyte * v);
+void GLAPIENTRY gl_dispatch_stub_54(GLdouble nx, GLdouble ny, GLdouble nz);
+void GLAPIENTRY gl_dispatch_stub_55(const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_57(const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_58(GLint nx, GLint ny, GLint nz);
+void GLAPIENTRY gl_dispatch_stub_59(const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_60(GLshort nx, GLshort ny, GLshort nz);
+void GLAPIENTRY gl_dispatch_stub_61(const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_62(GLdouble x, GLdouble y);
+void GLAPIENTRY gl_dispatch_stub_63(const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_64(GLfloat x, GLfloat y);
+void GLAPIENTRY gl_dispatch_stub_65(const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_66(GLint x, GLint y);
+void GLAPIENTRY gl_dispatch_stub_67(const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_68(GLshort x, GLshort y);
+void GLAPIENTRY gl_dispatch_stub_69(const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_70(GLdouble x, GLdouble y, GLdouble z);
+void GLAPIENTRY gl_dispatch_stub_71(const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_72(GLfloat x, GLfloat y, GLfloat z);
+void GLAPIENTRY gl_dispatch_stub_73(const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_74(GLint x, GLint y, GLint z);
+void GLAPIENTRY gl_dispatch_stub_75(const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_76(GLshort x, GLshort y, GLshort z);
+void GLAPIENTRY gl_dispatch_stub_77(const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_78(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void GLAPIENTRY gl_dispatch_stub_79(const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_80(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void GLAPIENTRY gl_dispatch_stub_81(const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_82(GLint x, GLint y, GLint z, GLint w);
+void GLAPIENTRY gl_dispatch_stub_83(const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_84(GLshort x, GLshort y, GLshort z, GLshort w);
+void GLAPIENTRY gl_dispatch_stub_85(const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_86(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
+void GLAPIENTRY gl_dispatch_stub_87(const GLdouble * v1, const GLdouble * v2);
+void GLAPIENTRY gl_dispatch_stub_88(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
+void GLAPIENTRY gl_dispatch_stub_89(const GLfloat * v1, const GLfloat * v2);
+void GLAPIENTRY gl_dispatch_stub_90(GLint x1, GLint y1, GLint x2, GLint y2);
+void GLAPIENTRY gl_dispatch_stub_91(const GLint * v1, const GLint * v2);
+void GLAPIENTRY gl_dispatch_stub_92(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
+void GLAPIENTRY gl_dispatch_stub_93(const GLshort * v1, const GLshort * v2);
+void GLAPIENTRY gl_dispatch_stub_94(GLdouble s);
+void GLAPIENTRY gl_dispatch_stub_95(const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_96(GLfloat s);
+void GLAPIENTRY gl_dispatch_stub_97(const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_98(GLint s);
+void GLAPIENTRY gl_dispatch_stub_99(const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_100(GLshort s);
+void GLAPIENTRY gl_dispatch_stub_101(const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_102(GLdouble s, GLdouble t);
+void GLAPIENTRY gl_dispatch_stub_103(const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_104(GLfloat s, GLfloat t);
+void GLAPIENTRY gl_dispatch_stub_105(const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_106(GLint s, GLint t);
+void GLAPIENTRY gl_dispatch_stub_107(const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_108(GLshort s, GLshort t);
+void GLAPIENTRY gl_dispatch_stub_109(const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_110(GLdouble s, GLdouble t, GLdouble r);
+void GLAPIENTRY gl_dispatch_stub_111(const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_112(GLfloat s, GLfloat t, GLfloat r);
+void GLAPIENTRY gl_dispatch_stub_113(const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_114(GLint s, GLint t, GLint r);
+void GLAPIENTRY gl_dispatch_stub_115(const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_116(GLshort s, GLshort t, GLshort r);
+void GLAPIENTRY gl_dispatch_stub_117(const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_118(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void GLAPIENTRY gl_dispatch_stub_119(const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_120(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void GLAPIENTRY gl_dispatch_stub_121(const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_122(GLint s, GLint t, GLint r, GLint q);
+void GLAPIENTRY gl_dispatch_stub_123(const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_124(GLshort s, GLshort t, GLshort r, GLshort q);
+void GLAPIENTRY gl_dispatch_stub_125(const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_126(GLdouble x, GLdouble y);
+void GLAPIENTRY gl_dispatch_stub_127(const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_128(GLfloat x, GLfloat y);
+void GLAPIENTRY gl_dispatch_stub_129(const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_130(GLint x, GLint y);
+void GLAPIENTRY gl_dispatch_stub_131(const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_132(GLshort x, GLshort y);
+void GLAPIENTRY gl_dispatch_stub_133(const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_134(GLdouble x, GLdouble y, GLdouble z);
+void GLAPIENTRY gl_dispatch_stub_135(const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_136(GLfloat x, GLfloat y, GLfloat z);
+void GLAPIENTRY gl_dispatch_stub_137(const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_138(GLint x, GLint y, GLint z);
+void GLAPIENTRY gl_dispatch_stub_139(const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_140(GLshort x, GLshort y, GLshort z);
+void GLAPIENTRY gl_dispatch_stub_141(const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_142(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void GLAPIENTRY gl_dispatch_stub_143(const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_144(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void GLAPIENTRY gl_dispatch_stub_145(const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_146(GLint x, GLint y, GLint z, GLint w);
+void GLAPIENTRY gl_dispatch_stub_147(const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_148(GLshort x, GLshort y, GLshort z, GLshort w);
+void GLAPIENTRY gl_dispatch_stub_149(const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_150(GLenum plane, const GLdouble * equation);
+void GLAPIENTRY gl_dispatch_stub_151(GLenum face, GLenum mode);
+void GLAPIENTRY gl_dispatch_stub_155(GLenum pname, GLint param);
+void GLAPIENTRY gl_dispatch_stub_156(GLenum pname, const GLint * params);
+void GLAPIENTRY gl_dispatch_stub_161(GLenum light, GLenum pname, GLint param);
+void GLAPIENTRY gl_dispatch_stub_162(GLenum light, GLenum pname, const GLint * params);
+void GLAPIENTRY gl_dispatch_stub_165(GLenum pname, GLint param);
+void GLAPIENTRY gl_dispatch_stub_166(GLenum pname, const GLint * params);
+void GLAPIENTRY gl_dispatch_stub_167(GLint factor, GLushort pattern);
+void GLAPIENTRY gl_dispatch_stub_171(GLenum face, GLenum pname, GLint param);
+void GLAPIENTRY gl_dispatch_stub_172(GLenum face, GLenum pname, const GLint * params);
+void GLAPIENTRY gl_dispatch_stub_174(GLenum face, GLenum mode);
+void GLAPIENTRY gl_dispatch_stub_175(const GLubyte * mask);
+void GLAPIENTRY gl_dispatch_stub_182(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
+void GLAPIENTRY gl_dispatch_stub_188(GLenum coord, GLenum pname, GLdouble param);
+void GLAPIENTRY gl_dispatch_stub_189(GLenum coord, GLenum pname, const GLdouble * params);
+void GLAPIENTRY gl_dispatch_stub_194(GLsizei size, GLenum type, GLfloat * buffer);
+void GLAPIENTRY gl_dispatch_stub_195(GLsizei size, GLuint * buffer);
+GLint GLAPIENTRY gl_dispatch_stub_196(GLenum mode);
+void GLAPIENTRY gl_dispatch_stub_197(void);
+void GLAPIENTRY gl_dispatch_stub_198(GLuint name);
+void GLAPIENTRY gl_dispatch_stub_199(GLfloat token);
+void GLAPIENTRY gl_dispatch_stub_200(void);
+void GLAPIENTRY gl_dispatch_stub_201(GLuint name);
+void GLAPIENTRY gl_dispatch_stub_202(GLenum mode);
+void GLAPIENTRY gl_dispatch_stub_204(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void GLAPIENTRY gl_dispatch_stub_205(GLfloat c);
+void GLAPIENTRY gl_dispatch_stub_208(GLclampd depth);
+void GLAPIENTRY gl_dispatch_stub_212(GLuint mask);
+void GLAPIENTRY gl_dispatch_stub_213(GLenum op, GLfloat value);
+void GLAPIENTRY gl_dispatch_stub_218(void);
+void GLAPIENTRY gl_dispatch_stub_219(GLbitfield mask);
+void GLAPIENTRY gl_dispatch_stub_220(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble * points);
+void GLAPIENTRY gl_dispatch_stub_221(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat * points);
+void GLAPIENTRY gl_dispatch_stub_222(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble * points);
+void GLAPIENTRY gl_dispatch_stub_223(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat * points);
+void GLAPIENTRY gl_dispatch_stub_224(GLint un, GLdouble u1, GLdouble u2);
+void GLAPIENTRY gl_dispatch_stub_225(GLint un, GLfloat u1, GLfloat u2);
+void GLAPIENTRY gl_dispatch_stub_226(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
+void GLAPIENTRY gl_dispatch_stub_227(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
+void GLAPIENTRY gl_dispatch_stub_228(GLdouble u);
+void GLAPIENTRY gl_dispatch_stub_229(const GLdouble * u);
+void GLAPIENTRY gl_dispatch_stub_230(GLfloat u);
+void GLAPIENTRY gl_dispatch_stub_231(const GLfloat * u);
+void GLAPIENTRY gl_dispatch_stub_232(GLdouble u, GLdouble v);
+void GLAPIENTRY gl_dispatch_stub_233(const GLdouble * u);
+void GLAPIENTRY gl_dispatch_stub_234(GLfloat u, GLfloat v);
+void GLAPIENTRY gl_dispatch_stub_235(const GLfloat * u);
+void GLAPIENTRY gl_dispatch_stub_236(GLenum mode, GLint i1, GLint i2);
+void GLAPIENTRY gl_dispatch_stub_237(GLint i);
+void GLAPIENTRY gl_dispatch_stub_238(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
+void GLAPIENTRY gl_dispatch_stub_239(GLint i, GLint j);
+void GLAPIENTRY gl_dispatch_stub_246(GLfloat xfactor, GLfloat yfactor);
+void GLAPIENTRY gl_dispatch_stub_247(GLenum pname, GLfloat param);
+void GLAPIENTRY gl_dispatch_stub_248(GLenum pname, GLint param);
+void GLAPIENTRY gl_dispatch_stub_249(GLenum pname, GLfloat param);
+void GLAPIENTRY gl_dispatch_stub_251(GLenum map, GLsizei mapsize, const GLfloat * values);
+void GLAPIENTRY gl_dispatch_stub_252(GLenum map, GLsizei mapsize, const GLuint * values);
+void GLAPIENTRY gl_dispatch_stub_253(GLenum map, GLsizei mapsize, const GLushort * values);
+void GLAPIENTRY gl_dispatch_stub_254(GLenum mode);
+void GLAPIENTRY gl_dispatch_stub_255(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
+void GLAPIENTRY gl_dispatch_stub_257(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels);
+void GLAPIENTRY gl_dispatch_stub_259(GLenum plane, GLdouble * equation);
+void GLAPIENTRY gl_dispatch_stub_260(GLenum pname, GLdouble * params);
+void GLAPIENTRY gl_dispatch_stub_265(GLenum light, GLenum pname, GLint * params);
+void GLAPIENTRY gl_dispatch_stub_266(GLenum target, GLenum query, GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_267(GLenum target, GLenum query, GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_268(GLenum target, GLenum query, GLint * v);
+void GLAPIENTRY gl_dispatch_stub_270(GLenum face, GLenum pname, GLint * params);
+void GLAPIENTRY gl_dispatch_stub_271(GLenum map, GLfloat * values);
+void GLAPIENTRY gl_dispatch_stub_272(GLenum map, GLuint * values);
+void GLAPIENTRY gl_dispatch_stub_273(GLenum map, GLushort * values);
+void GLAPIENTRY gl_dispatch_stub_274(GLubyte * mask);
+void GLAPIENTRY gl_dispatch_stub_278(GLenum coord, GLenum pname, GLdouble * params);
+void GLAPIENTRY gl_dispatch_stub_281(GLenum target, GLint level, GLenum format, GLenum type, GLvoid * pixels);
+void GLAPIENTRY gl_dispatch_stub_284(GLenum target, GLint level, GLenum pname, GLfloat * params);
+void GLAPIENTRY gl_dispatch_stub_285(GLenum target, GLint level, GLenum pname, GLint * params);
+GLboolean GLAPIENTRY gl_dispatch_stub_287(GLuint list);
+void GLAPIENTRY gl_dispatch_stub_288(GLclampd zNear, GLclampd zFar);
+void GLAPIENTRY gl_dispatch_stub_289(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+void GLAPIENTRY gl_dispatch_stub_292(const GLdouble * m);
+void GLAPIENTRY gl_dispatch_stub_295(const GLdouble * m);
+void GLAPIENTRY gl_dispatch_stub_296(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+void GLAPIENTRY gl_dispatch_stub_299(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+void GLAPIENTRY gl_dispatch_stub_301(GLdouble x, GLdouble y, GLdouble z);
+void GLAPIENTRY gl_dispatch_stub_303(GLdouble x, GLdouble y, GLdouble z);
+void GLAPIENTRY gl_dispatch_stub_306(GLint i);
+void GLAPIENTRY gl_dispatch_stub_312(GLsizei stride, const GLvoid * pointer);
+void GLAPIENTRY gl_dispatch_stub_314(GLenum type, GLsizei stride, const GLvoid * pointer);
+void GLAPIENTRY gl_dispatch_stub_315(GLubyte c);
+void GLAPIENTRY gl_dispatch_stub_316(const GLubyte * c);
+void GLAPIENTRY gl_dispatch_stub_317(GLenum format, GLsizei stride, const GLvoid * pointer);
+GLboolean GLAPIENTRY gl_dispatch_stub_322(GLsizei n, const GLuint * textures, GLboolean * residences);
+void GLAPIENTRY gl_dispatch_stub_323(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+void GLAPIENTRY gl_dispatch_stub_325(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+void GLAPIENTRY gl_dispatch_stub_331(GLsizei n, const GLuint * textures, const GLclampf * priorities);
+void GLAPIENTRY gl_dispatch_stub_332(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid * pixels);
+void GLAPIENTRY gl_dispatch_stub_334(void);
+void GLAPIENTRY gl_dispatch_stub_335(GLbitfield mask);
+void GLAPIENTRY gl_dispatch_stub_336(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
+void GLAPIENTRY gl_dispatch_stub_338(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid * indices);
+void GLAPIENTRY gl_dispatch_stub_339(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * table);
+void GLAPIENTRY gl_dispatch_stub_340(GLenum target, GLenum pname, const GLfloat * params);
+void GLAPIENTRY gl_dispatch_stub_341(GLenum target, GLenum pname, const GLint * params);
+void GLAPIENTRY gl_dispatch_stub_342(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+void GLAPIENTRY gl_dispatch_stub_343(GLenum target, GLenum format, GLenum type, GLvoid * table);
+void GLAPIENTRY gl_dispatch_stub_344(GLenum target, GLenum pname, GLfloat * params);
+void GLAPIENTRY gl_dispatch_stub_345(GLenum target, GLenum pname, GLint * params);
+void GLAPIENTRY gl_dispatch_stub_346(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid * data);
+void GLAPIENTRY gl_dispatch_stub_347(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+void GLAPIENTRY gl_dispatch_stub_348(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * image);
+void GLAPIENTRY gl_dispatch_stub_349(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * image);
+void GLAPIENTRY gl_dispatch_stub_350(GLenum target, GLenum pname, GLfloat params);
+void GLAPIENTRY gl_dispatch_stub_351(GLenum target, GLenum pname, const GLfloat * params);
+void GLAPIENTRY gl_dispatch_stub_352(GLenum target, GLenum pname, GLint params);
+void GLAPIENTRY gl_dispatch_stub_353(GLenum target, GLenum pname, const GLint * params);
+void GLAPIENTRY gl_dispatch_stub_354(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+void GLAPIENTRY gl_dispatch_stub_355(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
+void GLAPIENTRY gl_dispatch_stub_356(GLenum target, GLenum format, GLenum type, GLvoid * image);
+void GLAPIENTRY gl_dispatch_stub_357(GLenum target, GLenum pname, GLfloat * params);
+void GLAPIENTRY gl_dispatch_stub_358(GLenum target, GLenum pname, GLint * params);
+void GLAPIENTRY gl_dispatch_stub_359(GLenum target, GLenum format, GLenum type, GLvoid * row, GLvoid * column, GLvoid * span);
+void GLAPIENTRY gl_dispatch_stub_360(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * row, const GLvoid * column);
+void GLAPIENTRY gl_dispatch_stub_361(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values);
+void GLAPIENTRY gl_dispatch_stub_362(GLenum target, GLenum pname, GLfloat * params);
+void GLAPIENTRY gl_dispatch_stub_363(GLenum target, GLenum pname, GLint * params);
+void GLAPIENTRY gl_dispatch_stub_364(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values);
+void GLAPIENTRY gl_dispatch_stub_365(GLenum target, GLenum pname, GLfloat * params);
+void GLAPIENTRY gl_dispatch_stub_366(GLenum target, GLenum pname, GLint * params);
+void GLAPIENTRY gl_dispatch_stub_367(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
+void GLAPIENTRY gl_dispatch_stub_368(GLenum target, GLenum internalformat, GLboolean sink);
+void GLAPIENTRY gl_dispatch_stub_369(GLenum target);
+void GLAPIENTRY gl_dispatch_stub_370(GLenum target);
+void GLAPIENTRY gl_dispatch_stub_371(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
+void GLAPIENTRY gl_dispatch_stub_372(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels);
+void GLAPIENTRY gl_dispatch_stub_373(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void GLAPIENTRY gl_dispatch_stub_376(GLenum target, GLdouble s);
+void GLAPIENTRY gl_dispatch_stub_377(GLenum target, const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_378(GLenum target, GLfloat s);
+void GLAPIENTRY gl_dispatch_stub_379(GLenum target, const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_380(GLenum target, GLint s);
+void GLAPIENTRY gl_dispatch_stub_381(GLenum target, const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_382(GLenum target, GLshort s);
+void GLAPIENTRY gl_dispatch_stub_383(GLenum target, const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_384(GLenum target, GLdouble s, GLdouble t);
+void GLAPIENTRY gl_dispatch_stub_385(GLenum target, const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_386(GLenum target, GLfloat s, GLfloat t);
+void GLAPIENTRY gl_dispatch_stub_387(GLenum target, const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_388(GLenum target, GLint s, GLint t);
+void GLAPIENTRY gl_dispatch_stub_389(GLenum target, const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_390(GLenum target, GLshort s, GLshort t);
+void GLAPIENTRY gl_dispatch_stub_391(GLenum target, const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_392(GLenum target, GLdouble s, GLdouble t, GLdouble r);
+void GLAPIENTRY gl_dispatch_stub_393(GLenum target, const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_394(GLenum target, GLfloat s, GLfloat t, GLfloat r);
+void GLAPIENTRY gl_dispatch_stub_395(GLenum target, const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_396(GLenum target, GLint s, GLint t, GLint r);
+void GLAPIENTRY gl_dispatch_stub_397(GLenum target, const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_398(GLenum target, GLshort s, GLshort t, GLshort r);
+void GLAPIENTRY gl_dispatch_stub_399(GLenum target, const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_400(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void GLAPIENTRY gl_dispatch_stub_401(GLenum target, const GLdouble * v);
+void GLAPIENTRY gl_dispatch_stub_403(GLenum target, const GLfloat * v);
+void GLAPIENTRY gl_dispatch_stub_404(GLenum target, GLint s, GLint t, GLint r, GLint q);
+void GLAPIENTRY gl_dispatch_stub_405(GLenum target, const GLint * v);
+void GLAPIENTRY gl_dispatch_stub_406(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+void GLAPIENTRY gl_dispatch_stub_407(GLenum target, const GLshort * v);
+void GLAPIENTRY gl_dispatch_stub_443(GLuint array);
+void GLAPIENTRY gl_dispatch_stub_444(GLsizei n, const GLuint * arrays);
+void GLAPIENTRY gl_dispatch_stub_445(GLsizei n, GLuint * arrays);
+GLboolean GLAPIENTRY gl_dispatch_stub_446(GLuint array);
+#endif /* defined(NEED_FUNCTION_POINTER) || defined(GLX_INDIRECT_RENDERING) */
+
+static const glprocs_table_t static_functions[] = {
+ NAME_FUNC_OFFSET( 0, gl_dispatch_stub_0, gl_dispatch_stub_0, NULL, _gloffset_NewList),
+ NAME_FUNC_OFFSET( 10, gl_dispatch_stub_1, gl_dispatch_stub_1, NULL, _gloffset_EndList),
+ NAME_FUNC_OFFSET( 20, gl_dispatch_stub_2, gl_dispatch_stub_2, NULL, _gloffset_CallList),
+ NAME_FUNC_OFFSET( 31, gl_dispatch_stub_3, gl_dispatch_stub_3, NULL, _gloffset_CallLists),
+ NAME_FUNC_OFFSET( 43, gl_dispatch_stub_4, gl_dispatch_stub_4, NULL, _gloffset_DeleteLists),
+ NAME_FUNC_OFFSET( 57, gl_dispatch_stub_5, gl_dispatch_stub_5, NULL, _gloffset_GenLists),
+ NAME_FUNC_OFFSET( 68, gl_dispatch_stub_6, gl_dispatch_stub_6, NULL, _gloffset_ListBase),
+ NAME_FUNC_OFFSET( 79, gl_dispatch_stub_7, gl_dispatch_stub_7, NULL, _gloffset_Begin),
+ NAME_FUNC_OFFSET( 87, gl_dispatch_stub_8, gl_dispatch_stub_8, NULL, _gloffset_Bitmap),
+ NAME_FUNC_OFFSET( 96, gl_dispatch_stub_9, gl_dispatch_stub_9, NULL, _gloffset_Color3b),
+ NAME_FUNC_OFFSET( 106, gl_dispatch_stub_10, gl_dispatch_stub_10, NULL, _gloffset_Color3bv),
+ NAME_FUNC_OFFSET( 117, gl_dispatch_stub_11, gl_dispatch_stub_11, NULL, _gloffset_Color3d),
+ NAME_FUNC_OFFSET( 127, gl_dispatch_stub_12, gl_dispatch_stub_12, NULL, _gloffset_Color3dv),
+ NAME_FUNC_OFFSET( 138, gl_dispatch_stub_13, gl_dispatch_stub_13, NULL, _gloffset_Color3f),
+ NAME_FUNC_OFFSET( 148, gl_dispatch_stub_14, gl_dispatch_stub_14, NULL, _gloffset_Color3fv),
+ NAME_FUNC_OFFSET( 159, gl_dispatch_stub_15, gl_dispatch_stub_15, NULL, _gloffset_Color3i),
+ NAME_FUNC_OFFSET( 169, gl_dispatch_stub_16, gl_dispatch_stub_16, NULL, _gloffset_Color3iv),
+ NAME_FUNC_OFFSET( 180, gl_dispatch_stub_17, gl_dispatch_stub_17, NULL, _gloffset_Color3s),
+ NAME_FUNC_OFFSET( 190, gl_dispatch_stub_18, gl_dispatch_stub_18, NULL, _gloffset_Color3sv),
+ NAME_FUNC_OFFSET( 201, gl_dispatch_stub_19, gl_dispatch_stub_19, NULL, _gloffset_Color3ub),
+ NAME_FUNC_OFFSET( 212, gl_dispatch_stub_20, gl_dispatch_stub_20, NULL, _gloffset_Color3ubv),
+ NAME_FUNC_OFFSET( 224, gl_dispatch_stub_21, gl_dispatch_stub_21, NULL, _gloffset_Color3ui),
+ NAME_FUNC_OFFSET( 235, gl_dispatch_stub_22, gl_dispatch_stub_22, NULL, _gloffset_Color3uiv),
+ NAME_FUNC_OFFSET( 247, gl_dispatch_stub_23, gl_dispatch_stub_23, NULL, _gloffset_Color3us),
+ NAME_FUNC_OFFSET( 258, gl_dispatch_stub_24, gl_dispatch_stub_24, NULL, _gloffset_Color3usv),
+ NAME_FUNC_OFFSET( 270, gl_dispatch_stub_25, gl_dispatch_stub_25, NULL, _gloffset_Color4b),
+ NAME_FUNC_OFFSET( 280, gl_dispatch_stub_26, gl_dispatch_stub_26, NULL, _gloffset_Color4bv),
+ NAME_FUNC_OFFSET( 291, gl_dispatch_stub_27, gl_dispatch_stub_27, NULL, _gloffset_Color4d),
+ NAME_FUNC_OFFSET( 301, gl_dispatch_stub_28, gl_dispatch_stub_28, NULL, _gloffset_Color4dv),
+ NAME_FUNC_OFFSET( 312, glColor4f, glColor4f, NULL, _gloffset_Color4f),
+ NAME_FUNC_OFFSET( 322, gl_dispatch_stub_30, gl_dispatch_stub_30, NULL, _gloffset_Color4fv),
+ NAME_FUNC_OFFSET( 333, gl_dispatch_stub_31, gl_dispatch_stub_31, NULL, _gloffset_Color4i),
+ NAME_FUNC_OFFSET( 343, gl_dispatch_stub_32, gl_dispatch_stub_32, NULL, _gloffset_Color4iv),
+ NAME_FUNC_OFFSET( 354, gl_dispatch_stub_33, gl_dispatch_stub_33, NULL, _gloffset_Color4s),
+ NAME_FUNC_OFFSET( 364, gl_dispatch_stub_34, gl_dispatch_stub_34, NULL, _gloffset_Color4sv),
+ NAME_FUNC_OFFSET( 375, glColor4ub, glColor4ub, NULL, _gloffset_Color4ub),
+ NAME_FUNC_OFFSET( 386, gl_dispatch_stub_36, gl_dispatch_stub_36, NULL, _gloffset_Color4ubv),
+ NAME_FUNC_OFFSET( 398, gl_dispatch_stub_37, gl_dispatch_stub_37, NULL, _gloffset_Color4ui),
+ NAME_FUNC_OFFSET( 409, gl_dispatch_stub_38, gl_dispatch_stub_38, NULL, _gloffset_Color4uiv),
+ NAME_FUNC_OFFSET( 421, gl_dispatch_stub_39, gl_dispatch_stub_39, NULL, _gloffset_Color4us),
+ NAME_FUNC_OFFSET( 432, gl_dispatch_stub_40, gl_dispatch_stub_40, NULL, _gloffset_Color4usv),
+ NAME_FUNC_OFFSET( 444, gl_dispatch_stub_41, gl_dispatch_stub_41, NULL, _gloffset_EdgeFlag),
+ NAME_FUNC_OFFSET( 455, gl_dispatch_stub_42, gl_dispatch_stub_42, NULL, _gloffset_EdgeFlagv),
+ NAME_FUNC_OFFSET( 467, gl_dispatch_stub_43, gl_dispatch_stub_43, NULL, _gloffset_End),
+ NAME_FUNC_OFFSET( 473, gl_dispatch_stub_44, gl_dispatch_stub_44, NULL, _gloffset_Indexd),
+ NAME_FUNC_OFFSET( 482, gl_dispatch_stub_45, gl_dispatch_stub_45, NULL, _gloffset_Indexdv),
+ NAME_FUNC_OFFSET( 492, gl_dispatch_stub_46, gl_dispatch_stub_46, NULL, _gloffset_Indexf),
+ NAME_FUNC_OFFSET( 501, gl_dispatch_stub_47, gl_dispatch_stub_47, NULL, _gloffset_Indexfv),
+ NAME_FUNC_OFFSET( 511, gl_dispatch_stub_48, gl_dispatch_stub_48, NULL, _gloffset_Indexi),
+ NAME_FUNC_OFFSET( 520, gl_dispatch_stub_49, gl_dispatch_stub_49, NULL, _gloffset_Indexiv),
+ NAME_FUNC_OFFSET( 530, gl_dispatch_stub_50, gl_dispatch_stub_50, NULL, _gloffset_Indexs),
+ NAME_FUNC_OFFSET( 539, gl_dispatch_stub_51, gl_dispatch_stub_51, NULL, _gloffset_Indexsv),
+ NAME_FUNC_OFFSET( 549, gl_dispatch_stub_52, gl_dispatch_stub_52, NULL, _gloffset_Normal3b),
+ NAME_FUNC_OFFSET( 560, gl_dispatch_stub_53, gl_dispatch_stub_53, NULL, _gloffset_Normal3bv),
+ NAME_FUNC_OFFSET( 572, gl_dispatch_stub_54, gl_dispatch_stub_54, NULL, _gloffset_Normal3d),
+ NAME_FUNC_OFFSET( 583, gl_dispatch_stub_55, gl_dispatch_stub_55, NULL, _gloffset_Normal3dv),
+ NAME_FUNC_OFFSET( 595, glNormal3f, glNormal3f, NULL, _gloffset_Normal3f),
+ NAME_FUNC_OFFSET( 606, gl_dispatch_stub_57, gl_dispatch_stub_57, NULL, _gloffset_Normal3fv),
+ NAME_FUNC_OFFSET( 618, gl_dispatch_stub_58, gl_dispatch_stub_58, NULL, _gloffset_Normal3i),
+ NAME_FUNC_OFFSET( 629, gl_dispatch_stub_59, gl_dispatch_stub_59, NULL, _gloffset_Normal3iv),
+ NAME_FUNC_OFFSET( 641, gl_dispatch_stub_60, gl_dispatch_stub_60, NULL, _gloffset_Normal3s),
+ NAME_FUNC_OFFSET( 652, gl_dispatch_stub_61, gl_dispatch_stub_61, NULL, _gloffset_Normal3sv),
+ NAME_FUNC_OFFSET( 664, gl_dispatch_stub_62, gl_dispatch_stub_62, NULL, _gloffset_RasterPos2d),
+ NAME_FUNC_OFFSET( 678, gl_dispatch_stub_63, gl_dispatch_stub_63, NULL, _gloffset_RasterPos2dv),
+ NAME_FUNC_OFFSET( 693, gl_dispatch_stub_64, gl_dispatch_stub_64, NULL, _gloffset_RasterPos2f),
+ NAME_FUNC_OFFSET( 707, gl_dispatch_stub_65, gl_dispatch_stub_65, NULL, _gloffset_RasterPos2fv),
+ NAME_FUNC_OFFSET( 722, gl_dispatch_stub_66, gl_dispatch_stub_66, NULL, _gloffset_RasterPos2i),
+ NAME_FUNC_OFFSET( 736, gl_dispatch_stub_67, gl_dispatch_stub_67, NULL, _gloffset_RasterPos2iv),
+ NAME_FUNC_OFFSET( 751, gl_dispatch_stub_68, gl_dispatch_stub_68, NULL, _gloffset_RasterPos2s),
+ NAME_FUNC_OFFSET( 765, gl_dispatch_stub_69, gl_dispatch_stub_69, NULL, _gloffset_RasterPos2sv),
+ NAME_FUNC_OFFSET( 780, gl_dispatch_stub_70, gl_dispatch_stub_70, NULL, _gloffset_RasterPos3d),
+ NAME_FUNC_OFFSET( 794, gl_dispatch_stub_71, gl_dispatch_stub_71, NULL, _gloffset_RasterPos3dv),
+ NAME_FUNC_OFFSET( 809, gl_dispatch_stub_72, gl_dispatch_stub_72, NULL, _gloffset_RasterPos3f),
+ NAME_FUNC_OFFSET( 823, gl_dispatch_stub_73, gl_dispatch_stub_73, NULL, _gloffset_RasterPos3fv),
+ NAME_FUNC_OFFSET( 838, gl_dispatch_stub_74, gl_dispatch_stub_74, NULL, _gloffset_RasterPos3i),
+ NAME_FUNC_OFFSET( 852, gl_dispatch_stub_75, gl_dispatch_stub_75, NULL, _gloffset_RasterPos3iv),
+ NAME_FUNC_OFFSET( 867, gl_dispatch_stub_76, gl_dispatch_stub_76, NULL, _gloffset_RasterPos3s),
+ NAME_FUNC_OFFSET( 881, gl_dispatch_stub_77, gl_dispatch_stub_77, NULL, _gloffset_RasterPos3sv),
+ NAME_FUNC_OFFSET( 896, gl_dispatch_stub_78, gl_dispatch_stub_78, NULL, _gloffset_RasterPos4d),
+ NAME_FUNC_OFFSET( 910, gl_dispatch_stub_79, gl_dispatch_stub_79, NULL, _gloffset_RasterPos4dv),
+ NAME_FUNC_OFFSET( 925, gl_dispatch_stub_80, gl_dispatch_stub_80, NULL, _gloffset_RasterPos4f),
+ NAME_FUNC_OFFSET( 939, gl_dispatch_stub_81, gl_dispatch_stub_81, NULL, _gloffset_RasterPos4fv),
+ NAME_FUNC_OFFSET( 954, gl_dispatch_stub_82, gl_dispatch_stub_82, NULL, _gloffset_RasterPos4i),
+ NAME_FUNC_OFFSET( 968, gl_dispatch_stub_83, gl_dispatch_stub_83, NULL, _gloffset_RasterPos4iv),
+ NAME_FUNC_OFFSET( 983, gl_dispatch_stub_84, gl_dispatch_stub_84, NULL, _gloffset_RasterPos4s),
+ NAME_FUNC_OFFSET( 997, gl_dispatch_stub_85, gl_dispatch_stub_85, NULL, _gloffset_RasterPos4sv),
+ NAME_FUNC_OFFSET( 1012, gl_dispatch_stub_86, gl_dispatch_stub_86, NULL, _gloffset_Rectd),
+ NAME_FUNC_OFFSET( 1020, gl_dispatch_stub_87, gl_dispatch_stub_87, NULL, _gloffset_Rectdv),
+ NAME_FUNC_OFFSET( 1029, gl_dispatch_stub_88, gl_dispatch_stub_88, NULL, _gloffset_Rectf),
+ NAME_FUNC_OFFSET( 1037, gl_dispatch_stub_89, gl_dispatch_stub_89, NULL, _gloffset_Rectfv),
+ NAME_FUNC_OFFSET( 1046, gl_dispatch_stub_90, gl_dispatch_stub_90, NULL, _gloffset_Recti),
+ NAME_FUNC_OFFSET( 1054, gl_dispatch_stub_91, gl_dispatch_stub_91, NULL, _gloffset_Rectiv),
+ NAME_FUNC_OFFSET( 1063, gl_dispatch_stub_92, gl_dispatch_stub_92, NULL, _gloffset_Rects),
+ NAME_FUNC_OFFSET( 1071, gl_dispatch_stub_93, gl_dispatch_stub_93, NULL, _gloffset_Rectsv),
+ NAME_FUNC_OFFSET( 1080, gl_dispatch_stub_94, gl_dispatch_stub_94, NULL, _gloffset_TexCoord1d),
+ NAME_FUNC_OFFSET( 1093, gl_dispatch_stub_95, gl_dispatch_stub_95, NULL, _gloffset_TexCoord1dv),
+ NAME_FUNC_OFFSET( 1107, gl_dispatch_stub_96, gl_dispatch_stub_96, NULL, _gloffset_TexCoord1f),
+ NAME_FUNC_OFFSET( 1120, gl_dispatch_stub_97, gl_dispatch_stub_97, NULL, _gloffset_TexCoord1fv),
+ NAME_FUNC_OFFSET( 1134, gl_dispatch_stub_98, gl_dispatch_stub_98, NULL, _gloffset_TexCoord1i),
+ NAME_FUNC_OFFSET( 1147, gl_dispatch_stub_99, gl_dispatch_stub_99, NULL, _gloffset_TexCoord1iv),
+ NAME_FUNC_OFFSET( 1161, gl_dispatch_stub_100, gl_dispatch_stub_100, NULL, _gloffset_TexCoord1s),
+ NAME_FUNC_OFFSET( 1174, gl_dispatch_stub_101, gl_dispatch_stub_101, NULL, _gloffset_TexCoord1sv),
+ NAME_FUNC_OFFSET( 1188, gl_dispatch_stub_102, gl_dispatch_stub_102, NULL, _gloffset_TexCoord2d),
+ NAME_FUNC_OFFSET( 1201, gl_dispatch_stub_103, gl_dispatch_stub_103, NULL, _gloffset_TexCoord2dv),
+ NAME_FUNC_OFFSET( 1215, gl_dispatch_stub_104, gl_dispatch_stub_104, NULL, _gloffset_TexCoord2f),
+ NAME_FUNC_OFFSET( 1228, gl_dispatch_stub_105, gl_dispatch_stub_105, NULL, _gloffset_TexCoord2fv),
+ NAME_FUNC_OFFSET( 1242, gl_dispatch_stub_106, gl_dispatch_stub_106, NULL, _gloffset_TexCoord2i),
+ NAME_FUNC_OFFSET( 1255, gl_dispatch_stub_107, gl_dispatch_stub_107, NULL, _gloffset_TexCoord2iv),
+ NAME_FUNC_OFFSET( 1269, gl_dispatch_stub_108, gl_dispatch_stub_108, NULL, _gloffset_TexCoord2s),
+ NAME_FUNC_OFFSET( 1282, gl_dispatch_stub_109, gl_dispatch_stub_109, NULL, _gloffset_TexCoord2sv),
+ NAME_FUNC_OFFSET( 1296, gl_dispatch_stub_110, gl_dispatch_stub_110, NULL, _gloffset_TexCoord3d),
+ NAME_FUNC_OFFSET( 1309, gl_dispatch_stub_111, gl_dispatch_stub_111, NULL, _gloffset_TexCoord3dv),
+ NAME_FUNC_OFFSET( 1323, gl_dispatch_stub_112, gl_dispatch_stub_112, NULL, _gloffset_TexCoord3f),
+ NAME_FUNC_OFFSET( 1336, gl_dispatch_stub_113, gl_dispatch_stub_113, NULL, _gloffset_TexCoord3fv),
+ NAME_FUNC_OFFSET( 1350, gl_dispatch_stub_114, gl_dispatch_stub_114, NULL, _gloffset_TexCoord3i),
+ NAME_FUNC_OFFSET( 1363, gl_dispatch_stub_115, gl_dispatch_stub_115, NULL, _gloffset_TexCoord3iv),
+ NAME_FUNC_OFFSET( 1377, gl_dispatch_stub_116, gl_dispatch_stub_116, NULL, _gloffset_TexCoord3s),
+ NAME_FUNC_OFFSET( 1390, gl_dispatch_stub_117, gl_dispatch_stub_117, NULL, _gloffset_TexCoord3sv),
+ NAME_FUNC_OFFSET( 1404, gl_dispatch_stub_118, gl_dispatch_stub_118, NULL, _gloffset_TexCoord4d),
+ NAME_FUNC_OFFSET( 1417, gl_dispatch_stub_119, gl_dispatch_stub_119, NULL, _gloffset_TexCoord4dv),
+ NAME_FUNC_OFFSET( 1431, gl_dispatch_stub_120, gl_dispatch_stub_120, NULL, _gloffset_TexCoord4f),
+ NAME_FUNC_OFFSET( 1444, gl_dispatch_stub_121, gl_dispatch_stub_121, NULL, _gloffset_TexCoord4fv),
+ NAME_FUNC_OFFSET( 1458, gl_dispatch_stub_122, gl_dispatch_stub_122, NULL, _gloffset_TexCoord4i),
+ NAME_FUNC_OFFSET( 1471, gl_dispatch_stub_123, gl_dispatch_stub_123, NULL, _gloffset_TexCoord4iv),
+ NAME_FUNC_OFFSET( 1485, gl_dispatch_stub_124, gl_dispatch_stub_124, NULL, _gloffset_TexCoord4s),
+ NAME_FUNC_OFFSET( 1498, gl_dispatch_stub_125, gl_dispatch_stub_125, NULL, _gloffset_TexCoord4sv),
+ NAME_FUNC_OFFSET( 1512, gl_dispatch_stub_126, gl_dispatch_stub_126, NULL, _gloffset_Vertex2d),
+ NAME_FUNC_OFFSET( 1523, gl_dispatch_stub_127, gl_dispatch_stub_127, NULL, _gloffset_Vertex2dv),
+ NAME_FUNC_OFFSET( 1535, gl_dispatch_stub_128, gl_dispatch_stub_128, NULL, _gloffset_Vertex2f),
+ NAME_FUNC_OFFSET( 1546, gl_dispatch_stub_129, gl_dispatch_stub_129, NULL, _gloffset_Vertex2fv),
+ NAME_FUNC_OFFSET( 1558, gl_dispatch_stub_130, gl_dispatch_stub_130, NULL, _gloffset_Vertex2i),
+ NAME_FUNC_OFFSET( 1569, gl_dispatch_stub_131, gl_dispatch_stub_131, NULL, _gloffset_Vertex2iv),
+ NAME_FUNC_OFFSET( 1581, gl_dispatch_stub_132, gl_dispatch_stub_132, NULL, _gloffset_Vertex2s),
+ NAME_FUNC_OFFSET( 1592, gl_dispatch_stub_133, gl_dispatch_stub_133, NULL, _gloffset_Vertex2sv),
+ NAME_FUNC_OFFSET( 1604, gl_dispatch_stub_134, gl_dispatch_stub_134, NULL, _gloffset_Vertex3d),
+ NAME_FUNC_OFFSET( 1615, gl_dispatch_stub_135, gl_dispatch_stub_135, NULL, _gloffset_Vertex3dv),
+ NAME_FUNC_OFFSET( 1627, gl_dispatch_stub_136, gl_dispatch_stub_136, NULL, _gloffset_Vertex3f),
+ NAME_FUNC_OFFSET( 1638, gl_dispatch_stub_137, gl_dispatch_stub_137, NULL, _gloffset_Vertex3fv),
+ NAME_FUNC_OFFSET( 1650, gl_dispatch_stub_138, gl_dispatch_stub_138, NULL, _gloffset_Vertex3i),
+ NAME_FUNC_OFFSET( 1661, gl_dispatch_stub_139, gl_dispatch_stub_139, NULL, _gloffset_Vertex3iv),
+ NAME_FUNC_OFFSET( 1673, gl_dispatch_stub_140, gl_dispatch_stub_140, NULL, _gloffset_Vertex3s),
+ NAME_FUNC_OFFSET( 1684, gl_dispatch_stub_141, gl_dispatch_stub_141, NULL, _gloffset_Vertex3sv),
+ NAME_FUNC_OFFSET( 1696, gl_dispatch_stub_142, gl_dispatch_stub_142, NULL, _gloffset_Vertex4d),
+ NAME_FUNC_OFFSET( 1707, gl_dispatch_stub_143, gl_dispatch_stub_143, NULL, _gloffset_Vertex4dv),
+ NAME_FUNC_OFFSET( 1719, gl_dispatch_stub_144, gl_dispatch_stub_144, NULL, _gloffset_Vertex4f),
+ NAME_FUNC_OFFSET( 1730, gl_dispatch_stub_145, gl_dispatch_stub_145, NULL, _gloffset_Vertex4fv),
+ NAME_FUNC_OFFSET( 1742, gl_dispatch_stub_146, gl_dispatch_stub_146, NULL, _gloffset_Vertex4i),
+ NAME_FUNC_OFFSET( 1753, gl_dispatch_stub_147, gl_dispatch_stub_147, NULL, _gloffset_Vertex4iv),
+ NAME_FUNC_OFFSET( 1765, gl_dispatch_stub_148, gl_dispatch_stub_148, NULL, _gloffset_Vertex4s),
+ NAME_FUNC_OFFSET( 1776, gl_dispatch_stub_149, gl_dispatch_stub_149, NULL, _gloffset_Vertex4sv),
+ NAME_FUNC_OFFSET( 1788, gl_dispatch_stub_150, gl_dispatch_stub_150, NULL, _gloffset_ClipPlane),
+ NAME_FUNC_OFFSET( 1800, gl_dispatch_stub_151, gl_dispatch_stub_151, NULL, _gloffset_ColorMaterial),
+ NAME_FUNC_OFFSET( 1816, glCullFace, glCullFace, NULL, _gloffset_CullFace),
+ NAME_FUNC_OFFSET( 1827, glFogf, glFogf, NULL, _gloffset_Fogf),
+ NAME_FUNC_OFFSET( 1834, glFogfv, glFogfv, NULL, _gloffset_Fogfv),
+ NAME_FUNC_OFFSET( 1842, gl_dispatch_stub_155, gl_dispatch_stub_155, NULL, _gloffset_Fogi),
+ NAME_FUNC_OFFSET( 1849, gl_dispatch_stub_156, gl_dispatch_stub_156, NULL, _gloffset_Fogiv),
+ NAME_FUNC_OFFSET( 1857, glFrontFace, glFrontFace, NULL, _gloffset_FrontFace),
+ NAME_FUNC_OFFSET( 1869, glHint, glHint, NULL, _gloffset_Hint),
+ NAME_FUNC_OFFSET( 1876, glLightf, glLightf, NULL, _gloffset_Lightf),
+ NAME_FUNC_OFFSET( 1885, glLightfv, glLightfv, NULL, _gloffset_Lightfv),
+ NAME_FUNC_OFFSET( 1895, gl_dispatch_stub_161, gl_dispatch_stub_161, NULL, _gloffset_Lighti),
+ NAME_FUNC_OFFSET( 1904, gl_dispatch_stub_162, gl_dispatch_stub_162, NULL, _gloffset_Lightiv),
+ NAME_FUNC_OFFSET( 1914, glLightModelf, glLightModelf, NULL, _gloffset_LightModelf),
+ NAME_FUNC_OFFSET( 1928, glLightModelfv, glLightModelfv, NULL, _gloffset_LightModelfv),
+ NAME_FUNC_OFFSET( 1943, gl_dispatch_stub_165, gl_dispatch_stub_165, NULL, _gloffset_LightModeli),
+ NAME_FUNC_OFFSET( 1957, gl_dispatch_stub_166, gl_dispatch_stub_166, NULL, _gloffset_LightModeliv),
+ NAME_FUNC_OFFSET( 1972, gl_dispatch_stub_167, gl_dispatch_stub_167, NULL, _gloffset_LineStipple),
+ NAME_FUNC_OFFSET( 1986, glLineWidth, glLineWidth, NULL, _gloffset_LineWidth),
+ NAME_FUNC_OFFSET( 1998, glMaterialf, glMaterialf, NULL, _gloffset_Materialf),
+ NAME_FUNC_OFFSET( 2010, glMaterialfv, glMaterialfv, NULL, _gloffset_Materialfv),
+ NAME_FUNC_OFFSET( 2023, gl_dispatch_stub_171, gl_dispatch_stub_171, NULL, _gloffset_Materiali),
+ NAME_FUNC_OFFSET( 2035, gl_dispatch_stub_172, gl_dispatch_stub_172, NULL, _gloffset_Materialiv),
+ NAME_FUNC_OFFSET( 2048, glPointSize, glPointSize, NULL, _gloffset_PointSize),
+ NAME_FUNC_OFFSET( 2060, gl_dispatch_stub_174, gl_dispatch_stub_174, NULL, _gloffset_PolygonMode),
+ NAME_FUNC_OFFSET( 2074, gl_dispatch_stub_175, gl_dispatch_stub_175, NULL, _gloffset_PolygonStipple),
+ NAME_FUNC_OFFSET( 2091, glScissor, glScissor, NULL, _gloffset_Scissor),
+ NAME_FUNC_OFFSET( 2101, glShadeModel, glShadeModel, NULL, _gloffset_ShadeModel),
+ NAME_FUNC_OFFSET( 2114, glTexParameterf, glTexParameterf, NULL, _gloffset_TexParameterf),
+ NAME_FUNC_OFFSET( 2130, glTexParameterfv, glTexParameterfv, NULL, _gloffset_TexParameterfv),
+ NAME_FUNC_OFFSET( 2147, glTexParameteri, glTexParameteri, NULL, _gloffset_TexParameteri),
+ NAME_FUNC_OFFSET( 2163, glTexParameteriv, glTexParameteriv, NULL, _gloffset_TexParameteriv),
+ NAME_FUNC_OFFSET( 2180, gl_dispatch_stub_182, gl_dispatch_stub_182, NULL, _gloffset_TexImage1D),
+ NAME_FUNC_OFFSET( 2193, glTexImage2D, glTexImage2D, NULL, _gloffset_TexImage2D),
+ NAME_FUNC_OFFSET( 2206, glTexEnvf, glTexEnvf, NULL, _gloffset_TexEnvf),
+ NAME_FUNC_OFFSET( 2216, glTexEnvfv, glTexEnvfv, NULL, _gloffset_TexEnvfv),
+ NAME_FUNC_OFFSET( 2227, glTexEnvi, glTexEnvi, NULL, _gloffset_TexEnvi),
+ NAME_FUNC_OFFSET( 2237, glTexEnviv, glTexEnviv, NULL, _gloffset_TexEnviv),
+ NAME_FUNC_OFFSET( 2248, gl_dispatch_stub_188, gl_dispatch_stub_188, NULL, _gloffset_TexGend),
+ NAME_FUNC_OFFSET( 2258, gl_dispatch_stub_189, gl_dispatch_stub_189, NULL, _gloffset_TexGendv),
+ NAME_FUNC_OFFSET( 2269, glTexGenfOES, glTexGenfOES, NULL, _gloffset_TexGenfOES),
+ NAME_FUNC_OFFSET( 2282, glTexGenfvOES, glTexGenfvOES, NULL, _gloffset_TexGenfvOES),
+ NAME_FUNC_OFFSET( 2296, glTexGeniOES, glTexGeniOES, NULL, _gloffset_TexGeniOES),
+ NAME_FUNC_OFFSET( 2309, glTexGenivOES, glTexGenivOES, NULL, _gloffset_TexGenivOES),
+ NAME_FUNC_OFFSET( 2323, gl_dispatch_stub_194, gl_dispatch_stub_194, NULL, _gloffset_FeedbackBuffer),
+ NAME_FUNC_OFFSET( 2340, gl_dispatch_stub_195, gl_dispatch_stub_195, NULL, _gloffset_SelectBuffer),
+ NAME_FUNC_OFFSET( 2355, gl_dispatch_stub_196, gl_dispatch_stub_196, NULL, _gloffset_RenderMode),
+ NAME_FUNC_OFFSET( 2368, gl_dispatch_stub_197, gl_dispatch_stub_197, NULL, _gloffset_InitNames),
+ NAME_FUNC_OFFSET( 2380, gl_dispatch_stub_198, gl_dispatch_stub_198, NULL, _gloffset_LoadName),
+ NAME_FUNC_OFFSET( 2391, gl_dispatch_stub_199, gl_dispatch_stub_199, NULL, _gloffset_PassThrough),
+ NAME_FUNC_OFFSET( 2405, gl_dispatch_stub_200, gl_dispatch_stub_200, NULL, _gloffset_PopName),
+ NAME_FUNC_OFFSET( 2415, gl_dispatch_stub_201, gl_dispatch_stub_201, NULL, _gloffset_PushName),
+ NAME_FUNC_OFFSET( 2426, gl_dispatch_stub_202, gl_dispatch_stub_202, NULL, _gloffset_DrawBuffer),
+ NAME_FUNC_OFFSET( 2439, glClear, glClear, NULL, _gloffset_Clear),
+ NAME_FUNC_OFFSET( 2447, gl_dispatch_stub_204, gl_dispatch_stub_204, NULL, _gloffset_ClearAccum),
+ NAME_FUNC_OFFSET( 2460, gl_dispatch_stub_205, gl_dispatch_stub_205, NULL, _gloffset_ClearIndex),
+ NAME_FUNC_OFFSET( 2473, glClearColor, glClearColor, NULL, _gloffset_ClearColor),
+ NAME_FUNC_OFFSET( 2486, glClearStencil, glClearStencil, NULL, _gloffset_ClearStencil),
+ NAME_FUNC_OFFSET( 2501, gl_dispatch_stub_208, gl_dispatch_stub_208, NULL, _gloffset_ClearDepth),
+ NAME_FUNC_OFFSET( 2514, glStencilMask, glStencilMask, NULL, _gloffset_StencilMask),
+ NAME_FUNC_OFFSET( 2528, glColorMask, glColorMask, NULL, _gloffset_ColorMask),
+ NAME_FUNC_OFFSET( 2540, glDepthMask, glDepthMask, NULL, _gloffset_DepthMask),
+ NAME_FUNC_OFFSET( 2552, gl_dispatch_stub_212, gl_dispatch_stub_212, NULL, _gloffset_IndexMask),
+ NAME_FUNC_OFFSET( 2564, gl_dispatch_stub_213, gl_dispatch_stub_213, NULL, _gloffset_Accum),
+ NAME_FUNC_OFFSET( 2572, glDisable, glDisable, NULL, _gloffset_Disable),
+ NAME_FUNC_OFFSET( 2582, glEnable, glEnable, NULL, _gloffset_Enable),
+ NAME_FUNC_OFFSET( 2591, glFinish, glFinish, NULL, _gloffset_Finish),
+ NAME_FUNC_OFFSET( 2600, glFlush, glFlush, NULL, _gloffset_Flush),
+ NAME_FUNC_OFFSET( 2608, gl_dispatch_stub_218, gl_dispatch_stub_218, NULL, _gloffset_PopAttrib),
+ NAME_FUNC_OFFSET( 2620, gl_dispatch_stub_219, gl_dispatch_stub_219, NULL, _gloffset_PushAttrib),
+ NAME_FUNC_OFFSET( 2633, gl_dispatch_stub_220, gl_dispatch_stub_220, NULL, _gloffset_Map1d),
+ NAME_FUNC_OFFSET( 2641, gl_dispatch_stub_221, gl_dispatch_stub_221, NULL, _gloffset_Map1f),
+ NAME_FUNC_OFFSET( 2649, gl_dispatch_stub_222, gl_dispatch_stub_222, NULL, _gloffset_Map2d),
+ NAME_FUNC_OFFSET( 2657, gl_dispatch_stub_223, gl_dispatch_stub_223, NULL, _gloffset_Map2f),
+ NAME_FUNC_OFFSET( 2665, gl_dispatch_stub_224, gl_dispatch_stub_224, NULL, _gloffset_MapGrid1d),
+ NAME_FUNC_OFFSET( 2677, gl_dispatch_stub_225, gl_dispatch_stub_225, NULL, _gloffset_MapGrid1f),
+ NAME_FUNC_OFFSET( 2689, gl_dispatch_stub_226, gl_dispatch_stub_226, NULL, _gloffset_MapGrid2d),
+ NAME_FUNC_OFFSET( 2701, gl_dispatch_stub_227, gl_dispatch_stub_227, NULL, _gloffset_MapGrid2f),
+ NAME_FUNC_OFFSET( 2713, gl_dispatch_stub_228, gl_dispatch_stub_228, NULL, _gloffset_EvalCoord1d),
+ NAME_FUNC_OFFSET( 2727, gl_dispatch_stub_229, gl_dispatch_stub_229, NULL, _gloffset_EvalCoord1dv),
+ NAME_FUNC_OFFSET( 2742, gl_dispatch_stub_230, gl_dispatch_stub_230, NULL, _gloffset_EvalCoord1f),
+ NAME_FUNC_OFFSET( 2756, gl_dispatch_stub_231, gl_dispatch_stub_231, NULL, _gloffset_EvalCoord1fv),
+ NAME_FUNC_OFFSET( 2771, gl_dispatch_stub_232, gl_dispatch_stub_232, NULL, _gloffset_EvalCoord2d),
+ NAME_FUNC_OFFSET( 2785, gl_dispatch_stub_233, gl_dispatch_stub_233, NULL, _gloffset_EvalCoord2dv),
+ NAME_FUNC_OFFSET( 2800, gl_dispatch_stub_234, gl_dispatch_stub_234, NULL, _gloffset_EvalCoord2f),
+ NAME_FUNC_OFFSET( 2814, gl_dispatch_stub_235, gl_dispatch_stub_235, NULL, _gloffset_EvalCoord2fv),
+ NAME_FUNC_OFFSET( 2829, gl_dispatch_stub_236, gl_dispatch_stub_236, NULL, _gloffset_EvalMesh1),
+ NAME_FUNC_OFFSET( 2841, gl_dispatch_stub_237, gl_dispatch_stub_237, NULL, _gloffset_EvalPoint1),
+ NAME_FUNC_OFFSET( 2854, gl_dispatch_stub_238, gl_dispatch_stub_238, NULL, _gloffset_EvalMesh2),
+ NAME_FUNC_OFFSET( 2866, gl_dispatch_stub_239, gl_dispatch_stub_239, NULL, _gloffset_EvalPoint2),
+ NAME_FUNC_OFFSET( 2879, glAlphaFunc, glAlphaFunc, NULL, _gloffset_AlphaFunc),
+ NAME_FUNC_OFFSET( 2891, glBlendFunc, glBlendFunc, NULL, _gloffset_BlendFunc),
+ NAME_FUNC_OFFSET( 2903, glLogicOp, glLogicOp, NULL, _gloffset_LogicOp),
+ NAME_FUNC_OFFSET( 2913, glStencilFunc, glStencilFunc, NULL, _gloffset_StencilFunc),
+ NAME_FUNC_OFFSET( 2927, glStencilOp, glStencilOp, NULL, _gloffset_StencilOp),
+ NAME_FUNC_OFFSET( 2939, glDepthFunc, glDepthFunc, NULL, _gloffset_DepthFunc),
+ NAME_FUNC_OFFSET( 2951, gl_dispatch_stub_246, gl_dispatch_stub_246, NULL, _gloffset_PixelZoom),
+ NAME_FUNC_OFFSET( 2963, gl_dispatch_stub_247, gl_dispatch_stub_247, NULL, _gloffset_PixelTransferf),
+ NAME_FUNC_OFFSET( 2980, gl_dispatch_stub_248, gl_dispatch_stub_248, NULL, _gloffset_PixelTransferi),
+ NAME_FUNC_OFFSET( 2997, gl_dispatch_stub_249, gl_dispatch_stub_249, NULL, _gloffset_PixelStoref),
+ NAME_FUNC_OFFSET( 3011, glPixelStorei, glPixelStorei, NULL, _gloffset_PixelStorei),
+ NAME_FUNC_OFFSET( 3025, gl_dispatch_stub_251, gl_dispatch_stub_251, NULL, _gloffset_PixelMapfv),
+ NAME_FUNC_OFFSET( 3038, gl_dispatch_stub_252, gl_dispatch_stub_252, NULL, _gloffset_PixelMapuiv),
+ NAME_FUNC_OFFSET( 3052, gl_dispatch_stub_253, gl_dispatch_stub_253, NULL, _gloffset_PixelMapusv),
+ NAME_FUNC_OFFSET( 3066, gl_dispatch_stub_254, gl_dispatch_stub_254, NULL, _gloffset_ReadBuffer),
+ NAME_FUNC_OFFSET( 3079, gl_dispatch_stub_255, gl_dispatch_stub_255, NULL, _gloffset_CopyPixels),
+ NAME_FUNC_OFFSET( 3092, glReadPixels, glReadPixels, NULL, _gloffset_ReadPixels),
+ NAME_FUNC_OFFSET( 3105, gl_dispatch_stub_257, gl_dispatch_stub_257, NULL, _gloffset_DrawPixels),
+ NAME_FUNC_OFFSET( 3118, glGetBooleanv, glGetBooleanv, NULL, _gloffset_GetBooleanv),
+ NAME_FUNC_OFFSET( 3132, gl_dispatch_stub_259, gl_dispatch_stub_259, NULL, _gloffset_GetClipPlane),
+ NAME_FUNC_OFFSET( 3147, gl_dispatch_stub_260, gl_dispatch_stub_260, NULL, _gloffset_GetDoublev),
+ NAME_FUNC_OFFSET( 3160, glGetError, glGetError, NULL, _gloffset_GetError),
+ NAME_FUNC_OFFSET( 3171, glGetFloatv, glGetFloatv, NULL, _gloffset_GetFloatv),
+ NAME_FUNC_OFFSET( 3183, glGetIntegerv, glGetIntegerv, NULL, _gloffset_GetIntegerv),
+ NAME_FUNC_OFFSET( 3197, glGetLightfv, glGetLightfv, NULL, _gloffset_GetLightfv),
+ NAME_FUNC_OFFSET( 3210, gl_dispatch_stub_265, gl_dispatch_stub_265, NULL, _gloffset_GetLightiv),
+ NAME_FUNC_OFFSET( 3223, gl_dispatch_stub_266, gl_dispatch_stub_266, NULL, _gloffset_GetMapdv),
+ NAME_FUNC_OFFSET( 3234, gl_dispatch_stub_267, gl_dispatch_stub_267, NULL, _gloffset_GetMapfv),
+ NAME_FUNC_OFFSET( 3245, gl_dispatch_stub_268, gl_dispatch_stub_268, NULL, _gloffset_GetMapiv),
+ NAME_FUNC_OFFSET( 3256, glGetMaterialfv, glGetMaterialfv, NULL, _gloffset_GetMaterialfv),
+ NAME_FUNC_OFFSET( 3272, gl_dispatch_stub_270, gl_dispatch_stub_270, NULL, _gloffset_GetMaterialiv),
+ NAME_FUNC_OFFSET( 3288, gl_dispatch_stub_271, gl_dispatch_stub_271, NULL, _gloffset_GetPixelMapfv),
+ NAME_FUNC_OFFSET( 3304, gl_dispatch_stub_272, gl_dispatch_stub_272, NULL, _gloffset_GetPixelMapuiv),
+ NAME_FUNC_OFFSET( 3321, gl_dispatch_stub_273, gl_dispatch_stub_273, NULL, _gloffset_GetPixelMapusv),
+ NAME_FUNC_OFFSET( 3338, gl_dispatch_stub_274, gl_dispatch_stub_274, NULL, _gloffset_GetPolygonStipple),
+ NAME_FUNC_OFFSET( 3358, glGetString, glGetString, NULL, _gloffset_GetString),
+ NAME_FUNC_OFFSET( 3370, glGetTexEnvfv, glGetTexEnvfv, NULL, _gloffset_GetTexEnvfv),
+ NAME_FUNC_OFFSET( 3384, glGetTexEnviv, glGetTexEnviv, NULL, _gloffset_GetTexEnviv),
+ NAME_FUNC_OFFSET( 3398, gl_dispatch_stub_278, gl_dispatch_stub_278, NULL, _gloffset_GetTexGendv),
+ NAME_FUNC_OFFSET( 3412, glGetTexGenfvOES, glGetTexGenfvOES, NULL, _gloffset_GetTexGenfvOES),
+ NAME_FUNC_OFFSET( 3429, glGetTexGenivOES, glGetTexGenivOES, NULL, _gloffset_GetTexGenivOES),
+ NAME_FUNC_OFFSET( 3446, gl_dispatch_stub_281, gl_dispatch_stub_281, NULL, _gloffset_GetTexImage),
+ NAME_FUNC_OFFSET( 3460, glGetTexParameterfv, glGetTexParameterfv, NULL, _gloffset_GetTexParameterfv),
+ NAME_FUNC_OFFSET( 3480, glGetTexParameteriv, glGetTexParameteriv, NULL, _gloffset_GetTexParameteriv),
+ NAME_FUNC_OFFSET( 3500, gl_dispatch_stub_284, gl_dispatch_stub_284, NULL, _gloffset_GetTexLevelParameterfv),
+ NAME_FUNC_OFFSET( 3525, gl_dispatch_stub_285, gl_dispatch_stub_285, NULL, _gloffset_GetTexLevelParameteriv),
+ NAME_FUNC_OFFSET( 3550, glIsEnabled, glIsEnabled, NULL, _gloffset_IsEnabled),
+ NAME_FUNC_OFFSET( 3562, gl_dispatch_stub_287, gl_dispatch_stub_287, NULL, _gloffset_IsList),
+ NAME_FUNC_OFFSET( 3571, gl_dispatch_stub_288, gl_dispatch_stub_288, NULL, _gloffset_DepthRange),
+ NAME_FUNC_OFFSET( 3584, gl_dispatch_stub_289, gl_dispatch_stub_289, NULL, _gloffset_Frustum),
+ NAME_FUNC_OFFSET( 3594, glLoadIdentity, glLoadIdentity, NULL, _gloffset_LoadIdentity),
+ NAME_FUNC_OFFSET( 3609, glLoadMatrixf, glLoadMatrixf, NULL, _gloffset_LoadMatrixf),
+ NAME_FUNC_OFFSET( 3623, gl_dispatch_stub_292, gl_dispatch_stub_292, NULL, _gloffset_LoadMatrixd),
+ NAME_FUNC_OFFSET( 3637, glMatrixMode, glMatrixMode, NULL, _gloffset_MatrixMode),
+ NAME_FUNC_OFFSET( 3650, glMultMatrixf, glMultMatrixf, NULL, _gloffset_MultMatrixf),
+ NAME_FUNC_OFFSET( 3664, gl_dispatch_stub_295, gl_dispatch_stub_295, NULL, _gloffset_MultMatrixd),
+ NAME_FUNC_OFFSET( 3678, gl_dispatch_stub_296, gl_dispatch_stub_296, NULL, _gloffset_Ortho),
+ NAME_FUNC_OFFSET( 3686, glPopMatrix, glPopMatrix, NULL, _gloffset_PopMatrix),
+ NAME_FUNC_OFFSET( 3698, glPushMatrix, glPushMatrix, NULL, _gloffset_PushMatrix),
+ NAME_FUNC_OFFSET( 3711, gl_dispatch_stub_299, gl_dispatch_stub_299, NULL, _gloffset_Rotated),
+ NAME_FUNC_OFFSET( 3721, glRotatef, glRotatef, NULL, _gloffset_Rotatef),
+ NAME_FUNC_OFFSET( 3731, gl_dispatch_stub_301, gl_dispatch_stub_301, NULL, _gloffset_Scaled),
+ NAME_FUNC_OFFSET( 3740, glScalef, glScalef, NULL, _gloffset_Scalef),
+ NAME_FUNC_OFFSET( 3749, gl_dispatch_stub_303, gl_dispatch_stub_303, NULL, _gloffset_Translated),
+ NAME_FUNC_OFFSET( 3762, glTranslatef, glTranslatef, NULL, _gloffset_Translatef),
+ NAME_FUNC_OFFSET( 3775, glViewport, glViewport, NULL, _gloffset_Viewport),
+ NAME_FUNC_OFFSET( 3786, gl_dispatch_stub_306, gl_dispatch_stub_306, NULL, _gloffset_ArrayElement),
+ NAME_FUNC_OFFSET( 3801, glBindTexture, glBindTexture, NULL, _gloffset_BindTexture),
+ NAME_FUNC_OFFSET( 3815, glColorPointer, glColorPointer, NULL, _gloffset_ColorPointer),
+ NAME_FUNC_OFFSET( 3830, glDisableClientState, glDisableClientState, NULL, _gloffset_DisableClientState),
+ NAME_FUNC_OFFSET( 3851, glDrawArrays, glDrawArrays, NULL, _gloffset_DrawArrays),
+ NAME_FUNC_OFFSET( 3864, glDrawElements, glDrawElements, NULL, _gloffset_DrawElements),
+ NAME_FUNC_OFFSET( 3879, gl_dispatch_stub_312, gl_dispatch_stub_312, NULL, _gloffset_EdgeFlagPointer),
+ NAME_FUNC_OFFSET( 3897, glEnableClientState, glEnableClientState, NULL, _gloffset_EnableClientState),
+ NAME_FUNC_OFFSET( 3917, gl_dispatch_stub_314, gl_dispatch_stub_314, NULL, _gloffset_IndexPointer),
+ NAME_FUNC_OFFSET( 3932, gl_dispatch_stub_315, gl_dispatch_stub_315, NULL, _gloffset_Indexub),
+ NAME_FUNC_OFFSET( 3942, gl_dispatch_stub_316, gl_dispatch_stub_316, NULL, _gloffset_Indexubv),
+ NAME_FUNC_OFFSET( 3953, gl_dispatch_stub_317, gl_dispatch_stub_317, NULL, _gloffset_InterleavedArrays),
+ NAME_FUNC_OFFSET( 3973, glNormalPointer, glNormalPointer, NULL, _gloffset_NormalPointer),
+ NAME_FUNC_OFFSET( 3989, glPolygonOffset, glPolygonOffset, NULL, _gloffset_PolygonOffset),
+ NAME_FUNC_OFFSET( 4005, glTexCoordPointer, glTexCoordPointer, NULL, _gloffset_TexCoordPointer),
+ NAME_FUNC_OFFSET( 4023, glVertexPointer, glVertexPointer, NULL, _gloffset_VertexPointer),
+ NAME_FUNC_OFFSET( 4039, gl_dispatch_stub_322, gl_dispatch_stub_322, NULL, _gloffset_AreTexturesResident),
+ NAME_FUNC_OFFSET( 4061, gl_dispatch_stub_323, gl_dispatch_stub_323, NULL, _gloffset_CopyTexImage1D),
+ NAME_FUNC_OFFSET( 4078, glCopyTexImage2D, glCopyTexImage2D, NULL, _gloffset_CopyTexImage2D),
+ NAME_FUNC_OFFSET( 4095, gl_dispatch_stub_325, gl_dispatch_stub_325, NULL, _gloffset_CopyTexSubImage1D),
+ NAME_FUNC_OFFSET( 4115, glCopyTexSubImage2D, glCopyTexSubImage2D, NULL, _gloffset_CopyTexSubImage2D),
+ NAME_FUNC_OFFSET( 4135, glDeleteTextures, glDeleteTextures, NULL, _gloffset_DeleteTextures),
+ NAME_FUNC_OFFSET( 4152, glGenTextures, glGenTextures, NULL, _gloffset_GenTextures),
+ NAME_FUNC_OFFSET( 4166, glGetPointerv, glGetPointerv, NULL, _gloffset_GetPointerv),
+ NAME_FUNC_OFFSET( 4180, glIsTexture, glIsTexture, NULL, _gloffset_IsTexture),
+ NAME_FUNC_OFFSET( 4192, gl_dispatch_stub_331, gl_dispatch_stub_331, NULL, _gloffset_PrioritizeTextures),
+ NAME_FUNC_OFFSET( 4213, gl_dispatch_stub_332, gl_dispatch_stub_332, NULL, _gloffset_TexSubImage1D),
+ NAME_FUNC_OFFSET( 4229, glTexSubImage2D, glTexSubImage2D, NULL, _gloffset_TexSubImage2D),
+ NAME_FUNC_OFFSET( 4245, gl_dispatch_stub_334, gl_dispatch_stub_334, NULL, _gloffset_PopClientAttrib),
+ NAME_FUNC_OFFSET( 4263, gl_dispatch_stub_335, gl_dispatch_stub_335, NULL, _gloffset_PushClientAttrib),
+ NAME_FUNC_OFFSET( 4282, gl_dispatch_stub_336, gl_dispatch_stub_336, NULL, _gloffset_BlendColor),
+ NAME_FUNC_OFFSET( 4295, glBlendEquationOES, glBlendEquationOES, NULL, _gloffset_BlendEquationOES),
+ NAME_FUNC_OFFSET( 4314, gl_dispatch_stub_338, gl_dispatch_stub_338, NULL, _gloffset_DrawRangeElements),
+ NAME_FUNC_OFFSET( 4334, gl_dispatch_stub_339, gl_dispatch_stub_339, NULL, _gloffset_ColorTable),
+ NAME_FUNC_OFFSET( 4347, gl_dispatch_stub_340, gl_dispatch_stub_340, NULL, _gloffset_ColorTableParameterfv),
+ NAME_FUNC_OFFSET( 4371, gl_dispatch_stub_341, gl_dispatch_stub_341, NULL, _gloffset_ColorTableParameteriv),
+ NAME_FUNC_OFFSET( 4395, gl_dispatch_stub_342, gl_dispatch_stub_342, NULL, _gloffset_CopyColorTable),
+ NAME_FUNC_OFFSET( 4412, gl_dispatch_stub_343, gl_dispatch_stub_343, NULL, _gloffset_GetColorTable),
+ NAME_FUNC_OFFSET( 4428, gl_dispatch_stub_344, gl_dispatch_stub_344, NULL, _gloffset_GetColorTableParameterfv),
+ NAME_FUNC_OFFSET( 4455, gl_dispatch_stub_345, gl_dispatch_stub_345, NULL, _gloffset_GetColorTableParameteriv),
+ NAME_FUNC_OFFSET( 4482, gl_dispatch_stub_346, gl_dispatch_stub_346, NULL, _gloffset_ColorSubTable),
+ NAME_FUNC_OFFSET( 4498, gl_dispatch_stub_347, gl_dispatch_stub_347, NULL, _gloffset_CopyColorSubTable),
+ NAME_FUNC_OFFSET( 4518, gl_dispatch_stub_348, gl_dispatch_stub_348, NULL, _gloffset_ConvolutionFilter1D),
+ NAME_FUNC_OFFSET( 4540, gl_dispatch_stub_349, gl_dispatch_stub_349, NULL, _gloffset_ConvolutionFilter2D),
+ NAME_FUNC_OFFSET( 4562, gl_dispatch_stub_350, gl_dispatch_stub_350, NULL, _gloffset_ConvolutionParameterf),
+ NAME_FUNC_OFFSET( 4586, gl_dispatch_stub_351, gl_dispatch_stub_351, NULL, _gloffset_ConvolutionParameterfv),
+ NAME_FUNC_OFFSET( 4611, gl_dispatch_stub_352, gl_dispatch_stub_352, NULL, _gloffset_ConvolutionParameteri),
+ NAME_FUNC_OFFSET( 4635, gl_dispatch_stub_353, gl_dispatch_stub_353, NULL, _gloffset_ConvolutionParameteriv),
+ NAME_FUNC_OFFSET( 4660, gl_dispatch_stub_354, gl_dispatch_stub_354, NULL, _gloffset_CopyConvolutionFilter1D),
+ NAME_FUNC_OFFSET( 4686, gl_dispatch_stub_355, gl_dispatch_stub_355, NULL, _gloffset_CopyConvolutionFilter2D),
+ NAME_FUNC_OFFSET( 4712, gl_dispatch_stub_356, gl_dispatch_stub_356, NULL, _gloffset_GetConvolutionFilter),
+ NAME_FUNC_OFFSET( 4735, gl_dispatch_stub_357, gl_dispatch_stub_357, NULL, _gloffset_GetConvolutionParameterfv),
+ NAME_FUNC_OFFSET( 4763, gl_dispatch_stub_358, gl_dispatch_stub_358, NULL, _gloffset_GetConvolutionParameteriv),
+ NAME_FUNC_OFFSET( 4791, gl_dispatch_stub_359, gl_dispatch_stub_359, NULL, _gloffset_GetSeparableFilter),
+ NAME_FUNC_OFFSET( 4812, gl_dispatch_stub_360, gl_dispatch_stub_360, NULL, _gloffset_SeparableFilter2D),
+ NAME_FUNC_OFFSET( 4832, gl_dispatch_stub_361, gl_dispatch_stub_361, NULL, _gloffset_GetHistogram),
+ NAME_FUNC_OFFSET( 4847, gl_dispatch_stub_362, gl_dispatch_stub_362, NULL, _gloffset_GetHistogramParameterfv),
+ NAME_FUNC_OFFSET( 4873, gl_dispatch_stub_363, gl_dispatch_stub_363, NULL, _gloffset_GetHistogramParameteriv),
+ NAME_FUNC_OFFSET( 4899, gl_dispatch_stub_364, gl_dispatch_stub_364, NULL, _gloffset_GetMinmax),
+ NAME_FUNC_OFFSET( 4911, gl_dispatch_stub_365, gl_dispatch_stub_365, NULL, _gloffset_GetMinmaxParameterfv),
+ NAME_FUNC_OFFSET( 4934, gl_dispatch_stub_366, gl_dispatch_stub_366, NULL, _gloffset_GetMinmaxParameteriv),
+ NAME_FUNC_OFFSET( 4957, gl_dispatch_stub_367, gl_dispatch_stub_367, NULL, _gloffset_Histogram),
+ NAME_FUNC_OFFSET( 4969, gl_dispatch_stub_368, gl_dispatch_stub_368, NULL, _gloffset_Minmax),
+ NAME_FUNC_OFFSET( 4978, gl_dispatch_stub_369, gl_dispatch_stub_369, NULL, _gloffset_ResetHistogram),
+ NAME_FUNC_OFFSET( 4995, gl_dispatch_stub_370, gl_dispatch_stub_370, NULL, _gloffset_ResetMinmax),
+ NAME_FUNC_OFFSET( 5009, gl_dispatch_stub_371, gl_dispatch_stub_371, NULL, _gloffset_TexImage3D),
+ NAME_FUNC_OFFSET( 5022, gl_dispatch_stub_372, gl_dispatch_stub_372, NULL, _gloffset_TexSubImage3D),
+ NAME_FUNC_OFFSET( 5038, gl_dispatch_stub_373, gl_dispatch_stub_373, NULL, _gloffset_CopyTexSubImage3D),
+ NAME_FUNC_OFFSET( 5058, glActiveTexture, glActiveTexture, NULL, _gloffset_ActiveTexture),
+ NAME_FUNC_OFFSET( 5074, glClientActiveTexture, glClientActiveTexture, NULL, _gloffset_ClientActiveTexture),
+ NAME_FUNC_OFFSET( 5096, gl_dispatch_stub_376, gl_dispatch_stub_376, NULL, _gloffset_MultiTexCoord1dARB),
+ NAME_FUNC_OFFSET( 5117, gl_dispatch_stub_377, gl_dispatch_stub_377, NULL, _gloffset_MultiTexCoord1dvARB),
+ NAME_FUNC_OFFSET( 5139, gl_dispatch_stub_378, gl_dispatch_stub_378, NULL, _gloffset_MultiTexCoord1fARB),
+ NAME_FUNC_OFFSET( 5160, gl_dispatch_stub_379, gl_dispatch_stub_379, NULL, _gloffset_MultiTexCoord1fvARB),
+ NAME_FUNC_OFFSET( 5182, gl_dispatch_stub_380, gl_dispatch_stub_380, NULL, _gloffset_MultiTexCoord1iARB),
+ NAME_FUNC_OFFSET( 5203, gl_dispatch_stub_381, gl_dispatch_stub_381, NULL, _gloffset_MultiTexCoord1ivARB),
+ NAME_FUNC_OFFSET( 5225, gl_dispatch_stub_382, gl_dispatch_stub_382, NULL, _gloffset_MultiTexCoord1sARB),
+ NAME_FUNC_OFFSET( 5246, gl_dispatch_stub_383, gl_dispatch_stub_383, NULL, _gloffset_MultiTexCoord1svARB),
+ NAME_FUNC_OFFSET( 5268, gl_dispatch_stub_384, gl_dispatch_stub_384, NULL, _gloffset_MultiTexCoord2dARB),
+ NAME_FUNC_OFFSET( 5289, gl_dispatch_stub_385, gl_dispatch_stub_385, NULL, _gloffset_MultiTexCoord2dvARB),
+ NAME_FUNC_OFFSET( 5311, gl_dispatch_stub_386, gl_dispatch_stub_386, NULL, _gloffset_MultiTexCoord2fARB),
+ NAME_FUNC_OFFSET( 5332, gl_dispatch_stub_387, gl_dispatch_stub_387, NULL, _gloffset_MultiTexCoord2fvARB),
+ NAME_FUNC_OFFSET( 5354, gl_dispatch_stub_388, gl_dispatch_stub_388, NULL, _gloffset_MultiTexCoord2iARB),
+ NAME_FUNC_OFFSET( 5375, gl_dispatch_stub_389, gl_dispatch_stub_389, NULL, _gloffset_MultiTexCoord2ivARB),
+ NAME_FUNC_OFFSET( 5397, gl_dispatch_stub_390, gl_dispatch_stub_390, NULL, _gloffset_MultiTexCoord2sARB),
+ NAME_FUNC_OFFSET( 5418, gl_dispatch_stub_391, gl_dispatch_stub_391, NULL, _gloffset_MultiTexCoord2svARB),
+ NAME_FUNC_OFFSET( 5440, gl_dispatch_stub_392, gl_dispatch_stub_392, NULL, _gloffset_MultiTexCoord3dARB),
+ NAME_FUNC_OFFSET( 5461, gl_dispatch_stub_393, gl_dispatch_stub_393, NULL, _gloffset_MultiTexCoord3dvARB),
+ NAME_FUNC_OFFSET( 5483, gl_dispatch_stub_394, gl_dispatch_stub_394, NULL, _gloffset_MultiTexCoord3fARB),
+ NAME_FUNC_OFFSET( 5504, gl_dispatch_stub_395, gl_dispatch_stub_395, NULL, _gloffset_MultiTexCoord3fvARB),
+ NAME_FUNC_OFFSET( 5526, gl_dispatch_stub_396, gl_dispatch_stub_396, NULL, _gloffset_MultiTexCoord3iARB),
+ NAME_FUNC_OFFSET( 5547, gl_dispatch_stub_397, gl_dispatch_stub_397, NULL, _gloffset_MultiTexCoord3ivARB),
+ NAME_FUNC_OFFSET( 5569, gl_dispatch_stub_398, gl_dispatch_stub_398, NULL, _gloffset_MultiTexCoord3sARB),
+ NAME_FUNC_OFFSET( 5590, gl_dispatch_stub_399, gl_dispatch_stub_399, NULL, _gloffset_MultiTexCoord3svARB),
+ NAME_FUNC_OFFSET( 5612, gl_dispatch_stub_400, gl_dispatch_stub_400, NULL, _gloffset_MultiTexCoord4dARB),
+ NAME_FUNC_OFFSET( 5633, gl_dispatch_stub_401, gl_dispatch_stub_401, NULL, _gloffset_MultiTexCoord4dvARB),
+ NAME_FUNC_OFFSET( 5655, glMultiTexCoord4f, glMultiTexCoord4f, NULL, _gloffset_MultiTexCoord4f),
+ NAME_FUNC_OFFSET( 5673, gl_dispatch_stub_403, gl_dispatch_stub_403, NULL, _gloffset_MultiTexCoord4fvARB),
+ NAME_FUNC_OFFSET( 5695, gl_dispatch_stub_404, gl_dispatch_stub_404, NULL, _gloffset_MultiTexCoord4iARB),
+ NAME_FUNC_OFFSET( 5716, gl_dispatch_stub_405, gl_dispatch_stub_405, NULL, _gloffset_MultiTexCoord4ivARB),
+ NAME_FUNC_OFFSET( 5738, gl_dispatch_stub_406, gl_dispatch_stub_406, NULL, _gloffset_MultiTexCoord4sARB),
+ NAME_FUNC_OFFSET( 5759, gl_dispatch_stub_407, gl_dispatch_stub_407, NULL, _gloffset_MultiTexCoord4svARB),
+ NAME_FUNC_OFFSET( 5781, glBlendEquationSeparateOES, glBlendEquationSeparateOES, NULL, _gloffset_BlendEquationSeparateOES),
+ NAME_FUNC_OFFSET( 5808, glBlendFuncSeparateOES, glBlendFuncSeparateOES, NULL, _gloffset_BlendFuncSeparateOES),
+ NAME_FUNC_OFFSET( 5831, glDrawTexfOES, glDrawTexfOES, NULL, _gloffset_DrawTexfOES),
+ NAME_FUNC_OFFSET( 5845, glDrawTexfvOES, glDrawTexfvOES, NULL, _gloffset_DrawTexfvOES),
+ NAME_FUNC_OFFSET( 5860, glDrawTexiOES, glDrawTexiOES, NULL, _gloffset_DrawTexiOES),
+ NAME_FUNC_OFFSET( 5874, glDrawTexivOES, glDrawTexivOES, NULL, _gloffset_DrawTexivOES),
+ NAME_FUNC_OFFSET( 5889, glDrawTexsOES, glDrawTexsOES, NULL, _gloffset_DrawTexsOES),
+ NAME_FUNC_OFFSET( 5903, glDrawTexsvOES, glDrawTexsvOES, NULL, _gloffset_DrawTexsvOES),
+ NAME_FUNC_OFFSET( 5918, glDrawTexxOES, glDrawTexxOES, NULL, _gloffset_DrawTexxOES),
+ NAME_FUNC_OFFSET( 5932, glDrawTexxvOES, glDrawTexxvOES, NULL, _gloffset_DrawTexxvOES),
+ NAME_FUNC_OFFSET( 5947, glBindFramebufferOES, glBindFramebufferOES, NULL, _gloffset_BindFramebufferOES),
+ NAME_FUNC_OFFSET( 5968, glBindRenderbufferOES, glBindRenderbufferOES, NULL, _gloffset_BindRenderbufferOES),
+ NAME_FUNC_OFFSET( 5990, glCheckFramebufferStatusOES, glCheckFramebufferStatusOES, NULL, _gloffset_CheckFramebufferStatusOES),
+ NAME_FUNC_OFFSET( 6018, glDeleteFramebuffersOES, glDeleteFramebuffersOES, NULL, _gloffset_DeleteFramebuffersOES),
+ NAME_FUNC_OFFSET( 6042, glDeleteRenderbuffersOES, glDeleteRenderbuffersOES, NULL, _gloffset_DeleteRenderbuffersOES),
+ NAME_FUNC_OFFSET( 6067, glFramebufferRenderbufferOES, glFramebufferRenderbufferOES, NULL, _gloffset_FramebufferRenderbufferOES),
+ NAME_FUNC_OFFSET( 6096, glFramebufferTexture2DOES, glFramebufferTexture2DOES, NULL, _gloffset_FramebufferTexture2DOES),
+ NAME_FUNC_OFFSET( 6122, glGenFramebuffersOES, glGenFramebuffersOES, NULL, _gloffset_GenFramebuffersOES),
+ NAME_FUNC_OFFSET( 6143, glGenRenderbuffersOES, glGenRenderbuffersOES, NULL, _gloffset_GenRenderbuffersOES),
+ NAME_FUNC_OFFSET( 6165, glGenerateMipmapOES, glGenerateMipmapOES, NULL, _gloffset_GenerateMipmapOES),
+ NAME_FUNC_OFFSET( 6185, glGetFramebufferAttachmentParameterivOES, glGetFramebufferAttachmentParameterivOES, NULL, _gloffset_GetFramebufferAttachmentParameterivOES),
+ NAME_FUNC_OFFSET( 6226, glGetRenderbufferParameterivOES, glGetRenderbufferParameterivOES, NULL, _gloffset_GetRenderbufferParameterivOES),
+ NAME_FUNC_OFFSET( 6258, glIsFramebufferOES, glIsFramebufferOES, NULL, _gloffset_IsFramebufferOES),
+ NAME_FUNC_OFFSET( 6277, glIsRenderbufferOES, glIsRenderbufferOES, NULL, _gloffset_IsRenderbufferOES),
+ NAME_FUNC_OFFSET( 6297, glRenderbufferStorageOES, glRenderbufferStorageOES, NULL, _gloffset_RenderbufferStorageOES),
+ NAME_FUNC_OFFSET( 6322, glPointSizePointerOES, glPointSizePointerOES, NULL, _gloffset_PointSizePointerOES),
+ NAME_FUNC_OFFSET( 6344, glQueryMatrixxOES, glQueryMatrixxOES, NULL, _gloffset_QueryMatrixxOES),
+ NAME_FUNC_OFFSET( 6362, glGetTexGenxvOES, glGetTexGenxvOES, NULL, _gloffset_GetTexGenxvOES),
+ NAME_FUNC_OFFSET( 6379, glTexGenxOES, glTexGenxOES, NULL, _gloffset_TexGenxOES),
+ NAME_FUNC_OFFSET( 6392, glTexGenxvOES, glTexGenxvOES, NULL, _gloffset_TexGenxvOES),
+ NAME_FUNC_OFFSET( 6406, glEGLImageTargetRenderbufferStorageOES, glEGLImageTargetRenderbufferStorageOES, NULL, _gloffset_EGLImageTargetRenderbufferStorageOES),
+ NAME_FUNC_OFFSET( 6445, glEGLImageTargetTexture2DOES, glEGLImageTargetTexture2DOES, NULL, _gloffset_EGLImageTargetTexture2DOES),
+ NAME_FUNC_OFFSET( 6474, glGetBufferPointervOES, glGetBufferPointervOES, NULL, _gloffset_GetBufferPointervOES),
+ NAME_FUNC_OFFSET( 6497, glMapBufferOES, glMapBufferOES, NULL, _gloffset_MapBufferOES),
+ NAME_FUNC_OFFSET( 6512, glUnmapBufferOES, glUnmapBufferOES, NULL, _gloffset_UnmapBufferOES),
+ NAME_FUNC_OFFSET( 6529, gl_dispatch_stub_443, gl_dispatch_stub_443, NULL, _gloffset_BindVertexArrayAPPLE),
+ NAME_FUNC_OFFSET( 6552, gl_dispatch_stub_444, gl_dispatch_stub_444, NULL, _gloffset_DeleteVertexArraysAPPLE),
+ NAME_FUNC_OFFSET( 6578, gl_dispatch_stub_445, gl_dispatch_stub_445, NULL, _gloffset_GenVertexArraysAPPLE),
+ NAME_FUNC_OFFSET( 6601, gl_dispatch_stub_446, gl_dispatch_stub_446, NULL, _gloffset_IsVertexArrayAPPLE),
+ NAME_FUNC_OFFSET( 6622, glCompressedTexImage2D, glCompressedTexImage2D, NULL, _gloffset_CompressedTexImage2D),
+ NAME_FUNC_OFFSET( 6645, glCompressedTexSubImage2D, glCompressedTexSubImage2D, NULL, _gloffset_CompressedTexSubImage2D),
+ NAME_FUNC_OFFSET( 6671, glSampleCoverage, glSampleCoverage, NULL, _gloffset_SampleCoverage),
+ NAME_FUNC_OFFSET( 6688, glBindBuffer, glBindBuffer, NULL, _gloffset_BindBuffer),
+ NAME_FUNC_OFFSET( 6701, glBufferData, glBufferData, NULL, _gloffset_BufferData),
+ NAME_FUNC_OFFSET( 6714, glBufferSubData, glBufferSubData, NULL, _gloffset_BufferSubData),
+ NAME_FUNC_OFFSET( 6730, glDeleteBuffers, glDeleteBuffers, NULL, _gloffset_DeleteBuffers),
+ NAME_FUNC_OFFSET( 6746, glGenBuffers, glGenBuffers, NULL, _gloffset_GenBuffers),
+ NAME_FUNC_OFFSET( 6759, glGetBufferParameteriv, glGetBufferParameteriv, NULL, _gloffset_GetBufferParameteriv),
+ NAME_FUNC_OFFSET( 6782, glIsBuffer, glIsBuffer, NULL, _gloffset_IsBuffer),
+ NAME_FUNC_OFFSET( 6793, glAlphaFuncx, glAlphaFuncx, NULL, _gloffset_AlphaFuncx),
+ NAME_FUNC_OFFSET( 6806, glClearColorx, glClearColorx, NULL, _gloffset_ClearColorx),
+ NAME_FUNC_OFFSET( 6820, glClearDepthf, glClearDepthf, NULL, _gloffset_ClearDepthf),
+ NAME_FUNC_OFFSET( 6834, glClearDepthx, glClearDepthx, NULL, _gloffset_ClearDepthx),
+ NAME_FUNC_OFFSET( 6848, glColor4x, glColor4x, NULL, _gloffset_Color4x),
+ NAME_FUNC_OFFSET( 6858, glDepthRangef, glDepthRangef, NULL, _gloffset_DepthRangef),
+ NAME_FUNC_OFFSET( 6872, glDepthRangex, glDepthRangex, NULL, _gloffset_DepthRangex),
+ NAME_FUNC_OFFSET( 6886, glFogx, glFogx, NULL, _gloffset_Fogx),
+ NAME_FUNC_OFFSET( 6893, glFogxv, glFogxv, NULL, _gloffset_Fogxv),
+ NAME_FUNC_OFFSET( 6901, glFrustumf, glFrustumf, NULL, _gloffset_Frustumf),
+ NAME_FUNC_OFFSET( 6912, glFrustumx, glFrustumx, NULL, _gloffset_Frustumx),
+ NAME_FUNC_OFFSET( 6923, glLightModelx, glLightModelx, NULL, _gloffset_LightModelx),
+ NAME_FUNC_OFFSET( 6937, glLightModelxv, glLightModelxv, NULL, _gloffset_LightModelxv),
+ NAME_FUNC_OFFSET( 6952, glLightx, glLightx, NULL, _gloffset_Lightx),
+ NAME_FUNC_OFFSET( 6961, glLightxv, glLightxv, NULL, _gloffset_Lightxv),
+ NAME_FUNC_OFFSET( 6971, glLineWidthx, glLineWidthx, NULL, _gloffset_LineWidthx),
+ NAME_FUNC_OFFSET( 6984, glLoadMatrixx, glLoadMatrixx, NULL, _gloffset_LoadMatrixx),
+ NAME_FUNC_OFFSET( 6998, glMaterialx, glMaterialx, NULL, _gloffset_Materialx),
+ NAME_FUNC_OFFSET( 7010, glMaterialxv, glMaterialxv, NULL, _gloffset_Materialxv),
+ NAME_FUNC_OFFSET( 7023, glMultMatrixx, glMultMatrixx, NULL, _gloffset_MultMatrixx),
+ NAME_FUNC_OFFSET( 7037, glMultiTexCoord4x, glMultiTexCoord4x, NULL, _gloffset_MultiTexCoord4x),
+ NAME_FUNC_OFFSET( 7055, glNormal3x, glNormal3x, NULL, _gloffset_Normal3x),
+ NAME_FUNC_OFFSET( 7066, glOrthof, glOrthof, NULL, _gloffset_Orthof),
+ NAME_FUNC_OFFSET( 7075, glOrthox, glOrthox, NULL, _gloffset_Orthox),
+ NAME_FUNC_OFFSET( 7084, glPointSizex, glPointSizex, NULL, _gloffset_PointSizex),
+ NAME_FUNC_OFFSET( 7097, glPolygonOffsetx, glPolygonOffsetx, NULL, _gloffset_PolygonOffsetx),
+ NAME_FUNC_OFFSET( 7114, glRotatex, glRotatex, NULL, _gloffset_Rotatex),
+ NAME_FUNC_OFFSET( 7124, glSampleCoveragex, glSampleCoveragex, NULL, _gloffset_SampleCoveragex),
+ NAME_FUNC_OFFSET( 7142, glScalex, glScalex, NULL, _gloffset_Scalex),
+ NAME_FUNC_OFFSET( 7151, glTexEnvx, glTexEnvx, NULL, _gloffset_TexEnvx),
+ NAME_FUNC_OFFSET( 7161, glTexEnvxv, glTexEnvxv, NULL, _gloffset_TexEnvxv),
+ NAME_FUNC_OFFSET( 7172, glTexParameterx, glTexParameterx, NULL, _gloffset_TexParameterx),
+ NAME_FUNC_OFFSET( 7188, glTranslatex, glTranslatex, NULL, _gloffset_Translatex),
+ NAME_FUNC_OFFSET( 7201, glClipPlanef, glClipPlanef, NULL, _gloffset_ClipPlanef),
+ NAME_FUNC_OFFSET( 7214, glClipPlanex, glClipPlanex, NULL, _gloffset_ClipPlanex),
+ NAME_FUNC_OFFSET( 7227, glGetClipPlanef, glGetClipPlanef, NULL, _gloffset_GetClipPlanef),
+ NAME_FUNC_OFFSET( 7243, glGetClipPlanex, glGetClipPlanex, NULL, _gloffset_GetClipPlanex),
+ NAME_FUNC_OFFSET( 7259, glGetFixedv, glGetFixedv, NULL, _gloffset_GetFixedv),
+ NAME_FUNC_OFFSET( 7271, glGetLightxv, glGetLightxv, NULL, _gloffset_GetLightxv),
+ NAME_FUNC_OFFSET( 7284, glGetMaterialxv, glGetMaterialxv, NULL, _gloffset_GetMaterialxv),
+ NAME_FUNC_OFFSET( 7300, glGetTexEnvxv, glGetTexEnvxv, NULL, _gloffset_GetTexEnvxv),
+ NAME_FUNC_OFFSET( 7314, glGetTexParameterxv, glGetTexParameterxv, NULL, _gloffset_GetTexParameterxv),
+ NAME_FUNC_OFFSET( 7334, glPointParameterx, glPointParameterx, NULL, _gloffset_PointParameterx),
+ NAME_FUNC_OFFSET( 7352, glPointParameterxv, glPointParameterxv, NULL, _gloffset_PointParameterxv),
+ NAME_FUNC_OFFSET( 7371, glTexParameterxv, glTexParameterxv, NULL, _gloffset_TexParameterxv),
+ NAME_FUNC_OFFSET( 7388, glPointParameterf, glPointParameterf, NULL, _gloffset_PointParameterf),
+ NAME_FUNC_OFFSET( 7406, glPointParameterfv, glPointParameterfv, NULL, _gloffset_PointParameterfv),
+ NAME_FUNC_OFFSET( 7425, glTexGenfOES, glTexGenfOES, NULL, _gloffset_TexGenfOES),
+ NAME_FUNC_OFFSET( 7435, glTexGenfvOES, glTexGenfvOES, NULL, _gloffset_TexGenfvOES),
+ NAME_FUNC_OFFSET( 7446, glTexGeniOES, glTexGeniOES, NULL, _gloffset_TexGeniOES),
+ NAME_FUNC_OFFSET( 7456, glTexGenivOES, glTexGenivOES, NULL, _gloffset_TexGenivOES),
+ NAME_FUNC_OFFSET( 7467, glGetTexGenfvOES, glGetTexGenfvOES, NULL, _gloffset_GetTexGenfvOES),
+ NAME_FUNC_OFFSET( 7481, glGetTexGenivOES, glGetTexGenivOES, NULL, _gloffset_GetTexGenivOES),
+ NAME_FUNC_OFFSET( 7495, glBlendEquationOES, glBlendEquationOES, NULL, _gloffset_BlendEquationOES),
+ NAME_FUNC_OFFSET( 7511, glActiveTexture, glActiveTexture, NULL, _gloffset_ActiveTexture),
+ NAME_FUNC_OFFSET( 7530, glClientActiveTexture, glClientActiveTexture, NULL, _gloffset_ClientActiveTexture),
+ NAME_FUNC_OFFSET( 7555, glMultiTexCoord4f, glMultiTexCoord4f, NULL, _gloffset_MultiTexCoord4f),
+ NAME_FUNC_OFFSET( 7576, glAlphaFuncx, glAlphaFuncx, NULL, _gloffset_AlphaFuncx),
+ NAME_FUNC_OFFSET( 7592, glClearColorx, glClearColorx, NULL, _gloffset_ClearColorx),
+ NAME_FUNC_OFFSET( 7609, glClearDepthf, glClearDepthf, NULL, _gloffset_ClearDepthf),
+ NAME_FUNC_OFFSET( 7626, glClearDepthx, glClearDepthx, NULL, _gloffset_ClearDepthx),
+ NAME_FUNC_OFFSET( 7643, glColor4x, glColor4x, NULL, _gloffset_Color4x),
+ NAME_FUNC_OFFSET( 7656, glDepthRangef, glDepthRangef, NULL, _gloffset_DepthRangef),
+ NAME_FUNC_OFFSET( 7673, glDepthRangex, glDepthRangex, NULL, _gloffset_DepthRangex),
+ NAME_FUNC_OFFSET( 7690, glFogx, glFogx, NULL, _gloffset_Fogx),
+ NAME_FUNC_OFFSET( 7700, glFogxv, glFogxv, NULL, _gloffset_Fogxv),
+ NAME_FUNC_OFFSET( 7711, glFrustumf, glFrustumf, NULL, _gloffset_Frustumf),
+ NAME_FUNC_OFFSET( 7725, glFrustumx, glFrustumx, NULL, _gloffset_Frustumx),
+ NAME_FUNC_OFFSET( 7739, glLightModelx, glLightModelx, NULL, _gloffset_LightModelx),
+ NAME_FUNC_OFFSET( 7756, glLightModelxv, glLightModelxv, NULL, _gloffset_LightModelxv),
+ NAME_FUNC_OFFSET( 7774, glLightx, glLightx, NULL, _gloffset_Lightx),
+ NAME_FUNC_OFFSET( 7786, glLightxv, glLightxv, NULL, _gloffset_Lightxv),
+ NAME_FUNC_OFFSET( 7799, glLineWidthx, glLineWidthx, NULL, _gloffset_LineWidthx),
+ NAME_FUNC_OFFSET( 7815, glLoadMatrixx, glLoadMatrixx, NULL, _gloffset_LoadMatrixx),
+ NAME_FUNC_OFFSET( 7832, glMaterialx, glMaterialx, NULL, _gloffset_Materialx),
+ NAME_FUNC_OFFSET( 7847, glMaterialxv, glMaterialxv, NULL, _gloffset_Materialxv),
+ NAME_FUNC_OFFSET( 7863, glMultMatrixx, glMultMatrixx, NULL, _gloffset_MultMatrixx),
+ NAME_FUNC_OFFSET( 7880, glMultiTexCoord4x, glMultiTexCoord4x, NULL, _gloffset_MultiTexCoord4x),
+ NAME_FUNC_OFFSET( 7901, glNormal3x, glNormal3x, NULL, _gloffset_Normal3x),
+ NAME_FUNC_OFFSET( 7915, glOrthof, glOrthof, NULL, _gloffset_Orthof),
+ NAME_FUNC_OFFSET( 7927, glOrthox, glOrthox, NULL, _gloffset_Orthox),
+ NAME_FUNC_OFFSET( 7939, glPointSizex, glPointSizex, NULL, _gloffset_PointSizex),
+ NAME_FUNC_OFFSET( 7955, glPolygonOffsetx, glPolygonOffsetx, NULL, _gloffset_PolygonOffsetx),
+ NAME_FUNC_OFFSET( 7975, glRotatex, glRotatex, NULL, _gloffset_Rotatex),
+ NAME_FUNC_OFFSET( 7988, glSampleCoveragex, glSampleCoveragex, NULL, _gloffset_SampleCoveragex),
+ NAME_FUNC_OFFSET( 8009, glScalex, glScalex, NULL, _gloffset_Scalex),
+ NAME_FUNC_OFFSET( 8021, glTexEnvx, glTexEnvx, NULL, _gloffset_TexEnvx),
+ NAME_FUNC_OFFSET( 8034, glTexEnvxv, glTexEnvxv, NULL, _gloffset_TexEnvxv),
+ NAME_FUNC_OFFSET( 8048, glTexParameterx, glTexParameterx, NULL, _gloffset_TexParameterx),
+ NAME_FUNC_OFFSET( 8067, glTranslatex, glTranslatex, NULL, _gloffset_Translatex),
+ NAME_FUNC_OFFSET( 8083, glClipPlanef, glClipPlanef, NULL, _gloffset_ClipPlanef),
+ NAME_FUNC_OFFSET( 8099, glClipPlanex, glClipPlanex, NULL, _gloffset_ClipPlanex),
+ NAME_FUNC_OFFSET( 8115, glGetClipPlanef, glGetClipPlanef, NULL, _gloffset_GetClipPlanef),
+ NAME_FUNC_OFFSET( 8134, glGetClipPlanex, glGetClipPlanex, NULL, _gloffset_GetClipPlanex),
+ NAME_FUNC_OFFSET( 8153, glGetFixedv, glGetFixedv, NULL, _gloffset_GetFixedv),
+ NAME_FUNC_OFFSET( 8168, glGetLightxv, glGetLightxv, NULL, _gloffset_GetLightxv),
+ NAME_FUNC_OFFSET( 8184, glGetMaterialxv, glGetMaterialxv, NULL, _gloffset_GetMaterialxv),
+ NAME_FUNC_OFFSET( 8203, glGetTexEnvxv, glGetTexEnvxv, NULL, _gloffset_GetTexEnvxv),
+ NAME_FUNC_OFFSET( 8220, glGetTexParameterxv, glGetTexParameterxv, NULL, _gloffset_GetTexParameterxv),
+ NAME_FUNC_OFFSET( 8243, glPointParameterx, glPointParameterx, NULL, _gloffset_PointParameterx),
+ NAME_FUNC_OFFSET( 8264, glPointParameterxv, glPointParameterxv, NULL, _gloffset_PointParameterxv),
+ NAME_FUNC_OFFSET( 8286, glTexParameterxv, glTexParameterxv, NULL, _gloffset_TexParameterxv),
+ NAME_FUNC_OFFSET(-1, NULL, NULL, NULL, 0)
+};
+
+#undef NAME_FUNC_OFFSET
diff --git a/src/mesa/es/main/api_exec_es1.c b/src/mesa/es/main/api_exec_es1.c
new file mode 100644
index 0000000000..59ad4829be
--- /dev/null
+++ b/src/mesa/es/main/api_exec_es1.c
@@ -0,0 +1,7134 @@
+/* DO NOT EDIT *************************************************
+ * THIS FILE AUTOMATICALLY GENERATED BY THE es_generator.py SCRIPT
+ * API specification file: main/APIspec.txt
+ * GLES version: GLES1.1
+ * date: 2009-09-15 11:32:17
+ */
+
+
+#include "GLES/gl.h"
+#include "GLES/glext.h"
+
+
+/* These types are needed for the Mesa veneer, but are not defined in
+ * the standard GLES headers.
+ */
+typedef double GLdouble;
+typedef double GLclampd;
+
+/* This type is normally in glext.h, but needed here */
+typedef char GLchar;
+
+/* Mesa error handling requires these */
+extern void *_mesa_get_current_context(void);
+extern void _mesa_error(void *ctx, GLenum error, const char *fmtString, ... );
+
+#include "main/compiler.h"
+#include "main/api_exec.h"
+
+#define HAVE_GLES_TYPES
+#include "glapi/dispatch.h"
+
+typedef void (*_glapi_proc)(void); /* generic function pointer */
+
+
+extern void GLAPIENTRY _mesa_GetIntegerv(GLenum, GLint *);
+static INLINE unsigned int _get_size(GLenum pname)
+{
+ /* In case of error, make sure the value returned is 0. */
+ GLint value = 0;
+ _mesa_GetIntegerv(pname, &value);
+ return (unsigned int) value;
+}
+
+/*************************************************************
+ * Generated functions begin here
+ */
+
+extern void GLAPIENTRY _mesa_ActiveTextureARB(GLenum texture);
+static void _es_ActiveTexture(GLenum texture)
+{
+ switch(texture) {
+ case GL_TEXTURE0:
+ case GL_TEXTURE1:
+ case GL_TEXTURE2:
+ case GL_TEXTURE3:
+ case GL_TEXTURE4:
+ case GL_TEXTURE5:
+ case GL_TEXTURE6:
+ case GL_TEXTURE7:
+ case GL_TEXTURE8:
+ case GL_TEXTURE9:
+ case GL_TEXTURE10:
+ case GL_TEXTURE11:
+ case GL_TEXTURE12:
+ case GL_TEXTURE13:
+ case GL_TEXTURE14:
+ case GL_TEXTURE15:
+ case GL_TEXTURE16:
+ case GL_TEXTURE17:
+ case GL_TEXTURE18:
+ case GL_TEXTURE19:
+ case GL_TEXTURE20:
+ case GL_TEXTURE21:
+ case GL_TEXTURE22:
+ case GL_TEXTURE23:
+ case GL_TEXTURE24:
+ case GL_TEXTURE25:
+ case GL_TEXTURE26:
+ case GL_TEXTURE27:
+ case GL_TEXTURE28:
+ case GL_TEXTURE29:
+ case GL_TEXTURE30:
+ case GL_TEXTURE31:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glActiveTexture(texture=0x%x)", texture);
+ return;
+ }
+
+ _mesa_ActiveTextureARB(texture);
+}
+
+extern void GLAPIENTRY _mesa_AlphaFunc(GLenum func, GLclampf ref);
+static void _es_AlphaFunc(GLenum func, GLclampf ref)
+{
+ switch(func) {
+ case GL_NEVER:
+ case GL_LESS:
+ case GL_EQUAL:
+ case GL_LEQUAL:
+ case GL_GREATER:
+ case GL_NOTEQUAL:
+ case GL_GEQUAL:
+ case GL_ALWAYS:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glAlphaFunc(func=0x%x)", func);
+ return;
+ }
+
+ _mesa_AlphaFunc(func, ref);
+}
+
+extern void GLAPIENTRY _mesa_AlphaFunc(GLenum func, GLclampf ref);
+static void _es_AlphaFuncx(GLenum func, GLclampx ref)
+{
+ GLclampf converted_ref;
+
+ switch(func) {
+ case GL_NEVER:
+ case GL_LESS:
+ case GL_EQUAL:
+ case GL_LEQUAL:
+ case GL_GREATER:
+ case GL_NOTEQUAL:
+ case GL_GEQUAL:
+ case GL_ALWAYS:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glAlphaFuncx(func=0x%x)", func);
+ return;
+ }
+
+ converted_ref = (GLclampf) (ref / 65536.0f);
+
+ _mesa_AlphaFunc(func, converted_ref);
+}
+
+/* Extension OES_fixed_point */
+static void _es_AlphaFuncxOES(GLenum func, GLclampx ref)
+{
+ GLclampf converted_ref;
+
+ switch(func) {
+ case GL_NEVER:
+ case GL_LESS:
+ case GL_EQUAL:
+ case GL_LEQUAL:
+ case GL_GREATER:
+ case GL_NOTEQUAL:
+ case GL_GEQUAL:
+ case GL_ALWAYS:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glAlphaFuncx(func=0x%x)", func);
+ return;
+ }
+
+ converted_ref = (GLclampf) (ref / 65536.0f);
+
+ _mesa_AlphaFunc(func, converted_ref);
+}
+
+extern void GLAPIENTRY _mesa_BindBufferARB(GLenum target, GLuint buffer);
+static void _es_BindBuffer(GLenum target, GLuint buffer)
+{
+ switch(target) {
+ case GL_ARRAY_BUFFER:
+ case GL_ELEMENT_ARRAY_BUFFER:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBindBuffer(target=0x%x)", target);
+ return;
+ }
+
+ _mesa_BindBufferARB(target, buffer);
+}
+
+extern void GLAPIENTRY _mesa_BindFramebufferEXT(GLenum target, GLuint framebuffer);
+/* Extension OES_framebuffer_object */
+static void _es_BindFramebufferOES(GLenum target, GLuint framebuffer)
+{
+ switch(target) {
+ case GL_FRAMEBUFFER_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBindFramebuffer(target=0x%x)", target);
+ return;
+ }
+
+ _mesa_BindFramebufferEXT(target, framebuffer);
+}
+
+extern void GLAPIENTRY _mesa_BindRenderbufferEXT(GLenum target, GLuint renderbuffer);
+/* Extension OES_framebuffer_object */
+static void _es_BindRenderbufferOES(GLenum target, GLuint renderbuffer)
+{
+ switch(target) {
+ case GL_RENDERBUFFER_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBindRenderbuffer(target=0x%x)", target);
+ return;
+ }
+
+ _mesa_BindRenderbufferEXT(target, renderbuffer);
+}
+
+extern void GLAPIENTRY _mesa_BindTexture(GLenum target, GLuint texture);
+static void _es_BindTexture(GLenum target, GLuint texture)
+{
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBindTexture(target=0x%x)", target);
+ return;
+ }
+
+ _mesa_BindTexture(target, texture);
+}
+
+extern void GLAPIENTRY _mesa_BlendEquation(GLenum mode);
+/* Extension OES_blend_subtract */
+static void _es_BlendEquationOES(GLenum mode)
+{
+ switch(mode) {
+ case GL_FUNC_ADD_OES:
+ case GL_FUNC_SUBTRACT_OES:
+ case GL_FUNC_REVERSE_SUBTRACT_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendEquation(mode=0x%x)", mode);
+ return;
+ }
+
+ _mesa_BlendEquation(mode);
+}
+
+extern void GLAPIENTRY _mesa_BlendEquationSeparateEXT(GLenum modeRGB, GLenum modeAlpha);
+/* Extension OES_blend_equation_separate */
+static void _es_BlendEquationSeparateOES(GLenum modeRGB, GLenum modeAlpha)
+{
+ switch(modeRGB) {
+ case GL_FUNC_ADD_OES:
+ case GL_FUNC_SUBTRACT_OES:
+ case GL_FUNC_REVERSE_SUBTRACT_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendEquationSeparate(modeRGB=0x%x)", modeRGB);
+ return;
+ }
+ switch(modeAlpha) {
+ case GL_FUNC_ADD_OES:
+ case GL_FUNC_SUBTRACT_OES:
+ case GL_FUNC_REVERSE_SUBTRACT_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendEquationSeparate(modeAlpha=0x%x)", modeAlpha);
+ return;
+ }
+
+ _mesa_BlendEquationSeparateEXT(modeRGB, modeAlpha);
+}
+
+extern void GLAPIENTRY _mesa_BlendFunc(GLenum sfactor, GLenum dfactor);
+static void _es_BlendFunc(GLenum sfactor, GLenum dfactor)
+{
+ switch(sfactor) {
+ case GL_ZERO:
+ case GL_ONE:
+ case GL_SRC_COLOR:
+ case GL_ONE_MINUS_SRC_COLOR:
+ case GL_DST_COLOR:
+ case GL_ONE_MINUS_DST_COLOR:
+ case GL_SRC_ALPHA:
+ case GL_ONE_MINUS_SRC_ALPHA:
+ case GL_DST_ALPHA:
+ case GL_ONE_MINUS_DST_ALPHA:
+ case GL_SRC_ALPHA_SATURATE:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFunc(sfactor=0x%x)", sfactor);
+ return;
+ }
+ switch(dfactor) {
+ case GL_ZERO:
+ case GL_ONE:
+ case GL_SRC_COLOR:
+ case GL_ONE_MINUS_SRC_COLOR:
+ case GL_SRC_ALPHA:
+ case GL_ONE_MINUS_SRC_ALPHA:
+ case GL_DST_COLOR:
+ case GL_DST_ALPHA:
+ case GL_ONE_MINUS_DST_COLOR:
+ case GL_ONE_MINUS_DST_ALPHA:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFunc(dfactor=0x%x)", dfactor);
+ return;
+ }
+
+ _mesa_BlendFunc(sfactor, dfactor);
+}
+
+extern void GLAPIENTRY _mesa_BlendFuncSeparateEXT(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+/* Extension OES_blend_func_separate */
+static void _es_BlendFuncSeparateOES(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
+{
+ switch(srcRGB) {
+ case GL_ZERO:
+ case GL_ONE:
+ case GL_SRC_COLOR:
+ case GL_ONE_MINUS_SRC_COLOR:
+ case GL_DST_COLOR:
+ case GL_ONE_MINUS_DST_COLOR:
+ case GL_SRC_ALPHA:
+ case GL_ONE_MINUS_SRC_ALPHA:
+ case GL_DST_ALPHA:
+ case GL_ONE_MINUS_DST_ALPHA:
+ case GL_SRC_ALPHA_SATURATE:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFuncSeparate(srcRGB=0x%x)", srcRGB);
+ return;
+ }
+ switch(dstRGB) {
+ case GL_ZERO:
+ case GL_ONE:
+ case GL_SRC_COLOR:
+ case GL_ONE_MINUS_SRC_COLOR:
+ case GL_DST_COLOR:
+ case GL_ONE_MINUS_DST_COLOR:
+ case GL_SRC_ALPHA:
+ case GL_ONE_MINUS_SRC_ALPHA:
+ case GL_DST_ALPHA:
+ case GL_ONE_MINUS_DST_ALPHA:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFuncSeparate(dstRGB=0x%x)", dstRGB);
+ return;
+ }
+ switch(srcAlpha) {
+ case GL_ZERO:
+ case GL_ONE:
+ case GL_SRC_COLOR:
+ case GL_ONE_MINUS_SRC_COLOR:
+ case GL_DST_COLOR:
+ case GL_ONE_MINUS_DST_COLOR:
+ case GL_SRC_ALPHA:
+ case GL_ONE_MINUS_SRC_ALPHA:
+ case GL_DST_ALPHA:
+ case GL_ONE_MINUS_DST_ALPHA:
+ case GL_SRC_ALPHA_SATURATE:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFuncSeparate(srcAlpha=0x%x)", srcAlpha);
+ return;
+ }
+ switch(dstAlpha) {
+ case GL_ZERO:
+ case GL_ONE:
+ case GL_SRC_COLOR:
+ case GL_ONE_MINUS_SRC_COLOR:
+ case GL_DST_COLOR:
+ case GL_ONE_MINUS_DST_COLOR:
+ case GL_SRC_ALPHA:
+ case GL_ONE_MINUS_SRC_ALPHA:
+ case GL_DST_ALPHA:
+ case GL_ONE_MINUS_DST_ALPHA:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFuncSeparate(dstAlpha=0x%x)", dstAlpha);
+ return;
+ }
+
+ _mesa_BlendFuncSeparateEXT(srcRGB, dstRGB, srcAlpha, dstAlpha);
+}
+
+extern void GLAPIENTRY _mesa_BufferDataARB(GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage);
+static void _es_BufferData(GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage)
+{
+ switch(target) {
+ case GL_ARRAY_BUFFER:
+ case GL_ELEMENT_ARRAY_BUFFER:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBufferData(target=0x%x)", target);
+ return;
+ }
+ switch(usage) {
+ case GL_STATIC_DRAW:
+ case GL_DYNAMIC_DRAW:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBufferData(usage=0x%x)", usage);
+ return;
+ }
+
+ _mesa_BufferDataARB(target, size, data, usage);
+}
+
+extern void GLAPIENTRY _mesa_BufferSubDataARB(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid * data);
+static void _es_BufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid * data)
+{
+ switch(target) {
+ case GL_ARRAY_BUFFER:
+ case GL_ELEMENT_ARRAY_BUFFER:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBufferSubData(target=0x%x)", target);
+ return;
+ }
+
+ _mesa_BufferSubDataARB(target, offset, size, data);
+}
+
+extern GLenum GLAPIENTRY _mesa_CheckFramebufferStatusEXT(GLenum target);
+/* Extension OES_framebuffer_object */
+static GLenum _es_CheckFramebufferStatusOES(GLenum target)
+{
+ switch(target) {
+ case GL_FRAMEBUFFER_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCheckFramebufferStatus(target=0x%x)", target);
+ return (GLenum) 0;
+ }
+
+ return _mesa_CheckFramebufferStatusEXT(target);
+}
+
+extern void GLAPIENTRY _mesa_Clear(GLbitfield mask);
+static void _es_Clear(GLbitfield mask)
+{
+ switch(mask) {
+ case 0:
+ case (GL_COLOR_BUFFER_BIT):
+ case (GL_DEPTH_BUFFER_BIT):
+ case (GL_STENCIL_BUFFER_BIT):
+ case (GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT):
+ case (GL_COLOR_BUFFER_BIT|GL_STENCIL_BUFFER_BIT):
+ case (GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT):
+ case (GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT):
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glClear(mask=0x%x)", mask);
+ return;
+ }
+
+ _mesa_Clear(mask);
+}
+
+extern void GLAPIENTRY _mesa_ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
+static void _es_ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
+{
+ _mesa_ClearColor(red, green, blue, alpha);
+}
+
+extern void GLAPIENTRY _mesa_ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
+static void _es_ClearColorx(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha)
+{
+ GLclampf converted_red;
+ GLclampf converted_green;
+ GLclampf converted_blue;
+ GLclampf converted_alpha;
+
+ converted_red = (GLclampf) (red / 65536.0f);
+ converted_green = (GLclampf) (green / 65536.0f);
+ converted_blue = (GLclampf) (blue / 65536.0f);
+ converted_alpha = (GLclampf) (alpha / 65536.0f);
+
+ _mesa_ClearColor(converted_red, converted_green, converted_blue, converted_alpha);
+}
+
+/* Extension OES_fixed_point */
+static void _es_ClearColorxOES(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha)
+{
+ GLclampf converted_red;
+ GLclampf converted_green;
+ GLclampf converted_blue;
+ GLclampf converted_alpha;
+
+ converted_red = (GLclampf) (red / 65536.0f);
+ converted_green = (GLclampf) (green / 65536.0f);
+ converted_blue = (GLclampf) (blue / 65536.0f);
+ converted_alpha = (GLclampf) (alpha / 65536.0f);
+
+ _mesa_ClearColor(converted_red, converted_green, converted_blue, converted_alpha);
+}
+
+extern void GLAPIENTRY _mesa_ClearDepth(GLclampd depth);
+static void _es_ClearDepthf(GLclampf depth)
+{
+ GLclampd converted_depth;
+
+ converted_depth = (GLclampd) (depth);
+
+ _mesa_ClearDepth(converted_depth);
+}
+
+/* Extension OES_single_precision */
+static void _es_ClearDepthfOES(GLclampf depth)
+{
+ GLclampd converted_depth;
+
+ converted_depth = (GLclampd) (depth);
+
+ _mesa_ClearDepth(converted_depth);
+}
+
+extern void GLAPIENTRY _mesa_ClearDepth(GLclampd depth);
+static void _es_ClearDepthx(GLclampx depth)
+{
+ GLclampd converted_depth;
+
+ converted_depth = (GLclampd) (depth / 65536.0);
+
+ _mesa_ClearDepth(converted_depth);
+}
+
+/* Extension OES_fixed_point */
+static void _es_ClearDepthxOES(GLclampx depth)
+{
+ GLclampd converted_depth;
+
+ converted_depth = (GLclampd) (depth / 65536.0);
+
+ _mesa_ClearDepth(converted_depth);
+}
+
+extern void GLAPIENTRY _mesa_ClearStencil(GLint s);
+static void _es_ClearStencil(GLint s)
+{
+ _mesa_ClearStencil(s);
+}
+
+extern void GLAPIENTRY _mesa_ClientActiveTextureARB(GLenum texture);
+static void _es_ClientActiveTexture(GLenum texture)
+{
+ switch(texture) {
+ case GL_TEXTURE0:
+ case GL_TEXTURE1:
+ case GL_TEXTURE2:
+ case GL_TEXTURE3:
+ case GL_TEXTURE4:
+ case GL_TEXTURE5:
+ case GL_TEXTURE6:
+ case GL_TEXTURE7:
+ case GL_TEXTURE8:
+ case GL_TEXTURE9:
+ case GL_TEXTURE10:
+ case GL_TEXTURE11:
+ case GL_TEXTURE12:
+ case GL_TEXTURE13:
+ case GL_TEXTURE14:
+ case GL_TEXTURE15:
+ case GL_TEXTURE16:
+ case GL_TEXTURE17:
+ case GL_TEXTURE18:
+ case GL_TEXTURE19:
+ case GL_TEXTURE20:
+ case GL_TEXTURE21:
+ case GL_TEXTURE22:
+ case GL_TEXTURE23:
+ case GL_TEXTURE24:
+ case GL_TEXTURE25:
+ case GL_TEXTURE26:
+ case GL_TEXTURE27:
+ case GL_TEXTURE28:
+ case GL_TEXTURE29:
+ case GL_TEXTURE30:
+ case GL_TEXTURE31:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glClientActiveTexture(texture=0x%x)", texture);
+ return;
+ }
+
+ _mesa_ClientActiveTextureARB(texture);
+}
+
+extern void GLAPIENTRY _mesa_ClipPlane(GLenum plane, GLdouble const * equation);
+static void _es_ClipPlanef(GLenum plane, const GLfloat * equation)
+{
+ register unsigned int i;
+ unsigned int n_equation = 4;
+ GLdouble converted_equation[4];
+
+ switch(plane) {
+ case GL_CLIP_PLANE0:
+ case GL_CLIP_PLANE1:
+ case GL_CLIP_PLANE2:
+ case GL_CLIP_PLANE3:
+ case GL_CLIP_PLANE4:
+ case GL_CLIP_PLANE5:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glClipPlanef(plane=0x%x)", plane);
+ return;
+ }
+
+ for (i = 0; i < n_equation; i++) {
+ converted_equation[i] = (GLdouble) (equation[i]);
+ }
+
+ _mesa_ClipPlane(plane, converted_equation);
+}
+
+/* Extension OES_single_precision */
+static void _es_ClipPlanefOES(GLenum plane, const GLfloat * equation)
+{
+ register unsigned int i;
+ unsigned int n_equation = 4;
+ GLdouble converted_equation[4];
+
+ switch(plane) {
+ case GL_CLIP_PLANE0:
+ case GL_CLIP_PLANE1:
+ case GL_CLIP_PLANE2:
+ case GL_CLIP_PLANE3:
+ case GL_CLIP_PLANE4:
+ case GL_CLIP_PLANE5:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glClipPlanef(plane=0x%x)", plane);
+ return;
+ }
+
+ for (i = 0; i < n_equation; i++) {
+ converted_equation[i] = (GLdouble) (equation[i]);
+ }
+
+ _mesa_ClipPlane(plane, converted_equation);
+}
+
+extern void GLAPIENTRY _mesa_ClipPlane(GLenum plane, GLdouble const * equation);
+static void _es_ClipPlanex(GLenum plane, const GLfixed * equation)
+{
+ register unsigned int i;
+ unsigned int n_equation = 4;
+ GLdouble converted_equation[4];
+
+ switch(plane) {
+ case GL_CLIP_PLANE0:
+ case GL_CLIP_PLANE1:
+ case GL_CLIP_PLANE2:
+ case GL_CLIP_PLANE3:
+ case GL_CLIP_PLANE4:
+ case GL_CLIP_PLANE5:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glClipPlanex(plane=0x%x)", plane);
+ return;
+ }
+
+ for (i = 0; i < n_equation; i++) {
+ converted_equation[i] = (GLdouble) (equation[i] / 65536.0);
+ }
+
+ _mesa_ClipPlane(plane, converted_equation);
+}
+
+/* Extension OES_fixed_point */
+static void _es_ClipPlanexOES(GLenum plane, const GLfixed * equation)
+{
+ register unsigned int i;
+ unsigned int n_equation = 4;
+ GLdouble converted_equation[4];
+
+ switch(plane) {
+ case GL_CLIP_PLANE0:
+ case GL_CLIP_PLANE1:
+ case GL_CLIP_PLANE2:
+ case GL_CLIP_PLANE3:
+ case GL_CLIP_PLANE4:
+ case GL_CLIP_PLANE5:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glClipPlanex(plane=0x%x)", plane);
+ return;
+ }
+
+ for (i = 0; i < n_equation; i++) {
+ converted_equation[i] = (GLdouble) (equation[i] / 65536.0);
+ }
+
+ _mesa_ClipPlane(plane, converted_equation);
+}
+
+extern void GLAPIENTRY _vbo_Color4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+static void _es_Color4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ _vbo_Color4f(red, green, blue, alpha);
+}
+
+extern void GLAPIENTRY _vbo_Color4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+static void _es_Color4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+{
+ GLfloat converted_red;
+ GLfloat converted_green;
+ GLfloat converted_blue;
+ GLfloat converted_alpha;
+
+ converted_red = (GLfloat) (red / 255.0f);
+ converted_green = (GLfloat) (green / 255.0f);
+ converted_blue = (GLfloat) (blue / 255.0f);
+ converted_alpha = (GLfloat) (alpha / 255.0f);
+
+ _vbo_Color4f(converted_red, converted_green, converted_blue, converted_alpha);
+}
+
+extern void GLAPIENTRY _vbo_Color4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+static void _es_Color4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
+{
+ GLfloat converted_red;
+ GLfloat converted_green;
+ GLfloat converted_blue;
+ GLfloat converted_alpha;
+
+ converted_red = (GLfloat) (red / 65536.0f);
+ converted_green = (GLfloat) (green / 65536.0f);
+ converted_blue = (GLfloat) (blue / 65536.0f);
+ converted_alpha = (GLfloat) (alpha / 65536.0f);
+
+ _vbo_Color4f(converted_red, converted_green, converted_blue, converted_alpha);
+}
+
+/* Extension OES_fixed_point */
+static void _es_Color4xOES(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
+{
+ GLfloat converted_red;
+ GLfloat converted_green;
+ GLfloat converted_blue;
+ GLfloat converted_alpha;
+
+ converted_red = (GLfloat) (red / 65536.0f);
+ converted_green = (GLfloat) (green / 65536.0f);
+ converted_blue = (GLfloat) (blue / 65536.0f);
+ converted_alpha = (GLfloat) (alpha / 65536.0f);
+
+ _vbo_Color4f(converted_red, converted_green, converted_blue, converted_alpha);
+}
+
+extern void GLAPIENTRY _mesa_ColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+static void _es_ColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+{
+ _mesa_ColorMask(red, green, blue, alpha);
+}
+
+extern void GLAPIENTRY _mesa_ColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer);
+static void _es_ColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer)
+{
+ switch(size) {
+ case 4:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glColorPointer(size=%d)", size);
+ return;
+ }
+ switch(type) {
+ case GL_UNSIGNED_BYTE:
+ case GL_FIXED:
+ case GL_FLOAT:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glColorPointer(type=0x%x)", type);
+ return;
+ }
+
+ _mesa_ColorPointer(size, type, stride, pointer);
+}
+
+/* this function is special and is defined elsewhere */
+extern void _es_CompressedTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * data);
+
+extern void GLAPIENTRY _mesa_CompressedTexSubImage2DARB(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * data);
+static void _es_CompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * data)
+{
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_X_OES:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_Y_OES:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_Z_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_X_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCompressedTexSubImage2D(target=0x%x)", target);
+ return;
+ }
+ switch(format) {
+ case GL_PALETTE4_RGB8_OES:
+ case GL_PALETTE4_RGBA8_OES:
+ case GL_PALETTE4_R5_G6_B5_OES:
+ case GL_PALETTE4_RGBA4_OES:
+ case GL_PALETTE4_RGB5_A1_OES:
+ case GL_PALETTE8_RGB8_OES:
+ case GL_PALETTE8_RGBA8_OES:
+ case GL_PALETTE8_R5_G6_B5_OES:
+ case GL_PALETTE8_RGBA4_OES:
+ case GL_PALETTE8_RGB5_A1_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCompressedTexSubImage2D(format=0x%x)", format);
+ return;
+ }
+
+ _mesa_CompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, data);
+}
+
+extern void GLAPIENTRY _mesa_CopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+static void _es_CopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+{
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_X_OES:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_Y_OES:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_Z_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_X_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCopyTexImage2D(target=0x%x)", target);
+ return;
+ }
+ switch(internalFormat) {
+ case GL_ALPHA:
+ case GL_LUMINANCE:
+ case GL_LUMINANCE_ALPHA:
+ case GL_RGB:
+ case GL_RGBA:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glCopyTexImage2D(internalFormat=0x%x)", internalFormat);
+ return;
+ }
+ switch(border) {
+ case 0:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glCopyTexImage2D(border=%d)", border);
+ return;
+ }
+
+ _mesa_CopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
+}
+
+extern void GLAPIENTRY _mesa_CopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+static void _es_CopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_X_OES:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_Y_OES:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_Z_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_X_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCopyTexSubImage2D(target=0x%x)", target);
+ return;
+ }
+
+ _mesa_CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
+}
+
+extern void GLAPIENTRY _mesa_CullFace(GLenum mode);
+static void _es_CullFace(GLenum mode)
+{
+ switch(mode) {
+ case GL_FRONT:
+ case GL_BACK:
+ case GL_FRONT_AND_BACK:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCullFace(mode=0x%x)", mode);
+ return;
+ }
+
+ _mesa_CullFace(mode);
+}
+
+extern void GLAPIENTRY _mesa_DeleteBuffersARB(GLsizei n, const GLuint * buffer);
+static void _es_DeleteBuffers(GLsizei n, const GLuint * buffer)
+{
+ _mesa_DeleteBuffersARB(n, buffer);
+}
+
+extern void GLAPIENTRY _mesa_DeleteFramebuffersEXT(GLsizei n, const GLuint * framebuffers);
+/* Extension OES_framebuffer_object */
+static void _es_DeleteFramebuffersOES(GLsizei n, const GLuint * framebuffers)
+{
+ _mesa_DeleteFramebuffersEXT(n, framebuffers);
+}
+
+extern void GLAPIENTRY _mesa_DeleteRenderbuffersEXT(GLsizei n, const GLuint * renderbuffers);
+/* Extension OES_framebuffer_object */
+static void _es_DeleteRenderbuffersOES(GLsizei n, const GLuint * renderbuffers)
+{
+ _mesa_DeleteRenderbuffersEXT(n, renderbuffers);
+}
+
+extern void GLAPIENTRY _mesa_DeleteTextures(GLsizei n, const GLuint * textures);
+static void _es_DeleteTextures(GLsizei n, const GLuint * textures)
+{
+ _mesa_DeleteTextures(n, textures);
+}
+
+extern void GLAPIENTRY _mesa_DepthFunc(GLenum func);
+static void _es_DepthFunc(GLenum func)
+{
+ switch(func) {
+ case GL_NEVER:
+ case GL_LESS:
+ case GL_EQUAL:
+ case GL_LEQUAL:
+ case GL_GREATER:
+ case GL_NOTEQUAL:
+ case GL_GEQUAL:
+ case GL_ALWAYS:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDepthFunc(func=0x%x)", func);
+ return;
+ }
+
+ _mesa_DepthFunc(func);
+}
+
+extern void GLAPIENTRY _mesa_DepthMask(GLboolean flag);
+static void _es_DepthMask(GLboolean flag)
+{
+ _mesa_DepthMask(flag);
+}
+
+extern void GLAPIENTRY _mesa_DepthRange(GLclampd zNear, GLclampd zFar);
+static void _es_DepthRangef(GLclampf zNear, GLclampf zFar)
+{
+ GLclampd converted_zNear;
+ GLclampd converted_zFar;
+
+ converted_zNear = (GLclampd) (zNear);
+ converted_zFar = (GLclampd) (zFar);
+
+ _mesa_DepthRange(converted_zNear, converted_zFar);
+}
+
+/* Extension OES_single_precision */
+static void _es_DepthRangefOES(GLclampf zNear, GLclampf zFar)
+{
+ GLclampd converted_zNear;
+ GLclampd converted_zFar;
+
+ converted_zNear = (GLclampd) (zNear);
+ converted_zFar = (GLclampd) (zFar);
+
+ _mesa_DepthRange(converted_zNear, converted_zFar);
+}
+
+extern void GLAPIENTRY _mesa_DepthRange(GLclampd zNear, GLclampd zFar);
+static void _es_DepthRangex(GLclampx zNear, GLclampx zFar)
+{
+ GLclampd converted_zNear;
+ GLclampd converted_zFar;
+
+ converted_zNear = (GLclampd) (zNear / 65536.0);
+ converted_zFar = (GLclampd) (zFar / 65536.0);
+
+ _mesa_DepthRange(converted_zNear, converted_zFar);
+}
+
+/* Extension OES_fixed_point */
+static void _es_DepthRangexOES(GLclampx zNear, GLclampx zFar)
+{
+ GLclampd converted_zNear;
+ GLclampd converted_zFar;
+
+ converted_zNear = (GLclampd) (zNear / 65536.0);
+ converted_zFar = (GLclampd) (zFar / 65536.0);
+
+ _mesa_DepthRange(converted_zNear, converted_zFar);
+}
+
+extern void GLAPIENTRY _mesa_Disable(GLenum cap);
+static void _es_Disable(GLenum cap)
+{
+ switch(cap) {
+ case GL_VERTEX_ARRAY:
+ case GL_NORMAL_ARRAY:
+ case GL_COLOR_ARRAY:
+ case GL_TEXTURE_COORD_ARRAY:
+ case GL_NORMALIZE:
+ case GL_RESCALE_NORMAL:
+ case GL_CLIP_PLANE0:
+ case GL_CLIP_PLANE1:
+ case GL_CLIP_PLANE2:
+ case GL_CLIP_PLANE3:
+ case GL_CLIP_PLANE4:
+ case GL_CLIP_PLANE5:
+ case GL_FOG:
+ case GL_LIGHTING:
+ case GL_COLOR_MATERIAL:
+ case GL_LIGHT0:
+ case GL_LIGHT1:
+ case GL_LIGHT2:
+ case GL_LIGHT3:
+ case GL_LIGHT4:
+ case GL_LIGHT5:
+ case GL_LIGHT6:
+ case GL_LIGHT7:
+ case GL_POINT_SMOOTH:
+ case GL_LINE_SMOOTH:
+ case GL_CULL_FACE:
+ case GL_POLYGON_OFFSET_FILL:
+ case GL_MULTISAMPLE:
+ case GL_SAMPLE_ALPHA_TO_COVERAGE:
+ case GL_SAMPLE_ALPHA_TO_ONE:
+ case GL_SAMPLE_COVERAGE:
+ case GL_TEXTURE_2D:
+ case GL_SCISSOR_TEST:
+ case GL_ALPHA_TEST:
+ case GL_STENCIL_TEST:
+ case GL_DEPTH_TEST:
+ case GL_BLEND:
+ case GL_DITHER:
+ case GL_COLOR_LOGIC_OP:
+ case GL_MATRIX_INDEX_ARRAY_OES:
+ case GL_WEIGHT_ARRAY_OES:
+ case GL_POINT_SIZE_ARRAY_OES:
+ case GL_POINT_SPRITE_OES:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ case GL_TEXTURE_GEN_STR_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDisable(cap=0x%x)", cap);
+ return;
+ }
+
+ _mesa_Disable(cap);
+}
+
+extern void GLAPIENTRY _mesa_DisableClientState(GLenum array);
+static void _es_DisableClientState(GLenum array)
+{
+ switch(array) {
+ case GL_COLOR_ARRAY:
+ case GL_NORMAL_ARRAY:
+ case GL_TEXTURE_COORD_ARRAY:
+ case GL_VERTEX_ARRAY:
+ case GL_MATRIX_INDEX_ARRAY_OES:
+ case GL_WEIGHT_ARRAY_OES:
+ case GL_POINT_SIZE_ARRAY_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDisableClientState(array=0x%x)", array);
+ return;
+ }
+
+ _mesa_DisableClientState(array);
+}
+
+extern void GLAPIENTRY _mesa_DrawArrays(GLenum mode, GLint first, GLsizei count);
+static void _es_DrawArrays(GLenum mode, GLint first, GLsizei count)
+{
+ switch(mode) {
+ case GL_POINTS:
+ case GL_LINE_STRIP:
+ case GL_LINE_LOOP:
+ case GL_LINES:
+ case GL_TRIANGLE_STRIP:
+ case GL_TRIANGLE_FAN:
+ case GL_TRIANGLES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDrawArrays(mode=0x%x)", mode);
+ return;
+ }
+
+ _mesa_DrawArrays(mode, first, count);
+}
+
+extern void GLAPIENTRY _mesa_DrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid * indices);
+static void _es_DrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid * indices)
+{
+ switch(mode) {
+ case GL_POINTS:
+ case GL_LINE_STRIP:
+ case GL_LINE_LOOP:
+ case GL_LINES:
+ case GL_TRIANGLE_STRIP:
+ case GL_TRIANGLE_FAN:
+ case GL_TRIANGLES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDrawElements(mode=0x%x)", mode);
+ return;
+ }
+ switch(type) {
+ case GL_UNSIGNED_BYTE:
+ case GL_UNSIGNED_SHORT:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDrawElements(type=0x%x)", type);
+ return;
+ }
+
+ _mesa_DrawElements(mode, count, type, indices);
+}
+
+extern void GLAPIENTRY _mesa_DrawTexf(GLfloat x, GLfloat y, GLfloat z, GLfloat w, GLfloat h);
+/* Extension OES_draw_texture */
+static void _es_DrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat w, GLfloat h)
+{
+ _mesa_DrawTexf(x, y, z, w, h);
+}
+
+extern void GLAPIENTRY _mesa_DrawTexfv(const GLfloat * coords);
+/* Extension OES_draw_texture */
+static void _es_DrawTexfvOES(const GLfloat * coords)
+{
+ _mesa_DrawTexfv(coords);
+}
+
+extern void GLAPIENTRY _mesa_DrawTexi(GLint x, GLint y, GLint z, GLint w, GLint h);
+/* Extension OES_draw_texture */
+static void _es_DrawTexiOES(GLint x, GLint y, GLint z, GLint w, GLint h)
+{
+ _mesa_DrawTexi(x, y, z, w, h);
+}
+
+extern void GLAPIENTRY _mesa_DrawTexiv(const GLint * coords);
+/* Extension OES_draw_texture */
+static void _es_DrawTexivOES(const GLint * coords)
+{
+ _mesa_DrawTexiv(coords);
+}
+
+extern void GLAPIENTRY _mesa_DrawTexs(GLshort x, GLshort y, GLshort z, GLshort w, GLshort h);
+/* Extension OES_draw_texture */
+static void _es_DrawTexsOES(GLshort x, GLshort y, GLshort z, GLshort w, GLshort h)
+{
+ _mesa_DrawTexs(x, y, z, w, h);
+}
+
+extern void GLAPIENTRY _mesa_DrawTexsv(const GLshort * coords);
+/* Extension OES_draw_texture */
+static void _es_DrawTexsvOES(const GLshort * coords)
+{
+ _mesa_DrawTexsv(coords);
+}
+
+extern void GLAPIENTRY _mesa_DrawTexf(GLfloat x, GLfloat y, GLfloat z, GLfloat w, GLfloat h);
+/* Extension OES_draw_texture */
+static void _es_DrawTexxOES(GLfixed x, GLfixed y, GLfixed z, GLfixed w, GLfixed h)
+{
+ GLfloat converted_x;
+ GLfloat converted_y;
+ GLfloat converted_z;
+ GLfloat converted_w;
+ GLfloat converted_h;
+
+ converted_x = (GLfloat) (x / 65536.0f);
+ converted_y = (GLfloat) (y / 65536.0f);
+ converted_z = (GLfloat) (z / 65536.0f);
+ converted_w = (GLfloat) (w / 65536.0f);
+ converted_h = (GLfloat) (h / 65536.0f);
+
+ _mesa_DrawTexf(converted_x, converted_y, converted_z, converted_w, converted_h);
+}
+
+extern void GLAPIENTRY _mesa_DrawTexfv(GLfloat const * coords);
+/* Extension OES_draw_texture */
+static void _es_DrawTexxvOES(const GLfixed * coords)
+{
+ register unsigned int i;
+ unsigned int n_coords = 5;
+ GLfloat converted_coords[5];
+
+ for (i = 0; i < n_coords; i++) {
+ converted_coords[i] = (GLfloat) (coords[i] / 65536.0f);
+ }
+
+ _mesa_DrawTexfv(converted_coords);
+}
+
+extern void GLAPIENTRY _mesa_EGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image);
+/* Extension OES_EGL_image */
+static void _es_EGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image)
+{
+ switch(target) {
+ case GL_RENDERBUFFER_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glEGLImageTargetRenderbufferStorage(target=0x%x)", target);
+ return;
+ }
+
+ _mesa_EGLImageTargetRenderbufferStorageOES(target, image);
+}
+
+extern void GLAPIENTRY _mesa_EGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image);
+/* Extension OES_EGL_image */
+static void _es_EGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image)
+{
+ switch(target) {
+ case GL_TEXTURE_2D:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glEGLImageTargetTexture2D(target=0x%x)", target);
+ return;
+ }
+
+ _mesa_EGLImageTargetTexture2DOES(target, image);
+}
+
+extern void GLAPIENTRY _mesa_Enable(GLenum cap);
+static void _es_Enable(GLenum cap)
+{
+ switch(cap) {
+ case GL_VERTEX_ARRAY:
+ case GL_NORMAL_ARRAY:
+ case GL_COLOR_ARRAY:
+ case GL_TEXTURE_COORD_ARRAY:
+ case GL_NORMALIZE:
+ case GL_RESCALE_NORMAL:
+ case GL_CLIP_PLANE0:
+ case GL_CLIP_PLANE1:
+ case GL_CLIP_PLANE2:
+ case GL_CLIP_PLANE3:
+ case GL_CLIP_PLANE4:
+ case GL_CLIP_PLANE5:
+ case GL_FOG:
+ case GL_LIGHTING:
+ case GL_COLOR_MATERIAL:
+ case GL_LIGHT0:
+ case GL_LIGHT1:
+ case GL_LIGHT2:
+ case GL_LIGHT3:
+ case GL_LIGHT4:
+ case GL_LIGHT5:
+ case GL_LIGHT6:
+ case GL_LIGHT7:
+ case GL_POINT_SMOOTH:
+ case GL_LINE_SMOOTH:
+ case GL_CULL_FACE:
+ case GL_POLYGON_OFFSET_FILL:
+ case GL_MULTISAMPLE:
+ case GL_SAMPLE_ALPHA_TO_COVERAGE:
+ case GL_SAMPLE_ALPHA_TO_ONE:
+ case GL_SAMPLE_COVERAGE:
+ case GL_TEXTURE_2D:
+ case GL_SCISSOR_TEST:
+ case GL_ALPHA_TEST:
+ case GL_STENCIL_TEST:
+ case GL_DEPTH_TEST:
+ case GL_BLEND:
+ case GL_DITHER:
+ case GL_COLOR_LOGIC_OP:
+ case GL_MATRIX_INDEX_ARRAY_OES:
+ case GL_WEIGHT_ARRAY_OES:
+ case GL_POINT_SIZE_ARRAY_OES:
+ case GL_POINT_SPRITE_OES:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ case GL_TEXTURE_GEN_STR_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glEnable(cap=0x%x)", cap);
+ return;
+ }
+
+ _mesa_Enable(cap);
+}
+
+extern void GLAPIENTRY _mesa_EnableClientState(GLenum array);
+static void _es_EnableClientState(GLenum array)
+{
+ switch(array) {
+ case GL_COLOR_ARRAY:
+ case GL_NORMAL_ARRAY:
+ case GL_TEXTURE_COORD_ARRAY:
+ case GL_VERTEX_ARRAY:
+ case GL_MATRIX_INDEX_ARRAY_OES:
+ case GL_WEIGHT_ARRAY_OES:
+ case GL_POINT_SIZE_ARRAY_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glEnableClientState(array=0x%x)", array);
+ return;
+ }
+
+ _mesa_EnableClientState(array);
+}
+
+extern void GLAPIENTRY _mesa_Finish();
+static void _es_Finish(void)
+{
+ _mesa_Finish();
+}
+
+extern void GLAPIENTRY _mesa_Flush();
+static void _es_Flush(void)
+{
+ _mesa_Flush();
+}
+
+extern void GLAPIENTRY _mesa_Fogf(GLenum pname, GLfloat param);
+static void _es_Fogf(GLenum pname, GLfloat param)
+{
+ switch(pname) {
+ case GL_FOG_MODE:
+ if (param != GL_EXP && param != GL_EXP2 && param != GL_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFogf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_FOG_DENSITY:
+ case GL_FOG_START:
+ case GL_FOG_END:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFogf(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_Fogf(pname, param);
+}
+
+extern void GLAPIENTRY _mesa_Fogfv(GLenum pname, const GLfloat * params);
+static void _es_Fogfv(GLenum pname, const GLfloat * params)
+{
+ switch(pname) {
+ case GL_FOG_COLOR: /* size 4 */
+ case GL_FOG_DENSITY: /* size 1 */
+ case GL_FOG_START: /* size 1 */
+ case GL_FOG_END: /* size 1 */
+ break;
+ case GL_FOG_MODE: /* size 1 */
+ if (params[0] != GL_EXP && params[0] != GL_EXP2 && params[0] != GL_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFogfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFogfv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_Fogfv(pname, params);
+}
+
+extern void GLAPIENTRY _mesa_Fogf(GLenum pname, GLfloat param);
+static void _es_Fogx(GLenum pname, GLfixed param)
+{
+ GLfloat converted_param;
+ int convert_param_value = 1;
+
+ switch(pname) {
+ case GL_FOG_MODE:
+ if (param != GL_EXP && param != GL_EXP2 && param != GL_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFogx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_FOG_DENSITY:
+ case GL_FOG_START:
+ case GL_FOG_END:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFogx(pname=0x%x)", pname);
+ return;
+ }
+
+ if (convert_param_value) {
+ converted_param = (GLfloat) (param / 65536.0f);
+ } else {
+ converted_param = (GLfloat) param;
+ }
+
+ _mesa_Fogf(pname, converted_param);
+}
+
+/* Extension OES_fixed_point */
+static void _es_FogxOES(GLenum pname, GLfixed param)
+{
+ GLfloat converted_param;
+ int convert_param_value = 1;
+
+ switch(pname) {
+ case GL_FOG_MODE:
+ if (param != GL_EXP && param != GL_EXP2 && param != GL_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFogx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_FOG_DENSITY:
+ case GL_FOG_START:
+ case GL_FOG_END:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFogx(pname=0x%x)", pname);
+ return;
+ }
+
+ if (convert_param_value) {
+ converted_param = (GLfloat) (param / 65536.0f);
+ } else {
+ converted_param = (GLfloat) param;
+ }
+
+ _mesa_Fogf(pname, converted_param);
+}
+
+extern void GLAPIENTRY _mesa_Fogfv(GLenum pname, GLfloat const * params);
+static void _es_Fogxv(GLenum pname, const GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+ int convert_params_value = 1;
+
+ switch(pname) {
+ case GL_FOG_COLOR:
+ n_params = 4;
+ break;
+ case GL_FOG_DENSITY:
+ case GL_FOG_START:
+ case GL_FOG_END:
+ n_params = 1;
+ break;
+ case GL_FOG_MODE:
+ if (params[0] != GL_EXP && params[0] != GL_EXP2 && params[0] != GL_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFogxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFogxv(pname=0x%x)", pname);
+ return;
+ }
+
+ if (convert_params_value) {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) (params[i] / 65536.0f);
+ }
+ } else {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) params[i];
+ }
+ }
+
+ _mesa_Fogfv(pname, converted_params);
+}
+
+/* Extension OES_fixed_point */
+static void _es_FogxvOES(GLenum pname, const GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+ int convert_params_value = 1;
+
+ switch(pname) {
+ case GL_FOG_COLOR:
+ n_params = 4;
+ break;
+ case GL_FOG_DENSITY:
+ case GL_FOG_START:
+ case GL_FOG_END:
+ n_params = 1;
+ break;
+ case GL_FOG_MODE:
+ if (params[0] != GL_EXP && params[0] != GL_EXP2 && params[0] != GL_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFogxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFogxv(pname=0x%x)", pname);
+ return;
+ }
+
+ if (convert_params_value) {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) (params[i] / 65536.0f);
+ }
+ } else {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) params[i];
+ }
+ }
+
+ _mesa_Fogfv(pname, converted_params);
+}
+
+extern void GLAPIENTRY _mesa_FramebufferRenderbufferEXT(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+/* Extension OES_framebuffer_object */
+static void _es_FramebufferRenderbufferOES(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
+{
+ switch(target) {
+ case GL_FRAMEBUFFER_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferRenderbuffer(target=0x%x)", target);
+ return;
+ }
+ switch(attachment) {
+ case GL_COLOR_ATTACHMENT0_OES:
+ case GL_DEPTH_ATTACHMENT_OES:
+ case GL_STENCIL_ATTACHMENT_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferRenderbuffer(attachment=0x%x)", attachment);
+ return;
+ }
+ switch(renderbuffertarget) {
+ case GL_RENDERBUFFER_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferRenderbuffer(renderbuffertarget=0x%x)", renderbuffertarget);
+ return;
+ }
+
+ _mesa_FramebufferRenderbufferEXT(target, attachment, renderbuffertarget, renderbuffer);
+}
+
+extern void GLAPIENTRY _mesa_FramebufferTexture2DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+/* Extension OES_framebuffer_object */
+static void _es_FramebufferTexture2DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
+{
+ switch(target) {
+ case GL_FRAMEBUFFER_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferTexture2D(target=0x%x)", target);
+ return;
+ }
+ switch(attachment) {
+ case GL_COLOR_ATTACHMENT0_OES:
+ case GL_DEPTH_ATTACHMENT_OES:
+ case GL_STENCIL_ATTACHMENT_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferTexture2D(attachment=0x%x)", attachment);
+ return;
+ }
+ switch(textarget) {
+ case GL_TEXTURE_2D:
+ break;
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_X_OES:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_Y_OES:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_Z_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_X_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferTexture2D(textarget=0x%x)", textarget);
+ return;
+ }
+
+ _mesa_FramebufferTexture2DEXT(target, attachment, textarget, texture, level);
+}
+
+extern void GLAPIENTRY _mesa_FrontFace(GLenum mode);
+static void _es_FrontFace(GLenum mode)
+{
+ switch(mode) {
+ case GL_CW:
+ case GL_CCW:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFrontFace(mode=0x%x)", mode);
+ return;
+ }
+
+ _mesa_FrontFace(mode);
+}
+
+extern void GLAPIENTRY _mesa_Frustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+static void _es_Frustumf(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
+{
+ GLdouble converted_left;
+ GLdouble converted_right;
+ GLdouble converted_bottom;
+ GLdouble converted_top;
+ GLdouble converted_zNear;
+ GLdouble converted_zFar;
+
+ converted_left = (GLdouble) (left);
+ converted_right = (GLdouble) (right);
+ converted_bottom = (GLdouble) (bottom);
+ converted_top = (GLdouble) (top);
+ converted_zNear = (GLdouble) (zNear);
+ converted_zFar = (GLdouble) (zFar);
+
+ _mesa_Frustum(converted_left, converted_right, converted_bottom, converted_top, converted_zNear, converted_zFar);
+}
+
+/* Extension OES_single_precision */
+static void _es_FrustumfOES(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
+{
+ GLdouble converted_left;
+ GLdouble converted_right;
+ GLdouble converted_bottom;
+ GLdouble converted_top;
+ GLdouble converted_zNear;
+ GLdouble converted_zFar;
+
+ converted_left = (GLdouble) (left);
+ converted_right = (GLdouble) (right);
+ converted_bottom = (GLdouble) (bottom);
+ converted_top = (GLdouble) (top);
+ converted_zNear = (GLdouble) (zNear);
+ converted_zFar = (GLdouble) (zFar);
+
+ _mesa_Frustum(converted_left, converted_right, converted_bottom, converted_top, converted_zNear, converted_zFar);
+}
+
+extern void GLAPIENTRY _mesa_Frustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+static void _es_Frustumx(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
+{
+ GLdouble converted_left;
+ GLdouble converted_right;
+ GLdouble converted_bottom;
+ GLdouble converted_top;
+ GLdouble converted_zNear;
+ GLdouble converted_zFar;
+
+ converted_left = (GLdouble) (left / 65536.0);
+ converted_right = (GLdouble) (right / 65536.0);
+ converted_bottom = (GLdouble) (bottom / 65536.0);
+ converted_top = (GLdouble) (top / 65536.0);
+ converted_zNear = (GLdouble) (zNear / 65536.0);
+ converted_zFar = (GLdouble) (zFar / 65536.0);
+
+ _mesa_Frustum(converted_left, converted_right, converted_bottom, converted_top, converted_zNear, converted_zFar);
+}
+
+/* Extension OES_fixed_point */
+static void _es_FrustumxOES(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
+{
+ GLdouble converted_left;
+ GLdouble converted_right;
+ GLdouble converted_bottom;
+ GLdouble converted_top;
+ GLdouble converted_zNear;
+ GLdouble converted_zFar;
+
+ converted_left = (GLdouble) (left / 65536.0);
+ converted_right = (GLdouble) (right / 65536.0);
+ converted_bottom = (GLdouble) (bottom / 65536.0);
+ converted_top = (GLdouble) (top / 65536.0);
+ converted_zNear = (GLdouble) (zNear / 65536.0);
+ converted_zFar = (GLdouble) (zFar / 65536.0);
+
+ _mesa_Frustum(converted_left, converted_right, converted_bottom, converted_top, converted_zNear, converted_zFar);
+}
+
+extern void GLAPIENTRY _mesa_GenBuffersARB(GLsizei n, GLuint * buffer);
+static void _es_GenBuffers(GLsizei n, GLuint * buffer)
+{
+ _mesa_GenBuffersARB(n, buffer);
+}
+
+extern void GLAPIENTRY _mesa_GenFramebuffersEXT(GLsizei n, GLuint * ids);
+/* Extension OES_framebuffer_object */
+static void _es_GenFramebuffersOES(GLsizei n, GLuint * ids)
+{
+ _mesa_GenFramebuffersEXT(n, ids);
+}
+
+extern void GLAPIENTRY _mesa_GenRenderbuffersEXT(GLsizei n, GLuint * renderbuffers);
+/* Extension OES_framebuffer_object */
+static void _es_GenRenderbuffersOES(GLsizei n, GLuint * renderbuffers)
+{
+ _mesa_GenRenderbuffersEXT(n, renderbuffers);
+}
+
+extern void GLAPIENTRY _mesa_GenTextures(GLsizei n, GLuint * textures);
+static void _es_GenTextures(GLsizei n, GLuint * textures)
+{
+ _mesa_GenTextures(n, textures);
+}
+
+extern void GLAPIENTRY _mesa_GenerateMipmapEXT(GLenum target);
+/* Extension OES_framebuffer_object */
+static void _es_GenerateMipmapOES(GLenum target)
+{
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGenerateMipmap(target=0x%x)", target);
+ return;
+ }
+
+ _mesa_GenerateMipmapEXT(target);
+}
+
+extern void GLAPIENTRY _mesa_GetBooleanv(GLenum pname, GLboolean * params);
+static void _es_GetBooleanv(GLenum pname, GLboolean * params)
+{
+ _mesa_GetBooleanv(pname, params);
+}
+
+extern void GLAPIENTRY _mesa_GetBufferParameterivARB(GLenum target, GLenum pname, GLint * params);
+static void _es_GetBufferParameteriv(GLenum target, GLenum pname, GLint * params)
+{
+ switch(target) {
+ case GL_ARRAY_BUFFER:
+ case GL_ELEMENT_ARRAY_BUFFER:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetBufferParameteriv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_BUFFER_SIZE:
+ case GL_BUFFER_USAGE:
+ case GL_BUFFER_ACCESS_OES:
+ case GL_BUFFER_MAPPED_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetBufferParameteriv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetBufferParameterivARB(target, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_GetBufferPointervARB(GLenum target, GLenum pname, GLvoid ** params);
+/* Extension OES_mapbuffer */
+static void _es_GetBufferPointervOES(GLenum target, GLenum pname, GLvoid ** params)
+{
+ switch(target) {
+ case GL_ARRAY_BUFFER:
+ case GL_ELEMENT_ARRAY_BUFFER:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetBufferPointerv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_BUFFER_MAP_POINTER_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetBufferPointerv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetBufferPointervARB(target, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_GetClipPlane(GLenum plane, GLdouble * equation);
+static void _es_GetClipPlanef(GLenum plane, GLfloat * equation)
+{
+ register unsigned int i;
+ unsigned int n_equation = 4;
+ GLdouble converted_equation[4];
+
+ switch(plane) {
+ case GL_CLIP_PLANE0:
+ case GL_CLIP_PLANE1:
+ case GL_CLIP_PLANE2:
+ case GL_CLIP_PLANE3:
+ case GL_CLIP_PLANE4:
+ case GL_CLIP_PLANE5:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetClipPlanef(plane=0x%x)", plane);
+ return;
+ }
+
+ _mesa_GetClipPlane(plane, converted_equation);
+ for (i = 0; i < n_equation; i++) {
+ equation[i] = (GLfloat) (converted_equation[i]);
+ }
+}
+
+/* Extension OES_single_precision */
+static void _es_GetClipPlanefOES(GLenum plane, GLfloat * equation)
+{
+ register unsigned int i;
+ unsigned int n_equation = 4;
+ GLdouble converted_equation[4];
+
+ switch(plane) {
+ case GL_CLIP_PLANE0:
+ case GL_CLIP_PLANE1:
+ case GL_CLIP_PLANE2:
+ case GL_CLIP_PLANE3:
+ case GL_CLIP_PLANE4:
+ case GL_CLIP_PLANE5:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetClipPlanef(plane=0x%x)", plane);
+ return;
+ }
+
+ _mesa_GetClipPlane(plane, converted_equation);
+ for (i = 0; i < n_equation; i++) {
+ equation[i] = (GLfloat) (converted_equation[i]);
+ }
+}
+
+extern void GLAPIENTRY _mesa_GetClipPlane(GLenum plane, GLdouble * equation);
+static void _es_GetClipPlanex(GLenum plane, GLfixed * equation)
+{
+ register unsigned int i;
+ unsigned int n_equation = 4;
+ GLdouble converted_equation[4];
+
+ switch(plane) {
+ case GL_CLIP_PLANE0:
+ case GL_CLIP_PLANE1:
+ case GL_CLIP_PLANE2:
+ case GL_CLIP_PLANE3:
+ case GL_CLIP_PLANE4:
+ case GL_CLIP_PLANE5:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetClipPlanex(plane=0x%x)", plane);
+ return;
+ }
+
+ _mesa_GetClipPlane(plane, converted_equation);
+ for (i = 0; i < n_equation; i++) {
+ equation[i] = (GLfixed) (converted_equation[i] * 65536);
+ }
+}
+
+/* Extension OES_fixed_point */
+static void _es_GetClipPlanexOES(GLenum plane, GLfixed * equation)
+{
+ register unsigned int i;
+ unsigned int n_equation = 4;
+ GLdouble converted_equation[4];
+
+ switch(plane) {
+ case GL_CLIP_PLANE0:
+ case GL_CLIP_PLANE1:
+ case GL_CLIP_PLANE2:
+ case GL_CLIP_PLANE3:
+ case GL_CLIP_PLANE4:
+ case GL_CLIP_PLANE5:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetClipPlanex(plane=0x%x)", plane);
+ return;
+ }
+
+ _mesa_GetClipPlane(plane, converted_equation);
+ for (i = 0; i < n_equation; i++) {
+ equation[i] = (GLfixed) (converted_equation[i] * 65536);
+ }
+}
+
+extern GLenum GLAPIENTRY _mesa_GetError();
+static GLenum _es_GetError(void)
+{
+ return _mesa_GetError();
+}
+
+extern void GLAPIENTRY _mesa_GetFloatv(GLenum pname, GLfloat * params);
+static void _es_GetFixedv(GLenum pname, GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 16;
+ GLfloat converted_params[16];
+ int convert_params_value = 1;
+
+ switch(pname) {
+ case GL_CLIENT_ACTIVE_TEXTURE:
+ n_params = 1;
+ break;
+ case GL_VERTEX_ARRAY:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_VERTEX_ARRAY_SIZE:
+ n_params = 1;
+ break;
+ case GL_VERTEX_ARRAY_TYPE:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_VERTEX_ARRAY_STRIDE:
+ n_params = 1;
+ break;
+ case GL_NORMAL_ARRAY:
+ case GL_NORMAL_ARRAY_TYPE:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_NORMAL_ARRAY_STRIDE:
+ n_params = 1;
+ break;
+ case GL_COLOR_ARRAY:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_COLOR_ARRAY_SIZE:
+ n_params = 1;
+ break;
+ case GL_COLOR_ARRAY_TYPE:
+ case GL_TEXTURE_COORD_ARRAY:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_COORD_ARRAY_SIZE:
+ n_params = 1;
+ break;
+ case GL_TEXTURE_COORD_ARRAY_TYPE:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_COORD_ARRAY_STRIDE:
+ n_params = 1;
+ break;
+ case GL_POINT_SIZE_ARRAY_OES:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_POINT_SIZE_ARRAY_STRIDE_OES:
+ case GL_ARRAY_BUFFER_BINDING:
+ case GL_VERTEX_ARRAY_BUFFER_BINDING:
+ case GL_NORMAL_ARRAY_BUFFER_BINDING:
+ case GL_COLOR_ARRAY_BUFFER_BINDING:
+ case GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING:
+ case GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES:
+ case GL_ELEMENT_ARRAY_BUFFER_BINDING:
+ case GL_MODELVIEW_STACK_DEPTH:
+ case GL_PROJECTION_STACK_DEPTH:
+ case GL_TEXTURE_STACK_DEPTH:
+ n_params = 1;
+ break;
+ case GL_MATRIX_MODE:
+ case GL_NORMALIZE:
+ case GL_RESCALE_NORMAL:
+ case GL_CLIP_PLANE0:
+ case GL_CLIP_PLANE1:
+ case GL_CLIP_PLANE2:
+ case GL_CLIP_PLANE3:
+ case GL_CLIP_PLANE4:
+ case GL_CLIP_PLANE5:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_FOG_DENSITY:
+ case GL_FOG_START:
+ case GL_FOG_END:
+ n_params = 1;
+ break;
+ case GL_FOG_MODE:
+ case GL_FOG:
+ case GL_SHADE_MODEL:
+ case GL_LIGHTING:
+ case GL_COLOR_MATERIAL:
+ case GL_LIGHT_MODEL_TWO_SIDE:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_POINT_SIZE:
+ n_params = 1;
+ break;
+ case GL_POINT_SMOOTH:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_POINT_SIZE_MIN:
+ case GL_POINT_SIZE_MAX:
+ case GL_POINT_FADE_THRESHOLD_SIZE:
+ n_params = 1;
+ break;
+ case GL_POINT_SPRITE_OES:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_LINE_WIDTH:
+ n_params = 1;
+ break;
+ case GL_LINE_SMOOTH:
+ case GL_CULL_FACE:
+ case GL_CULL_FACE_MODE:
+ case GL_FRONT_FACE:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_POLYGON_OFFSET_FACTOR:
+ case GL_POLYGON_OFFSET_UNITS:
+ n_params = 1;
+ break;
+ case GL_POLYGON_OFFSET_FILL:
+ case GL_MULTISAMPLE:
+ case GL_SAMPLE_ALPHA_TO_COVERAGE:
+ case GL_SAMPLE_ALPHA_TO_ONE:
+ case GL_SAMPLE_COVERAGE:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_SAMPLE_COVERAGE_VALUE:
+ n_params = 1;
+ break;
+ case GL_TEXTURE_2D:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_BINDING_2D:
+ n_params = 1;
+ break;
+ case GL_ACTIVE_TEXTURE:
+ case GL_SCISSOR_TEST:
+ case GL_ALPHA_TEST_FUNC:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_ALPHA_TEST_REF:
+ n_params = 1;
+ break;
+ case GL_STENCIL_TEST:
+ case GL_STENCIL_FUNC:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_STENCIL_VALUE_MASK:
+ case GL_STENCIL_REF:
+ n_params = 1;
+ break;
+ case GL_STENCIL_FAIL:
+ case GL_STENCIL_PASS_DEPTH_FAIL:
+ case GL_STENCIL_PASS_DEPTH_PASS:
+ case GL_DEPTH_TEST:
+ case GL_DEPTH_FUNC:
+ case GL_BLEND:
+ case GL_BLEND_SRC:
+ case GL_BLEND_DST:
+ case GL_DITHER:
+ case GL_COLOR_LOGIC_OP:
+ case GL_LOGIC_OP_MODE:
+ case GL_DEPTH_WRITEMASK:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_STENCIL_WRITEMASK:
+ case GL_DEPTH_CLEAR_VALUE:
+ case GL_STENCIL_CLEAR_VALUE:
+ case GL_UNPACK_ALIGNMENT:
+ case GL_PACK_ALIGNMENT:
+ n_params = 1;
+ break;
+ case GL_PERSPECTIVE_CORRECTION_HINT:
+ case GL_POINT_SMOOTH_HINT:
+ case GL_LINE_SMOOTH_HINT:
+ case GL_FOG_HINT:
+ case GL_GENERATE_MIPMAP_HINT:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_MAX_LIGHTS:
+ case GL_MAX_CLIP_PLANES:
+ case GL_MAX_MODELVIEW_STACK_DEPTH:
+ case GL_MAX_PROJECTION_STACK_DEPTH:
+ case GL_MAX_TEXTURE_STACK_DEPTH:
+ case GL_SUBPIXEL_BITS:
+ case GL_MAX_TEXTURE_SIZE:
+ case GL_MAX_TEXTURE_UNITS:
+ case GL_SAMPLE_BUFFERS:
+ case GL_SAMPLES:
+ case GL_NUM_COMPRESSED_TEXTURE_FORMATS:
+ case GL_RED_BITS:
+ case GL_GREEN_BITS:
+ case GL_BLUE_BITS:
+ case GL_ALPHA_BITS:
+ case GL_DEPTH_BITS:
+ case GL_STENCIL_BITS:
+ n_params = 1;
+ break;
+ case GL_MAX_VIEWPORT_DIMS:
+ case GL_ALIASED_POINT_SIZE_RANGE:
+ case GL_SMOOTH_POINT_SIZE_RANGE:
+ case GL_ALIASED_LINE_WIDTH_RANGE:
+ case GL_SMOOTH_LINE_WIDTH_RANGE:
+ case GL_DEPTH_RANGE:
+ n_params = 2;
+ break;
+ case GL_CURRENT_NORMAL:
+ case GL_POINT_DISTANCE_ATTENUATION:
+ n_params = 3;
+ break;
+ case GL_CURRENT_COLOR:
+ case GL_CURRENT_TEXTURE_COORDS:
+ case GL_SCISSOR_BOX:
+ case GL_COLOR_WRITEMASK:
+ case GL_COLOR_CLEAR_VALUE:
+ case GL_LIGHT_MODEL_AMBIENT:
+ case GL_VIEWPORT:
+ case GL_FOG_COLOR:
+ n_params = 4;
+ break;
+ case GL_MODELVIEW_MATRIX:
+ case GL_PROJECTION_MATRIX:
+ case GL_TEXTURE_MATRIX:
+ n_params = 16;
+ break;
+ case GL_COMPRESSED_TEXTURE_FORMATS:
+ convert_params_value = 0;
+ n_params = _get_size(GL_NUM_COMPRESSED_TEXTURE_FORMATS);
+ break;
+ case GL_BLEND_SRC_RGB_OES:
+ case GL_BLEND_DST_RGB_OES:
+ case GL_BLEND_SRC_ALPHA_OES:
+ case GL_BLEND_DST_ALPHA_OES:
+ case GL_BLEND_EQUATION_RGB_OES:
+ case GL_BLEND_EQUATION_ALPHA_OES:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_FRAMEBUFFER_BINDING_OES:
+ case GL_RENDERBUFFER_BINDING_OES:
+ case GL_MAX_RENDERBUFFER_SIZE_OES:
+ n_params = 1;
+ break;
+ case GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES:
+ case GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES:
+ case GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES:
+ n_params = 16;
+ break;
+ case GL_MAX_PALETTE_MATRICES_OES:
+ case GL_MAX_VERTEX_UNITS_OES:
+ case GL_CURRENT_PALETTE_MATRIX_OES:
+ case GL_MATRIX_INDEX_ARRAY_SIZE_OES:
+ n_params = 1;
+ break;
+ case GL_MATRIX_INDEX_ARRAY_TYPE_OES:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_MATRIX_INDEX_ARRAY_STRIDE_OES:
+ case GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES:
+ case GL_WEIGHT_ARRAY_SIZE_OES:
+ n_params = 1;
+ break;
+ case GL_WEIGHT_ARRAY_TYPE_OES:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_WEIGHT_ARRAY_STRIDE_OES:
+ case GL_WEIGHT_ARRAY_BUFFER_BINDING_OES:
+ n_params = 1;
+ break;
+ case GL_POINT_SIZE_ARRAY_TYPE_OES:
+ case GL_IMPLEMENTATION_COLOR_READ_TYPE_OES:
+ case GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_BINDING_CUBE_MAP_OES:
+ case GL_MAX_CUBE_MAP_TEXTURE_SIZE_OES:
+ case GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT:
+ n_params = 1;
+ break;
+ case GL_LIGHT0:
+ case GL_LIGHT1:
+ case GL_LIGHT2:
+ case GL_LIGHT3:
+ case GL_LIGHT4:
+ case GL_LIGHT5:
+ case GL_LIGHT6:
+ case GL_LIGHT7:
+ case GL_ALPHA_TEST:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetFixedv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetFloatv(pname, converted_params);
+ if (convert_params_value) {
+ for (i = 0; i < n_params; i++) {
+ params[i] = (GLint) (converted_params[i] * 65536);
+ }
+ } else {
+ for (i = 0; i < n_params; i++) {
+ params[i] = (GLfloat) converted_params[i];
+ }
+ }
+}
+
+/* Extension OES_fixed_point */
+static void _es_GetFixedvOES(GLenum pname, GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 16;
+ GLfloat converted_params[16];
+ int convert_params_value = 1;
+
+ switch(pname) {
+ case GL_CLIENT_ACTIVE_TEXTURE:
+ n_params = 1;
+ break;
+ case GL_VERTEX_ARRAY:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_VERTEX_ARRAY_SIZE:
+ n_params = 1;
+ break;
+ case GL_VERTEX_ARRAY_TYPE:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_VERTEX_ARRAY_STRIDE:
+ n_params = 1;
+ break;
+ case GL_NORMAL_ARRAY:
+ case GL_NORMAL_ARRAY_TYPE:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_NORMAL_ARRAY_STRIDE:
+ n_params = 1;
+ break;
+ case GL_COLOR_ARRAY:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_COLOR_ARRAY_SIZE:
+ n_params = 1;
+ break;
+ case GL_COLOR_ARRAY_TYPE:
+ case GL_TEXTURE_COORD_ARRAY:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_COORD_ARRAY_SIZE:
+ n_params = 1;
+ break;
+ case GL_TEXTURE_COORD_ARRAY_TYPE:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_COORD_ARRAY_STRIDE:
+ n_params = 1;
+ break;
+ case GL_POINT_SIZE_ARRAY_OES:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_POINT_SIZE_ARRAY_STRIDE_OES:
+ case GL_ARRAY_BUFFER_BINDING:
+ case GL_VERTEX_ARRAY_BUFFER_BINDING:
+ case GL_NORMAL_ARRAY_BUFFER_BINDING:
+ case GL_COLOR_ARRAY_BUFFER_BINDING:
+ case GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING:
+ case GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES:
+ case GL_ELEMENT_ARRAY_BUFFER_BINDING:
+ case GL_MODELVIEW_STACK_DEPTH:
+ case GL_PROJECTION_STACK_DEPTH:
+ case GL_TEXTURE_STACK_DEPTH:
+ n_params = 1;
+ break;
+ case GL_MATRIX_MODE:
+ case GL_NORMALIZE:
+ case GL_RESCALE_NORMAL:
+ case GL_CLIP_PLANE0:
+ case GL_CLIP_PLANE1:
+ case GL_CLIP_PLANE2:
+ case GL_CLIP_PLANE3:
+ case GL_CLIP_PLANE4:
+ case GL_CLIP_PLANE5:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_FOG_DENSITY:
+ case GL_FOG_START:
+ case GL_FOG_END:
+ n_params = 1;
+ break;
+ case GL_FOG_MODE:
+ case GL_FOG:
+ case GL_SHADE_MODEL:
+ case GL_LIGHTING:
+ case GL_COLOR_MATERIAL:
+ case GL_LIGHT_MODEL_TWO_SIDE:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_POINT_SIZE:
+ n_params = 1;
+ break;
+ case GL_POINT_SMOOTH:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_POINT_SIZE_MIN:
+ case GL_POINT_SIZE_MAX:
+ case GL_POINT_FADE_THRESHOLD_SIZE:
+ n_params = 1;
+ break;
+ case GL_POINT_SPRITE_OES:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_LINE_WIDTH:
+ n_params = 1;
+ break;
+ case GL_LINE_SMOOTH:
+ case GL_CULL_FACE:
+ case GL_CULL_FACE_MODE:
+ case GL_FRONT_FACE:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_POLYGON_OFFSET_FACTOR:
+ case GL_POLYGON_OFFSET_UNITS:
+ n_params = 1;
+ break;
+ case GL_POLYGON_OFFSET_FILL:
+ case GL_MULTISAMPLE:
+ case GL_SAMPLE_ALPHA_TO_COVERAGE:
+ case GL_SAMPLE_ALPHA_TO_ONE:
+ case GL_SAMPLE_COVERAGE:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_SAMPLE_COVERAGE_VALUE:
+ n_params = 1;
+ break;
+ case GL_TEXTURE_2D:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_BINDING_2D:
+ n_params = 1;
+ break;
+ case GL_ACTIVE_TEXTURE:
+ case GL_SCISSOR_TEST:
+ case GL_ALPHA_TEST_FUNC:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_ALPHA_TEST_REF:
+ n_params = 1;
+ break;
+ case GL_STENCIL_TEST:
+ case GL_STENCIL_FUNC:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_STENCIL_VALUE_MASK:
+ case GL_STENCIL_REF:
+ n_params = 1;
+ break;
+ case GL_STENCIL_FAIL:
+ case GL_STENCIL_PASS_DEPTH_FAIL:
+ case GL_STENCIL_PASS_DEPTH_PASS:
+ case GL_DEPTH_TEST:
+ case GL_DEPTH_FUNC:
+ case GL_BLEND:
+ case GL_BLEND_SRC:
+ case GL_BLEND_DST:
+ case GL_DITHER:
+ case GL_COLOR_LOGIC_OP:
+ case GL_LOGIC_OP_MODE:
+ case GL_DEPTH_WRITEMASK:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_STENCIL_WRITEMASK:
+ case GL_DEPTH_CLEAR_VALUE:
+ case GL_STENCIL_CLEAR_VALUE:
+ case GL_UNPACK_ALIGNMENT:
+ case GL_PACK_ALIGNMENT:
+ n_params = 1;
+ break;
+ case GL_PERSPECTIVE_CORRECTION_HINT:
+ case GL_POINT_SMOOTH_HINT:
+ case GL_LINE_SMOOTH_HINT:
+ case GL_FOG_HINT:
+ case GL_GENERATE_MIPMAP_HINT:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_MAX_LIGHTS:
+ case GL_MAX_CLIP_PLANES:
+ case GL_MAX_MODELVIEW_STACK_DEPTH:
+ case GL_MAX_PROJECTION_STACK_DEPTH:
+ case GL_MAX_TEXTURE_STACK_DEPTH:
+ case GL_SUBPIXEL_BITS:
+ case GL_MAX_TEXTURE_SIZE:
+ case GL_MAX_TEXTURE_UNITS:
+ case GL_SAMPLE_BUFFERS:
+ case GL_SAMPLES:
+ case GL_NUM_COMPRESSED_TEXTURE_FORMATS:
+ case GL_RED_BITS:
+ case GL_GREEN_BITS:
+ case GL_BLUE_BITS:
+ case GL_ALPHA_BITS:
+ case GL_DEPTH_BITS:
+ case GL_STENCIL_BITS:
+ n_params = 1;
+ break;
+ case GL_MAX_VIEWPORT_DIMS:
+ case GL_ALIASED_POINT_SIZE_RANGE:
+ case GL_SMOOTH_POINT_SIZE_RANGE:
+ case GL_ALIASED_LINE_WIDTH_RANGE:
+ case GL_SMOOTH_LINE_WIDTH_RANGE:
+ case GL_DEPTH_RANGE:
+ n_params = 2;
+ break;
+ case GL_CURRENT_NORMAL:
+ case GL_POINT_DISTANCE_ATTENUATION:
+ n_params = 3;
+ break;
+ case GL_CURRENT_COLOR:
+ case GL_CURRENT_TEXTURE_COORDS:
+ case GL_SCISSOR_BOX:
+ case GL_COLOR_WRITEMASK:
+ case GL_COLOR_CLEAR_VALUE:
+ case GL_LIGHT_MODEL_AMBIENT:
+ case GL_VIEWPORT:
+ case GL_FOG_COLOR:
+ n_params = 4;
+ break;
+ case GL_MODELVIEW_MATRIX:
+ case GL_PROJECTION_MATRIX:
+ case GL_TEXTURE_MATRIX:
+ n_params = 16;
+ break;
+ case GL_COMPRESSED_TEXTURE_FORMATS:
+ convert_params_value = 0;
+ n_params = _get_size(GL_NUM_COMPRESSED_TEXTURE_FORMATS);
+ break;
+ case GL_BLEND_SRC_RGB_OES:
+ case GL_BLEND_DST_RGB_OES:
+ case GL_BLEND_SRC_ALPHA_OES:
+ case GL_BLEND_DST_ALPHA_OES:
+ case GL_BLEND_EQUATION_RGB_OES:
+ case GL_BLEND_EQUATION_ALPHA_OES:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_FRAMEBUFFER_BINDING_OES:
+ case GL_RENDERBUFFER_BINDING_OES:
+ case GL_MAX_RENDERBUFFER_SIZE_OES:
+ n_params = 1;
+ break;
+ case GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES:
+ case GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES:
+ case GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES:
+ n_params = 16;
+ break;
+ case GL_MAX_PALETTE_MATRICES_OES:
+ case GL_MAX_VERTEX_UNITS_OES:
+ case GL_CURRENT_PALETTE_MATRIX_OES:
+ case GL_MATRIX_INDEX_ARRAY_SIZE_OES:
+ n_params = 1;
+ break;
+ case GL_MATRIX_INDEX_ARRAY_TYPE_OES:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_MATRIX_INDEX_ARRAY_STRIDE_OES:
+ case GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES:
+ case GL_WEIGHT_ARRAY_SIZE_OES:
+ n_params = 1;
+ break;
+ case GL_WEIGHT_ARRAY_TYPE_OES:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_WEIGHT_ARRAY_STRIDE_OES:
+ case GL_WEIGHT_ARRAY_BUFFER_BINDING_OES:
+ n_params = 1;
+ break;
+ case GL_POINT_SIZE_ARRAY_TYPE_OES:
+ case GL_IMPLEMENTATION_COLOR_READ_TYPE_OES:
+ case GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_BINDING_CUBE_MAP_OES:
+ case GL_MAX_CUBE_MAP_TEXTURE_SIZE_OES:
+ case GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT:
+ n_params = 1;
+ break;
+ case GL_LIGHT0:
+ case GL_LIGHT1:
+ case GL_LIGHT2:
+ case GL_LIGHT3:
+ case GL_LIGHT4:
+ case GL_LIGHT5:
+ case GL_LIGHT6:
+ case GL_LIGHT7:
+ case GL_ALPHA_TEST:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetFixedv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetFloatv(pname, converted_params);
+ if (convert_params_value) {
+ for (i = 0; i < n_params; i++) {
+ params[i] = (GLint) (converted_params[i] * 65536);
+ }
+ } else {
+ for (i = 0; i < n_params; i++) {
+ params[i] = (GLfloat) converted_params[i];
+ }
+ }
+}
+
+extern void GLAPIENTRY _mesa_GetFloatv(GLenum pname, GLfloat * params);
+static void _es_GetFloatv(GLenum pname, GLfloat * params)
+{
+ _mesa_GetFloatv(pname, params);
+}
+
+extern void GLAPIENTRY _mesa_GetFramebufferAttachmentParameterivEXT(GLenum target, GLenum attachment, GLenum pname, GLint * params);
+/* Extension OES_framebuffer_object */
+static void _es_GetFramebufferAttachmentParameterivOES(GLenum target, GLenum attachment, GLenum pname, GLint * params)
+{
+ switch(target) {
+ case GL_FRAMEBUFFER_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetFramebufferAttachmentParameteriv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_OES: /* size 1 */
+ case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_OES: /* size 1 */
+ case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_OES: /* size 1 */
+ case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_OES: /* size 1 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetFramebufferAttachmentParameteriv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetFramebufferAttachmentParameterivEXT(target, attachment, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_GetIntegerv(GLenum pname, GLint * params);
+static void _es_GetIntegerv(GLenum pname, GLint * params)
+{
+ _mesa_GetIntegerv(pname, params);
+}
+
+extern void GLAPIENTRY _mesa_GetLightfv(GLenum light, GLenum pname, GLfloat * params);
+static void _es_GetLightfv(GLenum light, GLenum pname, GLfloat * params)
+{
+ switch(light) {
+ case GL_LIGHT0:
+ case GL_LIGHT1:
+ case GL_LIGHT2:
+ case GL_LIGHT3:
+ case GL_LIGHT4:
+ case GL_LIGHT5:
+ case GL_LIGHT6:
+ case GL_LIGHT7:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetLightfv(light=0x%x)", light);
+ return;
+ }
+ switch(pname) {
+ case GL_AMBIENT:
+ case GL_DIFFUSE:
+ case GL_SPECULAR:
+ case GL_POSITION:
+ case GL_SPOT_DIRECTION:
+ case GL_SPOT_EXPONENT:
+ case GL_SPOT_CUTOFF:
+ case GL_CONSTANT_ATTENUATION:
+ case GL_LINEAR_ATTENUATION:
+ case GL_QUADRATIC_ATTENUATION:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetLightfv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetLightfv(light, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_GetLightfv(GLenum light, GLenum pname, GLfloat * params);
+static void _es_GetLightxv(GLenum light, GLenum pname, GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+
+ switch(light) {
+ case GL_LIGHT0:
+ case GL_LIGHT1:
+ case GL_LIGHT2:
+ case GL_LIGHT3:
+ case GL_LIGHT4:
+ case GL_LIGHT5:
+ case GL_LIGHT6:
+ case GL_LIGHT7:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetLightxv(light=0x%x)", light);
+ return;
+ }
+ switch(pname) {
+ case GL_AMBIENT:
+ case GL_DIFFUSE:
+ case GL_SPECULAR:
+ case GL_POSITION:
+ n_params = 4;
+ break;
+ case GL_SPOT_DIRECTION:
+ n_params = 3;
+ break;
+ case GL_SPOT_EXPONENT:
+ case GL_SPOT_CUTOFF:
+ case GL_CONSTANT_ATTENUATION:
+ case GL_QUADRATIC_ATTENUATION:
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetLightxv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetLightfv(light, pname, converted_params);
+ for (i = 0; i < n_params; i++) {
+ params[i] = (GLint) (converted_params[i] * 65536);
+ }
+}
+
+/* Extension OES_fixed_point */
+static void _es_GetLightxvOES(GLenum light, GLenum pname, GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+
+ switch(light) {
+ case GL_LIGHT0:
+ case GL_LIGHT1:
+ case GL_LIGHT2:
+ case GL_LIGHT3:
+ case GL_LIGHT4:
+ case GL_LIGHT5:
+ case GL_LIGHT6:
+ case GL_LIGHT7:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetLightxv(light=0x%x)", light);
+ return;
+ }
+ switch(pname) {
+ case GL_AMBIENT:
+ case GL_DIFFUSE:
+ case GL_SPECULAR:
+ case GL_POSITION:
+ n_params = 4;
+ break;
+ case GL_SPOT_DIRECTION:
+ n_params = 3;
+ break;
+ case GL_SPOT_EXPONENT:
+ case GL_SPOT_CUTOFF:
+ case GL_CONSTANT_ATTENUATION:
+ case GL_QUADRATIC_ATTENUATION:
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetLightxv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetLightfv(light, pname, converted_params);
+ for (i = 0; i < n_params; i++) {
+ params[i] = (GLint) (converted_params[i] * 65536);
+ }
+}
+
+extern void GLAPIENTRY _mesa_GetMaterialfv(GLenum face, GLenum pname, GLfloat * params);
+static void _es_GetMaterialfv(GLenum face, GLenum pname, GLfloat * params)
+{
+ switch(face) {
+ case GL_FRONT:
+ case GL_BACK:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetMaterialfv(face=0x%x)", face);
+ return;
+ }
+ switch(pname) {
+ case GL_AMBIENT:
+ case GL_DIFFUSE:
+ case GL_AMBIENT_AND_DIFFUSE:
+ case GL_SPECULAR:
+ case GL_EMISSION:
+ case GL_SHININESS:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetMaterialfv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetMaterialfv(face, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_GetMaterialfv(GLenum face, GLenum pname, GLfloat * params);
+static void _es_GetMaterialxv(GLenum face, GLenum pname, GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+
+ switch(face) {
+ case GL_FRONT:
+ case GL_BACK:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetMaterialxv(face=0x%x)", face);
+ return;
+ }
+ switch(pname) {
+ case GL_SHININESS:
+ n_params = 1;
+ break;
+ case GL_AMBIENT:
+ case GL_DIFFUSE:
+ case GL_AMBIENT_AND_DIFFUSE:
+ case GL_SPECULAR:
+ case GL_EMISSION:
+ n_params = 4;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetMaterialxv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetMaterialfv(face, pname, converted_params);
+ for (i = 0; i < n_params; i++) {
+ params[i] = (GLint) (converted_params[i] * 65536);
+ }
+}
+
+/* Extension OES_fixed_point */
+static void _es_GetMaterialxvOES(GLenum face, GLenum pname, GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+
+ switch(face) {
+ case GL_FRONT:
+ case GL_BACK:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetMaterialxv(face=0x%x)", face);
+ return;
+ }
+ switch(pname) {
+ case GL_SHININESS:
+ n_params = 1;
+ break;
+ case GL_AMBIENT:
+ case GL_DIFFUSE:
+ case GL_AMBIENT_AND_DIFFUSE:
+ case GL_SPECULAR:
+ case GL_EMISSION:
+ n_params = 4;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetMaterialxv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetMaterialfv(face, pname, converted_params);
+ for (i = 0; i < n_params; i++) {
+ params[i] = (GLint) (converted_params[i] * 65536);
+ }
+}
+
+extern void GLAPIENTRY _mesa_GetPointerv(GLenum pname, GLvoid ** params);
+static void _es_GetPointerv(GLenum pname, GLvoid ** params)
+{
+ switch(pname) {
+ case GL_COLOR_ARRAY_POINTER:
+ case GL_NORMAL_ARRAY_POINTER:
+ case GL_TEXTURE_COORD_ARRAY_POINTER:
+ case GL_VERTEX_ARRAY_POINTER:
+ case GL_MATRIX_INDEX_ARRAY_POINTER_OES:
+ case GL_WEIGHT_ARRAY_POINTER_OES:
+ case GL_POINT_SIZE_ARRAY_POINTER_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetPointerv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetPointerv(pname, params);
+}
+
+extern void GLAPIENTRY _mesa_GetRenderbufferParameterivEXT(GLenum target, GLenum pname, GLint * params);
+/* Extension OES_framebuffer_object */
+static void _es_GetRenderbufferParameterivOES(GLenum target, GLenum pname, GLint * params)
+{
+ switch(target) {
+ case GL_RENDERBUFFER_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetRenderbufferParameteriv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_RENDERBUFFER_WIDTH_OES: /* size 1 */
+ case GL_RENDERBUFFER_HEIGHT_OES: /* size 1 */
+ case GL_RENDERBUFFER_INTERNAL_FORMAT_OES: /* size 1 */
+ case GL_RENDERBUFFER_RED_SIZE_OES: /* size 1 */
+ case GL_RENDERBUFFER_GREEN_SIZE_OES: /* size 1 */
+ case GL_RENDERBUFFER_BLUE_SIZE_OES: /* size 1 */
+ case GL_RENDERBUFFER_ALPHA_SIZE_OES: /* size 1 */
+ case GL_RENDERBUFFER_DEPTH_SIZE_OES: /* size 1 */
+ case GL_RENDERBUFFER_STENCIL_SIZE_OES: /* size 1 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetRenderbufferParameteriv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetRenderbufferParameterivEXT(target, pname, params);
+}
+
+/* this function is special and is defined elsewhere */
+extern const GLubyte * _es_GetString(GLenum name);
+
+extern void GLAPIENTRY _mesa_GetTexEnvfv(GLenum target, GLenum pname, GLfloat * params);
+static void _es_GetTexEnvfv(GLenum target, GLenum pname, GLfloat * params)
+{
+ switch(target) {
+ case GL_POINT_SPRITE_OES:
+ if (pname != GL_COORD_REPLACE_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnvfv(target=0x%x)", target);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV:
+ if (pname != GL_TEXTURE_ENV_MODE && pname != GL_TEXTURE_ENV_COLOR && pname != GL_COMBINE_RGB && pname != GL_COMBINE_ALPHA && pname != GL_RGB_SCALE && pname != GL_ALPHA_SCALE && pname != GL_SRC0_RGB && pname != GL_OPERAND0_RGB && pname != GL_SRC0_ALPHA && pname != GL_OPERAND0_ALPHA && pname != GL_SRC1_RGB && pname != GL_OPERAND1_RGB && pname != GL_SRC1_ALPHA && pname != GL_OPERAND1_ALPHA && pname != GL_SRC2_RGB && pname != GL_OPERAND2_RGB && pname != GL_SRC2_ALPHA && pname != GL_OPERAND2_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnvfv(target=0x%x)", target);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnvfv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_ENV_COLOR: /* size 4 */
+ case GL_RGB_SCALE: /* size 1 */
+ case GL_ALPHA_SCALE: /* size 1 */
+ break;
+ case GL_TEXTURE_ENV_MODE: /* size 1 */
+ case GL_COMBINE_RGB: /* size 1 */
+ case GL_COMBINE_ALPHA: /* size 1 */
+ case GL_SRC0_RGB: /* size 1 */
+ case GL_SRC1_RGB: /* size 1 */
+ case GL_SRC2_RGB: /* size 1 */
+ case GL_SRC0_ALPHA: /* size 1 */
+ case GL_SRC1_ALPHA: /* size 1 */
+ case GL_SRC2_ALPHA: /* size 1 */
+ case GL_OPERAND0_RGB: /* size 1 */
+ case GL_OPERAND1_RGB: /* size 1 */
+ case GL_OPERAND2_RGB: /* size 1 */
+ case GL_OPERAND0_ALPHA: /* size 1 */
+ case GL_OPERAND1_ALPHA: /* size 1 */
+ case GL_OPERAND2_ALPHA: /* size 1 */
+ case GL_COORD_REPLACE_OES: /* size 1 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetTexEnvfv(target, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_GetTexEnviv(GLenum target, GLenum pname, GLint * params);
+static void _es_GetTexEnviv(GLenum target, GLenum pname, GLint * params)
+{
+ switch(target) {
+ case GL_POINT_SPRITE_OES:
+ if (pname != GL_COORD_REPLACE_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnviv(target=0x%x)", target);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV:
+ if (pname != GL_TEXTURE_ENV_MODE && pname != GL_COMBINE_RGB && pname != GL_COMBINE_ALPHA && pname != GL_RGB_SCALE && pname != GL_ALPHA_SCALE && pname != GL_SRC0_RGB && pname != GL_OPERAND0_RGB && pname != GL_SRC0_ALPHA && pname != GL_OPERAND0_ALPHA && pname != GL_SRC1_RGB && pname != GL_OPERAND1_RGB && pname != GL_SRC1_ALPHA && pname != GL_OPERAND1_ALPHA && pname != GL_SRC2_RGB && pname != GL_OPERAND2_RGB && pname != GL_SRC2_ALPHA && pname != GL_OPERAND2_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnviv(target=0x%x)", target);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnviv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_ENV_COLOR: /* size 4 */
+ case GL_RGB_SCALE: /* size 1 */
+ case GL_ALPHA_SCALE: /* size 1 */
+ break;
+ case GL_TEXTURE_ENV_MODE: /* size 1 */
+ case GL_COMBINE_RGB: /* size 1 */
+ case GL_COMBINE_ALPHA: /* size 1 */
+ case GL_SRC0_RGB: /* size 1 */
+ case GL_SRC1_RGB: /* size 1 */
+ case GL_SRC2_RGB: /* size 1 */
+ case GL_SRC0_ALPHA: /* size 1 */
+ case GL_SRC1_ALPHA: /* size 1 */
+ case GL_SRC2_ALPHA: /* size 1 */
+ case GL_OPERAND0_RGB: /* size 1 */
+ case GL_OPERAND1_RGB: /* size 1 */
+ case GL_OPERAND2_RGB: /* size 1 */
+ case GL_OPERAND0_ALPHA: /* size 1 */
+ case GL_OPERAND1_ALPHA: /* size 1 */
+ case GL_OPERAND2_ALPHA: /* size 1 */
+ case GL_COORD_REPLACE_OES: /* size 1 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetTexEnviv(target, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_GetTexEnvfv(GLenum target, GLenum pname, GLfloat * params);
+static void _es_GetTexEnvxv(GLenum target, GLenum pname, GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+ int convert_params_value = 1;
+
+ switch(target) {
+ case GL_POINT_SPRITE_OES:
+ if (pname != GL_COORD_REPLACE_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnvxv(target=0x%x)", target);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV:
+ if (pname != GL_TEXTURE_ENV_MODE && pname != GL_TEXTURE_ENV_COLOR && pname != GL_COMBINE_RGB && pname != GL_COMBINE_ALPHA && pname != GL_RGB_SCALE && pname != GL_ALPHA_SCALE && pname != GL_SRC0_RGB && pname != GL_OPERAND0_RGB && pname != GL_SRC0_ALPHA && pname != GL_OPERAND0_ALPHA && pname != GL_SRC1_RGB && pname != GL_OPERAND1_RGB && pname != GL_SRC1_ALPHA && pname != GL_OPERAND1_ALPHA && pname != GL_SRC2_RGB && pname != GL_OPERAND2_RGB && pname != GL_SRC2_ALPHA && pname != GL_OPERAND2_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnvxv(target=0x%x)", target);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnvxv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_ENV_COLOR:
+ n_params = 4;
+ break;
+ case GL_RGB_SCALE:
+ case GL_ALPHA_SCALE:
+ n_params = 1;
+ break;
+ case GL_TEXTURE_ENV_MODE:
+ case GL_COMBINE_RGB:
+ case GL_COMBINE_ALPHA:
+ case GL_SRC0_RGB:
+ case GL_SRC1_RGB:
+ case GL_SRC2_RGB:
+ case GL_SRC0_ALPHA:
+ case GL_SRC1_ALPHA:
+ case GL_SRC2_ALPHA:
+ case GL_OPERAND0_RGB:
+ case GL_OPERAND1_RGB:
+ case GL_OPERAND2_RGB:
+ case GL_OPERAND0_ALPHA:
+ case GL_OPERAND1_ALPHA:
+ case GL_OPERAND2_ALPHA:
+ case GL_COORD_REPLACE_OES:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetTexEnvfv(target, pname, converted_params);
+ if (convert_params_value) {
+ for (i = 0; i < n_params; i++) {
+ params[i] = (GLint) (converted_params[i] * 65536);
+ }
+ } else {
+ for (i = 0; i < n_params; i++) {
+ params[i] = (GLfloat) converted_params[i];
+ }
+ }
+}
+
+/* Extension OES_fixed_point */
+static void _es_GetTexEnvxvOES(GLenum target, GLenum pname, GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+ int convert_params_value = 1;
+
+ switch(target) {
+ case GL_POINT_SPRITE_OES:
+ if (pname != GL_COORD_REPLACE_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnvxv(target=0x%x)", target);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV:
+ if (pname != GL_TEXTURE_ENV_MODE && pname != GL_TEXTURE_ENV_COLOR && pname != GL_COMBINE_RGB && pname != GL_COMBINE_ALPHA && pname != GL_RGB_SCALE && pname != GL_ALPHA_SCALE && pname != GL_SRC0_RGB && pname != GL_OPERAND0_RGB && pname != GL_SRC0_ALPHA && pname != GL_OPERAND0_ALPHA && pname != GL_SRC1_RGB && pname != GL_OPERAND1_RGB && pname != GL_SRC1_ALPHA && pname != GL_OPERAND1_ALPHA && pname != GL_SRC2_RGB && pname != GL_OPERAND2_RGB && pname != GL_SRC2_ALPHA && pname != GL_OPERAND2_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnvxv(target=0x%x)", target);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnvxv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_ENV_COLOR:
+ n_params = 4;
+ break;
+ case GL_RGB_SCALE:
+ case GL_ALPHA_SCALE:
+ n_params = 1;
+ break;
+ case GL_TEXTURE_ENV_MODE:
+ case GL_COMBINE_RGB:
+ case GL_COMBINE_ALPHA:
+ case GL_SRC0_RGB:
+ case GL_SRC1_RGB:
+ case GL_SRC2_RGB:
+ case GL_SRC0_ALPHA:
+ case GL_SRC1_ALPHA:
+ case GL_SRC2_ALPHA:
+ case GL_OPERAND0_RGB:
+ case GL_OPERAND1_RGB:
+ case GL_OPERAND2_RGB:
+ case GL_OPERAND0_ALPHA:
+ case GL_OPERAND1_ALPHA:
+ case GL_OPERAND2_ALPHA:
+ case GL_COORD_REPLACE_OES:
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetTexEnvfv(target, pname, converted_params);
+ if (convert_params_value) {
+ for (i = 0; i < n_params; i++) {
+ params[i] = (GLint) (converted_params[i] * 65536);
+ }
+ } else {
+ for (i = 0; i < n_params; i++) {
+ params[i] = (GLfloat) converted_params[i];
+ }
+ }
+}
+
+extern void GLAPIENTRY _mesa_GetTexGenfv(GLenum coord, GLenum pname, GLfloat * params);
+/* Extension OES_texture_cube_map */
+static void _es_GetTexGenfvOES(GLenum coord, GLenum pname, GLfloat * params)
+{
+ switch(coord) {
+ case GL_TEXTURE_GEN_STR_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexGenfv(coord=0x%x)", coord);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_GEN_MODE_OES: /* size 1 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexGenfv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetTexGenfv(coord, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_GetTexGeniv(GLenum coord, GLenum pname, GLint * params);
+/* Extension OES_texture_cube_map */
+static void _es_GetTexGenivOES(GLenum coord, GLenum pname, GLint * params)
+{
+ switch(coord) {
+ case GL_TEXTURE_GEN_STR_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexGeniv(coord=0x%x)", coord);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_GEN_MODE_OES: /* size 1 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexGeniv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetTexGeniv(coord, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_GetTexGenfv(GLenum coord, GLenum pname, GLfloat * params);
+/* Extension OES_texture_cube_map */
+static void _es_GetTexGenxvOES(GLenum coord, GLenum pname, GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 1;
+ GLfloat converted_params[1];
+
+ switch(coord) {
+ case GL_TEXTURE_GEN_STR_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexGenxv(coord=0x%x)", coord);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_GEN_MODE_OES:
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexGenxv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetTexGenfv(coord, pname, converted_params);
+ for (i = 0; i < n_params; i++) {
+ params[i] = (GLfloat) converted_params[i];
+ }
+}
+
+extern void GLAPIENTRY _mesa_GetTexParameterfv(GLenum target, GLenum pname, GLfloat * params);
+static void _es_GetTexParameterfv(GLenum target, GLenum pname, GLfloat * params)
+{
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameterfv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_WRAP_S: /* size 1 */
+ case GL_TEXTURE_WRAP_T: /* size 1 */
+ case GL_TEXTURE_MIN_FILTER: /* size 1 */
+ case GL_TEXTURE_MAG_FILTER: /* size 1 */
+ case GL_GENERATE_MIPMAP: /* size 1 */
+ case GL_TEXTURE_CROP_RECT_OES: /* size 4 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameterfv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetTexParameterfv(target, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_GetTexParameteriv(GLenum target, GLenum pname, GLint * params);
+static void _es_GetTexParameteriv(GLenum target, GLenum pname, GLint * params)
+{
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameteriv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_WRAP_S: /* size 1 */
+ case GL_TEXTURE_WRAP_T: /* size 1 */
+ case GL_TEXTURE_MIN_FILTER: /* size 1 */
+ case GL_TEXTURE_MAG_FILTER: /* size 1 */
+ case GL_GENERATE_MIPMAP: /* size 1 */
+ case GL_TEXTURE_CROP_RECT_OES: /* size 4 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameteriv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetTexParameteriv(target, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_GetTexParameterfv(GLenum target, GLenum pname, GLfloat * params);
+static void _es_GetTexParameterxv(GLenum target, GLenum pname, GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 1;
+ GLfloat converted_params[1];
+
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameterxv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_WRAP_S:
+ case GL_TEXTURE_WRAP_T:
+ case GL_TEXTURE_MIN_FILTER:
+ case GL_TEXTURE_MAG_FILTER:
+ case GL_GENERATE_MIPMAP:
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameterxv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetTexParameterfv(target, pname, converted_params);
+ for (i = 0; i < n_params; i++) {
+ params[i] = (GLfloat) converted_params[i];
+ }
+}
+
+/* Extension OES_fixed_point */
+static void _es_GetTexParameterxvOES(GLenum target, GLenum pname, GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 1;
+ GLfloat converted_params[1];
+
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameterxv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_WRAP_S:
+ case GL_TEXTURE_WRAP_T:
+ case GL_TEXTURE_MIN_FILTER:
+ case GL_TEXTURE_MAG_FILTER:
+ case GL_GENERATE_MIPMAP:
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameterxv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_GetTexParameterfv(target, pname, converted_params);
+ for (i = 0; i < n_params; i++) {
+ params[i] = (GLfloat) converted_params[i];
+ }
+}
+
+extern void GLAPIENTRY _mesa_Hint(GLenum target, GLenum mode);
+static void _es_Hint(GLenum target, GLenum mode)
+{
+ switch(target) {
+ case GL_FOG_HINT:
+ case GL_LINE_SMOOTH_HINT:
+ case GL_PERSPECTIVE_CORRECTION_HINT:
+ case GL_POINT_SMOOTH_HINT:
+ case GL_GENERATE_MIPMAP_HINT:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glHint(target=0x%x)", target);
+ return;
+ }
+ switch(mode) {
+ case GL_FASTEST:
+ case GL_NICEST:
+ case GL_DONT_CARE:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glHint(mode=0x%x)", mode);
+ return;
+ }
+
+ _mesa_Hint(target, mode);
+}
+
+extern GLboolean GLAPIENTRY _mesa_IsBufferARB(GLuint buffer);
+static GLboolean _es_IsBuffer(GLuint buffer)
+{
+ return _mesa_IsBufferARB(buffer);
+}
+
+extern GLboolean GLAPIENTRY _mesa_IsEnabled(GLenum cap);
+static GLboolean _es_IsEnabled(GLenum cap)
+{
+ switch(cap) {
+ case GL_VERTEX_ARRAY:
+ case GL_NORMAL_ARRAY:
+ case GL_COLOR_ARRAY:
+ case GL_TEXTURE_COORD_ARRAY:
+ case GL_NORMALIZE:
+ case GL_RESCALE_NORMAL:
+ case GL_CLIP_PLANE0:
+ case GL_CLIP_PLANE1:
+ case GL_CLIP_PLANE2:
+ case GL_CLIP_PLANE3:
+ case GL_CLIP_PLANE4:
+ case GL_CLIP_PLANE5:
+ case GL_FOG:
+ case GL_LIGHTING:
+ case GL_COLOR_MATERIAL:
+ case GL_LIGHT0:
+ case GL_LIGHT1:
+ case GL_LIGHT2:
+ case GL_LIGHT3:
+ case GL_LIGHT4:
+ case GL_LIGHT5:
+ case GL_LIGHT6:
+ case GL_LIGHT7:
+ case GL_POINT_SMOOTH:
+ case GL_LINE_SMOOTH:
+ case GL_CULL_FACE:
+ case GL_POLYGON_OFFSET_FILL:
+ case GL_MULTISAMPLE:
+ case GL_SAMPLE_ALPHA_TO_COVERAGE:
+ case GL_SAMPLE_ALPHA_TO_ONE:
+ case GL_SAMPLE_COVERAGE:
+ case GL_TEXTURE_2D:
+ case GL_SCISSOR_TEST:
+ case GL_ALPHA_TEST:
+ case GL_STENCIL_TEST:
+ case GL_DEPTH_TEST:
+ case GL_BLEND:
+ case GL_DITHER:
+ case GL_COLOR_LOGIC_OP:
+ case GL_MATRIX_INDEX_ARRAY_OES:
+ case GL_WEIGHT_ARRAY_OES:
+ case GL_POINT_SIZE_ARRAY_OES:
+ case GL_POINT_SPRITE_OES:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ case GL_TEXTURE_GEN_STR_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glIsEnabled(cap=0x%x)", cap);
+ return GL_FALSE;
+ }
+
+ return _mesa_IsEnabled(cap);
+}
+
+extern GLboolean GLAPIENTRY _mesa_IsFramebufferEXT(GLuint framebuffer);
+/* Extension OES_framebuffer_object */
+static GLboolean _es_IsFramebufferOES(GLuint framebuffer)
+{
+ return _mesa_IsFramebufferEXT(framebuffer);
+}
+
+extern GLboolean GLAPIENTRY _mesa_IsRenderbufferEXT(GLuint renderbuffer);
+/* Extension OES_framebuffer_object */
+static GLboolean _es_IsRenderbufferOES(GLuint renderbuffer)
+{
+ return _mesa_IsRenderbufferEXT(renderbuffer);
+}
+
+extern GLboolean GLAPIENTRY _mesa_IsTexture(GLuint texture);
+static GLboolean _es_IsTexture(GLuint texture)
+{
+ return _mesa_IsTexture(texture);
+}
+
+extern void GLAPIENTRY _mesa_LightModelf(GLenum pname, GLfloat param);
+static void _es_LightModelf(GLenum pname, GLfloat param)
+{
+ switch(pname) {
+ case GL_LIGHT_MODEL_TWO_SIDE:
+ if (param != GL_TRUE && param != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightModelf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightModelf(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_LightModelf(pname, param);
+}
+
+extern void GLAPIENTRY _mesa_LightModelfv(GLenum pname, const GLfloat * params);
+static void _es_LightModelfv(GLenum pname, const GLfloat * params)
+{
+ switch(pname) {
+ case GL_LIGHT_MODEL_AMBIENT: /* size 4 */
+ case GL_LIGHT_MODEL_TWO_SIDE: /* size 1 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightModelfv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_LightModelfv(pname, params);
+}
+
+extern void GLAPIENTRY _mesa_LightModelf(GLenum pname, GLfloat param);
+static void _es_LightModelx(GLenum pname, GLfixed param)
+{
+ GLfloat converted_param;
+
+ switch(pname) {
+ case GL_LIGHT_MODEL_TWO_SIDE:
+ if (param != GL_TRUE && param != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightModelx(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightModelx(pname=0x%x)", pname);
+ return;
+ }
+
+ converted_param = (GLfloat) param;
+
+ _mesa_LightModelf(pname, converted_param);
+}
+
+/* Extension OES_fixed_point */
+static void _es_LightModelxOES(GLenum pname, GLfixed param)
+{
+ GLfloat converted_param;
+
+ switch(pname) {
+ case GL_LIGHT_MODEL_TWO_SIDE:
+ if (param != GL_TRUE && param != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightModelx(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightModelx(pname=0x%x)", pname);
+ return;
+ }
+
+ converted_param = (GLfloat) param;
+
+ _mesa_LightModelf(pname, converted_param);
+}
+
+extern void GLAPIENTRY _mesa_LightModelfv(GLenum pname, GLfloat const * params);
+static void _es_LightModelxv(GLenum pname, const GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+ int convert_params_value = 1;
+
+ switch(pname) {
+ case GL_LIGHT_MODEL_AMBIENT:
+ n_params = 4;
+ break;
+ case GL_LIGHT_MODEL_TWO_SIDE:
+ if (params[0] != GL_TRUE && params[0] != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightModelxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightModelxv(pname=0x%x)", pname);
+ return;
+ }
+
+ if (convert_params_value) {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) (params[i] / 65536.0f);
+ }
+ } else {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) params[i];
+ }
+ }
+
+ _mesa_LightModelfv(pname, converted_params);
+}
+
+/* Extension OES_fixed_point */
+static void _es_LightModelxvOES(GLenum pname, const GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+ int convert_params_value = 1;
+
+ switch(pname) {
+ case GL_LIGHT_MODEL_AMBIENT:
+ n_params = 4;
+ break;
+ case GL_LIGHT_MODEL_TWO_SIDE:
+ if (params[0] != GL_TRUE && params[0] != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightModelxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightModelxv(pname=0x%x)", pname);
+ return;
+ }
+
+ if (convert_params_value) {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) (params[i] / 65536.0f);
+ }
+ } else {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) params[i];
+ }
+ }
+
+ _mesa_LightModelfv(pname, converted_params);
+}
+
+extern void GLAPIENTRY _mesa_Lightf(GLenum light, GLenum pname, GLfloat param);
+static void _es_Lightf(GLenum light, GLenum pname, GLfloat param)
+{
+ switch(light) {
+ case GL_LIGHT0:
+ case GL_LIGHT1:
+ case GL_LIGHT2:
+ case GL_LIGHT3:
+ case GL_LIGHT4:
+ case GL_LIGHT5:
+ case GL_LIGHT6:
+ case GL_LIGHT7:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightf(light=0x%x)", light);
+ return;
+ }
+ switch(pname) {
+ case GL_SPOT_EXPONENT:
+ case GL_SPOT_CUTOFF:
+ case GL_CONSTANT_ATTENUATION:
+ case GL_LINEAR_ATTENUATION:
+ case GL_QUADRATIC_ATTENUATION:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightf(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_Lightf(light, pname, param);
+}
+
+extern void GLAPIENTRY _mesa_Lightfv(GLenum light, GLenum pname, const GLfloat * params);
+static void _es_Lightfv(GLenum light, GLenum pname, const GLfloat * params)
+{
+ switch(light) {
+ case GL_LIGHT0:
+ case GL_LIGHT1:
+ case GL_LIGHT2:
+ case GL_LIGHT3:
+ case GL_LIGHT4:
+ case GL_LIGHT5:
+ case GL_LIGHT6:
+ case GL_LIGHT7:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightfv(light=0x%x)", light);
+ return;
+ }
+ switch(pname) {
+ case GL_AMBIENT: /* size 4 */
+ case GL_DIFFUSE: /* size 4 */
+ case GL_SPECULAR: /* size 4 */
+ case GL_POSITION: /* size 4 */
+ case GL_SPOT_DIRECTION: /* size 3 */
+ case GL_SPOT_EXPONENT: /* size 1 */
+ case GL_SPOT_CUTOFF: /* size 1 */
+ case GL_CONSTANT_ATTENUATION: /* size 1 */
+ case GL_LINEAR_ATTENUATION: /* size 1 */
+ case GL_QUADRATIC_ATTENUATION: /* size 1 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightfv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_Lightfv(light, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_Lightf(GLenum light, GLenum pname, GLfloat param);
+static void _es_Lightx(GLenum light, GLenum pname, GLfixed param)
+{
+ GLfloat converted_param;
+
+ switch(light) {
+ case GL_LIGHT0:
+ case GL_LIGHT1:
+ case GL_LIGHT2:
+ case GL_LIGHT3:
+ case GL_LIGHT4:
+ case GL_LIGHT5:
+ case GL_LIGHT6:
+ case GL_LIGHT7:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightx(light=0x%x)", light);
+ return;
+ }
+ switch(pname) {
+ case GL_SPOT_EXPONENT:
+ case GL_SPOT_CUTOFF:
+ case GL_CONSTANT_ATTENUATION:
+ case GL_LINEAR_ATTENUATION:
+ case GL_QUADRATIC_ATTENUATION:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightx(pname=0x%x)", pname);
+ return;
+ }
+
+ converted_param = (GLfloat) (param / 65536.0f);
+
+ _mesa_Lightf(light, pname, converted_param);
+}
+
+/* Extension OES_fixed_point */
+static void _es_LightxOES(GLenum light, GLenum pname, GLfixed param)
+{
+ GLfloat converted_param;
+
+ switch(light) {
+ case GL_LIGHT0:
+ case GL_LIGHT1:
+ case GL_LIGHT2:
+ case GL_LIGHT3:
+ case GL_LIGHT4:
+ case GL_LIGHT5:
+ case GL_LIGHT6:
+ case GL_LIGHT7:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightx(light=0x%x)", light);
+ return;
+ }
+ switch(pname) {
+ case GL_SPOT_EXPONENT:
+ case GL_SPOT_CUTOFF:
+ case GL_CONSTANT_ATTENUATION:
+ case GL_LINEAR_ATTENUATION:
+ case GL_QUADRATIC_ATTENUATION:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightx(pname=0x%x)", pname);
+ return;
+ }
+
+ converted_param = (GLfloat) (param / 65536.0f);
+
+ _mesa_Lightf(light, pname, converted_param);
+}
+
+extern void GLAPIENTRY _mesa_Lightfv(GLenum light, GLenum pname, GLfloat const * params);
+static void _es_Lightxv(GLenum light, GLenum pname, const GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+
+ switch(light) {
+ case GL_LIGHT0:
+ case GL_LIGHT1:
+ case GL_LIGHT2:
+ case GL_LIGHT3:
+ case GL_LIGHT4:
+ case GL_LIGHT5:
+ case GL_LIGHT6:
+ case GL_LIGHT7:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightxv(light=0x%x)", light);
+ return;
+ }
+ switch(pname) {
+ case GL_AMBIENT:
+ case GL_DIFFUSE:
+ case GL_SPECULAR:
+ case GL_POSITION:
+ n_params = 4;
+ break;
+ case GL_SPOT_DIRECTION:
+ n_params = 3;
+ break;
+ case GL_SPOT_EXPONENT:
+ case GL_SPOT_CUTOFF:
+ case GL_CONSTANT_ATTENUATION:
+ case GL_LINEAR_ATTENUATION:
+ case GL_QUADRATIC_ATTENUATION:
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightxv(pname=0x%x)", pname);
+ return;
+ }
+
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) (params[i] / 65536.0f);
+ }
+
+ _mesa_Lightfv(light, pname, converted_params);
+}
+
+/* Extension OES_fixed_point */
+static void _es_LightxvOES(GLenum light, GLenum pname, const GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+
+ switch(light) {
+ case GL_LIGHT0:
+ case GL_LIGHT1:
+ case GL_LIGHT2:
+ case GL_LIGHT3:
+ case GL_LIGHT4:
+ case GL_LIGHT5:
+ case GL_LIGHT6:
+ case GL_LIGHT7:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightxv(light=0x%x)", light);
+ return;
+ }
+ switch(pname) {
+ case GL_AMBIENT:
+ case GL_DIFFUSE:
+ case GL_SPECULAR:
+ case GL_POSITION:
+ n_params = 4;
+ break;
+ case GL_SPOT_DIRECTION:
+ n_params = 3;
+ break;
+ case GL_SPOT_EXPONENT:
+ case GL_SPOT_CUTOFF:
+ case GL_CONSTANT_ATTENUATION:
+ case GL_LINEAR_ATTENUATION:
+ case GL_QUADRATIC_ATTENUATION:
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLightxv(pname=0x%x)", pname);
+ return;
+ }
+
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) (params[i] / 65536.0f);
+ }
+
+ _mesa_Lightfv(light, pname, converted_params);
+}
+
+extern void GLAPIENTRY _mesa_LineWidth(GLfloat width);
+static void _es_LineWidth(GLfloat width)
+{
+ _mesa_LineWidth(width);
+}
+
+extern void GLAPIENTRY _mesa_LineWidth(GLfloat width);
+static void _es_LineWidthx(GLfixed width)
+{
+ GLfloat converted_width;
+
+ converted_width = (GLfloat) (width / 65536.0f);
+
+ _mesa_LineWidth(converted_width);
+}
+
+/* Extension OES_fixed_point */
+static void _es_LineWidthxOES(GLfixed width)
+{
+ GLfloat converted_width;
+
+ converted_width = (GLfloat) (width / 65536.0f);
+
+ _mesa_LineWidth(converted_width);
+}
+
+extern void GLAPIENTRY _mesa_LoadIdentity();
+static void _es_LoadIdentity(void)
+{
+ _mesa_LoadIdentity();
+}
+
+extern void GLAPIENTRY _mesa_LoadMatrixf(const GLfloat * m);
+static void _es_LoadMatrixf(const GLfloat * m)
+{
+ _mesa_LoadMatrixf(m);
+}
+
+extern void GLAPIENTRY _mesa_LoadMatrixf(GLfloat const * m);
+static void _es_LoadMatrixx(const GLfixed * m)
+{
+ register unsigned int i;
+ unsigned int n_m = 16;
+ GLfloat converted_m[16];
+
+ for (i = 0; i < n_m; i++) {
+ converted_m[i] = (GLfloat) (m[i] / 65536.0f);
+ }
+
+ _mesa_LoadMatrixf(converted_m);
+}
+
+/* Extension OES_fixed_point */
+static void _es_LoadMatrixxOES(const GLfixed * m)
+{
+ register unsigned int i;
+ unsigned int n_m = 16;
+ GLfloat converted_m[16];
+
+ for (i = 0; i < n_m; i++) {
+ converted_m[i] = (GLfloat) (m[i] / 65536.0f);
+ }
+
+ _mesa_LoadMatrixf(converted_m);
+}
+
+extern void GLAPIENTRY _mesa_LogicOp(GLenum opcode);
+static void _es_LogicOp(GLenum opcode)
+{
+ switch(opcode) {
+ case GL_CLEAR:
+ case GL_SET:
+ case GL_COPY:
+ case GL_COPY_INVERTED:
+ case GL_NOOP:
+ case GL_INVERT:
+ case GL_AND:
+ case GL_NAND:
+ case GL_OR:
+ case GL_NOR:
+ case GL_XOR:
+ case GL_EQUIV:
+ case GL_AND_REVERSE:
+ case GL_AND_INVERTED:
+ case GL_OR_REVERSE:
+ case GL_OR_INVERTED:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glLogicOp(opcode=0x%x)", opcode);
+ return;
+ }
+
+ _mesa_LogicOp(opcode);
+}
+
+extern void * GLAPIENTRY _mesa_MapBufferARB(GLenum target, GLenum access);
+/* Extension OES_mapbuffer */
+static void * _es_MapBufferOES(GLenum target, GLenum access)
+{
+ switch(target) {
+ case GL_ARRAY_BUFFER:
+ case GL_ELEMENT_ARRAY_BUFFER:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMapBuffer(target=0x%x)", target);
+ return (void *) 0;
+ }
+ switch(access) {
+ case GL_WRITE_ONLY_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMapBuffer(access=0x%x)", access);
+ return (void *) 0;
+ }
+
+ return _mesa_MapBufferARB(target, access);
+}
+
+extern void GLAPIENTRY _vbo_Materialf(GLenum face, GLenum pname, GLfloat param);
+static void _es_Materialf(GLenum face, GLenum pname, GLfloat param)
+{
+ switch(face) {
+ case GL_FRONT_AND_BACK:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMaterialf(face=0x%x)", face);
+ return;
+ }
+ switch(pname) {
+ case GL_SHININESS:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMaterialf(pname=0x%x)", pname);
+ return;
+ }
+
+ _vbo_Materialf(face, pname, param);
+}
+
+extern void GLAPIENTRY _vbo_Materialfv(GLenum face, GLenum pname, const GLfloat * params);
+static void _es_Materialfv(GLenum face, GLenum pname, const GLfloat * params)
+{
+ switch(face) {
+ case GL_FRONT_AND_BACK:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMaterialfv(face=0x%x)", face);
+ return;
+ }
+ switch(pname) {
+ case GL_AMBIENT: /* size 4 */
+ case GL_DIFFUSE: /* size 4 */
+ case GL_AMBIENT_AND_DIFFUSE: /* size 4 */
+ case GL_SPECULAR: /* size 4 */
+ case GL_EMISSION: /* size 4 */
+ case GL_SHININESS: /* size 1 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMaterialfv(pname=0x%x)", pname);
+ return;
+ }
+
+ _vbo_Materialfv(face, pname, params);
+}
+
+extern void GLAPIENTRY _vbo_Materialf(GLenum face, GLenum pname, GLfloat param);
+static void _es_Materialx(GLenum face, GLenum pname, GLfixed param)
+{
+ GLfloat converted_param;
+
+ switch(face) {
+ case GL_FRONT_AND_BACK:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMaterialx(face=0x%x)", face);
+ return;
+ }
+ switch(pname) {
+ case GL_SHININESS:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMaterialx(pname=0x%x)", pname);
+ return;
+ }
+
+ converted_param = (GLfloat) (param / 65536.0f);
+
+ _vbo_Materialf(face, pname, converted_param);
+}
+
+/* Extension OES_fixed_point */
+static void _es_MaterialxOES(GLenum face, GLenum pname, GLfixed param)
+{
+ GLfloat converted_param;
+
+ switch(face) {
+ case GL_FRONT_AND_BACK:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMaterialx(face=0x%x)", face);
+ return;
+ }
+ switch(pname) {
+ case GL_SHININESS:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMaterialx(pname=0x%x)", pname);
+ return;
+ }
+
+ converted_param = (GLfloat) (param / 65536.0f);
+
+ _vbo_Materialf(face, pname, converted_param);
+}
+
+extern void GLAPIENTRY _vbo_Materialfv(GLenum face, GLenum pname, GLfloat const * params);
+static void _es_Materialxv(GLenum face, GLenum pname, const GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+
+ switch(face) {
+ case GL_FRONT_AND_BACK:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMaterialxv(face=0x%x)", face);
+ return;
+ }
+ switch(pname) {
+ case GL_AMBIENT:
+ case GL_DIFFUSE:
+ case GL_AMBIENT_AND_DIFFUSE:
+ case GL_SPECULAR:
+ case GL_EMISSION:
+ n_params = 4;
+ break;
+ case GL_SHININESS:
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMaterialxv(pname=0x%x)", pname);
+ return;
+ }
+
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) (params[i] / 65536.0f);
+ }
+
+ _vbo_Materialfv(face, pname, converted_params);
+}
+
+/* Extension OES_fixed_point */
+static void _es_MaterialxvOES(GLenum face, GLenum pname, const GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+
+ switch(face) {
+ case GL_FRONT_AND_BACK:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMaterialxv(face=0x%x)", face);
+ return;
+ }
+ switch(pname) {
+ case GL_AMBIENT:
+ case GL_DIFFUSE:
+ case GL_AMBIENT_AND_DIFFUSE:
+ case GL_SPECULAR:
+ case GL_EMISSION:
+ n_params = 4;
+ break;
+ case GL_SHININESS:
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMaterialxv(pname=0x%x)", pname);
+ return;
+ }
+
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) (params[i] / 65536.0f);
+ }
+
+ _vbo_Materialfv(face, pname, converted_params);
+}
+
+extern void GLAPIENTRY _mesa_MatrixMode(GLenum mode);
+static void _es_MatrixMode(GLenum mode)
+{
+ switch(mode) {
+ case GL_MODELVIEW:
+ case GL_PROJECTION:
+ case GL_TEXTURE:
+ case GL_MATRIX_PALETTE_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMatrixMode(mode=0x%x)", mode);
+ return;
+ }
+
+ _mesa_MatrixMode(mode);
+}
+
+extern void GLAPIENTRY _mesa_MultMatrixf(const GLfloat * m);
+static void _es_MultMatrixf(const GLfloat * m)
+{
+ _mesa_MultMatrixf(m);
+}
+
+extern void GLAPIENTRY _mesa_MultMatrixf(GLfloat const * m);
+static void _es_MultMatrixx(const GLfixed * m)
+{
+ register unsigned int i;
+ unsigned int n_m = 16;
+ GLfloat converted_m[16];
+
+ for (i = 0; i < n_m; i++) {
+ converted_m[i] = (GLfloat) (m[i] / 65536.0f);
+ }
+
+ _mesa_MultMatrixf(converted_m);
+}
+
+/* Extension OES_fixed_point */
+static void _es_MultMatrixxOES(const GLfixed * m)
+{
+ register unsigned int i;
+ unsigned int n_m = 16;
+ GLfloat converted_m[16];
+
+ for (i = 0; i < n_m; i++) {
+ converted_m[i] = (GLfloat) (m[i] / 65536.0f);
+ }
+
+ _mesa_MultMatrixf(converted_m);
+}
+
+extern void GLAPIENTRY _vbo_MultiTexCoord4f(GLenum texture, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+static void _es_MultiTexCoord4f(GLenum texture, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ switch(texture) {
+ case GL_TEXTURE0:
+ case GL_TEXTURE1:
+ case GL_TEXTURE2:
+ case GL_TEXTURE3:
+ case GL_TEXTURE4:
+ case GL_TEXTURE5:
+ case GL_TEXTURE6:
+ case GL_TEXTURE7:
+ case GL_TEXTURE8:
+ case GL_TEXTURE9:
+ case GL_TEXTURE10:
+ case GL_TEXTURE11:
+ case GL_TEXTURE12:
+ case GL_TEXTURE13:
+ case GL_TEXTURE14:
+ case GL_TEXTURE15:
+ case GL_TEXTURE16:
+ case GL_TEXTURE17:
+ case GL_TEXTURE18:
+ case GL_TEXTURE19:
+ case GL_TEXTURE20:
+ case GL_TEXTURE21:
+ case GL_TEXTURE22:
+ case GL_TEXTURE23:
+ case GL_TEXTURE24:
+ case GL_TEXTURE25:
+ case GL_TEXTURE26:
+ case GL_TEXTURE27:
+ case GL_TEXTURE28:
+ case GL_TEXTURE29:
+ case GL_TEXTURE30:
+ case GL_TEXTURE31:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMultiTexCoord4f(texture=0x%x)", texture);
+ return;
+ }
+
+ _vbo_MultiTexCoord4f(texture, s, t, r, q);
+}
+
+extern void GLAPIENTRY _vbo_MultiTexCoord4f(GLenum texture, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+static void _es_MultiTexCoord4x(GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q)
+{
+ GLfloat converted_s;
+ GLfloat converted_t;
+ GLfloat converted_r;
+ GLfloat converted_q;
+
+ switch(texture) {
+ case GL_TEXTURE0:
+ case GL_TEXTURE1:
+ case GL_TEXTURE2:
+ case GL_TEXTURE3:
+ case GL_TEXTURE4:
+ case GL_TEXTURE5:
+ case GL_TEXTURE6:
+ case GL_TEXTURE7:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMultiTexCoord4x(texture=0x%x)", texture);
+ return;
+ }
+
+ converted_s = (GLfloat) (s / 65536.0f);
+ converted_t = (GLfloat) (t / 65536.0f);
+ converted_r = (GLfloat) (r / 65536.0f);
+ converted_q = (GLfloat) (q / 65536.0f);
+
+ _vbo_MultiTexCoord4f(texture, converted_s, converted_t, converted_r, converted_q);
+}
+
+/* Extension OES_fixed_point */
+static void _es_MultiTexCoord4xOES(GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q)
+{
+ GLfloat converted_s;
+ GLfloat converted_t;
+ GLfloat converted_r;
+ GLfloat converted_q;
+
+ switch(texture) {
+ case GL_TEXTURE0:
+ case GL_TEXTURE1:
+ case GL_TEXTURE2:
+ case GL_TEXTURE3:
+ case GL_TEXTURE4:
+ case GL_TEXTURE5:
+ case GL_TEXTURE6:
+ case GL_TEXTURE7:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMultiTexCoord4x(texture=0x%x)", texture);
+ return;
+ }
+
+ converted_s = (GLfloat) (s / 65536.0f);
+ converted_t = (GLfloat) (t / 65536.0f);
+ converted_r = (GLfloat) (r / 65536.0f);
+ converted_q = (GLfloat) (q / 65536.0f);
+
+ _vbo_MultiTexCoord4f(texture, converted_s, converted_t, converted_r, converted_q);
+}
+
+extern void GLAPIENTRY _vbo_Normal3f(GLfloat nx, GLfloat ny, GLfloat nz);
+static void _es_Normal3f(GLfloat nx, GLfloat ny, GLfloat nz)
+{
+ _vbo_Normal3f(nx, ny, nz);
+}
+
+extern void GLAPIENTRY _vbo_Normal3f(GLfloat nx, GLfloat ny, GLfloat nz);
+static void _es_Normal3x(GLfixed nx, GLfixed ny, GLfixed nz)
+{
+ GLfloat converted_nx;
+ GLfloat converted_ny;
+ GLfloat converted_nz;
+
+ converted_nx = (GLfloat) (nx / 65536.0f);
+ converted_ny = (GLfloat) (ny / 65536.0f);
+ converted_nz = (GLfloat) (nz / 65536.0f);
+
+ _vbo_Normal3f(converted_nx, converted_ny, converted_nz);
+}
+
+/* Extension OES_fixed_point */
+static void _es_Normal3xOES(GLfixed nx, GLfixed ny, GLfixed nz)
+{
+ GLfloat converted_nx;
+ GLfloat converted_ny;
+ GLfloat converted_nz;
+
+ converted_nx = (GLfloat) (nx / 65536.0f);
+ converted_ny = (GLfloat) (ny / 65536.0f);
+ converted_nz = (GLfloat) (nz / 65536.0f);
+
+ _vbo_Normal3f(converted_nx, converted_ny, converted_nz);
+}
+
+extern void GLAPIENTRY _mesa_NormalPointer(GLenum type, GLsizei stride, const GLvoid * pointer);
+static void _es_NormalPointer(GLenum type, GLsizei stride, const GLvoid * pointer)
+{
+ switch(type) {
+ case GL_BYTE:
+ case GL_SHORT:
+ case GL_FIXED:
+ case GL_FLOAT:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glNormalPointer(type=0x%x)", type);
+ return;
+ }
+
+ _mesa_NormalPointer(type, stride, pointer);
+}
+
+extern void GLAPIENTRY _mesa_Ortho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+static void _es_Orthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
+{
+ GLdouble converted_left;
+ GLdouble converted_right;
+ GLdouble converted_bottom;
+ GLdouble converted_top;
+ GLdouble converted_zNear;
+ GLdouble converted_zFar;
+
+ converted_left = (GLdouble) (left);
+ converted_right = (GLdouble) (right);
+ converted_bottom = (GLdouble) (bottom);
+ converted_top = (GLdouble) (top);
+ converted_zNear = (GLdouble) (zNear);
+ converted_zFar = (GLdouble) (zFar);
+
+ _mesa_Ortho(converted_left, converted_right, converted_bottom, converted_top, converted_zNear, converted_zFar);
+}
+
+/* Extension OES_single_precision */
+static void _es_OrthofOES(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
+{
+ GLdouble converted_left;
+ GLdouble converted_right;
+ GLdouble converted_bottom;
+ GLdouble converted_top;
+ GLdouble converted_zNear;
+ GLdouble converted_zFar;
+
+ converted_left = (GLdouble) (left);
+ converted_right = (GLdouble) (right);
+ converted_bottom = (GLdouble) (bottom);
+ converted_top = (GLdouble) (top);
+ converted_zNear = (GLdouble) (zNear);
+ converted_zFar = (GLdouble) (zFar);
+
+ _mesa_Ortho(converted_left, converted_right, converted_bottom, converted_top, converted_zNear, converted_zFar);
+}
+
+extern void GLAPIENTRY _mesa_Ortho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+static void _es_Orthox(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
+{
+ GLdouble converted_left;
+ GLdouble converted_right;
+ GLdouble converted_bottom;
+ GLdouble converted_top;
+ GLdouble converted_zNear;
+ GLdouble converted_zFar;
+
+ converted_left = (GLdouble) (left / 65536.0);
+ converted_right = (GLdouble) (right / 65536.0);
+ converted_bottom = (GLdouble) (bottom / 65536.0);
+ converted_top = (GLdouble) (top / 65536.0);
+ converted_zNear = (GLdouble) (zNear / 65536.0);
+ converted_zFar = (GLdouble) (zFar / 65536.0);
+
+ _mesa_Ortho(converted_left, converted_right, converted_bottom, converted_top, converted_zNear, converted_zFar);
+}
+
+/* Extension OES_fixed_point */
+static void _es_OrthoxOES(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
+{
+ GLdouble converted_left;
+ GLdouble converted_right;
+ GLdouble converted_bottom;
+ GLdouble converted_top;
+ GLdouble converted_zNear;
+ GLdouble converted_zFar;
+
+ converted_left = (GLdouble) (left / 65536.0);
+ converted_right = (GLdouble) (right / 65536.0);
+ converted_bottom = (GLdouble) (bottom / 65536.0);
+ converted_top = (GLdouble) (top / 65536.0);
+ converted_zNear = (GLdouble) (zNear / 65536.0);
+ converted_zFar = (GLdouble) (zFar / 65536.0);
+
+ _mesa_Ortho(converted_left, converted_right, converted_bottom, converted_top, converted_zNear, converted_zFar);
+}
+
+extern void GLAPIENTRY _mesa_PixelStorei(GLenum pname, GLint param);
+static void _es_PixelStorei(GLenum pname, GLint param)
+{
+ switch(pname) {
+ case GL_PACK_ALIGNMENT:
+ case GL_UNPACK_ALIGNMENT:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glPixelStorei(pname=0x%x)", pname);
+ return;
+ }
+ switch(param) {
+ case 1:
+ case 2:
+ case 4:
+ case 8:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glPixelStorei(param=%d)", param);
+ return;
+ }
+
+ _mesa_PixelStorei(pname, param);
+}
+
+extern void GLAPIENTRY _mesa_PointParameterf(GLenum pname, GLfloat param);
+static void _es_PointParameterf(GLenum pname, GLfloat param)
+{
+ switch(pname) {
+ case GL_POINT_SIZE_MIN:
+ case GL_POINT_SIZE_MAX:
+ case GL_POINT_FADE_THRESHOLD_SIZE:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glPointParameterf(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_PointParameterf(pname, param);
+}
+
+extern void GLAPIENTRY _mesa_PointParameterfv(GLenum pname, const GLfloat * params);
+static void _es_PointParameterfv(GLenum pname, const GLfloat * params)
+{
+ switch(pname) {
+ case GL_POINT_SIZE_MIN: /* size 1 */
+ case GL_POINT_SIZE_MAX: /* size 1 */
+ case GL_POINT_FADE_THRESHOLD_SIZE: /* size 1 */
+ case GL_POINT_DISTANCE_ATTENUATION: /* size 3 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glPointParameterfv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_PointParameterfv(pname, params);
+}
+
+extern void GLAPIENTRY _mesa_PointParameterf(GLenum pname, GLfloat param);
+static void _es_PointParameterx(GLenum pname, GLfixed param)
+{
+ GLfloat converted_param;
+
+ switch(pname) {
+ case GL_POINT_SIZE_MIN:
+ case GL_POINT_SIZE_MAX:
+ case GL_POINT_FADE_THRESHOLD_SIZE:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glPointParameterx(pname=0x%x)", pname);
+ return;
+ }
+
+ converted_param = (GLfloat) (param / 65536.0f);
+
+ _mesa_PointParameterf(pname, converted_param);
+}
+
+/* Extension OES_fixed_point */
+static void _es_PointParameterxOES(GLenum pname, GLfixed param)
+{
+ GLfloat converted_param;
+
+ switch(pname) {
+ case GL_POINT_SIZE_MIN:
+ case GL_POINT_SIZE_MAX:
+ case GL_POINT_FADE_THRESHOLD_SIZE:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glPointParameterx(pname=0x%x)", pname);
+ return;
+ }
+
+ converted_param = (GLfloat) (param / 65536.0f);
+
+ _mesa_PointParameterf(pname, converted_param);
+}
+
+extern void GLAPIENTRY _mesa_PointParameterfv(GLenum pname, GLfloat const * params);
+static void _es_PointParameterxv(GLenum pname, const GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 3;
+ GLfloat converted_params[3];
+
+ switch(pname) {
+ case GL_POINT_SIZE_MIN:
+ case GL_POINT_SIZE_MAX:
+ case GL_POINT_FADE_THRESHOLD_SIZE:
+ n_params = 1;
+ break;
+ case GL_POINT_DISTANCE_ATTENUATION:
+ n_params = 3;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glPointParameterxv(pname=0x%x)", pname);
+ return;
+ }
+
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) (params[i] / 65536.0f);
+ }
+
+ _mesa_PointParameterfv(pname, converted_params);
+}
+
+/* Extension OES_fixed_point */
+static void _es_PointParameterxvOES(GLenum pname, const GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 3;
+ GLfloat converted_params[3];
+
+ switch(pname) {
+ case GL_POINT_SIZE_MIN:
+ case GL_POINT_SIZE_MAX:
+ case GL_POINT_FADE_THRESHOLD_SIZE:
+ n_params = 1;
+ break;
+ case GL_POINT_DISTANCE_ATTENUATION:
+ n_params = 3;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glPointParameterxv(pname=0x%x)", pname);
+ return;
+ }
+
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) (params[i] / 65536.0f);
+ }
+
+ _mesa_PointParameterfv(pname, converted_params);
+}
+
+extern void GLAPIENTRY _mesa_PointSize(GLfloat size);
+static void _es_PointSize(GLfloat size)
+{
+ _mesa_PointSize(size);
+}
+
+extern void GLAPIENTRY _mesa_PointSizePointer(GLenum type, GLsizei stride, const GLvoid * pointer);
+/* Extension OES_point_size_array */
+static void _es_PointSizePointerOES(GLenum type, GLsizei stride, const GLvoid * pointer)
+{
+ switch(type) {
+ case GL_FIXED:
+ case GL_FLOAT:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glPointSizePointer(type=0x%x)", type);
+ return;
+ }
+
+ _mesa_PointSizePointer(type, stride, pointer);
+}
+
+extern void GLAPIENTRY _mesa_PointSize(GLfloat size);
+static void _es_PointSizex(GLfixed size)
+{
+ GLfloat converted_size;
+
+ converted_size = (GLfloat) (size / 65536.0f);
+
+ _mesa_PointSize(converted_size);
+}
+
+/* Extension OES_fixed_point */
+static void _es_PointSizexOES(GLfixed size)
+{
+ GLfloat converted_size;
+
+ converted_size = (GLfloat) (size / 65536.0f);
+
+ _mesa_PointSize(converted_size);
+}
+
+extern void GLAPIENTRY _mesa_PolygonOffset(GLfloat factor, GLfloat units);
+static void _es_PolygonOffset(GLfloat factor, GLfloat units)
+{
+ _mesa_PolygonOffset(factor, units);
+}
+
+extern void GLAPIENTRY _mesa_PolygonOffset(GLfloat factor, GLfloat units);
+static void _es_PolygonOffsetx(GLfixed factor, GLfixed units)
+{
+ GLfloat converted_factor;
+ GLfloat converted_units;
+
+ converted_factor = (GLfloat) (factor / 65536.0f);
+ converted_units = (GLfloat) (units / 65536.0f);
+
+ _mesa_PolygonOffset(converted_factor, converted_units);
+}
+
+/* Extension OES_fixed_point */
+static void _es_PolygonOffsetxOES(GLfixed factor, GLfixed units)
+{
+ GLfloat converted_factor;
+ GLfloat converted_units;
+
+ converted_factor = (GLfloat) (factor / 65536.0f);
+ converted_units = (GLfloat) (units / 65536.0f);
+
+ _mesa_PolygonOffset(converted_factor, converted_units);
+}
+
+extern void GLAPIENTRY _mesa_PopMatrix();
+static void _es_PopMatrix(void)
+{
+ _mesa_PopMatrix();
+}
+
+extern void GLAPIENTRY _mesa_PushMatrix();
+static void _es_PushMatrix(void)
+{
+ _mesa_PushMatrix();
+}
+
+/* Extension OES_query_matrix */
+/* this function is special and is defined elsewhere */
+extern GLbitfield _es_QueryMatrixxOES(GLfixed * mantissa, GLint * exponent);
+
+extern void GLAPIENTRY _mesa_ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * pixels);
+static void _es_ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * pixels)
+{
+ switch(format) {
+ case GL_RGBA:
+ if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_4_4_4_4 && type != GL_UNSIGNED_SHORT_5_5_5_1) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glReadPixels(format=0x%x)", format);
+ return;
+ }
+ break;
+ case GL_RGB:
+ if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_5_6_5) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glReadPixels(format=0x%x)", format);
+ return;
+ }
+ break;
+ case GL_LUMINANCE_ALPHA:
+ case GL_LUMINANCE:
+ case GL_ALPHA:
+ if (format != GL_UNSIGNED_BYTE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glReadPixels(format=0x%x)", format);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glReadPixels(format=0x%x)", format);
+ return;
+ }
+
+ _mesa_ReadPixels(x, y, width, height, format, type, pixels);
+}
+
+extern void GLAPIENTRY _mesa_RenderbufferStorageEXT(GLenum target, GLenum internalFormat, GLsizei width, GLsizei height);
+/* Extension OES_framebuffer_object */
+static void _es_RenderbufferStorageOES(GLenum target, GLenum internalFormat, GLsizei width, GLsizei height)
+{
+ switch(target) {
+ case GL_RENDERBUFFER_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glRenderbufferStorage(target=0x%x)", target);
+ return;
+ }
+ switch(internalFormat) {
+ case GL_DEPTH_COMPONENT16_OES:
+ case GL_RGBA4_OES:
+ case GL_RGB5_A1_OES:
+ case GL_RGB565_OES:
+ case GL_DEPTH_COMPONENT24_OES:
+ case GL_DEPTH_COMPONENT32_OES:
+ case GL_RGB8_OES:
+ case GL_RGBA8_OES:
+ case GL_STENCIL_INDEX1_OES:
+ case GL_STENCIL_INDEX4_OES:
+ case GL_STENCIL_INDEX8_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glRenderbufferStorage(internalFormat=0x%x)", internalFormat);
+ return;
+ }
+
+ _mesa_RenderbufferStorageEXT(target, internalFormat, width, height);
+}
+
+extern void GLAPIENTRY _mesa_Rotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+static void _es_Rotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+{
+ _mesa_Rotatef(angle, x, y, z);
+}
+
+extern void GLAPIENTRY _mesa_Rotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+static void _es_Rotatex(GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
+{
+ GLfloat converted_angle;
+ GLfloat converted_x;
+ GLfloat converted_y;
+ GLfloat converted_z;
+
+ converted_angle = (GLfloat) (angle / 65536.0f);
+ converted_x = (GLfloat) (x / 65536.0f);
+ converted_y = (GLfloat) (y / 65536.0f);
+ converted_z = (GLfloat) (z / 65536.0f);
+
+ _mesa_Rotatef(converted_angle, converted_x, converted_y, converted_z);
+}
+
+/* Extension OES_fixed_point */
+static void _es_RotatexOES(GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
+{
+ GLfloat converted_angle;
+ GLfloat converted_x;
+ GLfloat converted_y;
+ GLfloat converted_z;
+
+ converted_angle = (GLfloat) (angle / 65536.0f);
+ converted_x = (GLfloat) (x / 65536.0f);
+ converted_y = (GLfloat) (y / 65536.0f);
+ converted_z = (GLfloat) (z / 65536.0f);
+
+ _mesa_Rotatef(converted_angle, converted_x, converted_y, converted_z);
+}
+
+extern void GLAPIENTRY _mesa_SampleCoverageARB(GLclampf value, GLboolean invert);
+static void _es_SampleCoverage(GLclampf value, GLboolean invert)
+{
+ _mesa_SampleCoverageARB(value, invert);
+}
+
+extern void GLAPIENTRY _mesa_SampleCoverageARB(GLclampf value, GLboolean invert);
+static void _es_SampleCoveragex(GLclampx value, GLboolean invert)
+{
+ GLclampf converted_value;
+
+ converted_value = (GLclampf) (value / 65536.0f);
+
+ _mesa_SampleCoverageARB(converted_value, invert);
+}
+
+/* Extension OES_fixed_point */
+static void _es_SampleCoveragexOES(GLclampx value, GLboolean invert)
+{
+ GLclampf converted_value;
+
+ converted_value = (GLclampf) (value / 65536.0f);
+
+ _mesa_SampleCoverageARB(converted_value, invert);
+}
+
+extern void GLAPIENTRY _mesa_Scalef(GLfloat x, GLfloat y, GLfloat z);
+static void _es_Scalef(GLfloat x, GLfloat y, GLfloat z)
+{
+ _mesa_Scalef(x, y, z);
+}
+
+extern void GLAPIENTRY _mesa_Scalef(GLfloat x, GLfloat y, GLfloat z);
+static void _es_Scalex(GLfixed x, GLfixed y, GLfixed z)
+{
+ GLfloat converted_x;
+ GLfloat converted_y;
+ GLfloat converted_z;
+
+ converted_x = (GLfloat) (x / 65536.0f);
+ converted_y = (GLfloat) (y / 65536.0f);
+ converted_z = (GLfloat) (z / 65536.0f);
+
+ _mesa_Scalef(converted_x, converted_y, converted_z);
+}
+
+/* Extension OES_fixed_point */
+static void _es_ScalexOES(GLfixed x, GLfixed y, GLfixed z)
+{
+ GLfloat converted_x;
+ GLfloat converted_y;
+ GLfloat converted_z;
+
+ converted_x = (GLfloat) (x / 65536.0f);
+ converted_y = (GLfloat) (y / 65536.0f);
+ converted_z = (GLfloat) (z / 65536.0f);
+
+ _mesa_Scalef(converted_x, converted_y, converted_z);
+}
+
+extern void GLAPIENTRY _mesa_Scissor(GLint x, GLint y, GLsizei width, GLsizei height);
+static void _es_Scissor(GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ _mesa_Scissor(x, y, width, height);
+}
+
+extern void GLAPIENTRY _mesa_ShadeModel(GLenum mode);
+static void _es_ShadeModel(GLenum mode)
+{
+ switch(mode) {
+ case GL_FLAT:
+ case GL_SMOOTH:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glShadeModel(mode=0x%x)", mode);
+ return;
+ }
+
+ _mesa_ShadeModel(mode);
+}
+
+extern void GLAPIENTRY _mesa_StencilFunc(GLenum func, GLint ref, GLuint mask);
+static void _es_StencilFunc(GLenum func, GLint ref, GLuint mask)
+{
+ switch(func) {
+ case GL_NEVER:
+ case GL_LESS:
+ case GL_LEQUAL:
+ case GL_GREATER:
+ case GL_GEQUAL:
+ case GL_EQUAL:
+ case GL_NOTEQUAL:
+ case GL_ALWAYS:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilFunc(func=0x%x)", func);
+ return;
+ }
+
+ _mesa_StencilFunc(func, ref, mask);
+}
+
+extern void GLAPIENTRY _mesa_StencilMask(GLuint mask);
+static void _es_StencilMask(GLuint mask)
+{
+ _mesa_StencilMask(mask);
+}
+
+extern void GLAPIENTRY _mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass);
+static void _es_StencilOp(GLenum fail, GLenum zfail, GLenum zpass)
+{
+ switch(fail) {
+ case GL_KEEP:
+ case GL_ZERO:
+ case GL_REPLACE:
+ case GL_INCR:
+ case GL_DECR:
+ case GL_INVERT:
+ case GL_INCR_WRAP_OES:
+ case GL_DECR_WRAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOp(fail=0x%x)", fail);
+ return;
+ }
+ switch(zfail) {
+ case GL_KEEP:
+ case GL_ZERO:
+ case GL_REPLACE:
+ case GL_INCR:
+ case GL_DECR:
+ case GL_INVERT:
+ case GL_INCR_WRAP_OES:
+ case GL_DECR_WRAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOp(zfail=0x%x)", zfail);
+ return;
+ }
+ switch(zpass) {
+ case GL_KEEP:
+ case GL_ZERO:
+ case GL_REPLACE:
+ case GL_INCR:
+ case GL_DECR:
+ case GL_INVERT:
+ case GL_INCR_WRAP_OES:
+ case GL_DECR_WRAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOp(zpass=0x%x)", zpass);
+ return;
+ }
+
+ _mesa_StencilOp(fail, zfail, zpass);
+}
+
+extern void GLAPIENTRY _mesa_TexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer);
+static void _es_TexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer)
+{
+ switch(size) {
+ case 2:
+ case 3:
+ case 4:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexCoordPointer(size=%d)", size);
+ return;
+ }
+ switch(type) {
+ case GL_BYTE:
+ case GL_SHORT:
+ case GL_FIXED:
+ case GL_FLOAT:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexCoordPointer(type=0x%x)", type);
+ return;
+ }
+
+ _mesa_TexCoordPointer(size, type, stride, pointer);
+}
+
+extern void GLAPIENTRY _mesa_TexEnvf(GLenum target, GLenum pname, GLfloat param);
+static void _es_TexEnvf(GLenum target, GLenum pname, GLfloat param)
+{
+ switch(target) {
+ case GL_TEXTURE_ENV:
+ if (pname != GL_TEXTURE_ENV_MODE && pname != GL_COMBINE_RGB && pname != GL_COMBINE_ALPHA && pname != GL_RGB_SCALE && pname != GL_ALPHA_SCALE && pname != GL_SRC0_RGB && pname != GL_OPERAND0_RGB && pname != GL_SRC0_ALPHA && pname != GL_OPERAND0_ALPHA && pname != GL_SRC1_RGB && pname != GL_OPERAND1_RGB && pname != GL_SRC1_ALPHA && pname != GL_OPERAND1_ALPHA && pname != GL_SRC2_RGB && pname != GL_OPERAND2_RGB && pname != GL_SRC2_ALPHA && pname != GL_OPERAND2_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(target=0x%x)", target);
+ return;
+ }
+ break;
+ case GL_POINT_SPRITE_OES:
+ if (pname != GL_COORD_REPLACE_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(target=0x%x)", target);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_ENV_MODE:
+ if (param != GL_REPLACE && param != GL_MODULATE && param != GL_DECAL && param != GL_BLEND && param != GL_ADD && param != GL_COMBINE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_COMBINE_RGB:
+ if (param != GL_REPLACE && param != GL_MODULATE && param != GL_ADD && param != GL_ADD_SIGNED && param != GL_INTERPOLATE && param != GL_SUBTRACT && param != GL_DOT3_RGB && param != GL_DOT3_RGBA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_COMBINE_ALPHA:
+ if (param != GL_REPLACE && param != GL_MODULATE && param != GL_ADD && param != GL_ADD_SIGNED && param != GL_INTERPOLATE && param != GL_SUBTRACT) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_RGB_SCALE:
+ case GL_ALPHA_SCALE:
+ if (param != 1.0 && param != 2.0 && param != 4.0) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC0_RGB:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND0_RGB:
+ if (param != GL_SRC_COLOR && param != GL_ONE_MINUS_SRC_COLOR && param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC0_ALPHA:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND0_ALPHA:
+ if (param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC1_RGB:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND1_RGB:
+ if (param != GL_SRC_COLOR && param != GL_ONE_MINUS_SRC_COLOR && param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC1_ALPHA:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND1_ALPHA:
+ if (param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC2_RGB:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND2_RGB:
+ if (param != GL_SRC_COLOR && param != GL_ONE_MINUS_SRC_COLOR && param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC2_ALPHA:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND2_ALPHA:
+ if (param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_COORD_REPLACE_OES:
+ if (param != GL_TRUE && param != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvf(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_TexEnvf(target, pname, param);
+}
+
+extern void GLAPIENTRY _mesa_TexEnvfv(GLenum target, GLenum pname, const GLfloat * params);
+static void _es_TexEnvfv(GLenum target, GLenum pname, const GLfloat * params)
+{
+ switch(target) {
+ case GL_POINT_SPRITE_OES:
+ if (pname != GL_COORD_REPLACE_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(target=0x%x)", target);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV:
+ if (pname != GL_TEXTURE_ENV_MODE && pname != GL_TEXTURE_ENV_COLOR && pname != GL_COMBINE_RGB && pname != GL_COMBINE_ALPHA && pname != GL_RGB_SCALE && pname != GL_ALPHA_SCALE && pname != GL_SRC0_RGB && pname != GL_OPERAND0_RGB && pname != GL_SRC0_ALPHA && pname != GL_OPERAND0_ALPHA && pname != GL_SRC1_RGB && pname != GL_OPERAND1_RGB && pname != GL_SRC1_ALPHA && pname != GL_OPERAND1_ALPHA && pname != GL_SRC2_RGB && pname != GL_OPERAND2_RGB && pname != GL_SRC2_ALPHA && pname != GL_OPERAND2_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(target=0x%x)", target);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_COORD_REPLACE_OES: /* size 1 */
+ if (params[0] != GL_TRUE && params[0] != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV_MODE: /* size 1 */
+ if (params[0] != GL_REPLACE && params[0] != GL_MODULATE && params[0] != GL_DECAL && params[0] != GL_BLEND && params[0] != GL_ADD && params[0] != GL_COMBINE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_COMBINE_RGB: /* size 1 */
+ if (params[0] != GL_REPLACE && params[0] != GL_MODULATE && params[0] != GL_ADD && params[0] != GL_ADD_SIGNED && params[0] != GL_INTERPOLATE && params[0] != GL_SUBTRACT && params[0] != GL_DOT3_RGB && params[0] != GL_DOT3_RGBA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_COMBINE_ALPHA: /* size 1 */
+ if (params[0] != GL_REPLACE && params[0] != GL_MODULATE && params[0] != GL_ADD && params[0] != GL_ADD_SIGNED && params[0] != GL_INTERPOLATE && params[0] != GL_SUBTRACT) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC0_RGB: /* size 1 */
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND0_RGB: /* size 1 */
+ if (params[0] != GL_SRC_COLOR && params[0] != GL_ONE_MINUS_SRC_COLOR && params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC0_ALPHA: /* size 1 */
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND0_ALPHA: /* size 1 */
+ if (params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC1_RGB: /* size 1 */
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND1_RGB: /* size 1 */
+ if (params[0] != GL_SRC_COLOR && params[0] != GL_ONE_MINUS_SRC_COLOR && params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC1_ALPHA: /* size 1 */
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND1_ALPHA: /* size 1 */
+ if (params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC2_RGB: /* size 1 */
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND2_RGB: /* size 1 */
+ if (params[0] != GL_SRC_COLOR && params[0] != GL_ONE_MINUS_SRC_COLOR && params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC2_ALPHA: /* size 1 */
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND2_ALPHA: /* size 1 */
+ if (params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_RGB_SCALE: /* size 1 */
+ case GL_ALPHA_SCALE: /* size 1 */
+ if (params[0] != 1.0 && params[0] != 2.0 && params[0] != 4.0) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV_COLOR: /* size 4 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvfv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_TexEnvfv(target, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_TexEnvi(GLenum target, GLenum pname, GLint param);
+static void _es_TexEnvi(GLenum target, GLenum pname, GLint param)
+{
+ switch(target) {
+ case GL_POINT_SPRITE_OES:
+ if (pname != GL_COORD_REPLACE_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(target=0x%x)", target);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV:
+ if (pname != GL_TEXTURE_ENV_MODE && pname != GL_COMBINE_RGB && pname != GL_COMBINE_ALPHA && pname != GL_RGB_SCALE && pname != GL_ALPHA_SCALE && pname != GL_SRC0_RGB && pname != GL_OPERAND0_RGB && pname != GL_SRC0_ALPHA && pname != GL_OPERAND0_ALPHA && pname != GL_SRC1_RGB && pname != GL_OPERAND1_RGB && pname != GL_SRC1_ALPHA && pname != GL_OPERAND1_ALPHA && pname != GL_SRC2_RGB && pname != GL_OPERAND2_RGB && pname != GL_SRC2_ALPHA && pname != GL_OPERAND2_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(target=0x%x)", target);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_COORD_REPLACE_OES:
+ if (param != GL_TRUE && param != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV_MODE:
+ if (param != GL_REPLACE && param != GL_MODULATE && param != GL_DECAL && param != GL_BLEND && param != GL_ADD && param != GL_COMBINE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_COMBINE_RGB:
+ if (param != GL_REPLACE && param != GL_MODULATE && param != GL_ADD && param != GL_ADD_SIGNED && param != GL_INTERPOLATE && param != GL_SUBTRACT && param != GL_DOT3_RGB && param != GL_DOT3_RGBA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_COMBINE_ALPHA:
+ if (param != GL_REPLACE && param != GL_MODULATE && param != GL_ADD && param != GL_ADD_SIGNED && param != GL_INTERPOLATE && param != GL_SUBTRACT) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_RGB_SCALE:
+ case GL_ALPHA_SCALE:
+ if (param != 1.0 && param != 2.0 && param != 4.0) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC0_RGB:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND0_RGB:
+ if (param != GL_SRC_COLOR && param != GL_ONE_MINUS_SRC_COLOR && param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC0_ALPHA:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND0_ALPHA:
+ if (param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC1_RGB:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND1_RGB:
+ if (param != GL_SRC_COLOR && param != GL_ONE_MINUS_SRC_COLOR && param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC1_ALPHA:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND1_ALPHA:
+ if (param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC2_RGB:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND2_RGB:
+ if (param != GL_SRC_COLOR && param != GL_ONE_MINUS_SRC_COLOR && param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC2_ALPHA:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND2_ALPHA:
+ if (param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvi(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_TexEnvi(target, pname, param);
+}
+
+extern void GLAPIENTRY _mesa_TexEnviv(GLenum target, GLenum pname, const GLint * params);
+static void _es_TexEnviv(GLenum target, GLenum pname, const GLint * params)
+{
+ switch(target) {
+ case GL_POINT_SPRITE_OES:
+ if (pname != GL_COORD_REPLACE_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(target=0x%x)", target);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV:
+ if (pname != GL_TEXTURE_ENV_MODE && pname != GL_TEXTURE_ENV_COLOR && pname != GL_COMBINE_RGB && pname != GL_COMBINE_ALPHA && pname != GL_RGB_SCALE && pname != GL_ALPHA_SCALE && pname != GL_SRC0_RGB && pname != GL_OPERAND0_RGB && pname != GL_SRC0_ALPHA && pname != GL_OPERAND0_ALPHA && pname != GL_SRC1_RGB && pname != GL_OPERAND1_RGB && pname != GL_SRC1_ALPHA && pname != GL_OPERAND1_ALPHA && pname != GL_SRC2_RGB && pname != GL_OPERAND2_RGB && pname != GL_SRC2_ALPHA && pname != GL_OPERAND2_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(target=0x%x)", target);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_COORD_REPLACE_OES: /* size 1 */
+ if (params[0] != GL_TRUE && params[0] != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV_MODE: /* size 1 */
+ if (params[0] != GL_REPLACE && params[0] != GL_MODULATE && params[0] != GL_DECAL && params[0] != GL_BLEND && params[0] != GL_ADD && params[0] != GL_COMBINE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_COMBINE_RGB: /* size 1 */
+ if (params[0] != GL_REPLACE && params[0] != GL_MODULATE && params[0] != GL_ADD && params[0] != GL_ADD_SIGNED && params[0] != GL_INTERPOLATE && params[0] != GL_SUBTRACT && params[0] != GL_DOT3_RGB && params[0] != GL_DOT3_RGBA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_COMBINE_ALPHA: /* size 1 */
+ if (params[0] != GL_REPLACE && params[0] != GL_MODULATE && params[0] != GL_ADD && params[0] != GL_ADD_SIGNED && params[0] != GL_INTERPOLATE && params[0] != GL_SUBTRACT) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC0_RGB: /* size 1 */
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND0_RGB: /* size 1 */
+ if (params[0] != GL_SRC_COLOR && params[0] != GL_ONE_MINUS_SRC_COLOR && params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC0_ALPHA: /* size 1 */
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND0_ALPHA: /* size 1 */
+ if (params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC1_RGB: /* size 1 */
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND1_RGB: /* size 1 */
+ if (params[0] != GL_SRC_COLOR && params[0] != GL_ONE_MINUS_SRC_COLOR && params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC1_ALPHA: /* size 1 */
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND1_ALPHA: /* size 1 */
+ if (params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC2_RGB: /* size 1 */
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND2_RGB: /* size 1 */
+ if (params[0] != GL_SRC_COLOR && params[0] != GL_ONE_MINUS_SRC_COLOR && params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC2_ALPHA: /* size 1 */
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_OPERAND2_ALPHA: /* size 1 */
+ if (params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_RGB_SCALE: /* size 1 */
+ case GL_ALPHA_SCALE: /* size 1 */
+ if (params[0] != 1.0 && params[0] != 2.0 && params[0] != 4.0) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV_COLOR: /* size 4 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnviv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_TexEnviv(target, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_TexEnvf(GLenum target, GLenum pname, GLfloat param);
+static void _es_TexEnvx(GLenum target, GLenum pname, GLfixed param)
+{
+ GLfloat converted_param;
+ int convert_param_value = 1;
+
+ switch(target) {
+ case GL_POINT_SPRITE_OES:
+ if (pname != GL_COORD_REPLACE_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(target=0x%x)", target);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV:
+ if (pname != GL_TEXTURE_ENV_MODE && pname != GL_COMBINE_RGB && pname != GL_COMBINE_ALPHA && pname != GL_RGB_SCALE && pname != GL_ALPHA_SCALE && pname != GL_SRC0_RGB && pname != GL_OPERAND0_RGB && pname != GL_SRC0_ALPHA && pname != GL_OPERAND0_ALPHA && pname != GL_SRC1_RGB && pname != GL_OPERAND1_RGB && pname != GL_SRC1_ALPHA && pname != GL_OPERAND1_ALPHA && pname != GL_SRC2_RGB && pname != GL_OPERAND2_RGB && pname != GL_SRC2_ALPHA && pname != GL_OPERAND2_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(target=0x%x)", target);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_COORD_REPLACE_OES:
+ if (param != GL_TRUE && param != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_TEXTURE_ENV_MODE:
+ if (param != GL_REPLACE && param != GL_MODULATE && param != GL_DECAL && param != GL_BLEND && param != GL_ADD && param != GL_COMBINE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_COMBINE_RGB:
+ if (param != GL_REPLACE && param != GL_MODULATE && param != GL_ADD && param != GL_ADD_SIGNED && param != GL_INTERPOLATE && param != GL_SUBTRACT && param != GL_DOT3_RGB && param != GL_DOT3_RGBA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_COMBINE_ALPHA:
+ if (param != GL_REPLACE && param != GL_MODULATE && param != GL_ADD && param != GL_ADD_SIGNED && param != GL_INTERPOLATE && param != GL_SUBTRACT) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_RGB_SCALE:
+ case GL_ALPHA_SCALE:
+ if (param != 1.0 && param != 2.0 && param != 4.0) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC0_RGB:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_OPERAND0_RGB:
+ if (param != GL_SRC_COLOR && param != GL_ONE_MINUS_SRC_COLOR && param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_SRC0_ALPHA:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_OPERAND0_ALPHA:
+ if (param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_SRC1_RGB:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_OPERAND1_RGB:
+ if (param != GL_SRC_COLOR && param != GL_ONE_MINUS_SRC_COLOR && param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_SRC1_ALPHA:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_OPERAND1_ALPHA:
+ if (param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_SRC2_RGB:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_OPERAND2_RGB:
+ if (param != GL_SRC_COLOR && param != GL_ONE_MINUS_SRC_COLOR && param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_SRC2_ALPHA:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_OPERAND2_ALPHA:
+ if (param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+
+ if (convert_param_value) {
+ converted_param = (GLfloat) (param / 65536.0f);
+ } else {
+ converted_param = (GLfloat) param;
+ }
+
+ _mesa_TexEnvf(target, pname, converted_param);
+}
+
+/* Extension OES_fixed_point */
+static void _es_TexEnvxOES(GLenum target, GLenum pname, GLfixed param)
+{
+ GLfloat converted_param;
+ int convert_param_value = 1;
+
+ switch(target) {
+ case GL_POINT_SPRITE_OES:
+ if (pname != GL_COORD_REPLACE_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(target=0x%x)", target);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV:
+ if (pname != GL_TEXTURE_ENV_MODE && pname != GL_COMBINE_RGB && pname != GL_COMBINE_ALPHA && pname != GL_RGB_SCALE && pname != GL_ALPHA_SCALE && pname != GL_SRC0_RGB && pname != GL_OPERAND0_RGB && pname != GL_SRC0_ALPHA && pname != GL_OPERAND0_ALPHA && pname != GL_SRC1_RGB && pname != GL_OPERAND1_RGB && pname != GL_SRC1_ALPHA && pname != GL_OPERAND1_ALPHA && pname != GL_SRC2_RGB && pname != GL_OPERAND2_RGB && pname != GL_SRC2_ALPHA && pname != GL_OPERAND2_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(target=0x%x)", target);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_COORD_REPLACE_OES:
+ if (param != GL_TRUE && param != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_TEXTURE_ENV_MODE:
+ if (param != GL_REPLACE && param != GL_MODULATE && param != GL_DECAL && param != GL_BLEND && param != GL_ADD && param != GL_COMBINE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_COMBINE_RGB:
+ if (param != GL_REPLACE && param != GL_MODULATE && param != GL_ADD && param != GL_ADD_SIGNED && param != GL_INTERPOLATE && param != GL_SUBTRACT && param != GL_DOT3_RGB && param != GL_DOT3_RGBA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_COMBINE_ALPHA:
+ if (param != GL_REPLACE && param != GL_MODULATE && param != GL_ADD && param != GL_ADD_SIGNED && param != GL_INTERPOLATE && param != GL_SUBTRACT) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_RGB_SCALE:
+ case GL_ALPHA_SCALE:
+ if (param != 1.0 && param != 2.0 && param != 4.0) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_SRC0_RGB:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_OPERAND0_RGB:
+ if (param != GL_SRC_COLOR && param != GL_ONE_MINUS_SRC_COLOR && param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_SRC0_ALPHA:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_OPERAND0_ALPHA:
+ if (param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_SRC1_RGB:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_OPERAND1_RGB:
+ if (param != GL_SRC_COLOR && param != GL_ONE_MINUS_SRC_COLOR && param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_SRC1_ALPHA:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_OPERAND1_ALPHA:
+ if (param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_SRC2_RGB:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_OPERAND2_RGB:
+ if (param != GL_SRC_COLOR && param != GL_ONE_MINUS_SRC_COLOR && param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_SRC2_ALPHA:
+ if (param != GL_TEXTURE && param != GL_CONSTANT && param != GL_PRIMARY_COLOR && param != GL_PREVIOUS && param != GL_TEXTURE0 && param != GL_TEXTURE1 && param != GL_TEXTURE2 && param != GL_TEXTURE3 && param != GL_TEXTURE4 && param != GL_TEXTURE5 && param != GL_TEXTURE6 && param != GL_TEXTURE7 && param != GL_TEXTURE8 && param != GL_TEXTURE9 && param != GL_TEXTURE10 && param != GL_TEXTURE11 && param != GL_TEXTURE12 && param != GL_TEXTURE13 && param != GL_TEXTURE14 && param != GL_TEXTURE15 && param != GL_TEXTURE16 && param != GL_TEXTURE17 && param != GL_TEXTURE18 && param != GL_TEXTURE19 && param != GL_TEXTURE20 && param != GL_TEXTURE21 && param != GL_TEXTURE22 && param != GL_TEXTURE23 && param != GL_TEXTURE24 && param != GL_TEXTURE25 && param != GL_TEXTURE26 && param != GL_TEXTURE27 && param != GL_TEXTURE28 && param != GL_TEXTURE29 && param != GL_TEXTURE30 && param != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_OPERAND2_ALPHA:
+ if (param != GL_SRC_ALPHA && param != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvx(pname=0x%x)", pname);
+ return;
+ }
+
+ if (convert_param_value) {
+ converted_param = (GLfloat) (param / 65536.0f);
+ } else {
+ converted_param = (GLfloat) param;
+ }
+
+ _mesa_TexEnvf(target, pname, converted_param);
+}
+
+extern void GLAPIENTRY _mesa_TexEnvfv(GLenum target, GLenum pname, GLfloat const * params);
+static void _es_TexEnvxv(GLenum target, GLenum pname, const GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+ int convert_params_value = 1;
+
+ switch(target) {
+ case GL_POINT_SPRITE_OES:
+ if (pname != GL_COORD_REPLACE_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(target=0x%x)", target);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV:
+ if (pname != GL_TEXTURE_ENV_MODE && pname != GL_TEXTURE_ENV_COLOR && pname != GL_COMBINE_RGB && pname != GL_COMBINE_ALPHA && pname != GL_RGB_SCALE && pname != GL_ALPHA_SCALE && pname != GL_SRC0_RGB && pname != GL_OPERAND0_RGB && pname != GL_SRC0_ALPHA && pname != GL_OPERAND0_ALPHA && pname != GL_SRC1_RGB && pname != GL_OPERAND1_RGB && pname != GL_SRC1_ALPHA && pname != GL_OPERAND1_ALPHA && pname != GL_SRC2_RGB && pname != GL_OPERAND2_RGB && pname != GL_SRC2_ALPHA && pname != GL_OPERAND2_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(target=0x%x)", target);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_COORD_REPLACE_OES:
+ if (params[0] != GL_TRUE && params[0] != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_ENV_MODE:
+ if (params[0] != GL_REPLACE && params[0] != GL_MODULATE && params[0] != GL_DECAL && params[0] != GL_BLEND && params[0] != GL_ADD && params[0] != GL_COMBINE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_COMBINE_RGB:
+ if (params[0] != GL_REPLACE && params[0] != GL_MODULATE && params[0] != GL_ADD && params[0] != GL_ADD_SIGNED && params[0] != GL_INTERPOLATE && params[0] != GL_SUBTRACT && params[0] != GL_DOT3_RGB && params[0] != GL_DOT3_RGBA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_COMBINE_ALPHA:
+ if (params[0] != GL_REPLACE && params[0] != GL_MODULATE && params[0] != GL_ADD && params[0] != GL_ADD_SIGNED && params[0] != GL_INTERPOLATE && params[0] != GL_SUBTRACT) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_SRC0_RGB:
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_OPERAND0_RGB:
+ if (params[0] != GL_SRC_COLOR && params[0] != GL_ONE_MINUS_SRC_COLOR && params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_SRC0_ALPHA:
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_OPERAND0_ALPHA:
+ if (params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_SRC1_RGB:
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_OPERAND1_RGB:
+ if (params[0] != GL_SRC_COLOR && params[0] != GL_ONE_MINUS_SRC_COLOR && params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_SRC1_ALPHA:
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_OPERAND1_ALPHA:
+ if (params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_SRC2_RGB:
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_OPERAND2_RGB:
+ if (params[0] != GL_SRC_COLOR && params[0] != GL_ONE_MINUS_SRC_COLOR && params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_SRC2_ALPHA:
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_OPERAND2_ALPHA:
+ if (params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_RGB_SCALE:
+ case GL_ALPHA_SCALE:
+ if (params[0] != 1.0 && params[0] != 2.0 && params[0] != 4.0) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ n_params = 1;
+ break;
+ case GL_TEXTURE_ENV_COLOR:
+ n_params = 4;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+
+ if (convert_params_value) {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) (params[i] / 65536.0f);
+ }
+ } else {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) params[i];
+ }
+ }
+
+ _mesa_TexEnvfv(target, pname, converted_params);
+}
+
+/* Extension OES_fixed_point */
+static void _es_TexEnvxvOES(GLenum target, GLenum pname, const GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+ int convert_params_value = 1;
+
+ switch(target) {
+ case GL_POINT_SPRITE_OES:
+ if (pname != GL_COORD_REPLACE_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(target=0x%x)", target);
+ return;
+ }
+ break;
+ case GL_TEXTURE_ENV:
+ if (pname != GL_TEXTURE_ENV_MODE && pname != GL_TEXTURE_ENV_COLOR && pname != GL_COMBINE_RGB && pname != GL_COMBINE_ALPHA && pname != GL_RGB_SCALE && pname != GL_ALPHA_SCALE && pname != GL_SRC0_RGB && pname != GL_OPERAND0_RGB && pname != GL_SRC0_ALPHA && pname != GL_OPERAND0_ALPHA && pname != GL_SRC1_RGB && pname != GL_OPERAND1_RGB && pname != GL_SRC1_ALPHA && pname != GL_OPERAND1_ALPHA && pname != GL_SRC2_RGB && pname != GL_OPERAND2_RGB && pname != GL_SRC2_ALPHA && pname != GL_OPERAND2_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(target=0x%x)", target);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_COORD_REPLACE_OES:
+ if (params[0] != GL_TRUE && params[0] != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_ENV_MODE:
+ if (params[0] != GL_REPLACE && params[0] != GL_MODULATE && params[0] != GL_DECAL && params[0] != GL_BLEND && params[0] != GL_ADD && params[0] != GL_COMBINE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_COMBINE_RGB:
+ if (params[0] != GL_REPLACE && params[0] != GL_MODULATE && params[0] != GL_ADD && params[0] != GL_ADD_SIGNED && params[0] != GL_INTERPOLATE && params[0] != GL_SUBTRACT && params[0] != GL_DOT3_RGB && params[0] != GL_DOT3_RGBA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_COMBINE_ALPHA:
+ if (params[0] != GL_REPLACE && params[0] != GL_MODULATE && params[0] != GL_ADD && params[0] != GL_ADD_SIGNED && params[0] != GL_INTERPOLATE && params[0] != GL_SUBTRACT) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_SRC0_RGB:
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_OPERAND0_RGB:
+ if (params[0] != GL_SRC_COLOR && params[0] != GL_ONE_MINUS_SRC_COLOR && params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_SRC0_ALPHA:
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_OPERAND0_ALPHA:
+ if (params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_SRC1_RGB:
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_OPERAND1_RGB:
+ if (params[0] != GL_SRC_COLOR && params[0] != GL_ONE_MINUS_SRC_COLOR && params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_SRC1_ALPHA:
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_OPERAND1_ALPHA:
+ if (params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_SRC2_RGB:
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_OPERAND2_RGB:
+ if (params[0] != GL_SRC_COLOR && params[0] != GL_ONE_MINUS_SRC_COLOR && params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_SRC2_ALPHA:
+ if (params[0] != GL_TEXTURE && params[0] != GL_CONSTANT && params[0] != GL_PRIMARY_COLOR && params[0] != GL_PREVIOUS && params[0] != GL_TEXTURE0 && params[0] != GL_TEXTURE1 && params[0] != GL_TEXTURE2 && params[0] != GL_TEXTURE3 && params[0] != GL_TEXTURE4 && params[0] != GL_TEXTURE5 && params[0] != GL_TEXTURE6 && params[0] != GL_TEXTURE7 && params[0] != GL_TEXTURE8 && params[0] != GL_TEXTURE9 && params[0] != GL_TEXTURE10 && params[0] != GL_TEXTURE11 && params[0] != GL_TEXTURE12 && params[0] != GL_TEXTURE13 && params[0] != GL_TEXTURE14 && params[0] != GL_TEXTURE15 && params[0] != GL_TEXTURE16 && params[0] != GL_TEXTURE17 && params[0] != GL_TEXTURE18 && params[0] != GL_TEXTURE19 && params[0] != GL_TEXTURE20 && params[0] != GL_TEXTURE21 && params[0] != GL_TEXTURE22 && params[0] != GL_TEXTURE23 && params[0] != GL_TEXTURE24 && params[0] != GL_TEXTURE25 && params[0] != GL_TEXTURE26 && params[0] != GL_TEXTURE27 && params[0] != GL_TEXTURE28 && params[0] != GL_TEXTURE29 && params[0] != GL_TEXTURE30 && params[0] != GL_TEXTURE31) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_OPERAND2_ALPHA:
+ if (params[0] != GL_SRC_ALPHA && params[0] != GL_ONE_MINUS_SRC_ALPHA) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_RGB_SCALE:
+ case GL_ALPHA_SCALE:
+ if (params[0] != 1.0 && params[0] != 2.0 && params[0] != 4.0) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+ n_params = 1;
+ break;
+ case GL_TEXTURE_ENV_COLOR:
+ n_params = 4;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexEnvxv(pname=0x%x)", pname);
+ return;
+ }
+
+ if (convert_params_value) {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) (params[i] / 65536.0f);
+ }
+ } else {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) params[i];
+ }
+ }
+
+ _mesa_TexEnvfv(target, pname, converted_params);
+}
+
+extern void GLAPIENTRY _mesa_TexGenf(GLenum coord, GLenum pname, GLfloat param);
+/* Extension OES_texture_cube_map */
+static void _es_TexGenfOES(GLenum coord, GLenum pname, GLfloat param)
+{
+ switch(coord) {
+ case GL_TEXTURE_GEN_STR_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGenf(coord=0x%x)", coord);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_GEN_MODE_OES:
+ if (param != GL_NORMAL_MAP_OES && param != GL_REFLECTION_MAP_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGenf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGenf(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_TexGenf(coord, pname, param);
+}
+
+extern void GLAPIENTRY _mesa_TexGenfv(GLenum coord, GLenum pname, const GLfloat * params);
+/* Extension OES_texture_cube_map */
+static void _es_TexGenfvOES(GLenum coord, GLenum pname, const GLfloat * params)
+{
+ switch(coord) {
+ case GL_TEXTURE_GEN_STR_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGenfv(coord=0x%x)", coord);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_GEN_MODE_OES: /* size 1 */
+ if (params[0] != GL_NORMAL_MAP_OES && params[0] != GL_REFLECTION_MAP_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGenfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGenfv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_TexGenfv(coord, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_TexGeni(GLenum coord, GLenum pname, GLint param);
+/* Extension OES_texture_cube_map */
+static void _es_TexGeniOES(GLenum coord, GLenum pname, GLint param)
+{
+ switch(coord) {
+ case GL_TEXTURE_GEN_STR_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGeni(coord=0x%x)", coord);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_GEN_MODE_OES:
+ if (param != GL_NORMAL_MAP_OES && param != GL_REFLECTION_MAP_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGeni(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGeni(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_TexGeni(coord, pname, param);
+}
+
+extern void GLAPIENTRY _mesa_TexGeniv(GLenum coord, GLenum pname, const GLint * params);
+/* Extension OES_texture_cube_map */
+static void _es_TexGenivOES(GLenum coord, GLenum pname, const GLint * params)
+{
+ switch(coord) {
+ case GL_TEXTURE_GEN_STR_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGeniv(coord=0x%x)", coord);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_GEN_MODE_OES: /* size 1 */
+ if (params[0] != GL_NORMAL_MAP_OES && params[0] != GL_REFLECTION_MAP_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGeniv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGeniv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_TexGeniv(coord, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_TexGenf(GLenum coord, GLenum pname, GLfloat param);
+/* Extension OES_texture_cube_map */
+static void _es_TexGenxOES(GLenum coord, GLenum pname, GLfixed param)
+{
+ GLfloat converted_param;
+
+ switch(coord) {
+ case GL_TEXTURE_GEN_STR_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGenx(coord=0x%x)", coord);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_GEN_MODE_OES:
+ if (param != GL_NORMAL_MAP_OES && param != GL_REFLECTION_MAP_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGenx(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGenx(pname=0x%x)", pname);
+ return;
+ }
+
+ converted_param = (GLfloat) param;
+
+ _mesa_TexGenf(coord, pname, converted_param);
+}
+
+extern void GLAPIENTRY _mesa_TexGenfv(GLenum coord, GLenum pname, GLfloat const * params);
+/* Extension OES_texture_cube_map */
+static void _es_TexGenxvOES(GLenum coord, GLenum pname, const GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 1;
+ GLfloat converted_params[1];
+
+ switch(coord) {
+ case GL_TEXTURE_GEN_STR_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGenxv(coord=0x%x)", coord);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_GEN_MODE_OES:
+ if (params[0] != GL_NORMAL_MAP_OES && params[0] != GL_REFLECTION_MAP_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGenxv(pname=0x%x)", pname);
+ return;
+ }
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexGenxv(pname=0x%x)", pname);
+ return;
+ }
+
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) params[i];
+ }
+
+ _mesa_TexGenfv(coord, pname, converted_params);
+}
+
+extern void GLAPIENTRY _mesa_TexImage2D(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
+static void _es_TexImage2D(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels)
+{
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_X_OES:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_Y_OES:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_Z_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_X_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexImage2D(target=0x%x)", target);
+ return;
+ }
+ switch(internalFormat) {
+ case GL_ALPHA:
+ case GL_LUMINANCE:
+ case GL_LUMINANCE_ALPHA:
+ case GL_RGB:
+ case GL_RGBA:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexImage2D(internalFormat=%d)", internalFormat);
+ return;
+ }
+ switch(border) {
+ case 0:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexImage2D(border=%d)", border);
+ return;
+ }
+
+ _mesa_TexImage2D(target, level, internalFormat, width, height, border, format, type, pixels);
+}
+
+extern void GLAPIENTRY _mesa_TexParameterf(GLenum target, GLenum pname, GLfloat param);
+static void _es_TexParameterf(GLenum target, GLenum pname, GLfloat param)
+{
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_WRAP_S:
+ case GL_TEXTURE_WRAP_T:
+ if (param != GL_CLAMP_TO_EDGE && param != GL_REPEAT && param != GL_MIRRORED_REPEAT_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_MIN_FILTER:
+ if (param != GL_NEAREST && param != GL_LINEAR && param != GL_NEAREST_MIPMAP_NEAREST && param != GL_NEAREST_MIPMAP_LINEAR && param != GL_LINEAR_MIPMAP_NEAREST && param != GL_LINEAR_MIPMAP_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_MAG_FILTER:
+ if (param != GL_NEAREST && param != GL_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_GENERATE_MIPMAP:
+ if (param != GL_TRUE && param != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_MAX_ANISOTROPY_EXT:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_TexParameterf(target, pname, param);
+}
+
+extern void GLAPIENTRY _mesa_TexParameterfv(GLenum target, GLenum pname, const GLfloat * params);
+static void _es_TexParameterfv(GLenum target, GLenum pname, const GLfloat * params)
+{
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_WRAP_S: /* size 1 */
+ case GL_TEXTURE_WRAP_T: /* size 1 */
+ if (params[0] != GL_CLAMP_TO_EDGE && params[0] != GL_REPEAT && params[0] != GL_MIRRORED_REPEAT_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_MIN_FILTER: /* size 1 */
+ if (params[0] != GL_NEAREST && params[0] != GL_LINEAR && params[0] != GL_NEAREST_MIPMAP_NEAREST && params[0] != GL_NEAREST_MIPMAP_LINEAR && params[0] != GL_LINEAR_MIPMAP_NEAREST && params[0] != GL_LINEAR_MIPMAP_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_MAG_FILTER: /* size 1 */
+ if (params[0] != GL_NEAREST && params[0] != GL_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_GENERATE_MIPMAP: /* size 1 */
+ if (params[0] != GL_TRUE && params[0] != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_MAX_ANISOTROPY_EXT: /* size 1 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_TexParameterfv(target, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_TexParameteri(GLenum target, GLenum pname, GLint param);
+static void _es_TexParameteri(GLenum target, GLenum pname, GLint param)
+{
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_WRAP_S:
+ case GL_TEXTURE_WRAP_T:
+ if (param != GL_CLAMP_TO_EDGE && param != GL_REPEAT && param != GL_MIRRORED_REPEAT_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_MIN_FILTER:
+ if (param != GL_NEAREST && param != GL_LINEAR && param != GL_NEAREST_MIPMAP_NEAREST && param != GL_NEAREST_MIPMAP_LINEAR && param != GL_LINEAR_MIPMAP_NEAREST && param != GL_LINEAR_MIPMAP_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_MAG_FILTER:
+ if (param != GL_NEAREST && param != GL_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_GENERATE_MIPMAP:
+ if (param != GL_TRUE && param != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_MAX_ANISOTROPY_EXT:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_TexParameteri(target, pname, param);
+}
+
+extern void GLAPIENTRY _mesa_TexParameteriv(GLenum target, GLenum pname, const GLint * params);
+static void _es_TexParameteriv(GLenum target, GLenum pname, const GLint * params)
+{
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_WRAP_S: /* size 1 */
+ case GL_TEXTURE_WRAP_T: /* size 1 */
+ if (params[0] != GL_CLAMP_TO_EDGE && params[0] != GL_REPEAT && params[0] != GL_MIRRORED_REPEAT_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_MIN_FILTER: /* size 1 */
+ if (params[0] != GL_NEAREST && params[0] != GL_LINEAR && params[0] != GL_NEAREST_MIPMAP_NEAREST && params[0] != GL_NEAREST_MIPMAP_LINEAR && params[0] != GL_LINEAR_MIPMAP_NEAREST && params[0] != GL_LINEAR_MIPMAP_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_MAG_FILTER: /* size 1 */
+ if (params[0] != GL_NEAREST && params[0] != GL_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_GENERATE_MIPMAP: /* size 1 */
+ if (params[0] != GL_TRUE && params[0] != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(pname=0x%x)", pname);
+ return;
+ }
+ break;
+ case GL_TEXTURE_MAX_ANISOTROPY_EXT: /* size 1 */
+ case GL_TEXTURE_CROP_RECT_OES: /* size 4 */
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(pname=0x%x)", pname);
+ return;
+ }
+
+ _mesa_TexParameteriv(target, pname, params);
+}
+
+extern void GLAPIENTRY _mesa_TexParameterf(GLenum target, GLenum pname, GLfloat param);
+static void _es_TexParameterx(GLenum target, GLenum pname, GLfixed param)
+{
+ GLfloat converted_param;
+ int convert_param_value = 1;
+
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterx(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_WRAP_S:
+ case GL_TEXTURE_WRAP_T:
+ if (param != GL_CLAMP_TO_EDGE && param != GL_REPEAT && param != GL_MIRRORED_REPEAT_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_TEXTURE_MIN_FILTER:
+ if (param != GL_NEAREST && param != GL_LINEAR && param != GL_NEAREST_MIPMAP_NEAREST && param != GL_NEAREST_MIPMAP_LINEAR && param != GL_LINEAR_MIPMAP_NEAREST && param != GL_LINEAR_MIPMAP_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_TEXTURE_MAG_FILTER:
+ if (param != GL_NEAREST && param != GL_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_GENERATE_MIPMAP:
+ if (param != GL_TRUE && param != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_TEXTURE_MAX_ANISOTROPY_EXT:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterx(pname=0x%x)", pname);
+ return;
+ }
+
+ if (convert_param_value) {
+ converted_param = (GLfloat) (param / 65536.0f);
+ } else {
+ converted_param = (GLfloat) param;
+ }
+
+ _mesa_TexParameterf(target, pname, converted_param);
+}
+
+/* Extension OES_fixed_point */
+static void _es_TexParameterxOES(GLenum target, GLenum pname, GLfixed param)
+{
+ GLfloat converted_param;
+ int convert_param_value = 1;
+
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterx(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_WRAP_S:
+ case GL_TEXTURE_WRAP_T:
+ if (param != GL_CLAMP_TO_EDGE && param != GL_REPEAT && param != GL_MIRRORED_REPEAT_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_TEXTURE_MIN_FILTER:
+ if (param != GL_NEAREST && param != GL_LINEAR && param != GL_NEAREST_MIPMAP_NEAREST && param != GL_NEAREST_MIPMAP_LINEAR && param != GL_LINEAR_MIPMAP_NEAREST && param != GL_LINEAR_MIPMAP_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_TEXTURE_MAG_FILTER:
+ if (param != GL_NEAREST && param != GL_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_GENERATE_MIPMAP:
+ if (param != GL_TRUE && param != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterx(pname=0x%x)", pname);
+ return;
+ }
+ convert_param_value = 0;
+ break;
+ case GL_TEXTURE_MAX_ANISOTROPY_EXT:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterx(pname=0x%x)", pname);
+ return;
+ }
+
+ if (convert_param_value) {
+ converted_param = (GLfloat) (param / 65536.0f);
+ } else {
+ converted_param = (GLfloat) param;
+ }
+
+ _mesa_TexParameterf(target, pname, converted_param);
+}
+
+extern void GLAPIENTRY _mesa_TexParameterfv(GLenum target, GLenum pname, GLfloat const * params);
+static void _es_TexParameterxv(GLenum target, GLenum pname, const GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+ int convert_params_value = 1;
+
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterxv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_WRAP_S:
+ case GL_TEXTURE_WRAP_T:
+ if (params[0] != GL_CLAMP_TO_EDGE && params[0] != GL_REPEAT && params[0] != GL_MIRRORED_REPEAT_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_MIN_FILTER:
+ if (params[0] != GL_NEAREST && params[0] != GL_LINEAR && params[0] != GL_NEAREST_MIPMAP_NEAREST && params[0] != GL_NEAREST_MIPMAP_LINEAR && params[0] != GL_LINEAR_MIPMAP_NEAREST && params[0] != GL_LINEAR_MIPMAP_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_MAG_FILTER:
+ if (params[0] != GL_NEAREST && params[0] != GL_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_GENERATE_MIPMAP:
+ if (params[0] != GL_TRUE && params[0] != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_CROP_RECT_OES:
+ n_params = 4;
+ break;
+ case GL_TEXTURE_MAX_ANISOTROPY_EXT:
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterxv(pname=0x%x)", pname);
+ return;
+ }
+
+ if (convert_params_value) {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) (params[i] / 65536.0f);
+ }
+ } else {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) params[i];
+ }
+ }
+
+ _mesa_TexParameterfv(target, pname, converted_params);
+}
+
+/* Extension OES_fixed_point */
+static void _es_TexParameterxvOES(GLenum target, GLenum pname, const GLfixed * params)
+{
+ register unsigned int i;
+ unsigned int n_params = 4;
+ GLfloat converted_params[4];
+ int convert_params_value = 1;
+
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterxv(target=0x%x)", target);
+ return;
+ }
+ switch(pname) {
+ case GL_TEXTURE_WRAP_S:
+ case GL_TEXTURE_WRAP_T:
+ if (params[0] != GL_CLAMP_TO_EDGE && params[0] != GL_REPEAT && params[0] != GL_MIRRORED_REPEAT_OES) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_MIN_FILTER:
+ if (params[0] != GL_NEAREST && params[0] != GL_LINEAR && params[0] != GL_NEAREST_MIPMAP_NEAREST && params[0] != GL_NEAREST_MIPMAP_LINEAR && params[0] != GL_LINEAR_MIPMAP_NEAREST && params[0] != GL_LINEAR_MIPMAP_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_MAG_FILTER:
+ if (params[0] != GL_NEAREST && params[0] != GL_LINEAR) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_GENERATE_MIPMAP:
+ if (params[0] != GL_TRUE && params[0] != GL_FALSE) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterxv(pname=0x%x)", pname);
+ return;
+ }
+ convert_params_value = 0;
+ n_params = 1;
+ break;
+ case GL_TEXTURE_CROP_RECT_OES:
+ n_params = 4;
+ break;
+ case GL_TEXTURE_MAX_ANISOTROPY_EXT:
+ n_params = 1;
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterxv(pname=0x%x)", pname);
+ return;
+ }
+
+ if (convert_params_value) {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) (params[i] / 65536.0f);
+ }
+ } else {
+ for (i = 0; i < n_params; i++) {
+ converted_params[i] = (GLfloat) params[i];
+ }
+ }
+
+ _mesa_TexParameterfv(target, pname, converted_params);
+}
+
+extern void GLAPIENTRY _mesa_TexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels);
+static void _es_TexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels)
+{
+ switch(target) {
+ case GL_TEXTURE_2D:
+ case GL_TEXTURE_CUBE_MAP_OES:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_X_OES:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_Y_OES:
+ case GL_TEXTURE_CUBE_MAP_POSITIVE_Z_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_X_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_OES:
+ case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexSubImage2D(target=0x%x)", target);
+ return;
+ }
+ switch(format) {
+ case GL_ALPHA:
+ case GL_LUMINANCE:
+ case GL_LUMINANCE_ALPHA:
+ if (type != GL_UNSIGNED_BYTE && type != GL_FLOAT) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexSubImage2D(format=0x%x)", format);
+ return;
+ }
+ break;
+ case GL_RGB:
+ if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_5_6_5 && type != GL_FLOAT) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexSubImage2D(format=0x%x)", format);
+ return;
+ }
+ break;
+ case GL_RGBA:
+ if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_4_4_4_4 && type != GL_UNSIGNED_SHORT_5_5_5_1 && type != GL_FLOAT) {
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexSubImage2D(format=0x%x)", format);
+ return;
+ }
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexSubImage2D(format=0x%x)", format);
+ return;
+ }
+
+ _mesa_TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
+}
+
+extern void GLAPIENTRY _mesa_Translatef(GLfloat x, GLfloat y, GLfloat z);
+static void _es_Translatef(GLfloat x, GLfloat y, GLfloat z)
+{
+ _mesa_Translatef(x, y, z);
+}
+
+extern void GLAPIENTRY _mesa_Translatef(GLfloat x, GLfloat y, GLfloat z);
+static void _es_Translatex(GLfixed x, GLfixed y, GLfixed z)
+{
+ GLfloat converted_x;
+ GLfloat converted_y;
+ GLfloat converted_z;
+
+ converted_x = (GLfloat) (x / 65536.0f);
+ converted_y = (GLfloat) (y / 65536.0f);
+ converted_z = (GLfloat) (z / 65536.0f);
+
+ _mesa_Translatef(converted_x, converted_y, converted_z);
+}
+
+/* Extension OES_fixed_point */
+static void _es_TranslatexOES(GLfixed x, GLfixed y, GLfixed z)
+{
+ GLfloat converted_x;
+ GLfloat converted_y;
+ GLfloat converted_z;
+
+ converted_x = (GLfloat) (x / 65536.0f);
+ converted_y = (GLfloat) (y / 65536.0f);
+ converted_z = (GLfloat) (z / 65536.0f);
+
+ _mesa_Translatef(converted_x, converted_y, converted_z);
+}
+
+extern GLboolean GLAPIENTRY _mesa_UnmapBufferARB(GLenum target);
+/* Extension OES_mapbuffer */
+static GLboolean _es_UnmapBufferOES(GLenum target)
+{
+ switch(target) {
+ case GL_ARRAY_BUFFER:
+ case GL_ELEMENT_ARRAY_BUFFER:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glUnmapBuffer(target=0x%x)", target);
+ return GL_FALSE;
+ }
+
+ return _mesa_UnmapBufferARB(target);
+}
+
+extern void GLAPIENTRY _mesa_VertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer);
+static void _es_VertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer)
+{
+ switch(size) {
+ case 2:
+ case 3:
+ case 4:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glVertexPointer(size=%d)", size);
+ return;
+ }
+ switch(type) {
+ case GL_BYTE:
+ case GL_SHORT:
+ case GL_FIXED:
+ case GL_FLOAT:
+ break;
+ default:
+ _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glVertexPointer(type=0x%x)", type);
+ return;
+ }
+
+ _mesa_VertexPointer(size, type, stride, pointer);
+}
+
+extern void GLAPIENTRY _mesa_Viewport(GLint x, GLint y, GLsizei width, GLsizei height);
+static void _es_Viewport(GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ _mesa_Viewport(x, y, width, height);
+}
+
+void
+_mesa_init_exec_table(struct _glapi_table *exec)
+{
+ SET_ActiveTexture(exec, _es_ActiveTexture);
+ SET_AlphaFunc(exec, _es_AlphaFunc);
+ SET_AlphaFuncx(exec, _es_AlphaFuncx);
+ SET_AlphaFuncxOES(exec, _es_AlphaFuncxOES);
+ SET_BindBuffer(exec, _es_BindBuffer);
+ SET_BindFramebufferOES(exec, _es_BindFramebufferOES);
+ SET_BindRenderbufferOES(exec, _es_BindRenderbufferOES);
+ SET_BindTexture(exec, _es_BindTexture);
+ SET_BlendEquationOES(exec, _es_BlendEquationOES);
+ SET_BlendEquationSeparateOES(exec, _es_BlendEquationSeparateOES);
+ SET_BlendFunc(exec, _es_BlendFunc);
+ SET_BlendFuncSeparateOES(exec, _es_BlendFuncSeparateOES);
+ SET_BufferData(exec, _es_BufferData);
+ SET_BufferSubData(exec, _es_BufferSubData);
+ SET_CheckFramebufferStatusOES(exec, _es_CheckFramebufferStatusOES);
+ SET_Clear(exec, _es_Clear);
+ SET_ClearColor(exec, _es_ClearColor);
+ SET_ClearColorx(exec, _es_ClearColorx);
+ SET_ClearColorxOES(exec, _es_ClearColorxOES);
+ SET_ClearDepthf(exec, _es_ClearDepthf);
+ SET_ClearDepthfOES(exec, _es_ClearDepthfOES);
+ SET_ClearDepthx(exec, _es_ClearDepthx);
+ SET_ClearDepthxOES(exec, _es_ClearDepthxOES);
+ SET_ClearStencil(exec, _es_ClearStencil);
+ SET_ClientActiveTexture(exec, _es_ClientActiveTexture);
+ SET_ClipPlanef(exec, _es_ClipPlanef);
+ SET_ClipPlanefOES(exec, _es_ClipPlanefOES);
+ SET_ClipPlanex(exec, _es_ClipPlanex);
+ SET_ClipPlanexOES(exec, _es_ClipPlanexOES);
+ SET_Color4f(exec, _es_Color4f);
+ SET_Color4ub(exec, _es_Color4ub);
+ SET_Color4x(exec, _es_Color4x);
+ SET_Color4xOES(exec, _es_Color4xOES);
+ SET_ColorMask(exec, _es_ColorMask);
+ SET_ColorPointer(exec, _es_ColorPointer);
+ SET_CompressedTexImage2D(exec, _es_CompressedTexImage2D);
+ SET_CompressedTexSubImage2D(exec, _es_CompressedTexSubImage2D);
+ SET_CopyTexImage2D(exec, _es_CopyTexImage2D);
+ SET_CopyTexSubImage2D(exec, _es_CopyTexSubImage2D);
+ SET_CullFace(exec, _es_CullFace);
+ SET_DeleteBuffers(exec, _es_DeleteBuffers);
+ SET_DeleteFramebuffersOES(exec, _es_DeleteFramebuffersOES);
+ SET_DeleteRenderbuffersOES(exec, _es_DeleteRenderbuffersOES);
+ SET_DeleteTextures(exec, _es_DeleteTextures);
+ SET_DepthFunc(exec, _es_DepthFunc);
+ SET_DepthMask(exec, _es_DepthMask);
+ SET_DepthRangef(exec, _es_DepthRangef);
+ SET_DepthRangefOES(exec, _es_DepthRangefOES);
+ SET_DepthRangex(exec, _es_DepthRangex);
+ SET_DepthRangexOES(exec, _es_DepthRangexOES);
+ SET_Disable(exec, _es_Disable);
+ SET_DisableClientState(exec, _es_DisableClientState);
+ SET_DrawArrays(exec, _es_DrawArrays);
+ SET_DrawElements(exec, _es_DrawElements);
+ SET_DrawTexfOES(exec, _es_DrawTexfOES);
+ SET_DrawTexfvOES(exec, _es_DrawTexfvOES);
+ SET_DrawTexiOES(exec, _es_DrawTexiOES);
+ SET_DrawTexivOES(exec, _es_DrawTexivOES);
+ SET_DrawTexsOES(exec, _es_DrawTexsOES);
+ SET_DrawTexsvOES(exec, _es_DrawTexsvOES);
+ SET_DrawTexxOES(exec, _es_DrawTexxOES);
+ SET_DrawTexxvOES(exec, _es_DrawTexxvOES);
+ SET_EGLImageTargetRenderbufferStorageOES(exec, _es_EGLImageTargetRenderbufferStorageOES);
+ SET_EGLImageTargetTexture2DOES(exec, _es_EGLImageTargetTexture2DOES);
+ SET_Enable(exec, _es_Enable);
+ SET_EnableClientState(exec, _es_EnableClientState);
+ SET_Finish(exec, _es_Finish);
+ SET_Flush(exec, _es_Flush);
+ SET_Fogf(exec, _es_Fogf);
+ SET_Fogfv(exec, _es_Fogfv);
+ SET_Fogx(exec, _es_Fogx);
+ SET_FogxOES(exec, _es_FogxOES);
+ SET_Fogxv(exec, _es_Fogxv);
+ SET_FogxvOES(exec, _es_FogxvOES);
+ SET_FramebufferRenderbufferOES(exec, _es_FramebufferRenderbufferOES);
+ SET_FramebufferTexture2DOES(exec, _es_FramebufferTexture2DOES);
+ SET_FrontFace(exec, _es_FrontFace);
+ SET_Frustumf(exec, _es_Frustumf);
+ SET_FrustumfOES(exec, _es_FrustumfOES);
+ SET_Frustumx(exec, _es_Frustumx);
+ SET_FrustumxOES(exec, _es_FrustumxOES);
+ SET_GenBuffers(exec, _es_GenBuffers);
+ SET_GenFramebuffersOES(exec, _es_GenFramebuffersOES);
+ SET_GenRenderbuffersOES(exec, _es_GenRenderbuffersOES);
+ SET_GenTextures(exec, _es_GenTextures);
+ SET_GenerateMipmapOES(exec, _es_GenerateMipmapOES);
+ SET_GetBooleanv(exec, _es_GetBooleanv);
+ SET_GetBufferParameteriv(exec, _es_GetBufferParameteriv);
+ SET_GetBufferPointervOES(exec, _es_GetBufferPointervOES);
+ SET_GetClipPlanef(exec, _es_GetClipPlanef);
+ SET_GetClipPlanefOES(exec, _es_GetClipPlanefOES);
+ SET_GetClipPlanex(exec, _es_GetClipPlanex);
+ SET_GetClipPlanexOES(exec, _es_GetClipPlanexOES);
+ SET_GetError(exec, _es_GetError);
+ SET_GetFixedv(exec, _es_GetFixedv);
+ SET_GetFixedvOES(exec, _es_GetFixedvOES);
+ SET_GetFloatv(exec, _es_GetFloatv);
+ SET_GetFramebufferAttachmentParameterivOES(exec, _es_GetFramebufferAttachmentParameterivOES);
+ SET_GetIntegerv(exec, _es_GetIntegerv);
+ SET_GetLightfv(exec, _es_GetLightfv);
+ SET_GetLightxv(exec, _es_GetLightxv);
+ SET_GetLightxvOES(exec, _es_GetLightxvOES);
+ SET_GetMaterialfv(exec, _es_GetMaterialfv);
+ SET_GetMaterialxv(exec, _es_GetMaterialxv);
+ SET_GetMaterialxvOES(exec, _es_GetMaterialxvOES);
+ SET_GetPointerv(exec, _es_GetPointerv);
+ SET_GetRenderbufferParameterivOES(exec, _es_GetRenderbufferParameterivOES);
+ SET_GetString(exec, _es_GetString);
+ SET_GetTexEnvfv(exec, _es_GetTexEnvfv);
+ SET_GetTexEnviv(exec, _es_GetTexEnviv);
+ SET_GetTexEnvxv(exec, _es_GetTexEnvxv);
+ SET_GetTexEnvxvOES(exec, _es_GetTexEnvxvOES);
+ SET_GetTexGenfvOES(exec, _es_GetTexGenfvOES);
+ SET_GetTexGenivOES(exec, _es_GetTexGenivOES);
+ SET_GetTexGenxvOES(exec, _es_GetTexGenxvOES);
+ SET_GetTexParameterfv(exec, _es_GetTexParameterfv);
+ SET_GetTexParameteriv(exec, _es_GetTexParameteriv);
+ SET_GetTexParameterxv(exec, _es_GetTexParameterxv);
+ SET_GetTexParameterxvOES(exec, _es_GetTexParameterxvOES);
+ SET_Hint(exec, _es_Hint);
+ SET_IsBuffer(exec, _es_IsBuffer);
+ SET_IsEnabled(exec, _es_IsEnabled);
+ SET_IsFramebufferOES(exec, _es_IsFramebufferOES);
+ SET_IsRenderbufferOES(exec, _es_IsRenderbufferOES);
+ SET_IsTexture(exec, _es_IsTexture);
+ SET_LightModelf(exec, _es_LightModelf);
+ SET_LightModelfv(exec, _es_LightModelfv);
+ SET_LightModelx(exec, _es_LightModelx);
+ SET_LightModelxOES(exec, _es_LightModelxOES);
+ SET_LightModelxv(exec, _es_LightModelxv);
+ SET_LightModelxvOES(exec, _es_LightModelxvOES);
+ SET_Lightf(exec, _es_Lightf);
+ SET_Lightfv(exec, _es_Lightfv);
+ SET_Lightx(exec, _es_Lightx);
+ SET_LightxOES(exec, _es_LightxOES);
+ SET_Lightxv(exec, _es_Lightxv);
+ SET_LightxvOES(exec, _es_LightxvOES);
+ SET_LineWidth(exec, _es_LineWidth);
+ SET_LineWidthx(exec, _es_LineWidthx);
+ SET_LineWidthxOES(exec, _es_LineWidthxOES);
+ SET_LoadIdentity(exec, _es_LoadIdentity);
+ SET_LoadMatrixf(exec, _es_LoadMatrixf);
+ SET_LoadMatrixx(exec, _es_LoadMatrixx);
+ SET_LoadMatrixxOES(exec, _es_LoadMatrixxOES);
+ SET_LogicOp(exec, _es_LogicOp);
+ SET_MapBufferOES(exec, _es_MapBufferOES);
+ SET_Materialf(exec, _es_Materialf);
+ SET_Materialfv(exec, _es_Materialfv);
+ SET_Materialx(exec, _es_Materialx);
+ SET_MaterialxOES(exec, _es_MaterialxOES);
+ SET_Materialxv(exec, _es_Materialxv);
+ SET_MaterialxvOES(exec, _es_MaterialxvOES);
+ SET_MatrixMode(exec, _es_MatrixMode);
+ SET_MultMatrixf(exec, _es_MultMatrixf);
+ SET_MultMatrixx(exec, _es_MultMatrixx);
+ SET_MultMatrixxOES(exec, _es_MultMatrixxOES);
+ SET_MultiTexCoord4f(exec, _es_MultiTexCoord4f);
+ SET_MultiTexCoord4x(exec, _es_MultiTexCoord4x);
+ SET_MultiTexCoord4xOES(exec, _es_MultiTexCoord4xOES);
+ SET_Normal3f(exec, _es_Normal3f);
+ SET_Normal3x(exec, _es_Normal3x);
+ SET_Normal3xOES(exec, _es_Normal3xOES);
+ SET_NormalPointer(exec, _es_NormalPointer);
+ SET_Orthof(exec, _es_Orthof);
+ SET_OrthofOES(exec, _es_OrthofOES);
+ SET_Orthox(exec, _es_Orthox);
+ SET_OrthoxOES(exec, _es_OrthoxOES);
+ SET_PixelStorei(exec, _es_PixelStorei);
+ SET_PointParameterf(exec, _es_PointParameterf);
+ SET_PointParameterfv(exec, _es_PointParameterfv);
+ SET_PointParameterx(exec, _es_PointParameterx);
+ SET_PointParameterxOES(exec, _es_PointParameterxOES);
+ SET_PointParameterxv(exec, _es_PointParameterxv);
+ SET_PointParameterxvOES(exec, _es_PointParameterxvOES);
+ SET_PointSize(exec, _es_PointSize);
+ SET_PointSizePointerOES(exec, _es_PointSizePointerOES);
+ SET_PointSizex(exec, _es_PointSizex);
+ SET_PointSizexOES(exec, _es_PointSizexOES);
+ SET_PolygonOffset(exec, _es_PolygonOffset);
+ SET_PolygonOffsetx(exec, _es_PolygonOffsetx);
+ SET_PolygonOffsetxOES(exec, _es_PolygonOffsetxOES);
+ SET_PopMatrix(exec, _es_PopMatrix);
+ SET_PushMatrix(exec, _es_PushMatrix);
+ SET_QueryMatrixxOES(exec, _es_QueryMatrixxOES);
+ SET_ReadPixels(exec, _es_ReadPixels);
+ SET_RenderbufferStorageOES(exec, _es_RenderbufferStorageOES);
+ SET_Rotatef(exec, _es_Rotatef);
+ SET_Rotatex(exec, _es_Rotatex);
+ SET_RotatexOES(exec, _es_RotatexOES);
+ SET_SampleCoverage(exec, _es_SampleCoverage);
+ SET_SampleCoveragex(exec, _es_SampleCoveragex);
+ SET_SampleCoveragexOES(exec, _es_SampleCoveragexOES);
+ SET_Scalef(exec, _es_Scalef);
+ SET_Scalex(exec, _es_Scalex);
+ SET_ScalexOES(exec, _es_ScalexOES);
+ SET_Scissor(exec, _es_Scissor);
+ SET_ShadeModel(exec, _es_ShadeModel);
+ SET_StencilFunc(exec, _es_StencilFunc);
+ SET_StencilMask(exec, _es_StencilMask);
+ SET_StencilOp(exec, _es_StencilOp);
+ SET_TexCoordPointer(exec, _es_TexCoordPointer);
+ SET_TexEnvf(exec, _es_TexEnvf);
+ SET_TexEnvfv(exec, _es_TexEnvfv);
+ SET_TexEnvi(exec, _es_TexEnvi);
+ SET_TexEnviv(exec, _es_TexEnviv);
+ SET_TexEnvx(exec, _es_TexEnvx);
+ SET_TexEnvxOES(exec, _es_TexEnvxOES);
+ SET_TexEnvxv(exec, _es_TexEnvxv);
+ SET_TexEnvxvOES(exec, _es_TexEnvxvOES);
+ SET_TexGenfOES(exec, _es_TexGenfOES);
+ SET_TexGenfvOES(exec, _es_TexGenfvOES);
+ SET_TexGeniOES(exec, _es_TexGeniOES);
+ SET_TexGenivOES(exec, _es_TexGenivOES);
+ SET_TexGenxOES(exec, _es_TexGenxOES);
+ SET_TexGenxvOES(exec, _es_TexGenxvOES);
+ SET_TexImage2D(exec, _es_TexImage2D);
+ SET_TexParameterf(exec, _es_TexParameterf);
+ SET_TexParameterfv(exec, _es_TexParameterfv);
+ SET_TexParameteri(exec, _es_TexParameteri);
+ SET_TexParameteriv(exec, _es_TexParameteriv);
+ SET_TexParameterx(exec, _es_TexParameterx);
+ SET_TexParameterxOES(exec, _es_TexParameterxOES);
+ SET_TexParameterxv(exec, _es_TexParameterxv);
+ SET_TexParameterxvOES(exec, _es_TexParameterxvOES);
+ SET_TexSubImage2D(exec, _es_TexSubImage2D);
+ SET_Translatef(exec, _es_Translatef);
+ SET_Translatex(exec, _es_Translatex);
+ SET_TranslatexOES(exec, _es_TranslatexOES);
+ SET_UnmapBufferOES(exec, _es_UnmapBufferOES);
+ SET_VertexPointer(exec, _es_VertexPointer);
+ SET_Viewport(exec, _es_Viewport);
+}
diff --git a/src/mesa/es/main/get_es1.c b/src/mesa/es/main/get_es1.c
new file mode 100644
index 0000000000..6fd9d3896f
--- /dev/null
+++ b/src/mesa/es/main/get_es1.c
@@ -0,0 +1,2163 @@
+
+/***
+ *** NOTE!!! DO NOT EDIT THIS FILE!!! IT IS GENERATED BY get_gen.py
+ ***/
+
+#include "main/glheader.h"
+#include "main/context.h"
+#include "main/enable.h"
+#include "main/extensions.h"
+#include "main/fbobject.h"
+#include "main/get.h"
+#include "main/macros.h"
+#include "main/mtypes.h"
+#include "main/state.h"
+#include "main/texcompress.h"
+
+
+/* ES1 tokens that should be in gl.h but aren't */
+#define GL_MAX_ELEMENTS_INDICES 0x80E9
+#define GL_MAX_ELEMENTS_VERTICES 0x80E8
+
+
+/* ES2 special tokens */
+#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
+#define GL_MAX_VARYING_VECTORS 0x8DFC
+#define GL_MAX_VARYING_VECTORS 0x8DFC
+#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
+#define GL_SHADER_COMPILER 0x8DFA
+#define GL_PLATFORM_BINARY 0x8D63
+#define GL_SHADER_BINARY_FORMATS 0x8DF8
+#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
+
+
+#ifndef GL_OES_matrix_get
+#define GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES 0x898D
+#define GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES 0x898E
+#define GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES 0x898F
+#endif
+
+#ifndef GL_OES_compressed_paletted_texture
+#define GL_PALETTE4_RGB8_OES 0x8B90
+#define GL_PALETTE4_RGBA8_OES 0x8B91
+#define GL_PALETTE4_R5_G6_B5_OES 0x8B92
+#define GL_PALETTE4_RGBA4_OES 0x8B93
+#define GL_PALETTE4_RGB5_A1_OES 0x8B94
+#define GL_PALETTE8_RGB8_OES 0x8B95
+#define GL_PALETTE8_RGBA8_OES 0x8B96
+#define GL_PALETTE8_R5_G6_B5_OES 0x8B97
+#define GL_PALETTE8_RGBA4_OES 0x8B98
+#define GL_PALETTE8_RGB5_A1_OES 0x8B99
+#endif
+
+
+#define FLOAT_TO_BOOLEAN(X) ( (X) ? GL_TRUE : GL_FALSE )
+
+#define INT_TO_BOOLEAN(I) ( (I) ? GL_TRUE : GL_FALSE )
+
+#define BOOLEAN_TO_INT(B) ( (GLint) (B) )
+#define BOOLEAN_TO_FLOAT(B) ( (B) ? 1.0F : 0.0F )
+
+
+/*
+ * Check if named extension is enabled, if not generate error and return.
+ */
+#define CHECK_EXT1(EXT1, FUNC) \
+ if (!ctx->Extensions.EXT1) { \
+ _mesa_error(ctx, GL_INVALID_ENUM, FUNC "(0x%x)", (int) pname); \
+ return; \
+ }
+
+/*
+ * Check if either of two extensions is enabled.
+ */
+#define CHECK_EXT2(EXT1, EXT2, FUNC) \
+ if (!ctx->Extensions.EXT1 && !ctx->Extensions.EXT2) { \
+ _mesa_error(ctx, GL_INVALID_ENUM, FUNC "(0x%x)", (int) pname); \
+ return; \
+ }
+
+/*
+ * Check if either of three extensions is enabled.
+ */
+#define CHECK_EXT3(EXT1, EXT2, EXT3, FUNC) \
+ if (!ctx->Extensions.EXT1 && !ctx->Extensions.EXT2 && \
+ !ctx->Extensions.EXT3) { \
+ _mesa_error(ctx, GL_INVALID_ENUM, FUNC "(0x%x)", (int) pname); \
+ return; \
+ }
+
+/*
+ * Check if either of four extensions is enabled.
+ */
+#define CHECK_EXT4(EXT1, EXT2, EXT3, EXT4, FUNC) \
+ if (!ctx->Extensions.EXT1 && !ctx->Extensions.EXT2 && \
+ !ctx->Extensions.EXT3 && !ctx->Extensions.EXT4) { \
+ _mesa_error(ctx, GL_INVALID_ENUM, FUNC "(0x%x)", (int) pname); \
+ return; \
+ }
+
+
+
+/**
+ * List of compressed texture formats supported by ES.
+ */
+static GLenum compressed_formats[] = {
+ GL_PALETTE4_RGB8_OES,
+ GL_PALETTE4_RGBA8_OES,
+ GL_PALETTE4_R5_G6_B5_OES,
+ GL_PALETTE4_RGBA4_OES,
+ GL_PALETTE4_RGB5_A1_OES,
+ GL_PALETTE8_RGB8_OES,
+ GL_PALETTE8_RGBA8_OES,
+ GL_PALETTE8_R5_G6_B5_OES,
+ GL_PALETTE8_RGBA4_OES,
+ GL_PALETTE8_RGB5_A1_OES
+};
+
+#define ARRAY_SIZE(A) (sizeof(A) / sizeof(A[0]))
+
+
+void GLAPIENTRY
+_mesa_GetBooleanv( GLenum pname, GLboolean *params )
+{
+ GET_CURRENT_CONTEXT(ctx);
+ ASSERT_OUTSIDE_BEGIN_END(ctx);
+
+ if (!params)
+ return;
+
+ if (ctx->NewState)
+ _mesa_update_state(ctx);
+
+ switch (pname) {
+ case GL_ALPHA_BITS:
+ params[0] = INT_TO_BOOLEAN(ctx->DrawBuffer->Visual.alphaBits);
+ break;
+ case GL_BLEND:
+ params[0] = ctx->Color.BlendEnabled;
+ break;
+ case GL_BLEND_SRC:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Color.BlendSrcRGB);
+ break;
+ case GL_BLUE_BITS:
+ params[0] = INT_TO_BOOLEAN(ctx->DrawBuffer->Visual.blueBits);
+ break;
+ case GL_COLOR_CLEAR_VALUE:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Color.ClearColor[0]);
+ params[1] = FLOAT_TO_BOOLEAN(ctx->Color.ClearColor[1]);
+ params[2] = FLOAT_TO_BOOLEAN(ctx->Color.ClearColor[2]);
+ params[3] = FLOAT_TO_BOOLEAN(ctx->Color.ClearColor[3]);
+ break;
+ case GL_COLOR_WRITEMASK:
+ params[0] = INT_TO_BOOLEAN(ctx->Color.ColorMask[RCOMP] ? 1 : 0);
+ params[1] = INT_TO_BOOLEAN(ctx->Color.ColorMask[GCOMP] ? 1 : 0);
+ params[2] = INT_TO_BOOLEAN(ctx->Color.ColorMask[BCOMP] ? 1 : 0);
+ params[3] = INT_TO_BOOLEAN(ctx->Color.ColorMask[ACOMP] ? 1 : 0);
+ break;
+ case GL_CULL_FACE:
+ params[0] = ctx->Polygon.CullFlag;
+ break;
+ case GL_CULL_FACE_MODE:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Polygon.CullFaceMode);
+ break;
+ case GL_DEPTH_BITS:
+ params[0] = INT_TO_BOOLEAN(ctx->DrawBuffer->Visual.depthBits);
+ break;
+ case GL_DEPTH_CLEAR_VALUE:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Depth.Clear);
+ break;
+ case GL_DEPTH_FUNC:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Depth.Func);
+ break;
+ case GL_DEPTH_RANGE:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Viewport.Near);
+ params[1] = FLOAT_TO_BOOLEAN(ctx->Viewport.Far);
+ break;
+ case GL_DEPTH_TEST:
+ params[0] = ctx->Depth.Test;
+ break;
+ case GL_DEPTH_WRITEMASK:
+ params[0] = ctx->Depth.Mask;
+ break;
+ case GL_DITHER:
+ params[0] = ctx->Color.DitherFlag;
+ break;
+ case GL_FRONT_FACE:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Polygon.FrontFace);
+ break;
+ case GL_GREEN_BITS:
+ params[0] = INT_TO_BOOLEAN(ctx->DrawBuffer->Visual.greenBits);
+ break;
+ case GL_LINE_WIDTH:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Line.Width);
+ break;
+ case GL_ALIASED_LINE_WIDTH_RANGE:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Const.MinLineWidth);
+ params[1] = FLOAT_TO_BOOLEAN(ctx->Const.MaxLineWidth);
+ break;
+ case GL_MAX_ELEMENTS_INDICES:
+ params[0] = INT_TO_BOOLEAN(ctx->Const.MaxArrayLockSize);
+ break;
+ case GL_MAX_ELEMENTS_VERTICES:
+ params[0] = INT_TO_BOOLEAN(ctx->Const.MaxArrayLockSize);
+ break;
+ case GL_MAX_TEXTURE_SIZE:
+ params[0] = INT_TO_BOOLEAN(1 << (ctx->Const.MaxTextureLevels - 1));
+ break;
+ case GL_MAX_VIEWPORT_DIMS:
+ params[0] = INT_TO_BOOLEAN(ctx->Const.MaxViewportWidth);
+ params[1] = INT_TO_BOOLEAN(ctx->Const.MaxViewportHeight);
+ break;
+ case GL_PACK_ALIGNMENT:
+ params[0] = INT_TO_BOOLEAN(ctx->Pack.Alignment);
+ break;
+ case GL_ALIASED_POINT_SIZE_RANGE:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Const.MinPointSize);
+ params[1] = FLOAT_TO_BOOLEAN(ctx->Const.MaxPointSize);
+ break;
+ case GL_POLYGON_OFFSET_FACTOR:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Polygon.OffsetFactor );
+ break;
+ case GL_POLYGON_OFFSET_UNITS:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Polygon.OffsetUnits );
+ break;
+ case GL_RED_BITS:
+ params[0] = INT_TO_BOOLEAN(ctx->DrawBuffer->Visual.redBits);
+ break;
+ case GL_SCISSOR_BOX:
+ params[0] = INT_TO_BOOLEAN(ctx->Scissor.X);
+ params[1] = INT_TO_BOOLEAN(ctx->Scissor.Y);
+ params[2] = INT_TO_BOOLEAN(ctx->Scissor.Width);
+ params[3] = INT_TO_BOOLEAN(ctx->Scissor.Height);
+ break;
+ case GL_SCISSOR_TEST:
+ params[0] = ctx->Scissor.Enabled;
+ break;
+ case GL_STENCIL_BITS:
+ params[0] = INT_TO_BOOLEAN(ctx->DrawBuffer->Visual.stencilBits);
+ break;
+ case GL_STENCIL_CLEAR_VALUE:
+ params[0] = INT_TO_BOOLEAN(ctx->Stencil.Clear);
+ break;
+ case GL_STENCIL_FAIL:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Stencil.FailFunc[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_FUNC:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Stencil.Function[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_PASS_DEPTH_FAIL:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Stencil.ZFailFunc[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_PASS_DEPTH_PASS:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Stencil.ZPassFunc[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_REF:
+ params[0] = INT_TO_BOOLEAN(ctx->Stencil.Ref[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_TEST:
+ params[0] = ctx->Stencil.Enabled;
+ break;
+ case GL_STENCIL_VALUE_MASK:
+ params[0] = INT_TO_BOOLEAN(ctx->Stencil.ValueMask[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_WRITEMASK:
+ params[0] = INT_TO_BOOLEAN(ctx->Stencil.WriteMask[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_SUBPIXEL_BITS:
+ params[0] = INT_TO_BOOLEAN(ctx->Const.SubPixelBits);
+ break;
+ case GL_TEXTURE_BINDING_2D:
+ params[0] = INT_TO_BOOLEAN(ctx->Texture.Unit[ctx->Texture.CurrentUnit].CurrentTex[TEXTURE_2D_INDEX]->Name);
+ break;
+ case GL_UNPACK_ALIGNMENT:
+ params[0] = INT_TO_BOOLEAN(ctx->Unpack.Alignment);
+ break;
+ case GL_VIEWPORT:
+ params[0] = INT_TO_BOOLEAN(ctx->Viewport.X);
+ params[1] = INT_TO_BOOLEAN(ctx->Viewport.Y);
+ params[2] = INT_TO_BOOLEAN(ctx->Viewport.Width);
+ params[3] = INT_TO_BOOLEAN(ctx->Viewport.Height);
+ break;
+ case GL_ACTIVE_TEXTURE_ARB:
+ CHECK_EXT1(ARB_multitexture, "_mesa_GetBooleanv");
+ params[0] = INT_TO_BOOLEAN(GL_TEXTURE0_ARB + ctx->Texture.CurrentUnit);
+ break;
+ case GL_TEXTURE_BINDING_CUBE_MAP_ARB:
+ params[0] = INT_TO_BOOLEAN(ctx->Texture.Unit[ctx->Texture.CurrentUnit].CurrentTex[TEXTURE_CUBE_INDEX]->Name);
+ break;
+ case GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB:
+ params[0] = INT_TO_BOOLEAN((1 << (ctx->Const.MaxCubeTextureLevels - 1)));
+ break;
+ case GL_BLEND_SRC_RGB_EXT:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Color.BlendSrcRGB);
+ break;
+ case GL_BLEND_DST_RGB_EXT:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Color.BlendDstRGB);
+ break;
+ case GL_BLEND_SRC_ALPHA_EXT:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Color.BlendSrcA);
+ break;
+ case GL_BLEND_DST_ALPHA_EXT:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Color.BlendDstA);
+ break;
+ case GL_BLEND_EQUATION:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Color.BlendEquationRGB );
+ break;
+ case GL_BLEND_EQUATION_ALPHA_EXT:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Color.BlendEquationA );
+ break;
+ case GL_SAMPLE_ALPHA_TO_COVERAGE_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetBooleanv");
+ params[0] = ctx->Multisample.SampleAlphaToCoverage;
+ break;
+ case GL_SAMPLE_COVERAGE_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetBooleanv");
+ params[0] = ctx->Multisample.SampleCoverage;
+ break;
+ case GL_SAMPLE_COVERAGE_VALUE_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetBooleanv");
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Multisample.SampleCoverageValue);
+ break;
+ case GL_SAMPLE_COVERAGE_INVERT_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetBooleanv");
+ params[0] = ctx->Multisample.SampleCoverageInvert;
+ break;
+ case GL_SAMPLE_BUFFERS_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetBooleanv");
+ params[0] = INT_TO_BOOLEAN(ctx->DrawBuffer->Visual.sampleBuffers);
+ break;
+ case GL_SAMPLES_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetBooleanv");
+ params[0] = INT_TO_BOOLEAN(ctx->DrawBuffer->Visual.samples);
+ break;
+ case GL_GENERATE_MIPMAP_HINT_SGIS:
+ CHECK_EXT1(SGIS_generate_mipmap, "_mesa_GetBooleanv");
+ params[0] = ENUM_TO_BOOLEAN(ctx->Hint.GenerateMipmap);
+ break;
+ case GL_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetBooleanv");
+ params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayBufferObj->Name);
+ break;
+ case GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetBooleanv");
+ params[0] = INT_TO_BOOLEAN(ctx->Array.ElementArrayBufferObj->Name);
+ break;
+ case GL_IMPLEMENTATION_COLOR_READ_TYPE_OES:
+ params[0] = INT_TO_BOOLEAN(ctx->Const.ColorReadType);
+ break;
+ case GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES:
+ params[0] = INT_TO_BOOLEAN(ctx->Const.ColorReadFormat);
+ break;
+ case GL_FRAMEBUFFER_BINDING_EXT:
+ params[0] = INT_TO_BOOLEAN(ctx->DrawBuffer->Name);
+ break;
+ case GL_RENDERBUFFER_BINDING_EXT:
+ params[0] = INT_TO_BOOLEAN(ctx->CurrentRenderbuffer ? ctx->CurrentRenderbuffer->Name : 0);
+ break;
+ case GL_MAX_RENDERBUFFER_SIZE_EXT:
+ params[0] = INT_TO_BOOLEAN(ctx->Const.MaxRenderbufferSize);
+ break;
+ case GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB:
+ params[0] = INT_TO_BOOLEAN(ARRAY_SIZE(compressed_formats));
+ break;
+ case GL_COMPRESSED_TEXTURE_FORMATS_ARB:
+ {
+
+ int i;
+ for (i = 0; i < ARRAY_SIZE(compressed_formats); i++) {
+ params[i] = compressed_formats[i];
+ }
+ }
+ break;
+ case GL_POLYGON_OFFSET_FILL:
+ params[0] = ctx->Polygon.OffsetFill;
+ break;
+ case GL_MAX_LIGHTS:
+ params[0] = INT_TO_BOOLEAN(ctx->Const.MaxLights);
+ break;
+ case GL_LIGHT0:
+ params[0] = ctx->Light.Light[0].Enabled;
+ break;
+ case GL_LIGHT1:
+ params[0] = ctx->Light.Light[1].Enabled;
+ break;
+ case GL_LIGHT2:
+ params[0] = ctx->Light.Light[2].Enabled;
+ break;
+ case GL_LIGHT3:
+ params[0] = ctx->Light.Light[3].Enabled;
+ break;
+ case GL_LIGHT4:
+ params[0] = ctx->Light.Light[4].Enabled;
+ break;
+ case GL_LIGHT5:
+ params[0] = ctx->Light.Light[5].Enabled;
+ break;
+ case GL_LIGHT6:
+ params[0] = ctx->Light.Light[6].Enabled;
+ break;
+ case GL_LIGHT7:
+ params[0] = ctx->Light.Light[7].Enabled;
+ break;
+ case GL_LIGHTING:
+ params[0] = ctx->Light.Enabled;
+ break;
+ case GL_LIGHT_MODEL_AMBIENT:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Light.Model.Ambient[0]);
+ params[1] = FLOAT_TO_BOOLEAN(ctx->Light.Model.Ambient[1]);
+ params[2] = FLOAT_TO_BOOLEAN(ctx->Light.Model.Ambient[2]);
+ params[3] = FLOAT_TO_BOOLEAN(ctx->Light.Model.Ambient[3]);
+ break;
+ case GL_LIGHT_MODEL_TWO_SIDE:
+ params[0] = ctx->Light.Model.TwoSide;
+ break;
+ case GL_ALPHA_TEST:
+ params[0] = ctx->Color.AlphaEnabled;
+ break;
+ case GL_ALPHA_TEST_FUNC:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Color.AlphaFunc);
+ break;
+ case GL_ALPHA_TEST_REF:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Color.AlphaRef);
+ break;
+ case GL_BLEND_DST:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Color.BlendDstRGB);
+ break;
+ case GL_MAX_CLIP_PLANES:
+ params[0] = INT_TO_BOOLEAN(ctx->Const.MaxClipPlanes);
+ break;
+ case GL_CLIP_PLANE0:
+ params[0] = (ctx->Transform.ClipPlanesEnabled >> 0) & 1;
+ break;
+ case GL_CLIP_PLANE1:
+ params[0] = (ctx->Transform.ClipPlanesEnabled >> 1) & 1;
+ break;
+ case GL_CLIP_PLANE2:
+ params[0] = (ctx->Transform.ClipPlanesEnabled >> 2) & 1;
+ break;
+ case GL_CLIP_PLANE3:
+ params[0] = (ctx->Transform.ClipPlanesEnabled >> 3) & 1;
+ break;
+ case GL_CLIP_PLANE4:
+ params[0] = (ctx->Transform.ClipPlanesEnabled >> 4) & 1;
+ break;
+ case GL_CLIP_PLANE5:
+ params[0] = (ctx->Transform.ClipPlanesEnabled >> 5) & 1;
+ break;
+ case GL_COLOR_MATERIAL:
+ params[0] = ctx->Light.ColorMaterialEnabled;
+ break;
+ case GL_CURRENT_COLOR:
+ {
+ FLUSH_CURRENT(ctx, 0);
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][0]);
+ params[1] = FLOAT_TO_BOOLEAN(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][1]);
+ params[2] = FLOAT_TO_BOOLEAN(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][2]);
+ params[3] = FLOAT_TO_BOOLEAN(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][3]);
+ }
+ break;
+ case GL_CURRENT_NORMAL:
+ {
+ FLUSH_CURRENT(ctx, 0);
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Current.Attrib[VERT_ATTRIB_NORMAL][0]);
+ params[1] = FLOAT_TO_BOOLEAN(ctx->Current.Attrib[VERT_ATTRIB_NORMAL][1]);
+ params[2] = FLOAT_TO_BOOLEAN(ctx->Current.Attrib[VERT_ATTRIB_NORMAL][2]);
+ }
+ break;
+ case GL_CURRENT_TEXTURE_COORDS:
+ {
+ const GLuint texUnit = ctx->Texture.CurrentUnit;
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][0]);
+ params[1] = FLOAT_TO_BOOLEAN(ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][1]);
+ params[2] = FLOAT_TO_BOOLEAN(ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][2]);
+ params[3] = FLOAT_TO_BOOLEAN(ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][3]);
+ }
+ break;
+ case GL_DISTANCE_ATTENUATION_EXT:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Point.Params[0]);
+ params[1] = FLOAT_TO_BOOLEAN(ctx->Point.Params[1]);
+ params[2] = FLOAT_TO_BOOLEAN(ctx->Point.Params[2]);
+ break;
+ case GL_FOG:
+ params[0] = ctx->Fog.Enabled;
+ break;
+ case GL_FOG_COLOR:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Fog.Color[0]);
+ params[1] = FLOAT_TO_BOOLEAN(ctx->Fog.Color[1]);
+ params[2] = FLOAT_TO_BOOLEAN(ctx->Fog.Color[2]);
+ params[3] = FLOAT_TO_BOOLEAN(ctx->Fog.Color[3]);
+ break;
+ case GL_FOG_DENSITY:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Fog.Density);
+ break;
+ case GL_FOG_END:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Fog.End);
+ break;
+ case GL_FOG_HINT:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Hint.Fog);
+ break;
+ case GL_FOG_MODE:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Fog.Mode);
+ break;
+ case GL_FOG_START:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Fog.Start);
+ break;
+ case GL_LINE_SMOOTH:
+ params[0] = ctx->Line.SmoothFlag;
+ break;
+ case GL_LINE_SMOOTH_HINT:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Hint.LineSmooth);
+ break;
+ case GL_LINE_WIDTH_RANGE:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Const.MinLineWidthAA);
+ params[1] = FLOAT_TO_BOOLEAN(ctx->Const.MaxLineWidthAA);
+ break;
+ case GL_COLOR_LOGIC_OP:
+ params[0] = ctx->Color.ColorLogicOpEnabled;
+ break;
+ case GL_LOGIC_OP_MODE:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Color.LogicOp);
+ break;
+ case GL_MATRIX_MODE:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Transform.MatrixMode);
+ break;
+ case GL_MAX_MODELVIEW_STACK_DEPTH:
+ params[0] = INT_TO_BOOLEAN(MAX_MODELVIEW_STACK_DEPTH);
+ break;
+ case GL_MAX_PROJECTION_STACK_DEPTH:
+ params[0] = INT_TO_BOOLEAN(MAX_PROJECTION_STACK_DEPTH);
+ break;
+ case GL_MAX_TEXTURE_STACK_DEPTH:
+ params[0] = INT_TO_BOOLEAN(MAX_TEXTURE_STACK_DEPTH);
+ break;
+ case GL_MODELVIEW_MATRIX:
+ {
+ const GLfloat *matrix = ctx->ModelviewMatrixStack.Top->m;
+ params[0] = FLOAT_TO_BOOLEAN(matrix[0]);
+ params[1] = FLOAT_TO_BOOLEAN(matrix[1]);
+ params[2] = FLOAT_TO_BOOLEAN(matrix[2]);
+ params[3] = FLOAT_TO_BOOLEAN(matrix[3]);
+ params[4] = FLOAT_TO_BOOLEAN(matrix[4]);
+ params[5] = FLOAT_TO_BOOLEAN(matrix[5]);
+ params[6] = FLOAT_TO_BOOLEAN(matrix[6]);
+ params[7] = FLOAT_TO_BOOLEAN(matrix[7]);
+ params[8] = FLOAT_TO_BOOLEAN(matrix[8]);
+ params[9] = FLOAT_TO_BOOLEAN(matrix[9]);
+ params[10] = FLOAT_TO_BOOLEAN(matrix[10]);
+ params[11] = FLOAT_TO_BOOLEAN(matrix[11]);
+ params[12] = FLOAT_TO_BOOLEAN(matrix[12]);
+ params[13] = FLOAT_TO_BOOLEAN(matrix[13]);
+ params[14] = FLOAT_TO_BOOLEAN(matrix[14]);
+ params[15] = FLOAT_TO_BOOLEAN(matrix[15]);
+ }
+ break;
+ case GL_MODELVIEW_STACK_DEPTH:
+ params[0] = INT_TO_BOOLEAN(ctx->ModelviewMatrixStack.Depth + 1);
+ break;
+ case GL_NORMALIZE:
+ params[0] = ctx->Transform.Normalize;
+ break;
+ case GL_PACK_SKIP_IMAGES_EXT:
+ params[0] = INT_TO_BOOLEAN(ctx->Pack.SkipImages);
+ break;
+ case GL_PERSPECTIVE_CORRECTION_HINT:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Hint.PerspectiveCorrection);
+ break;
+ case GL_POINT_SIZE:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Point.Size);
+ break;
+ case GL_POINT_SIZE_RANGE:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Const.MinPointSizeAA);
+ params[1] = FLOAT_TO_BOOLEAN(ctx->Const.MaxPointSizeAA);
+ break;
+ case GL_POINT_SMOOTH:
+ params[0] = ctx->Point.SmoothFlag;
+ break;
+ case GL_POINT_SMOOTH_HINT:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Hint.PointSmooth);
+ break;
+ case GL_POINT_SIZE_MIN_EXT:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Point.MinSize);
+ break;
+ case GL_POINT_SIZE_MAX_EXT:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Point.MaxSize);
+ break;
+ case GL_POINT_FADE_THRESHOLD_SIZE_EXT:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Point.Threshold);
+ break;
+ case GL_PROJECTION_MATRIX:
+ {
+ const GLfloat *matrix = ctx->ProjectionMatrixStack.Top->m;
+ params[0] = FLOAT_TO_BOOLEAN(matrix[0]);
+ params[1] = FLOAT_TO_BOOLEAN(matrix[1]);
+ params[2] = FLOAT_TO_BOOLEAN(matrix[2]);
+ params[3] = FLOAT_TO_BOOLEAN(matrix[3]);
+ params[4] = FLOAT_TO_BOOLEAN(matrix[4]);
+ params[5] = FLOAT_TO_BOOLEAN(matrix[5]);
+ params[6] = FLOAT_TO_BOOLEAN(matrix[6]);
+ params[7] = FLOAT_TO_BOOLEAN(matrix[7]);
+ params[8] = FLOAT_TO_BOOLEAN(matrix[8]);
+ params[9] = FLOAT_TO_BOOLEAN(matrix[9]);
+ params[10] = FLOAT_TO_BOOLEAN(matrix[10]);
+ params[11] = FLOAT_TO_BOOLEAN(matrix[11]);
+ params[12] = FLOAT_TO_BOOLEAN(matrix[12]);
+ params[13] = FLOAT_TO_BOOLEAN(matrix[13]);
+ params[14] = FLOAT_TO_BOOLEAN(matrix[14]);
+ params[15] = FLOAT_TO_BOOLEAN(matrix[15]);
+ }
+ break;
+ case GL_PROJECTION_STACK_DEPTH:
+ params[0] = INT_TO_BOOLEAN(ctx->ProjectionMatrixStack.Depth + 1);
+ break;
+ case GL_RESCALE_NORMAL:
+ params[0] = ctx->Transform.RescaleNormals;
+ break;
+ case GL_SHADE_MODEL:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Light.ShadeModel);
+ break;
+ case GL_TEXTURE_2D:
+ params[0] = _mesa_IsEnabled(GL_TEXTURE_2D);
+ break;
+ case GL_TEXTURE_MATRIX:
+ {
+ const GLfloat *matrix = ctx->TextureMatrixStack[ctx->Texture.CurrentUnit].Top->m;
+ params[0] = FLOAT_TO_BOOLEAN(matrix[0]);
+ params[1] = FLOAT_TO_BOOLEAN(matrix[1]);
+ params[2] = FLOAT_TO_BOOLEAN(matrix[2]);
+ params[3] = FLOAT_TO_BOOLEAN(matrix[3]);
+ params[4] = FLOAT_TO_BOOLEAN(matrix[4]);
+ params[5] = FLOAT_TO_BOOLEAN(matrix[5]);
+ params[6] = FLOAT_TO_BOOLEAN(matrix[6]);
+ params[7] = FLOAT_TO_BOOLEAN(matrix[7]);
+ params[8] = FLOAT_TO_BOOLEAN(matrix[8]);
+ params[9] = FLOAT_TO_BOOLEAN(matrix[9]);
+ params[10] = FLOAT_TO_BOOLEAN(matrix[10]);
+ params[11] = FLOAT_TO_BOOLEAN(matrix[11]);
+ params[12] = FLOAT_TO_BOOLEAN(matrix[12]);
+ params[13] = FLOAT_TO_BOOLEAN(matrix[13]);
+ params[14] = FLOAT_TO_BOOLEAN(matrix[14]);
+ params[15] = FLOAT_TO_BOOLEAN(matrix[15]);
+ }
+ break;
+ case GL_TEXTURE_STACK_DEPTH:
+ params[0] = INT_TO_BOOLEAN(ctx->TextureMatrixStack[ctx->Texture.CurrentUnit].Depth + 1);
+ break;
+ case GL_VERTEX_ARRAY:
+ params[0] = ctx->Array.ArrayObj->Vertex.Enabled;
+ break;
+ case GL_VERTEX_ARRAY_SIZE:
+ params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->Vertex.Size);
+ break;
+ case GL_VERTEX_ARRAY_TYPE:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Array.ArrayObj->Vertex.Type);
+ break;
+ case GL_VERTEX_ARRAY_STRIDE:
+ params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->Vertex.Stride);
+ break;
+ case GL_NORMAL_ARRAY:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Array.ArrayObj->Normal.Enabled);
+ break;
+ case GL_NORMAL_ARRAY_TYPE:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Array.ArrayObj->Normal.Type);
+ break;
+ case GL_NORMAL_ARRAY_STRIDE:
+ params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->Normal.Stride);
+ break;
+ case GL_COLOR_ARRAY:
+ params[0] = ctx->Array.ArrayObj->Color.Enabled;
+ break;
+ case GL_COLOR_ARRAY_SIZE:
+ params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->Color.Size);
+ break;
+ case GL_COLOR_ARRAY_TYPE:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Array.ArrayObj->Color.Type);
+ break;
+ case GL_COLOR_ARRAY_STRIDE:
+ params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->Color.Stride);
+ break;
+ case GL_TEXTURE_COORD_ARRAY:
+ params[0] = ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].Enabled;
+ break;
+ case GL_TEXTURE_COORD_ARRAY_SIZE:
+ params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].Size);
+ break;
+ case GL_TEXTURE_COORD_ARRAY_TYPE:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].Type);
+ break;
+ case GL_TEXTURE_COORD_ARRAY_STRIDE:
+ params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].Stride);
+ break;
+ case GL_MAX_TEXTURE_UNITS_ARB:
+ CHECK_EXT1(ARB_multitexture, "_mesa_GetBooleanv");
+ params[0] = INT_TO_BOOLEAN(ctx->Const.MaxTextureUnits);
+ break;
+ case GL_CLIENT_ACTIVE_TEXTURE_ARB:
+ CHECK_EXT1(ARB_multitexture, "_mesa_GetBooleanv");
+ params[0] = INT_TO_BOOLEAN(GL_TEXTURE0_ARB + ctx->Array.ActiveTexture);
+ break;
+ case GL_TEXTURE_CUBE_MAP_ARB:
+ params[0] = _mesa_IsEnabled(GL_TEXTURE_CUBE_MAP_ARB);
+ break;
+ case GL_TEXTURE_GEN_S:
+ params[0] = ((ctx->Texture.Unit[ctx->Texture.CurrentUnit].TexGenEnabled & S_BIT) ? 1 : 0);
+ break;
+ case GL_TEXTURE_GEN_T:
+ params[0] = ((ctx->Texture.Unit[ctx->Texture.CurrentUnit].TexGenEnabled & T_BIT) ? 1 : 0);
+ break;
+ case GL_TEXTURE_GEN_R:
+ params[0] = ((ctx->Texture.Unit[ctx->Texture.CurrentUnit].TexGenEnabled & R_BIT) ? 1 : 0);
+ break;
+ case GL_MULTISAMPLE_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetBooleanv");
+ params[0] = ctx->Multisample.Enabled;
+ break;
+ case GL_SAMPLE_ALPHA_TO_ONE_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetBooleanv");
+ params[0] = ctx->Multisample.SampleAlphaToOne;
+ break;
+ case GL_VERTEX_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetBooleanv");
+ params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->Vertex.BufferObj->Name);
+ break;
+ case GL_NORMAL_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetBooleanv");
+ params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->Normal.BufferObj->Name);
+ break;
+ case GL_COLOR_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetBooleanv");
+ params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->Color.BufferObj->Name);
+ break;
+ case GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetBooleanv");
+ params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].BufferObj->Name);
+ break;
+ case GL_POINT_SPRITE_NV:
+ params[0] = ctx->Point.PointSprite;
+ break;
+ case GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB:
+ CHECK_EXT1(ARB_fragment_shader, "_mesa_GetBooleanv");
+ params[0] = INT_TO_BOOLEAN(ctx->Const.FragmentProgram.MaxUniformComponents);
+ break;
+ case GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB:
+ CHECK_EXT1(ARB_vertex_shader, "_mesa_GetBooleanv");
+ params[0] = INT_TO_BOOLEAN(ctx->Const.VertexProgram.MaxUniformComponents);
+ break;
+ case GL_MAX_VARYING_FLOATS_ARB:
+ CHECK_EXT1(ARB_vertex_shader, "_mesa_GetBooleanv");
+ params[0] = INT_TO_BOOLEAN(ctx->Const.MaxVarying * 4);
+ break;
+ case GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES:
+ {
+
+ /* See GL_OES_matrix_get */
+ {
+ const GLfloat *matrix = ctx->ModelviewMatrixStack.Top->m;
+ memcpy(params, matrix, 16 * sizeof(GLint));
+ }
+ }
+ break;
+ case GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES:
+ {
+
+ /* See GL_OES_matrix_get */
+ {
+ const GLfloat *matrix = ctx->ProjectionMatrixStack.Top->m;
+ memcpy(params, matrix, 16 * sizeof(GLint));
+ }
+ }
+ break;
+ case GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES:
+ {
+
+ /* See GL_OES_matrix_get */
+ {
+ const GLfloat *matrix =
+ ctx->TextureMatrixStack[ctx->Texture.CurrentUnit].Top->m;
+ memcpy(params, matrix, 16 * sizeof(GLint));
+ }
+ }
+ break;
+ case GL_POINT_SIZE_ARRAY_OES:
+ params[0] = ctx->Array.ArrayObj->PointSize.Enabled;
+ break;
+ case GL_POINT_SIZE_ARRAY_TYPE_OES:
+ params[0] = ENUM_TO_BOOLEAN(ctx->Array.ArrayObj->PointSize.Type);
+ break;
+ case GL_POINT_SIZE_ARRAY_STRIDE_OES:
+ params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->PointSize.Stride);
+ break;
+ case GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES:
+ params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->PointSize.BufferObj->Name);
+ break;
+ case GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT:
+ CHECK_EXT1(EXT_texture_filter_anisotropic, "_mesa_GetBooleanv");
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Const.MaxTextureMaxAnisotropy);
+ break;
+ default:
+ _mesa_error(ctx, GL_INVALID_ENUM, "gl_mesa_GetBooleanv(pname=0x%x)", pname);
+ }
+}
+
+void GLAPIENTRY
+_mesa_GetFloatv( GLenum pname, GLfloat *params )
+{
+ GET_CURRENT_CONTEXT(ctx);
+ ASSERT_OUTSIDE_BEGIN_END(ctx);
+
+ if (!params)
+ return;
+
+ if (ctx->NewState)
+ _mesa_update_state(ctx);
+
+ switch (pname) {
+ case GL_ALPHA_BITS:
+ params[0] = (GLfloat)(ctx->DrawBuffer->Visual.alphaBits);
+ break;
+ case GL_BLEND:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Color.BlendEnabled);
+ break;
+ case GL_BLEND_SRC:
+ params[0] = ENUM_TO_FLOAT(ctx->Color.BlendSrcRGB);
+ break;
+ case GL_BLUE_BITS:
+ params[0] = (GLfloat)(ctx->DrawBuffer->Visual.blueBits);
+ break;
+ case GL_COLOR_CLEAR_VALUE:
+ params[0] = ctx->Color.ClearColor[0];
+ params[1] = ctx->Color.ClearColor[1];
+ params[2] = ctx->Color.ClearColor[2];
+ params[3] = ctx->Color.ClearColor[3];
+ break;
+ case GL_COLOR_WRITEMASK:
+ params[0] = (GLfloat)(ctx->Color.ColorMask[RCOMP] ? 1 : 0);
+ params[1] = (GLfloat)(ctx->Color.ColorMask[GCOMP] ? 1 : 0);
+ params[2] = (GLfloat)(ctx->Color.ColorMask[BCOMP] ? 1 : 0);
+ params[3] = (GLfloat)(ctx->Color.ColorMask[ACOMP] ? 1 : 0);
+ break;
+ case GL_CULL_FACE:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Polygon.CullFlag);
+ break;
+ case GL_CULL_FACE_MODE:
+ params[0] = ENUM_TO_FLOAT(ctx->Polygon.CullFaceMode);
+ break;
+ case GL_DEPTH_BITS:
+ params[0] = (GLfloat)(ctx->DrawBuffer->Visual.depthBits);
+ break;
+ case GL_DEPTH_CLEAR_VALUE:
+ params[0] = ctx->Depth.Clear;
+ break;
+ case GL_DEPTH_FUNC:
+ params[0] = ENUM_TO_FLOAT(ctx->Depth.Func);
+ break;
+ case GL_DEPTH_RANGE:
+ params[0] = ctx->Viewport.Near;
+ params[1] = ctx->Viewport.Far;
+ break;
+ case GL_DEPTH_TEST:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Depth.Test);
+ break;
+ case GL_DEPTH_WRITEMASK:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Depth.Mask);
+ break;
+ case GL_DITHER:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Color.DitherFlag);
+ break;
+ case GL_FRONT_FACE:
+ params[0] = ENUM_TO_FLOAT(ctx->Polygon.FrontFace);
+ break;
+ case GL_GREEN_BITS:
+ params[0] = (GLfloat)(ctx->DrawBuffer->Visual.greenBits);
+ break;
+ case GL_LINE_WIDTH:
+ params[0] = ctx->Line.Width;
+ break;
+ case GL_ALIASED_LINE_WIDTH_RANGE:
+ params[0] = ctx->Const.MinLineWidth;
+ params[1] = ctx->Const.MaxLineWidth;
+ break;
+ case GL_MAX_ELEMENTS_INDICES:
+ params[0] = (GLfloat)(ctx->Const.MaxArrayLockSize);
+ break;
+ case GL_MAX_ELEMENTS_VERTICES:
+ params[0] = (GLfloat)(ctx->Const.MaxArrayLockSize);
+ break;
+ case GL_MAX_TEXTURE_SIZE:
+ params[0] = (GLfloat)(1 << (ctx->Const.MaxTextureLevels - 1));
+ break;
+ case GL_MAX_VIEWPORT_DIMS:
+ params[0] = (GLfloat)(ctx->Const.MaxViewportWidth);
+ params[1] = (GLfloat)(ctx->Const.MaxViewportHeight);
+ break;
+ case GL_PACK_ALIGNMENT:
+ params[0] = (GLfloat)(ctx->Pack.Alignment);
+ break;
+ case GL_ALIASED_POINT_SIZE_RANGE:
+ params[0] = ctx->Const.MinPointSize;
+ params[1] = ctx->Const.MaxPointSize;
+ break;
+ case GL_POLYGON_OFFSET_FACTOR:
+ params[0] = ctx->Polygon.OffsetFactor ;
+ break;
+ case GL_POLYGON_OFFSET_UNITS:
+ params[0] = ctx->Polygon.OffsetUnits ;
+ break;
+ case GL_RED_BITS:
+ params[0] = (GLfloat)(ctx->DrawBuffer->Visual.redBits);
+ break;
+ case GL_SCISSOR_BOX:
+ params[0] = (GLfloat)(ctx->Scissor.X);
+ params[1] = (GLfloat)(ctx->Scissor.Y);
+ params[2] = (GLfloat)(ctx->Scissor.Width);
+ params[3] = (GLfloat)(ctx->Scissor.Height);
+ break;
+ case GL_SCISSOR_TEST:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Scissor.Enabled);
+ break;
+ case GL_STENCIL_BITS:
+ params[0] = (GLfloat)(ctx->DrawBuffer->Visual.stencilBits);
+ break;
+ case GL_STENCIL_CLEAR_VALUE:
+ params[0] = (GLfloat)(ctx->Stencil.Clear);
+ break;
+ case GL_STENCIL_FAIL:
+ params[0] = ENUM_TO_FLOAT(ctx->Stencil.FailFunc[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_FUNC:
+ params[0] = ENUM_TO_FLOAT(ctx->Stencil.Function[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_PASS_DEPTH_FAIL:
+ params[0] = ENUM_TO_FLOAT(ctx->Stencil.ZFailFunc[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_PASS_DEPTH_PASS:
+ params[0] = ENUM_TO_FLOAT(ctx->Stencil.ZPassFunc[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_REF:
+ params[0] = (GLfloat)(ctx->Stencil.Ref[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_TEST:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Stencil.Enabled);
+ break;
+ case GL_STENCIL_VALUE_MASK:
+ params[0] = (GLfloat)(ctx->Stencil.ValueMask[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_WRITEMASK:
+ params[0] = (GLfloat)(ctx->Stencil.WriteMask[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_SUBPIXEL_BITS:
+ params[0] = (GLfloat)(ctx->Const.SubPixelBits);
+ break;
+ case GL_TEXTURE_BINDING_2D:
+ params[0] = (GLfloat)(ctx->Texture.Unit[ctx->Texture.CurrentUnit].CurrentTex[TEXTURE_2D_INDEX]->Name);
+ break;
+ case GL_UNPACK_ALIGNMENT:
+ params[0] = (GLfloat)(ctx->Unpack.Alignment);
+ break;
+ case GL_VIEWPORT:
+ params[0] = (GLfloat)(ctx->Viewport.X);
+ params[1] = (GLfloat)(ctx->Viewport.Y);
+ params[2] = (GLfloat)(ctx->Viewport.Width);
+ params[3] = (GLfloat)(ctx->Viewport.Height);
+ break;
+ case GL_ACTIVE_TEXTURE_ARB:
+ CHECK_EXT1(ARB_multitexture, "_mesa_GetFloatv");
+ params[0] = (GLfloat)(GL_TEXTURE0_ARB + ctx->Texture.CurrentUnit);
+ break;
+ case GL_TEXTURE_BINDING_CUBE_MAP_ARB:
+ params[0] = (GLfloat)(ctx->Texture.Unit[ctx->Texture.CurrentUnit].CurrentTex[TEXTURE_CUBE_INDEX]->Name);
+ break;
+ case GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB:
+ params[0] = (GLfloat)((1 << (ctx->Const.MaxCubeTextureLevels - 1)));
+ break;
+ case GL_BLEND_SRC_RGB_EXT:
+ params[0] = ENUM_TO_FLOAT(ctx->Color.BlendSrcRGB);
+ break;
+ case GL_BLEND_DST_RGB_EXT:
+ params[0] = ENUM_TO_FLOAT(ctx->Color.BlendDstRGB);
+ break;
+ case GL_BLEND_SRC_ALPHA_EXT:
+ params[0] = ENUM_TO_FLOAT(ctx->Color.BlendSrcA);
+ break;
+ case GL_BLEND_DST_ALPHA_EXT:
+ params[0] = ENUM_TO_FLOAT(ctx->Color.BlendDstA);
+ break;
+ case GL_BLEND_EQUATION:
+ params[0] = ENUM_TO_FLOAT(ctx->Color.BlendEquationRGB );
+ break;
+ case GL_BLEND_EQUATION_ALPHA_EXT:
+ params[0] = ENUM_TO_FLOAT(ctx->Color.BlendEquationA );
+ break;
+ case GL_SAMPLE_ALPHA_TO_COVERAGE_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetFloatv");
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Multisample.SampleAlphaToCoverage);
+ break;
+ case GL_SAMPLE_COVERAGE_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetFloatv");
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Multisample.SampleCoverage);
+ break;
+ case GL_SAMPLE_COVERAGE_VALUE_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetFloatv");
+ params[0] = ctx->Multisample.SampleCoverageValue;
+ break;
+ case GL_SAMPLE_COVERAGE_INVERT_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetFloatv");
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Multisample.SampleCoverageInvert);
+ break;
+ case GL_SAMPLE_BUFFERS_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetFloatv");
+ params[0] = (GLfloat)(ctx->DrawBuffer->Visual.sampleBuffers);
+ break;
+ case GL_SAMPLES_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetFloatv");
+ params[0] = (GLfloat)(ctx->DrawBuffer->Visual.samples);
+ break;
+ case GL_GENERATE_MIPMAP_HINT_SGIS:
+ CHECK_EXT1(SGIS_generate_mipmap, "_mesa_GetFloatv");
+ params[0] = ENUM_TO_FLOAT(ctx->Hint.GenerateMipmap);
+ break;
+ case GL_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetFloatv");
+ params[0] = (GLfloat)(ctx->Array.ArrayBufferObj->Name);
+ break;
+ case GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetFloatv");
+ params[0] = (GLfloat)(ctx->Array.ElementArrayBufferObj->Name);
+ break;
+ case GL_IMPLEMENTATION_COLOR_READ_TYPE_OES:
+ params[0] = (GLfloat)(ctx->Const.ColorReadType);
+ break;
+ case GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES:
+ params[0] = (GLfloat)(ctx->Const.ColorReadFormat);
+ break;
+ case GL_FRAMEBUFFER_BINDING_EXT:
+ params[0] = (GLfloat)(ctx->DrawBuffer->Name);
+ break;
+ case GL_RENDERBUFFER_BINDING_EXT:
+ params[0] = (GLfloat)(ctx->CurrentRenderbuffer ? ctx->CurrentRenderbuffer->Name : 0);
+ break;
+ case GL_MAX_RENDERBUFFER_SIZE_EXT:
+ params[0] = (GLfloat)(ctx->Const.MaxRenderbufferSize);
+ break;
+ case GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB:
+ params[0] = (GLfloat)(ARRAY_SIZE(compressed_formats));
+ break;
+ case GL_COMPRESSED_TEXTURE_FORMATS_ARB:
+ {
+
+ int i;
+ for (i = 0; i < ARRAY_SIZE(compressed_formats); i++) {
+ params[i] = compressed_formats[i];
+ }
+ }
+ break;
+ case GL_POLYGON_OFFSET_FILL:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Polygon.OffsetFill);
+ break;
+ case GL_MAX_LIGHTS:
+ params[0] = (GLfloat)(ctx->Const.MaxLights);
+ break;
+ case GL_LIGHT0:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Light.Light[0].Enabled);
+ break;
+ case GL_LIGHT1:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Light.Light[1].Enabled);
+ break;
+ case GL_LIGHT2:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Light.Light[2].Enabled);
+ break;
+ case GL_LIGHT3:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Light.Light[3].Enabled);
+ break;
+ case GL_LIGHT4:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Light.Light[4].Enabled);
+ break;
+ case GL_LIGHT5:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Light.Light[5].Enabled);
+ break;
+ case GL_LIGHT6:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Light.Light[6].Enabled);
+ break;
+ case GL_LIGHT7:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Light.Light[7].Enabled);
+ break;
+ case GL_LIGHTING:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Light.Enabled);
+ break;
+ case GL_LIGHT_MODEL_AMBIENT:
+ params[0] = ctx->Light.Model.Ambient[0];
+ params[1] = ctx->Light.Model.Ambient[1];
+ params[2] = ctx->Light.Model.Ambient[2];
+ params[3] = ctx->Light.Model.Ambient[3];
+ break;
+ case GL_LIGHT_MODEL_TWO_SIDE:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Light.Model.TwoSide);
+ break;
+ case GL_ALPHA_TEST:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Color.AlphaEnabled);
+ break;
+ case GL_ALPHA_TEST_FUNC:
+ params[0] = ENUM_TO_FLOAT(ctx->Color.AlphaFunc);
+ break;
+ case GL_ALPHA_TEST_REF:
+ params[0] = ctx->Color.AlphaRef;
+ break;
+ case GL_BLEND_DST:
+ params[0] = ENUM_TO_FLOAT(ctx->Color.BlendDstRGB);
+ break;
+ case GL_MAX_CLIP_PLANES:
+ params[0] = (GLfloat)(ctx->Const.MaxClipPlanes);
+ break;
+ case GL_CLIP_PLANE0:
+ params[0] = BOOLEAN_TO_FLOAT((ctx->Transform.ClipPlanesEnabled >> 0) & 1);
+ break;
+ case GL_CLIP_PLANE1:
+ params[0] = BOOLEAN_TO_FLOAT((ctx->Transform.ClipPlanesEnabled >> 1) & 1);
+ break;
+ case GL_CLIP_PLANE2:
+ params[0] = BOOLEAN_TO_FLOAT((ctx->Transform.ClipPlanesEnabled >> 2) & 1);
+ break;
+ case GL_CLIP_PLANE3:
+ params[0] = BOOLEAN_TO_FLOAT((ctx->Transform.ClipPlanesEnabled >> 3) & 1);
+ break;
+ case GL_CLIP_PLANE4:
+ params[0] = BOOLEAN_TO_FLOAT((ctx->Transform.ClipPlanesEnabled >> 4) & 1);
+ break;
+ case GL_CLIP_PLANE5:
+ params[0] = BOOLEAN_TO_FLOAT((ctx->Transform.ClipPlanesEnabled >> 5) & 1);
+ break;
+ case GL_COLOR_MATERIAL:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Light.ColorMaterialEnabled);
+ break;
+ case GL_CURRENT_COLOR:
+ {
+ FLUSH_CURRENT(ctx, 0);
+ params[0] = ctx->Current.Attrib[VERT_ATTRIB_COLOR0][0];
+ params[1] = ctx->Current.Attrib[VERT_ATTRIB_COLOR0][1];
+ params[2] = ctx->Current.Attrib[VERT_ATTRIB_COLOR0][2];
+ params[3] = ctx->Current.Attrib[VERT_ATTRIB_COLOR0][3];
+ }
+ break;
+ case GL_CURRENT_NORMAL:
+ {
+ FLUSH_CURRENT(ctx, 0);
+ params[0] = ctx->Current.Attrib[VERT_ATTRIB_NORMAL][0];
+ params[1] = ctx->Current.Attrib[VERT_ATTRIB_NORMAL][1];
+ params[2] = ctx->Current.Attrib[VERT_ATTRIB_NORMAL][2];
+ }
+ break;
+ case GL_CURRENT_TEXTURE_COORDS:
+ {
+ const GLuint texUnit = ctx->Texture.CurrentUnit;
+ params[0] = ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][0];
+ params[1] = ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][1];
+ params[2] = ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][2];
+ params[3] = ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][3];
+ }
+ break;
+ case GL_DISTANCE_ATTENUATION_EXT:
+ params[0] = ctx->Point.Params[0];
+ params[1] = ctx->Point.Params[1];
+ params[2] = ctx->Point.Params[2];
+ break;
+ case GL_FOG:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Fog.Enabled);
+ break;
+ case GL_FOG_COLOR:
+ params[0] = ctx->Fog.Color[0];
+ params[1] = ctx->Fog.Color[1];
+ params[2] = ctx->Fog.Color[2];
+ params[3] = ctx->Fog.Color[3];
+ break;
+ case GL_FOG_DENSITY:
+ params[0] = ctx->Fog.Density;
+ break;
+ case GL_FOG_END:
+ params[0] = ctx->Fog.End;
+ break;
+ case GL_FOG_HINT:
+ params[0] = ENUM_TO_FLOAT(ctx->Hint.Fog);
+ break;
+ case GL_FOG_MODE:
+ params[0] = ENUM_TO_FLOAT(ctx->Fog.Mode);
+ break;
+ case GL_FOG_START:
+ params[0] = ctx->Fog.Start;
+ break;
+ case GL_LINE_SMOOTH:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Line.SmoothFlag);
+ break;
+ case GL_LINE_SMOOTH_HINT:
+ params[0] = ENUM_TO_FLOAT(ctx->Hint.LineSmooth);
+ break;
+ case GL_LINE_WIDTH_RANGE:
+ params[0] = ctx->Const.MinLineWidthAA;
+ params[1] = ctx->Const.MaxLineWidthAA;
+ break;
+ case GL_COLOR_LOGIC_OP:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Color.ColorLogicOpEnabled);
+ break;
+ case GL_LOGIC_OP_MODE:
+ params[0] = ENUM_TO_FLOAT(ctx->Color.LogicOp);
+ break;
+ case GL_MATRIX_MODE:
+ params[0] = ENUM_TO_FLOAT(ctx->Transform.MatrixMode);
+ break;
+ case GL_MAX_MODELVIEW_STACK_DEPTH:
+ params[0] = (GLfloat)(MAX_MODELVIEW_STACK_DEPTH);
+ break;
+ case GL_MAX_PROJECTION_STACK_DEPTH:
+ params[0] = (GLfloat)(MAX_PROJECTION_STACK_DEPTH);
+ break;
+ case GL_MAX_TEXTURE_STACK_DEPTH:
+ params[0] = (GLfloat)(MAX_TEXTURE_STACK_DEPTH);
+ break;
+ case GL_MODELVIEW_MATRIX:
+ {
+ const GLfloat *matrix = ctx->ModelviewMatrixStack.Top->m;
+ params[0] = matrix[0];
+ params[1] = matrix[1];
+ params[2] = matrix[2];
+ params[3] = matrix[3];
+ params[4] = matrix[4];
+ params[5] = matrix[5];
+ params[6] = matrix[6];
+ params[7] = matrix[7];
+ params[8] = matrix[8];
+ params[9] = matrix[9];
+ params[10] = matrix[10];
+ params[11] = matrix[11];
+ params[12] = matrix[12];
+ params[13] = matrix[13];
+ params[14] = matrix[14];
+ params[15] = matrix[15];
+ }
+ break;
+ case GL_MODELVIEW_STACK_DEPTH:
+ params[0] = (GLfloat)(ctx->ModelviewMatrixStack.Depth + 1);
+ break;
+ case GL_NORMALIZE:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Transform.Normalize);
+ break;
+ case GL_PACK_SKIP_IMAGES_EXT:
+ params[0] = (GLfloat)(ctx->Pack.SkipImages);
+ break;
+ case GL_PERSPECTIVE_CORRECTION_HINT:
+ params[0] = ENUM_TO_FLOAT(ctx->Hint.PerspectiveCorrection);
+ break;
+ case GL_POINT_SIZE:
+ params[0] = ctx->Point.Size;
+ break;
+ case GL_POINT_SIZE_RANGE:
+ params[0] = ctx->Const.MinPointSizeAA;
+ params[1] = ctx->Const.MaxPointSizeAA;
+ break;
+ case GL_POINT_SMOOTH:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Point.SmoothFlag);
+ break;
+ case GL_POINT_SMOOTH_HINT:
+ params[0] = ENUM_TO_FLOAT(ctx->Hint.PointSmooth);
+ break;
+ case GL_POINT_SIZE_MIN_EXT:
+ params[0] = ctx->Point.MinSize;
+ break;
+ case GL_POINT_SIZE_MAX_EXT:
+ params[0] = ctx->Point.MaxSize;
+ break;
+ case GL_POINT_FADE_THRESHOLD_SIZE_EXT:
+ params[0] = ctx->Point.Threshold;
+ break;
+ case GL_PROJECTION_MATRIX:
+ {
+ const GLfloat *matrix = ctx->ProjectionMatrixStack.Top->m;
+ params[0] = matrix[0];
+ params[1] = matrix[1];
+ params[2] = matrix[2];
+ params[3] = matrix[3];
+ params[4] = matrix[4];
+ params[5] = matrix[5];
+ params[6] = matrix[6];
+ params[7] = matrix[7];
+ params[8] = matrix[8];
+ params[9] = matrix[9];
+ params[10] = matrix[10];
+ params[11] = matrix[11];
+ params[12] = matrix[12];
+ params[13] = matrix[13];
+ params[14] = matrix[14];
+ params[15] = matrix[15];
+ }
+ break;
+ case GL_PROJECTION_STACK_DEPTH:
+ params[0] = (GLfloat)(ctx->ProjectionMatrixStack.Depth + 1);
+ break;
+ case GL_RESCALE_NORMAL:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Transform.RescaleNormals);
+ break;
+ case GL_SHADE_MODEL:
+ params[0] = ENUM_TO_FLOAT(ctx->Light.ShadeModel);
+ break;
+ case GL_TEXTURE_2D:
+ params[0] = BOOLEAN_TO_FLOAT(_mesa_IsEnabled(GL_TEXTURE_2D));
+ break;
+ case GL_TEXTURE_MATRIX:
+ {
+ const GLfloat *matrix = ctx->TextureMatrixStack[ctx->Texture.CurrentUnit].Top->m;
+ params[0] = matrix[0];
+ params[1] = matrix[1];
+ params[2] = matrix[2];
+ params[3] = matrix[3];
+ params[4] = matrix[4];
+ params[5] = matrix[5];
+ params[6] = matrix[6];
+ params[7] = matrix[7];
+ params[8] = matrix[8];
+ params[9] = matrix[9];
+ params[10] = matrix[10];
+ params[11] = matrix[11];
+ params[12] = matrix[12];
+ params[13] = matrix[13];
+ params[14] = matrix[14];
+ params[15] = matrix[15];
+ }
+ break;
+ case GL_TEXTURE_STACK_DEPTH:
+ params[0] = (GLfloat)(ctx->TextureMatrixStack[ctx->Texture.CurrentUnit].Depth + 1);
+ break;
+ case GL_VERTEX_ARRAY:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Array.ArrayObj->Vertex.Enabled);
+ break;
+ case GL_VERTEX_ARRAY_SIZE:
+ params[0] = (GLfloat)(ctx->Array.ArrayObj->Vertex.Size);
+ break;
+ case GL_VERTEX_ARRAY_TYPE:
+ params[0] = ENUM_TO_FLOAT(ctx->Array.ArrayObj->Vertex.Type);
+ break;
+ case GL_VERTEX_ARRAY_STRIDE:
+ params[0] = (GLfloat)(ctx->Array.ArrayObj->Vertex.Stride);
+ break;
+ case GL_NORMAL_ARRAY:
+ params[0] = ENUM_TO_FLOAT(ctx->Array.ArrayObj->Normal.Enabled);
+ break;
+ case GL_NORMAL_ARRAY_TYPE:
+ params[0] = ENUM_TO_FLOAT(ctx->Array.ArrayObj->Normal.Type);
+ break;
+ case GL_NORMAL_ARRAY_STRIDE:
+ params[0] = (GLfloat)(ctx->Array.ArrayObj->Normal.Stride);
+ break;
+ case GL_COLOR_ARRAY:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Array.ArrayObj->Color.Enabled);
+ break;
+ case GL_COLOR_ARRAY_SIZE:
+ params[0] = (GLfloat)(ctx->Array.ArrayObj->Color.Size);
+ break;
+ case GL_COLOR_ARRAY_TYPE:
+ params[0] = ENUM_TO_FLOAT(ctx->Array.ArrayObj->Color.Type);
+ break;
+ case GL_COLOR_ARRAY_STRIDE:
+ params[0] = (GLfloat)(ctx->Array.ArrayObj->Color.Stride);
+ break;
+ case GL_TEXTURE_COORD_ARRAY:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].Enabled);
+ break;
+ case GL_TEXTURE_COORD_ARRAY_SIZE:
+ params[0] = (GLfloat)(ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].Size);
+ break;
+ case GL_TEXTURE_COORD_ARRAY_TYPE:
+ params[0] = ENUM_TO_FLOAT(ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].Type);
+ break;
+ case GL_TEXTURE_COORD_ARRAY_STRIDE:
+ params[0] = (GLfloat)(ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].Stride);
+ break;
+ case GL_MAX_TEXTURE_UNITS_ARB:
+ CHECK_EXT1(ARB_multitexture, "_mesa_GetFloatv");
+ params[0] = (GLfloat)(ctx->Const.MaxTextureUnits);
+ break;
+ case GL_CLIENT_ACTIVE_TEXTURE_ARB:
+ CHECK_EXT1(ARB_multitexture, "_mesa_GetFloatv");
+ params[0] = (GLfloat)(GL_TEXTURE0_ARB + ctx->Array.ActiveTexture);
+ break;
+ case GL_TEXTURE_CUBE_MAP_ARB:
+ params[0] = BOOLEAN_TO_FLOAT(_mesa_IsEnabled(GL_TEXTURE_CUBE_MAP_ARB));
+ break;
+ case GL_TEXTURE_GEN_S:
+ params[0] = BOOLEAN_TO_FLOAT(((ctx->Texture.Unit[ctx->Texture.CurrentUnit].TexGenEnabled & S_BIT) ? 1 : 0));
+ break;
+ case GL_TEXTURE_GEN_T:
+ params[0] = BOOLEAN_TO_FLOAT(((ctx->Texture.Unit[ctx->Texture.CurrentUnit].TexGenEnabled & T_BIT) ? 1 : 0));
+ break;
+ case GL_TEXTURE_GEN_R:
+ params[0] = BOOLEAN_TO_FLOAT(((ctx->Texture.Unit[ctx->Texture.CurrentUnit].TexGenEnabled & R_BIT) ? 1 : 0));
+ break;
+ case GL_MULTISAMPLE_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetFloatv");
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Multisample.Enabled);
+ break;
+ case GL_SAMPLE_ALPHA_TO_ONE_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetFloatv");
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Multisample.SampleAlphaToOne);
+ break;
+ case GL_VERTEX_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetFloatv");
+ params[0] = (GLfloat)(ctx->Array.ArrayObj->Vertex.BufferObj->Name);
+ break;
+ case GL_NORMAL_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetFloatv");
+ params[0] = (GLfloat)(ctx->Array.ArrayObj->Normal.BufferObj->Name);
+ break;
+ case GL_COLOR_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetFloatv");
+ params[0] = (GLfloat)(ctx->Array.ArrayObj->Color.BufferObj->Name);
+ break;
+ case GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetFloatv");
+ params[0] = (GLfloat)(ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].BufferObj->Name);
+ break;
+ case GL_POINT_SPRITE_NV:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Point.PointSprite);
+ break;
+ case GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB:
+ CHECK_EXT1(ARB_fragment_shader, "_mesa_GetFloatv");
+ params[0] = (GLfloat)(ctx->Const.FragmentProgram.MaxUniformComponents);
+ break;
+ case GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB:
+ CHECK_EXT1(ARB_vertex_shader, "_mesa_GetFloatv");
+ params[0] = (GLfloat)(ctx->Const.VertexProgram.MaxUniformComponents);
+ break;
+ case GL_MAX_VARYING_FLOATS_ARB:
+ CHECK_EXT1(ARB_vertex_shader, "_mesa_GetFloatv");
+ params[0] = (GLfloat)(ctx->Const.MaxVarying * 4);
+ break;
+ case GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES:
+ {
+
+ /* See GL_OES_matrix_get */
+ {
+ const GLfloat *matrix = ctx->ModelviewMatrixStack.Top->m;
+ memcpy(params, matrix, 16 * sizeof(GLint));
+ }
+ }
+ break;
+ case GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES:
+ {
+
+ /* See GL_OES_matrix_get */
+ {
+ const GLfloat *matrix = ctx->ProjectionMatrixStack.Top->m;
+ memcpy(params, matrix, 16 * sizeof(GLint));
+ }
+ }
+ break;
+ case GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES:
+ {
+
+ /* See GL_OES_matrix_get */
+ {
+ const GLfloat *matrix =
+ ctx->TextureMatrixStack[ctx->Texture.CurrentUnit].Top->m;
+ memcpy(params, matrix, 16 * sizeof(GLint));
+ }
+ }
+ break;
+ case GL_POINT_SIZE_ARRAY_OES:
+ params[0] = BOOLEAN_TO_FLOAT(ctx->Array.ArrayObj->PointSize.Enabled);
+ break;
+ case GL_POINT_SIZE_ARRAY_TYPE_OES:
+ params[0] = ENUM_TO_FLOAT(ctx->Array.ArrayObj->PointSize.Type);
+ break;
+ case GL_POINT_SIZE_ARRAY_STRIDE_OES:
+ params[0] = (GLfloat)(ctx->Array.ArrayObj->PointSize.Stride);
+ break;
+ case GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES:
+ params[0] = (GLfloat)(ctx->Array.ArrayObj->PointSize.BufferObj->Name);
+ break;
+ case GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT:
+ CHECK_EXT1(EXT_texture_filter_anisotropic, "_mesa_GetFloatv");
+ params[0] = ctx->Const.MaxTextureMaxAnisotropy;
+ break;
+ default:
+ _mesa_error(ctx, GL_INVALID_ENUM, "gl_mesa_GetFloatv(pname=0x%x)", pname);
+ }
+}
+
+void GLAPIENTRY
+_mesa_GetIntegerv( GLenum pname, GLint *params )
+{
+ GET_CURRENT_CONTEXT(ctx);
+ ASSERT_OUTSIDE_BEGIN_END(ctx);
+
+ if (!params)
+ return;
+
+ if (ctx->NewState)
+ _mesa_update_state(ctx);
+
+ switch (pname) {
+ case GL_ALPHA_BITS:
+ params[0] = ctx->DrawBuffer->Visual.alphaBits;
+ break;
+ case GL_BLEND:
+ params[0] = BOOLEAN_TO_INT(ctx->Color.BlendEnabled);
+ break;
+ case GL_BLEND_SRC:
+ params[0] = ENUM_TO_INT(ctx->Color.BlendSrcRGB);
+ break;
+ case GL_BLUE_BITS:
+ params[0] = ctx->DrawBuffer->Visual.blueBits;
+ break;
+ case GL_COLOR_CLEAR_VALUE:
+ params[0] = FLOAT_TO_INT(ctx->Color.ClearColor[0]);
+ params[1] = FLOAT_TO_INT(ctx->Color.ClearColor[1]);
+ params[2] = FLOAT_TO_INT(ctx->Color.ClearColor[2]);
+ params[3] = FLOAT_TO_INT(ctx->Color.ClearColor[3]);
+ break;
+ case GL_COLOR_WRITEMASK:
+ params[0] = ctx->Color.ColorMask[RCOMP] ? 1 : 0;
+ params[1] = ctx->Color.ColorMask[GCOMP] ? 1 : 0;
+ params[2] = ctx->Color.ColorMask[BCOMP] ? 1 : 0;
+ params[3] = ctx->Color.ColorMask[ACOMP] ? 1 : 0;
+ break;
+ case GL_CULL_FACE:
+ params[0] = BOOLEAN_TO_INT(ctx->Polygon.CullFlag);
+ break;
+ case GL_CULL_FACE_MODE:
+ params[0] = ENUM_TO_INT(ctx->Polygon.CullFaceMode);
+ break;
+ case GL_DEPTH_BITS:
+ params[0] = ctx->DrawBuffer->Visual.depthBits;
+ break;
+ case GL_DEPTH_CLEAR_VALUE:
+ params[0] = FLOAT_TO_INT(ctx->Depth.Clear);
+ break;
+ case GL_DEPTH_FUNC:
+ params[0] = ENUM_TO_INT(ctx->Depth.Func);
+ break;
+ case GL_DEPTH_RANGE:
+ params[0] = FLOAT_TO_INT(ctx->Viewport.Near);
+ params[1] = FLOAT_TO_INT(ctx->Viewport.Far);
+ break;
+ case GL_DEPTH_TEST:
+ params[0] = BOOLEAN_TO_INT(ctx->Depth.Test);
+ break;
+ case GL_DEPTH_WRITEMASK:
+ params[0] = BOOLEAN_TO_INT(ctx->Depth.Mask);
+ break;
+ case GL_DITHER:
+ params[0] = BOOLEAN_TO_INT(ctx->Color.DitherFlag);
+ break;
+ case GL_FRONT_FACE:
+ params[0] = ENUM_TO_INT(ctx->Polygon.FrontFace);
+ break;
+ case GL_GREEN_BITS:
+ params[0] = ctx->DrawBuffer->Visual.greenBits;
+ break;
+ case GL_LINE_WIDTH:
+ params[0] = IROUND(ctx->Line.Width);
+ break;
+ case GL_ALIASED_LINE_WIDTH_RANGE:
+ params[0] = IROUND(ctx->Const.MinLineWidth);
+ params[1] = IROUND(ctx->Const.MaxLineWidth);
+ break;
+ case GL_MAX_ELEMENTS_INDICES:
+ params[0] = ctx->Const.MaxArrayLockSize;
+ break;
+ case GL_MAX_ELEMENTS_VERTICES:
+ params[0] = ctx->Const.MaxArrayLockSize;
+ break;
+ case GL_MAX_TEXTURE_SIZE:
+ params[0] = 1 << (ctx->Const.MaxTextureLevels - 1);
+ break;
+ case GL_MAX_VIEWPORT_DIMS:
+ params[0] = ctx->Const.MaxViewportWidth;
+ params[1] = ctx->Const.MaxViewportHeight;
+ break;
+ case GL_PACK_ALIGNMENT:
+ params[0] = ctx->Pack.Alignment;
+ break;
+ case GL_ALIASED_POINT_SIZE_RANGE:
+ params[0] = IROUND(ctx->Const.MinPointSize);
+ params[1] = IROUND(ctx->Const.MaxPointSize);
+ break;
+ case GL_POLYGON_OFFSET_FACTOR:
+ params[0] = IROUND(ctx->Polygon.OffsetFactor );
+ break;
+ case GL_POLYGON_OFFSET_UNITS:
+ params[0] = IROUND(ctx->Polygon.OffsetUnits );
+ break;
+ case GL_RED_BITS:
+ params[0] = ctx->DrawBuffer->Visual.redBits;
+ break;
+ case GL_SCISSOR_BOX:
+ params[0] = ctx->Scissor.X;
+ params[1] = ctx->Scissor.Y;
+ params[2] = ctx->Scissor.Width;
+ params[3] = ctx->Scissor.Height;
+ break;
+ case GL_SCISSOR_TEST:
+ params[0] = BOOLEAN_TO_INT(ctx->Scissor.Enabled);
+ break;
+ case GL_STENCIL_BITS:
+ params[0] = ctx->DrawBuffer->Visual.stencilBits;
+ break;
+ case GL_STENCIL_CLEAR_VALUE:
+ params[0] = ctx->Stencil.Clear;
+ break;
+ case GL_STENCIL_FAIL:
+ params[0] = ENUM_TO_INT(ctx->Stencil.FailFunc[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_FUNC:
+ params[0] = ENUM_TO_INT(ctx->Stencil.Function[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_PASS_DEPTH_FAIL:
+ params[0] = ENUM_TO_INT(ctx->Stencil.ZFailFunc[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_PASS_DEPTH_PASS:
+ params[0] = ENUM_TO_INT(ctx->Stencil.ZPassFunc[ctx->Stencil.ActiveFace]);
+ break;
+ case GL_STENCIL_REF:
+ params[0] = ctx->Stencil.Ref[ctx->Stencil.ActiveFace];
+ break;
+ case GL_STENCIL_TEST:
+ params[0] = BOOLEAN_TO_INT(ctx->Stencil.Enabled);
+ break;
+ case GL_STENCIL_VALUE_MASK:
+ params[0] = ctx->Stencil.ValueMask[ctx->Stencil.ActiveFace];
+ break;
+ case GL_STENCIL_WRITEMASK:
+ params[0] = ctx->Stencil.WriteMask[ctx->Stencil.ActiveFace];
+ break;
+ case GL_SUBPIXEL_BITS:
+ params[0] = ctx->Const.SubPixelBits;
+ break;
+ case GL_TEXTURE_BINDING_2D:
+ params[0] = ctx->Texture.Unit[ctx->Texture.CurrentUnit].CurrentTex[TEXTURE_2D_INDEX]->Name;
+ break;
+ case GL_UNPACK_ALIGNMENT:
+ params[0] = ctx->Unpack.Alignment;
+ break;
+ case GL_VIEWPORT:
+ params[0] = ctx->Viewport.X;
+ params[1] = ctx->Viewport.Y;
+ params[2] = ctx->Viewport.Width;
+ params[3] = ctx->Viewport.Height;
+ break;
+ case GL_ACTIVE_TEXTURE_ARB:
+ CHECK_EXT1(ARB_multitexture, "_mesa_GetIntegerv");
+ params[0] = GL_TEXTURE0_ARB + ctx->Texture.CurrentUnit;
+ break;
+ case GL_TEXTURE_BINDING_CUBE_MAP_ARB:
+ params[0] = ctx->Texture.Unit[ctx->Texture.CurrentUnit].CurrentTex[TEXTURE_CUBE_INDEX]->Name;
+ break;
+ case GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB:
+ params[0] = (1 << (ctx->Const.MaxCubeTextureLevels - 1));
+ break;
+ case GL_BLEND_SRC_RGB_EXT:
+ params[0] = ENUM_TO_INT(ctx->Color.BlendSrcRGB);
+ break;
+ case GL_BLEND_DST_RGB_EXT:
+ params[0] = ENUM_TO_INT(ctx->Color.BlendDstRGB);
+ break;
+ case GL_BLEND_SRC_ALPHA_EXT:
+ params[0] = ENUM_TO_INT(ctx->Color.BlendSrcA);
+ break;
+ case GL_BLEND_DST_ALPHA_EXT:
+ params[0] = ENUM_TO_INT(ctx->Color.BlendDstA);
+ break;
+ case GL_BLEND_EQUATION:
+ params[0] = ENUM_TO_INT(ctx->Color.BlendEquationRGB );
+ break;
+ case GL_BLEND_EQUATION_ALPHA_EXT:
+ params[0] = ENUM_TO_INT(ctx->Color.BlendEquationA );
+ break;
+ case GL_SAMPLE_ALPHA_TO_COVERAGE_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetIntegerv");
+ params[0] = BOOLEAN_TO_INT(ctx->Multisample.SampleAlphaToCoverage);
+ break;
+ case GL_SAMPLE_COVERAGE_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetIntegerv");
+ params[0] = BOOLEAN_TO_INT(ctx->Multisample.SampleCoverage);
+ break;
+ case GL_SAMPLE_COVERAGE_VALUE_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetIntegerv");
+ params[0] = IROUND(ctx->Multisample.SampleCoverageValue);
+ break;
+ case GL_SAMPLE_COVERAGE_INVERT_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetIntegerv");
+ params[0] = BOOLEAN_TO_INT(ctx->Multisample.SampleCoverageInvert);
+ break;
+ case GL_SAMPLE_BUFFERS_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetIntegerv");
+ params[0] = ctx->DrawBuffer->Visual.sampleBuffers;
+ break;
+ case GL_SAMPLES_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetIntegerv");
+ params[0] = ctx->DrawBuffer->Visual.samples;
+ break;
+ case GL_GENERATE_MIPMAP_HINT_SGIS:
+ CHECK_EXT1(SGIS_generate_mipmap, "_mesa_GetIntegerv");
+ params[0] = ENUM_TO_INT(ctx->Hint.GenerateMipmap);
+ break;
+ case GL_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetIntegerv");
+ params[0] = ctx->Array.ArrayBufferObj->Name;
+ break;
+ case GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetIntegerv");
+ params[0] = ctx->Array.ElementArrayBufferObj->Name;
+ break;
+ case GL_IMPLEMENTATION_COLOR_READ_TYPE_OES:
+ params[0] = ctx->Const.ColorReadType;
+ break;
+ case GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES:
+ params[0] = ctx->Const.ColorReadFormat;
+ break;
+ case GL_FRAMEBUFFER_BINDING_EXT:
+ params[0] = ctx->DrawBuffer->Name;
+ break;
+ case GL_RENDERBUFFER_BINDING_EXT:
+ params[0] = ctx->CurrentRenderbuffer ? ctx->CurrentRenderbuffer->Name : 0;
+ break;
+ case GL_MAX_RENDERBUFFER_SIZE_EXT:
+ params[0] = ctx->Const.MaxRenderbufferSize;
+ break;
+ case GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB:
+ params[0] = ARRAY_SIZE(compressed_formats);
+ break;
+ case GL_COMPRESSED_TEXTURE_FORMATS_ARB:
+ {
+
+ int i;
+ for (i = 0; i < ARRAY_SIZE(compressed_formats); i++) {
+ params[i] = compressed_formats[i];
+ }
+ }
+ break;
+ case GL_POLYGON_OFFSET_FILL:
+ params[0] = BOOLEAN_TO_INT(ctx->Polygon.OffsetFill);
+ break;
+ case GL_MAX_LIGHTS:
+ params[0] = ctx->Const.MaxLights;
+ break;
+ case GL_LIGHT0:
+ params[0] = BOOLEAN_TO_INT(ctx->Light.Light[0].Enabled);
+ break;
+ case GL_LIGHT1:
+ params[0] = BOOLEAN_TO_INT(ctx->Light.Light[1].Enabled);
+ break;
+ case GL_LIGHT2:
+ params[0] = BOOLEAN_TO_INT(ctx->Light.Light[2].Enabled);
+ break;
+ case GL_LIGHT3:
+ params[0] = BOOLEAN_TO_INT(ctx->Light.Light[3].Enabled);
+ break;
+ case GL_LIGHT4:
+ params[0] = BOOLEAN_TO_INT(ctx->Light.Light[4].Enabled);
+ break;
+ case GL_LIGHT5:
+ params[0] = BOOLEAN_TO_INT(ctx->Light.Light[5].Enabled);
+ break;
+ case GL_LIGHT6:
+ params[0] = BOOLEAN_TO_INT(ctx->Light.Light[6].Enabled);
+ break;
+ case GL_LIGHT7:
+ params[0] = BOOLEAN_TO_INT(ctx->Light.Light[7].Enabled);
+ break;
+ case GL_LIGHTING:
+ params[0] = BOOLEAN_TO_INT(ctx->Light.Enabled);
+ break;
+ case GL_LIGHT_MODEL_AMBIENT:
+ params[0] = FLOAT_TO_INT(ctx->Light.Model.Ambient[0]);
+ params[1] = FLOAT_TO_INT(ctx->Light.Model.Ambient[1]);
+ params[2] = FLOAT_TO_INT(ctx->Light.Model.Ambient[2]);
+ params[3] = FLOAT_TO_INT(ctx->Light.Model.Ambient[3]);
+ break;
+ case GL_LIGHT_MODEL_TWO_SIDE:
+ params[0] = BOOLEAN_TO_INT(ctx->Light.Model.TwoSide);
+ break;
+ case GL_ALPHA_TEST:
+ params[0] = BOOLEAN_TO_INT(ctx->Color.AlphaEnabled);
+ break;
+ case GL_ALPHA_TEST_FUNC:
+ params[0] = ENUM_TO_INT(ctx->Color.AlphaFunc);
+ break;
+ case GL_ALPHA_TEST_REF:
+ params[0] = FLOAT_TO_INT(ctx->Color.AlphaRef);
+ break;
+ case GL_BLEND_DST:
+ params[0] = ENUM_TO_INT(ctx->Color.BlendDstRGB);
+ break;
+ case GL_MAX_CLIP_PLANES:
+ params[0] = ctx->Const.MaxClipPlanes;
+ break;
+ case GL_CLIP_PLANE0:
+ params[0] = BOOLEAN_TO_INT((ctx->Transform.ClipPlanesEnabled >> 0) & 1);
+ break;
+ case GL_CLIP_PLANE1:
+ params[0] = BOOLEAN_TO_INT((ctx->Transform.ClipPlanesEnabled >> 1) & 1);
+ break;
+ case GL_CLIP_PLANE2:
+ params[0] = BOOLEAN_TO_INT((ctx->Transform.ClipPlanesEnabled >> 2) & 1);
+ break;
+ case GL_CLIP_PLANE3:
+ params[0] = BOOLEAN_TO_INT((ctx->Transform.ClipPlanesEnabled >> 3) & 1);
+ break;
+ case GL_CLIP_PLANE4:
+ params[0] = BOOLEAN_TO_INT((ctx->Transform.ClipPlanesEnabled >> 4) & 1);
+ break;
+ case GL_CLIP_PLANE5:
+ params[0] = BOOLEAN_TO_INT((ctx->Transform.ClipPlanesEnabled >> 5) & 1);
+ break;
+ case GL_COLOR_MATERIAL:
+ params[0] = BOOLEAN_TO_INT(ctx->Light.ColorMaterialEnabled);
+ break;
+ case GL_CURRENT_COLOR:
+ {
+ FLUSH_CURRENT(ctx, 0);
+ params[0] = FLOAT_TO_INT(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][0]);
+ params[1] = FLOAT_TO_INT(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][1]);
+ params[2] = FLOAT_TO_INT(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][2]);
+ params[3] = FLOAT_TO_INT(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][3]);
+ }
+ break;
+ case GL_CURRENT_NORMAL:
+ {
+ FLUSH_CURRENT(ctx, 0);
+ params[0] = FLOAT_TO_INT(ctx->Current.Attrib[VERT_ATTRIB_NORMAL][0]);
+ params[1] = FLOAT_TO_INT(ctx->Current.Attrib[VERT_ATTRIB_NORMAL][1]);
+ params[2] = FLOAT_TO_INT(ctx->Current.Attrib[VERT_ATTRIB_NORMAL][2]);
+ }
+ break;
+ case GL_CURRENT_TEXTURE_COORDS:
+ {
+ const GLuint texUnit = ctx->Texture.CurrentUnit;
+ params[0] = IROUND(ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][0]);
+ params[1] = IROUND(ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][1]);
+ params[2] = IROUND(ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][2]);
+ params[3] = IROUND(ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][3]);
+ }
+ break;
+ case GL_DISTANCE_ATTENUATION_EXT:
+ params[0] = IROUND(ctx->Point.Params[0]);
+ params[1] = IROUND(ctx->Point.Params[1]);
+ params[2] = IROUND(ctx->Point.Params[2]);
+ break;
+ case GL_FOG:
+ params[0] = BOOLEAN_TO_INT(ctx->Fog.Enabled);
+ break;
+ case GL_FOG_COLOR:
+ params[0] = FLOAT_TO_INT(ctx->Fog.Color[0]);
+ params[1] = FLOAT_TO_INT(ctx->Fog.Color[1]);
+ params[2] = FLOAT_TO_INT(ctx->Fog.Color[2]);
+ params[3] = FLOAT_TO_INT(ctx->Fog.Color[3]);
+ break;
+ case GL_FOG_DENSITY:
+ params[0] = IROUND(ctx->Fog.Density);
+ break;
+ case GL_FOG_END:
+ params[0] = IROUND(ctx->Fog.End);
+ break;
+ case GL_FOG_HINT:
+ params[0] = ENUM_TO_INT(ctx->Hint.Fog);
+ break;
+ case GL_FOG_MODE:
+ params[0] = ENUM_TO_INT(ctx->Fog.Mode);
+ break;
+ case GL_FOG_START:
+ params[0] = IROUND(ctx->Fog.Start);
+ break;
+ case GL_LINE_SMOOTH:
+ params[0] = BOOLEAN_TO_INT(ctx->Line.SmoothFlag);
+ break;
+ case GL_LINE_SMOOTH_HINT:
+ params[0] = ENUM_TO_INT(ctx->Hint.LineSmooth);
+ break;
+ case GL_LINE_WIDTH_RANGE:
+ params[0] = IROUND(ctx->Const.MinLineWidthAA);
+ params[1] = IROUND(ctx->Const.MaxLineWidthAA);
+ break;
+ case GL_COLOR_LOGIC_OP:
+ params[0] = BOOLEAN_TO_INT(ctx->Color.ColorLogicOpEnabled);
+ break;
+ case GL_LOGIC_OP_MODE:
+ params[0] = ENUM_TO_INT(ctx->Color.LogicOp);
+ break;
+ case GL_MATRIX_MODE:
+ params[0] = ENUM_TO_INT(ctx->Transform.MatrixMode);
+ break;
+ case GL_MAX_MODELVIEW_STACK_DEPTH:
+ params[0] = MAX_MODELVIEW_STACK_DEPTH;
+ break;
+ case GL_MAX_PROJECTION_STACK_DEPTH:
+ params[0] = MAX_PROJECTION_STACK_DEPTH;
+ break;
+ case GL_MAX_TEXTURE_STACK_DEPTH:
+ params[0] = MAX_TEXTURE_STACK_DEPTH;
+ break;
+ case GL_MODELVIEW_MATRIX:
+ {
+ const GLfloat *matrix = ctx->ModelviewMatrixStack.Top->m;
+ params[0] = IROUND(matrix[0]);
+ params[1] = IROUND(matrix[1]);
+ params[2] = IROUND(matrix[2]);
+ params[3] = IROUND(matrix[3]);
+ params[4] = IROUND(matrix[4]);
+ params[5] = IROUND(matrix[5]);
+ params[6] = IROUND(matrix[6]);
+ params[7] = IROUND(matrix[7]);
+ params[8] = IROUND(matrix[8]);
+ params[9] = IROUND(matrix[9]);
+ params[10] = IROUND(matrix[10]);
+ params[11] = IROUND(matrix[11]);
+ params[12] = IROUND(matrix[12]);
+ params[13] = IROUND(matrix[13]);
+ params[14] = IROUND(matrix[14]);
+ params[15] = IROUND(matrix[15]);
+ }
+ break;
+ case GL_MODELVIEW_STACK_DEPTH:
+ params[0] = ctx->ModelviewMatrixStack.Depth + 1;
+ break;
+ case GL_NORMALIZE:
+ params[0] = BOOLEAN_TO_INT(ctx->Transform.Normalize);
+ break;
+ case GL_PACK_SKIP_IMAGES_EXT:
+ params[0] = ctx->Pack.SkipImages;
+ break;
+ case GL_PERSPECTIVE_CORRECTION_HINT:
+ params[0] = ENUM_TO_INT(ctx->Hint.PerspectiveCorrection);
+ break;
+ case GL_POINT_SIZE:
+ params[0] = IROUND(ctx->Point.Size);
+ break;
+ case GL_POINT_SIZE_RANGE:
+ params[0] = IROUND(ctx->Const.MinPointSizeAA);
+ params[1] = IROUND(ctx->Const.MaxPointSizeAA);
+ break;
+ case GL_POINT_SMOOTH:
+ params[0] = BOOLEAN_TO_INT(ctx->Point.SmoothFlag);
+ break;
+ case GL_POINT_SMOOTH_HINT:
+ params[0] = ENUM_TO_INT(ctx->Hint.PointSmooth);
+ break;
+ case GL_POINT_SIZE_MIN_EXT:
+ params[0] = IROUND(ctx->Point.MinSize);
+ break;
+ case GL_POINT_SIZE_MAX_EXT:
+ params[0] = IROUND(ctx->Point.MaxSize);
+ break;
+ case GL_POINT_FADE_THRESHOLD_SIZE_EXT:
+ params[0] = IROUND(ctx->Point.Threshold);
+ break;
+ case GL_PROJECTION_MATRIX:
+ {
+ const GLfloat *matrix = ctx->ProjectionMatrixStack.Top->m;
+ params[0] = IROUND(matrix[0]);
+ params[1] = IROUND(matrix[1]);
+ params[2] = IROUND(matrix[2]);
+ params[3] = IROUND(matrix[3]);
+ params[4] = IROUND(matrix[4]);
+ params[5] = IROUND(matrix[5]);
+ params[6] = IROUND(matrix[6]);
+ params[7] = IROUND(matrix[7]);
+ params[8] = IROUND(matrix[8]);
+ params[9] = IROUND(matrix[9]);
+ params[10] = IROUND(matrix[10]);
+ params[11] = IROUND(matrix[11]);
+ params[12] = IROUND(matrix[12]);
+ params[13] = IROUND(matrix[13]);
+ params[14] = IROUND(matrix[14]);
+ params[15] = IROUND(matrix[15]);
+ }
+ break;
+ case GL_PROJECTION_STACK_DEPTH:
+ params[0] = ctx->ProjectionMatrixStack.Depth + 1;
+ break;
+ case GL_RESCALE_NORMAL:
+ params[0] = BOOLEAN_TO_INT(ctx->Transform.RescaleNormals);
+ break;
+ case GL_SHADE_MODEL:
+ params[0] = ENUM_TO_INT(ctx->Light.ShadeModel);
+ break;
+ case GL_TEXTURE_2D:
+ params[0] = BOOLEAN_TO_INT(_mesa_IsEnabled(GL_TEXTURE_2D));
+ break;
+ case GL_TEXTURE_MATRIX:
+ {
+ const GLfloat *matrix = ctx->TextureMatrixStack[ctx->Texture.CurrentUnit].Top->m;
+ params[0] = IROUND(matrix[0]);
+ params[1] = IROUND(matrix[1]);
+ params[2] = IROUND(matrix[2]);
+ params[3] = IROUND(matrix[3]);
+ params[4] = IROUND(matrix[4]);
+ params[5] = IROUND(matrix[5]);
+ params[6] = IROUND(matrix[6]);
+ params[7] = IROUND(matrix[7]);
+ params[8] = IROUND(matrix[8]);
+ params[9] = IROUND(matrix[9]);
+ params[10] = IROUND(matrix[10]);
+ params[11] = IROUND(matrix[11]);
+ params[12] = IROUND(matrix[12]);
+ params[13] = IROUND(matrix[13]);
+ params[14] = IROUND(matrix[14]);
+ params[15] = IROUND(matrix[15]);
+ }
+ break;
+ case GL_TEXTURE_STACK_DEPTH:
+ params[0] = ctx->TextureMatrixStack[ctx->Texture.CurrentUnit].Depth + 1;
+ break;
+ case GL_VERTEX_ARRAY:
+ params[0] = BOOLEAN_TO_INT(ctx->Array.ArrayObj->Vertex.Enabled);
+ break;
+ case GL_VERTEX_ARRAY_SIZE:
+ params[0] = ctx->Array.ArrayObj->Vertex.Size;
+ break;
+ case GL_VERTEX_ARRAY_TYPE:
+ params[0] = ENUM_TO_INT(ctx->Array.ArrayObj->Vertex.Type);
+ break;
+ case GL_VERTEX_ARRAY_STRIDE:
+ params[0] = ctx->Array.ArrayObj->Vertex.Stride;
+ break;
+ case GL_NORMAL_ARRAY:
+ params[0] = ENUM_TO_INT(ctx->Array.ArrayObj->Normal.Enabled);
+ break;
+ case GL_NORMAL_ARRAY_TYPE:
+ params[0] = ENUM_TO_INT(ctx->Array.ArrayObj->Normal.Type);
+ break;
+ case GL_NORMAL_ARRAY_STRIDE:
+ params[0] = ctx->Array.ArrayObj->Normal.Stride;
+ break;
+ case GL_COLOR_ARRAY:
+ params[0] = BOOLEAN_TO_INT(ctx->Array.ArrayObj->Color.Enabled);
+ break;
+ case GL_COLOR_ARRAY_SIZE:
+ params[0] = ctx->Array.ArrayObj->Color.Size;
+ break;
+ case GL_COLOR_ARRAY_TYPE:
+ params[0] = ENUM_TO_INT(ctx->Array.ArrayObj->Color.Type);
+ break;
+ case GL_COLOR_ARRAY_STRIDE:
+ params[0] = ctx->Array.ArrayObj->Color.Stride;
+ break;
+ case GL_TEXTURE_COORD_ARRAY:
+ params[0] = BOOLEAN_TO_INT(ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].Enabled);
+ break;
+ case GL_TEXTURE_COORD_ARRAY_SIZE:
+ params[0] = ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].Size;
+ break;
+ case GL_TEXTURE_COORD_ARRAY_TYPE:
+ params[0] = ENUM_TO_INT(ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].Type);
+ break;
+ case GL_TEXTURE_COORD_ARRAY_STRIDE:
+ params[0] = ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].Stride;
+ break;
+ case GL_MAX_TEXTURE_UNITS_ARB:
+ CHECK_EXT1(ARB_multitexture, "_mesa_GetIntegerv");
+ params[0] = ctx->Const.MaxTextureUnits;
+ break;
+ case GL_CLIENT_ACTIVE_TEXTURE_ARB:
+ CHECK_EXT1(ARB_multitexture, "_mesa_GetIntegerv");
+ params[0] = GL_TEXTURE0_ARB + ctx->Array.ActiveTexture;
+ break;
+ case GL_TEXTURE_CUBE_MAP_ARB:
+ params[0] = BOOLEAN_TO_INT(_mesa_IsEnabled(GL_TEXTURE_CUBE_MAP_ARB));
+ break;
+ case GL_TEXTURE_GEN_S:
+ params[0] = BOOLEAN_TO_INT(((ctx->Texture.Unit[ctx->Texture.CurrentUnit].TexGenEnabled & S_BIT) ? 1 : 0));
+ break;
+ case GL_TEXTURE_GEN_T:
+ params[0] = BOOLEAN_TO_INT(((ctx->Texture.Unit[ctx->Texture.CurrentUnit].TexGenEnabled & T_BIT) ? 1 : 0));
+ break;
+ case GL_TEXTURE_GEN_R:
+ params[0] = BOOLEAN_TO_INT(((ctx->Texture.Unit[ctx->Texture.CurrentUnit].TexGenEnabled & R_BIT) ? 1 : 0));
+ break;
+ case GL_MULTISAMPLE_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetIntegerv");
+ params[0] = BOOLEAN_TO_INT(ctx->Multisample.Enabled);
+ break;
+ case GL_SAMPLE_ALPHA_TO_ONE_ARB:
+ CHECK_EXT1(ARB_multisample, "_mesa_GetIntegerv");
+ params[0] = BOOLEAN_TO_INT(ctx->Multisample.SampleAlphaToOne);
+ break;
+ case GL_VERTEX_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetIntegerv");
+ params[0] = ctx->Array.ArrayObj->Vertex.BufferObj->Name;
+ break;
+ case GL_NORMAL_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetIntegerv");
+ params[0] = ctx->Array.ArrayObj->Normal.BufferObj->Name;
+ break;
+ case GL_COLOR_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetIntegerv");
+ params[0] = ctx->Array.ArrayObj->Color.BufferObj->Name;
+ break;
+ case GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB:
+ CHECK_EXT1(ARB_vertex_buffer_object, "_mesa_GetIntegerv");
+ params[0] = ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].BufferObj->Name;
+ break;
+ case GL_POINT_SPRITE_NV:
+ params[0] = BOOLEAN_TO_INT(ctx->Point.PointSprite);
+ break;
+ case GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB:
+ CHECK_EXT1(ARB_fragment_shader, "_mesa_GetIntegerv");
+ params[0] = ctx->Const.FragmentProgram.MaxUniformComponents;
+ break;
+ case GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB:
+ CHECK_EXT1(ARB_vertex_shader, "_mesa_GetIntegerv");
+ params[0] = ctx->Const.VertexProgram.MaxUniformComponents;
+ break;
+ case GL_MAX_VARYING_FLOATS_ARB:
+ CHECK_EXT1(ARB_vertex_shader, "_mesa_GetIntegerv");
+ params[0] = ctx->Const.MaxVarying * 4;
+ break;
+ case GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES:
+ {
+
+ /* See GL_OES_matrix_get */
+ {
+ const GLfloat *matrix = ctx->ModelviewMatrixStack.Top->m;
+ memcpy(params, matrix, 16 * sizeof(GLint));
+ }
+ }
+ break;
+ case GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES:
+ {
+
+ /* See GL_OES_matrix_get */
+ {
+ const GLfloat *matrix = ctx->ProjectionMatrixStack.Top->m;
+ memcpy(params, matrix, 16 * sizeof(GLint));
+ }
+ }
+ break;
+ case GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES:
+ {
+
+ /* See GL_OES_matrix_get */
+ {
+ const GLfloat *matrix =
+ ctx->TextureMatrixStack[ctx->Texture.CurrentUnit].Top->m;
+ memcpy(params, matrix, 16 * sizeof(GLint));
+ }
+ }
+ break;
+ case GL_POINT_SIZE_ARRAY_OES:
+ params[0] = BOOLEAN_TO_INT(ctx->Array.ArrayObj->PointSize.Enabled);
+ break;
+ case GL_POINT_SIZE_ARRAY_TYPE_OES:
+ params[0] = ENUM_TO_INT(ctx->Array.ArrayObj->PointSize.Type);
+ break;
+ case GL_POINT_SIZE_ARRAY_STRIDE_OES:
+ params[0] = ctx->Array.ArrayObj->PointSize.Stride;
+ break;
+ case GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES:
+ params[0] = ctx->Array.ArrayObj->PointSize.BufferObj->Name;
+ break;
+ case GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT:
+ CHECK_EXT1(EXT_texture_filter_anisotropic, "_mesa_GetIntegerv");
+ params[0] = IROUND(ctx->Const.MaxTextureMaxAnisotropy);
+ break;
+ default:
+ _mesa_error(ctx, GL_INVALID_ENUM, "gl_mesa_GetIntegerv(pname=0x%x)", pname);
+ }
+}
+