diff options
author | Dan Gudmundsson <[email protected]> | 2012-02-09 12:18:34 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2012-02-16 15:52:17 +0100 |
commit | f4060823a4141740608ab1efbdf1072fec436076 (patch) | |
tree | 7dd324204e36c5962c9584cd1b7293b58c73233d /lib/wx/c_src/gen | |
parent | c1aca0c5ef53a97fa353dede5516a6f1e0e044a4 (diff) | |
download | otp-f4060823a4141740608ab1efbdf1072fec436076.tar.gz otp-f4060823a4141740608ab1efbdf1072fec436076.tar.bz2 otp-f4060823a4141740608ab1efbdf1072fec436076.zip |
[wx] Generate GL api from latest version
- Remove edoc types in gl
- Add OpenGL documentation
Diffstat (limited to 'lib/wx/c_src/gen')
-rw-r--r-- | lib/wx/c_src/gen/gl_fdefs.h | 886 | ||||
-rw-r--r-- | lib/wx/c_src/gen/gl_finit.h | 456 | ||||
-rw-r--r-- | lib/wx/c_src/gen/gl_funcs.cpp | 2832 | ||||
-rw-r--r-- | lib/wx/c_src/gen/glu_finit.h | 2 |
4 files changed, 2146 insertions, 2030 deletions
diff --git a/lib/wx/c_src/gen/gl_fdefs.h b/lib/wx/c_src/gen/gl_fdefs.h index a45896d30d..3e742724aa 100644 --- a/lib/wx/c_src/gen/gl_fdefs.h +++ b/lib/wx/c_src/gen/gl_fdefs.h @@ -1,7 +1,7 @@ /* * %CopyrightBegin% * - * Copyright Ericsson AB 2008-2010. All Rights Reserved. + * Copyright Ericsson AB 2008-2012. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in @@ -31,308 +31,180 @@ typedef struct { } gl_fns_t; #define GLE_GL_FUNC_START 5037 -typedef void (APIENTRY * WXEGLACCUM)(GLenum,GLfloat); -WXE_EXTERN WXEGLACCUM weglAccum; -typedef void (APIENTRY * WXEGLALPHAFUNC)(GLenum,GLclampf); -WXE_EXTERN WXEGLALPHAFUNC weglAlphaFunc; -typedef GLboolean (APIENTRY * WXEGLARETEXTURESRESIDENT)(GLsizei,const GLuint *,GLboolean *); -WXE_EXTERN WXEGLARETEXTURESRESIDENT weglAreTexturesResident; -typedef void (APIENTRY * WXEGLARRAYELEMENT)(GLint); -WXE_EXTERN WXEGLARRAYELEMENT weglArrayElement; -typedef void (APIENTRY * WXEGLBEGIN)(GLenum); -WXE_EXTERN WXEGLBEGIN weglBegin; -typedef void (APIENTRY * WXEGLBINDTEXTURE)(GLenum,GLuint); -WXE_EXTERN WXEGLBINDTEXTURE weglBindTexture; -typedef void (APIENTRY * WXEGLBITMAP)(GLsizei,GLsizei,GLfloat,GLfloat,GLfloat,GLfloat,const GLubyte *); -WXE_EXTERN WXEGLBITMAP weglBitmap; -typedef void (APIENTRY * WXEGLBLENDFUNC)(GLenum,GLenum); -WXE_EXTERN WXEGLBLENDFUNC weglBlendFunc; -typedef void (APIENTRY * WXEGLCALLLIST)(GLuint); -WXE_EXTERN WXEGLCALLLIST weglCallList; -typedef void (APIENTRY * WXEGLCALLLISTS)(GLsizei,GLenum,const GLuint *); -WXE_EXTERN WXEGLCALLLISTS weglCallLists; -typedef void (APIENTRY * WXEGLCLEAR)(GLbitfield); -WXE_EXTERN WXEGLCLEAR weglClear; -typedef void (APIENTRY * WXEGLCLEARACCUM)(GLfloat,GLfloat,GLfloat,GLfloat); -WXE_EXTERN WXEGLCLEARACCUM weglClearAccum; -typedef void (APIENTRY * WXEGLCLEARCOLOR)(GLclampf,GLclampf,GLclampf,GLclampf); -WXE_EXTERN WXEGLCLEARCOLOR weglClearColor; -typedef void (APIENTRY * WXEGLCLEARDEPTH)(GLclampd); -WXE_EXTERN WXEGLCLEARDEPTH weglClearDepth; typedef void (APIENTRY * WXEGLCLEARINDEX)(GLfloat); WXE_EXTERN WXEGLCLEARINDEX weglClearIndex; -typedef void (APIENTRY * WXEGLCLEARSTENCIL)(GLint); -WXE_EXTERN WXEGLCLEARSTENCIL weglClearStencil; -typedef void (APIENTRY * WXEGLCLIPPLANE)(GLenum,const GLdouble *); -WXE_EXTERN WXEGLCLIPPLANE weglClipPlane; -typedef void (APIENTRY * WXEGLCOLOR3BV)(const GLbyte *); -WXE_EXTERN WXEGLCOLOR3BV weglColor3bv; -typedef void (APIENTRY * WXEGLCOLOR3DV)(const GLdouble *); -WXE_EXTERN WXEGLCOLOR3DV weglColor3dv; -typedef void (APIENTRY * WXEGLCOLOR3FV)(const GLfloat *); -WXE_EXTERN WXEGLCOLOR3FV weglColor3fv; -typedef void (APIENTRY * WXEGLCOLOR3IV)(const GLint *); -WXE_EXTERN WXEGLCOLOR3IV weglColor3iv; -typedef void (APIENTRY * WXEGLCOLOR3SV)(const GLshort *); -WXE_EXTERN WXEGLCOLOR3SV weglColor3sv; -typedef void (APIENTRY * WXEGLCOLOR3UBV)(const GLubyte *); -WXE_EXTERN WXEGLCOLOR3UBV weglColor3ubv; -typedef void (APIENTRY * WXEGLCOLOR3UIV)(const GLuint *); -WXE_EXTERN WXEGLCOLOR3UIV weglColor3uiv; -typedef void (APIENTRY * WXEGLCOLOR3USV)(const GLushort *); -WXE_EXTERN WXEGLCOLOR3USV weglColor3usv; -typedef void (APIENTRY * WXEGLCOLOR4BV)(const GLbyte *); -WXE_EXTERN WXEGLCOLOR4BV weglColor4bv; -typedef void (APIENTRY * WXEGLCOLOR4DV)(const GLdouble *); -WXE_EXTERN WXEGLCOLOR4DV weglColor4dv; -typedef void (APIENTRY * WXEGLCOLOR4FV)(const GLfloat *); -WXE_EXTERN WXEGLCOLOR4FV weglColor4fv; -typedef void (APIENTRY * WXEGLCOLOR4IV)(const GLint *); -WXE_EXTERN WXEGLCOLOR4IV weglColor4iv; -typedef void (APIENTRY * WXEGLCOLOR4SV)(const GLshort *); -WXE_EXTERN WXEGLCOLOR4SV weglColor4sv; -typedef void (APIENTRY * WXEGLCOLOR4UBV)(const GLubyte *); -WXE_EXTERN WXEGLCOLOR4UBV weglColor4ubv; -typedef void (APIENTRY * WXEGLCOLOR4UIV)(const GLuint *); -WXE_EXTERN WXEGLCOLOR4UIV weglColor4uiv; -typedef void (APIENTRY * WXEGLCOLOR4USV)(const GLushort *); -WXE_EXTERN WXEGLCOLOR4USV weglColor4usv; +typedef void (APIENTRY * WXEGLCLEARCOLOR)(GLclampf,GLclampf,GLclampf,GLclampf); +WXE_EXTERN WXEGLCLEARCOLOR weglClearColor; +typedef void (APIENTRY * WXEGLCLEAR)(GLbitfield); +WXE_EXTERN WXEGLCLEAR weglClear; +typedef void (APIENTRY * WXEGLINDEXMASK)(GLuint); +WXE_EXTERN WXEGLINDEXMASK weglIndexMask; typedef void (APIENTRY * WXEGLCOLORMASK)(GLboolean,GLboolean,GLboolean,GLboolean); WXE_EXTERN WXEGLCOLORMASK weglColorMask; -typedef void (APIENTRY * WXEGLCOLORMATERIAL)(GLenum,GLenum); -WXE_EXTERN WXEGLCOLORMATERIAL weglColorMaterial; -typedef void (APIENTRY * WXEGLCOLORPOINTER)(GLint,GLenum,GLsizei,const GLvoid *); -WXE_EXTERN WXEGLCOLORPOINTER weglColorPointer; -typedef void (APIENTRY * WXEGLCOPYPIXELS)(GLint,GLint,GLsizei,GLsizei,GLenum); -WXE_EXTERN WXEGLCOPYPIXELS weglCopyPixels; -typedef void (APIENTRY * WXEGLCOPYTEXIMAGE1D)(GLenum,GLint,GLenum,GLint,GLint,GLsizei,GLint); -WXE_EXTERN WXEGLCOPYTEXIMAGE1D weglCopyTexImage1D; -typedef void (APIENTRY * WXEGLCOPYTEXIMAGE2D)(GLenum,GLint,GLenum,GLint,GLint,GLsizei,GLsizei,GLint); -WXE_EXTERN WXEGLCOPYTEXIMAGE2D weglCopyTexImage2D; -typedef void (APIENTRY * WXEGLCOPYTEXSUBIMAGE1D)(GLenum,GLint,GLint,GLint,GLint,GLsizei); -WXE_EXTERN WXEGLCOPYTEXSUBIMAGE1D weglCopyTexSubImage1D; -typedef void (APIENTRY * WXEGLCOPYTEXSUBIMAGE2D)(GLenum,GLint,GLint,GLint,GLint,GLint,GLsizei,GLsizei); -WXE_EXTERN WXEGLCOPYTEXSUBIMAGE2D weglCopyTexSubImage2D; +typedef void (APIENTRY * WXEGLALPHAFUNC)(GLenum,GLclampf); +WXE_EXTERN WXEGLALPHAFUNC weglAlphaFunc; +typedef void (APIENTRY * WXEGLBLENDFUNC)(GLenum,GLenum); +WXE_EXTERN WXEGLBLENDFUNC weglBlendFunc; +typedef void (APIENTRY * WXEGLLOGICOP)(GLenum); +WXE_EXTERN WXEGLLOGICOP weglLogicOp; typedef void (APIENTRY * WXEGLCULLFACE)(GLenum); WXE_EXTERN WXEGLCULLFACE weglCullFace; -typedef void (APIENTRY * WXEGLDELETELISTS)(GLuint,GLsizei); -WXE_EXTERN WXEGLDELETELISTS weglDeleteLists; -typedef void (APIENTRY * WXEGLDELETETEXTURES)(GLsizei,const GLuint *); -WXE_EXTERN WXEGLDELETETEXTURES weglDeleteTextures; -typedef void (APIENTRY * WXEGLDEPTHFUNC)(GLenum); -WXE_EXTERN WXEGLDEPTHFUNC weglDepthFunc; -typedef void (APIENTRY * WXEGLDEPTHMASK)(GLboolean); -WXE_EXTERN WXEGLDEPTHMASK weglDepthMask; -typedef void (APIENTRY * WXEGLDEPTHRANGE)(GLclampd,GLclampd); -WXE_EXTERN WXEGLDEPTHRANGE weglDepthRange; -typedef void (APIENTRY * WXEGLDISABLE)(GLenum); -WXE_EXTERN WXEGLDISABLE weglDisable; -typedef void (APIENTRY * WXEGLDISABLECLIENTSTATE)(GLenum); -WXE_EXTERN WXEGLDISABLECLIENTSTATE weglDisableClientState; -typedef void (APIENTRY * WXEGLDRAWARRAYS)(GLenum,GLint,GLsizei); -WXE_EXTERN WXEGLDRAWARRAYS weglDrawArrays; -typedef void (APIENTRY * WXEGLDRAWBUFFER)(GLenum); -WXE_EXTERN WXEGLDRAWBUFFER weglDrawBuffer; -typedef void (APIENTRY * WXEGLDRAWELEMENTS)(GLenum,GLsizei,GLenum,const GLvoid *); -WXE_EXTERN WXEGLDRAWELEMENTS weglDrawElements; -typedef void (APIENTRY * WXEGLDRAWPIXELS)(GLsizei,GLsizei,GLenum,GLenum,const GLvoid *); -WXE_EXTERN WXEGLDRAWPIXELS weglDrawPixels; +typedef void (APIENTRY * WXEGLFRONTFACE)(GLenum); +WXE_EXTERN WXEGLFRONTFACE weglFrontFace; +typedef void (APIENTRY * WXEGLPOINTSIZE)(GLfloat); +WXE_EXTERN WXEGLPOINTSIZE weglPointSize; +typedef void (APIENTRY * WXEGLLINEWIDTH)(GLfloat); +WXE_EXTERN WXEGLLINEWIDTH weglLineWidth; +typedef void (APIENTRY * WXEGLLINESTIPPLE)(GLint,GLushort); +WXE_EXTERN WXEGLLINESTIPPLE weglLineStipple; +typedef void (APIENTRY * WXEGLPOLYGONMODE)(GLenum,GLenum); +WXE_EXTERN WXEGLPOLYGONMODE weglPolygonMode; +typedef void (APIENTRY * WXEGLPOLYGONOFFSET)(GLfloat,GLfloat); +WXE_EXTERN WXEGLPOLYGONOFFSET weglPolygonOffset; +typedef void (APIENTRY * WXEGLPOLYGONSTIPPLE)(const GLubyte *); +WXE_EXTERN WXEGLPOLYGONSTIPPLE weglPolygonStipple; +typedef void (APIENTRY * WXEGLGETPOLYGONSTIPPLE)(GLubyte *); +WXE_EXTERN WXEGLGETPOLYGONSTIPPLE weglGetPolygonStipple; typedef void (APIENTRY * WXEGLEDGEFLAGV)(const GLboolean *); WXE_EXTERN WXEGLEDGEFLAGV weglEdgeFlagv; -typedef void (APIENTRY * WXEGLEDGEFLAGPOINTER)(GLsizei,const GLvoid *); -WXE_EXTERN WXEGLEDGEFLAGPOINTER weglEdgeFlagPointer; +typedef void (APIENTRY * WXEGLSCISSOR)(GLint,GLint,GLsizei,GLsizei); +WXE_EXTERN WXEGLSCISSOR weglScissor; +typedef void (APIENTRY * WXEGLCLIPPLANE)(GLenum,const GLdouble *); +WXE_EXTERN WXEGLCLIPPLANE weglClipPlane; +typedef void (APIENTRY * WXEGLGETCLIPPLANE)(GLenum,GLdouble *); +WXE_EXTERN WXEGLGETCLIPPLANE weglGetClipPlane; +typedef void (APIENTRY * WXEGLDRAWBUFFER)(GLenum); +WXE_EXTERN WXEGLDRAWBUFFER weglDrawBuffer; +typedef void (APIENTRY * WXEGLREADBUFFER)(GLenum); +WXE_EXTERN WXEGLREADBUFFER weglReadBuffer; typedef void (APIENTRY * WXEGLENABLE)(GLenum); WXE_EXTERN WXEGLENABLE weglEnable; +typedef void (APIENTRY * WXEGLDISABLE)(GLenum); +WXE_EXTERN WXEGLDISABLE weglDisable; +typedef GLboolean (APIENTRY * WXEGLISENABLED)(GLenum); +WXE_EXTERN WXEGLISENABLED weglIsEnabled; typedef void (APIENTRY * WXEGLENABLECLIENTSTATE)(GLenum); WXE_EXTERN WXEGLENABLECLIENTSTATE weglEnableClientState; -typedef void (APIENTRY * WXEGLEND)(); -WXE_EXTERN WXEGLEND weglEnd; -typedef void (APIENTRY * WXEGLENDLIST)(); -WXE_EXTERN WXEGLENDLIST weglEndList; -typedef void (APIENTRY * WXEGLEVALCOORD1DV)(const GLdouble *); -WXE_EXTERN WXEGLEVALCOORD1DV weglEvalCoord1dv; -typedef void (APIENTRY * WXEGLEVALCOORD1FV)(const GLfloat *); -WXE_EXTERN WXEGLEVALCOORD1FV weglEvalCoord1fv; -typedef void (APIENTRY * WXEGLEVALCOORD2DV)(const GLdouble *); -WXE_EXTERN WXEGLEVALCOORD2DV weglEvalCoord2dv; -typedef void (APIENTRY * WXEGLEVALCOORD2FV)(const GLfloat *); -WXE_EXTERN WXEGLEVALCOORD2FV weglEvalCoord2fv; -typedef void (APIENTRY * WXEGLEVALMESH1)(GLenum,GLint,GLint); -WXE_EXTERN WXEGLEVALMESH1 weglEvalMesh1; -typedef void (APIENTRY * WXEGLEVALMESH2)(GLenum,GLint,GLint,GLint,GLint); -WXE_EXTERN WXEGLEVALMESH2 weglEvalMesh2; -typedef void (APIENTRY * WXEGLEVALPOINT1)(GLint); -WXE_EXTERN WXEGLEVALPOINT1 weglEvalPoint1; -typedef void (APIENTRY * WXEGLEVALPOINT2)(GLint,GLint); -WXE_EXTERN WXEGLEVALPOINT2 weglEvalPoint2; -typedef void (APIENTRY * WXEGLFEEDBACKBUFFER)(GLsizei,GLenum,GLfloat *); -WXE_EXTERN WXEGLFEEDBACKBUFFER weglFeedbackBuffer; -typedef void (APIENTRY * WXEGLFINISH)(); -WXE_EXTERN WXEGLFINISH weglFinish; -typedef void (APIENTRY * WXEGLFLUSH)(); -WXE_EXTERN WXEGLFLUSH weglFlush; -typedef void (APIENTRY * WXEGLFOGF)(GLenum,GLfloat); -WXE_EXTERN WXEGLFOGF weglFogf; -typedef void (APIENTRY * WXEGLFOGFV)(GLenum,const GLfloat *); -WXE_EXTERN WXEGLFOGFV weglFogfv; -typedef void (APIENTRY * WXEGLFOGI)(GLenum,GLint); -WXE_EXTERN WXEGLFOGI weglFogi; -typedef void (APIENTRY * WXEGLFOGIV)(GLenum,const GLint *); -WXE_EXTERN WXEGLFOGIV weglFogiv; -typedef void (APIENTRY * WXEGLFRONTFACE)(GLenum); -WXE_EXTERN WXEGLFRONTFACE weglFrontFace; -typedef void (APIENTRY * WXEGLFRUSTUM)(GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble); -WXE_EXTERN WXEGLFRUSTUM weglFrustum; -typedef GLuint (APIENTRY * WXEGLGENLISTS)(GLsizei); -WXE_EXTERN WXEGLGENLISTS weglGenLists; -typedef void (APIENTRY * WXEGLGENTEXTURES)(GLsizei,GLuint *); -WXE_EXTERN WXEGLGENTEXTURES weglGenTextures; +typedef void (APIENTRY * WXEGLDISABLECLIENTSTATE)(GLenum); +WXE_EXTERN WXEGLDISABLECLIENTSTATE weglDisableClientState; typedef void (APIENTRY * WXEGLGETBOOLEANV)(GLenum,GLboolean *); WXE_EXTERN WXEGLGETBOOLEANV weglGetBooleanv; -typedef void (APIENTRY * WXEGLGETCLIPPLANE)(GLenum,GLdouble *); -WXE_EXTERN WXEGLGETCLIPPLANE weglGetClipPlane; typedef void (APIENTRY * WXEGLGETDOUBLEV)(GLenum,GLdouble *); WXE_EXTERN WXEGLGETDOUBLEV weglGetDoublev; -typedef GLenum (APIENTRY * WXEGLGETERROR)(); -WXE_EXTERN WXEGLGETERROR weglGetError; typedef void (APIENTRY * WXEGLGETFLOATV)(GLenum,GLfloat *); WXE_EXTERN WXEGLGETFLOATV weglGetFloatv; typedef void (APIENTRY * WXEGLGETINTEGERV)(GLenum,GLint *); WXE_EXTERN WXEGLGETINTEGERV weglGetIntegerv; -typedef void (APIENTRY * WXEGLGETLIGHTFV)(GLenum,GLenum,GLfloat *); -WXE_EXTERN WXEGLGETLIGHTFV weglGetLightfv; -typedef void (APIENTRY * WXEGLGETLIGHTIV)(GLenum,GLenum,GLint *); -WXE_EXTERN WXEGLGETLIGHTIV weglGetLightiv; -typedef void (APIENTRY * WXEGLGETMAPDV)(GLenum,GLenum,GLdouble *); -WXE_EXTERN WXEGLGETMAPDV weglGetMapdv; -typedef void (APIENTRY * WXEGLGETMAPFV)(GLenum,GLenum,GLfloat *); -WXE_EXTERN WXEGLGETMAPFV weglGetMapfv; -typedef void (APIENTRY * WXEGLGETMAPIV)(GLenum,GLenum,GLint *); -WXE_EXTERN WXEGLGETMAPIV weglGetMapiv; -typedef void (APIENTRY * WXEGLGETMATERIALFV)(GLenum,GLenum,GLfloat *); -WXE_EXTERN WXEGLGETMATERIALFV weglGetMaterialfv; -typedef void (APIENTRY * WXEGLGETMATERIALIV)(GLenum,GLenum,GLint *); -WXE_EXTERN WXEGLGETMATERIALIV weglGetMaterialiv; -typedef void (APIENTRY * WXEGLGETPIXELMAPFV)(GLenum,GLfloat *); -WXE_EXTERN WXEGLGETPIXELMAPFV weglGetPixelMapfv; -typedef void (APIENTRY * WXEGLGETPIXELMAPUIV)(GLenum,GLuint *); -WXE_EXTERN WXEGLGETPIXELMAPUIV weglGetPixelMapuiv; -typedef void (APIENTRY * WXEGLGETPIXELMAPUSV)(GLenum,GLushort *); -WXE_EXTERN WXEGLGETPIXELMAPUSV weglGetPixelMapusv; -typedef void (APIENTRY * WXEGLGETPOLYGONSTIPPLE)(GLubyte *); -WXE_EXTERN WXEGLGETPOLYGONSTIPPLE weglGetPolygonStipple; +typedef void (APIENTRY * WXEGLPUSHATTRIB)(GLbitfield); +WXE_EXTERN WXEGLPUSHATTRIB weglPushAttrib; +typedef void (APIENTRY * WXEGLPOPATTRIB)(); +WXE_EXTERN WXEGLPOPATTRIB weglPopAttrib; +typedef void (APIENTRY * WXEGLPUSHCLIENTATTRIB)(GLbitfield); +WXE_EXTERN WXEGLPUSHCLIENTATTRIB weglPushClientAttrib; +typedef void (APIENTRY * WXEGLPOPCLIENTATTRIB)(); +WXE_EXTERN WXEGLPOPCLIENTATTRIB weglPopClientAttrib; +typedef GLint (APIENTRY * WXEGLRENDERMODE)(GLenum); +WXE_EXTERN WXEGLRENDERMODE weglRenderMode; +typedef GLenum (APIENTRY * WXEGLGETERROR)(); +WXE_EXTERN WXEGLGETERROR weglGetError; typedef const GLubyte * (APIENTRY * WXEGLGETSTRING)(GLenum); WXE_EXTERN WXEGLGETSTRING weglGetString; -typedef void (APIENTRY * WXEGLGETTEXENVFV)(GLenum,GLenum,GLfloat *); -WXE_EXTERN WXEGLGETTEXENVFV weglGetTexEnvfv; -typedef void (APIENTRY * WXEGLGETTEXENVIV)(GLenum,GLenum,GLint *); -WXE_EXTERN WXEGLGETTEXENVIV weglGetTexEnviv; -typedef void (APIENTRY * WXEGLGETTEXGENDV)(GLenum,GLenum,GLdouble *); -WXE_EXTERN WXEGLGETTEXGENDV weglGetTexGendv; -typedef void (APIENTRY * WXEGLGETTEXGENFV)(GLenum,GLenum,GLfloat *); -WXE_EXTERN WXEGLGETTEXGENFV weglGetTexGenfv; -typedef void (APIENTRY * WXEGLGETTEXGENIV)(GLenum,GLenum,GLint *); -WXE_EXTERN WXEGLGETTEXGENIV weglGetTexGeniv; -typedef void (APIENTRY * WXEGLGETTEXIMAGE)(GLenum,GLint,GLenum,GLenum,GLvoid *); -WXE_EXTERN WXEGLGETTEXIMAGE weglGetTexImage; -typedef void (APIENTRY * WXEGLGETTEXLEVELPARAMETERFV)(GLenum,GLint,GLenum,GLfloat *); -WXE_EXTERN WXEGLGETTEXLEVELPARAMETERFV weglGetTexLevelParameterfv; -typedef void (APIENTRY * WXEGLGETTEXLEVELPARAMETERIV)(GLenum,GLint,GLenum,GLint *); -WXE_EXTERN WXEGLGETTEXLEVELPARAMETERIV weglGetTexLevelParameteriv; -typedef void (APIENTRY * WXEGLGETTEXPARAMETERFV)(GLenum,GLenum,GLfloat *); -WXE_EXTERN WXEGLGETTEXPARAMETERFV weglGetTexParameterfv; -typedef void (APIENTRY * WXEGLGETTEXPARAMETERIV)(GLenum,GLenum,GLint *); -WXE_EXTERN WXEGLGETTEXPARAMETERIV weglGetTexParameteriv; +typedef void (APIENTRY * WXEGLFINISH)(); +WXE_EXTERN WXEGLFINISH weglFinish; +typedef void (APIENTRY * WXEGLFLUSH)(); +WXE_EXTERN WXEGLFLUSH weglFlush; typedef void (APIENTRY * WXEGLHINT)(GLenum,GLenum); WXE_EXTERN WXEGLHINT weglHint; -typedef void (APIENTRY * WXEGLINDEXMASK)(GLuint); -WXE_EXTERN WXEGLINDEXMASK weglIndexMask; -typedef void (APIENTRY * WXEGLINDEXPOINTER)(GLenum,GLsizei,const GLvoid *); -WXE_EXTERN WXEGLINDEXPOINTER weglIndexPointer; -typedef void (APIENTRY * WXEGLINDEXDV)(const GLdouble *); -WXE_EXTERN WXEGLINDEXDV weglIndexdv; -typedef void (APIENTRY * WXEGLINDEXFV)(const GLfloat *); -WXE_EXTERN WXEGLINDEXFV weglIndexfv; -typedef void (APIENTRY * WXEGLINDEXIV)(const GLint *); -WXE_EXTERN WXEGLINDEXIV weglIndexiv; -typedef void (APIENTRY * WXEGLINDEXSV)(const GLshort *); -WXE_EXTERN WXEGLINDEXSV weglIndexsv; -typedef void (APIENTRY * WXEGLINDEXUBV)(const GLubyte *); -WXE_EXTERN WXEGLINDEXUBV weglIndexubv; -typedef void (APIENTRY * WXEGLINITNAMES)(); -WXE_EXTERN WXEGLINITNAMES weglInitNames; -typedef void (APIENTRY * WXEGLINTERLEAVEDARRAYS)(GLenum,GLsizei,const GLvoid *); -WXE_EXTERN WXEGLINTERLEAVEDARRAYS weglInterleavedArrays; -typedef GLboolean (APIENTRY * WXEGLISENABLED)(GLenum); -WXE_EXTERN WXEGLISENABLED weglIsEnabled; -typedef GLboolean (APIENTRY * WXEGLISLIST)(GLuint); -WXE_EXTERN WXEGLISLIST weglIsList; -typedef GLboolean (APIENTRY * WXEGLISTEXTURE)(GLuint); -WXE_EXTERN WXEGLISTEXTURE weglIsTexture; -typedef void (APIENTRY * WXEGLLIGHTMODELF)(GLenum,GLfloat); -WXE_EXTERN WXEGLLIGHTMODELF weglLightModelf; -typedef void (APIENTRY * WXEGLLIGHTMODELFV)(GLenum,const GLfloat *); -WXE_EXTERN WXEGLLIGHTMODELFV weglLightModelfv; -typedef void (APIENTRY * WXEGLLIGHTMODELI)(GLenum,GLint); -WXE_EXTERN WXEGLLIGHTMODELI weglLightModeli; -typedef void (APIENTRY * WXEGLLIGHTMODELIV)(GLenum,const GLint *); -WXE_EXTERN WXEGLLIGHTMODELIV weglLightModeliv; -typedef void (APIENTRY * WXEGLLIGHTF)(GLenum,GLenum,GLfloat); -WXE_EXTERN WXEGLLIGHTF weglLightf; -typedef void (APIENTRY * WXEGLLIGHTFV)(GLenum,GLenum,const GLfloat *); -WXE_EXTERN WXEGLLIGHTFV weglLightfv; -typedef void (APIENTRY * WXEGLLIGHTI)(GLenum,GLenum,GLint); -WXE_EXTERN WXEGLLIGHTI weglLighti; -typedef void (APIENTRY * WXEGLLIGHTIV)(GLenum,GLenum,const GLint *); -WXE_EXTERN WXEGLLIGHTIV weglLightiv; -typedef void (APIENTRY * WXEGLLINESTIPPLE)(GLint,GLushort); -WXE_EXTERN WXEGLLINESTIPPLE weglLineStipple; -typedef void (APIENTRY * WXEGLLINEWIDTH)(GLfloat); -WXE_EXTERN WXEGLLINEWIDTH weglLineWidth; -typedef void (APIENTRY * WXEGLLISTBASE)(GLuint); -WXE_EXTERN WXEGLLISTBASE weglListBase; +typedef void (APIENTRY * WXEGLCLEARDEPTH)(GLclampd); +WXE_EXTERN WXEGLCLEARDEPTH weglClearDepth; +typedef void (APIENTRY * WXEGLDEPTHFUNC)(GLenum); +WXE_EXTERN WXEGLDEPTHFUNC weglDepthFunc; +typedef void (APIENTRY * WXEGLDEPTHMASK)(GLboolean); +WXE_EXTERN WXEGLDEPTHMASK weglDepthMask; +typedef void (APIENTRY * WXEGLDEPTHRANGE)(GLclampd,GLclampd); +WXE_EXTERN WXEGLDEPTHRANGE weglDepthRange; +typedef void (APIENTRY * WXEGLCLEARACCUM)(GLfloat,GLfloat,GLfloat,GLfloat); +WXE_EXTERN WXEGLCLEARACCUM weglClearAccum; +typedef void (APIENTRY * WXEGLACCUM)(GLenum,GLfloat); +WXE_EXTERN WXEGLACCUM weglAccum; +typedef void (APIENTRY * WXEGLMATRIXMODE)(GLenum); +WXE_EXTERN WXEGLMATRIXMODE weglMatrixMode; +typedef void (APIENTRY * WXEGLORTHO)(GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble); +WXE_EXTERN WXEGLORTHO weglOrtho; +typedef void (APIENTRY * WXEGLFRUSTUM)(GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble); +WXE_EXTERN WXEGLFRUSTUM weglFrustum; +typedef void (APIENTRY * WXEGLVIEWPORT)(GLint,GLint,GLsizei,GLsizei); +WXE_EXTERN WXEGLVIEWPORT weglViewport; +typedef void (APIENTRY * WXEGLPUSHMATRIX)(); +WXE_EXTERN WXEGLPUSHMATRIX weglPushMatrix; +typedef void (APIENTRY * WXEGLPOPMATRIX)(); +WXE_EXTERN WXEGLPOPMATRIX weglPopMatrix; typedef void (APIENTRY * WXEGLLOADIDENTITY)(); WXE_EXTERN WXEGLLOADIDENTITY weglLoadIdentity; typedef void (APIENTRY * WXEGLLOADMATRIXD)(const GLdouble *); WXE_EXTERN WXEGLLOADMATRIXD weglLoadMatrixd; typedef void (APIENTRY * WXEGLLOADMATRIXF)(const GLfloat *); WXE_EXTERN WXEGLLOADMATRIXF weglLoadMatrixf; -typedef void (APIENTRY * WXEGLLOADNAME)(GLuint); -WXE_EXTERN WXEGLLOADNAME weglLoadName; -typedef void (APIENTRY * WXEGLLOGICOP)(GLenum); -WXE_EXTERN WXEGLLOGICOP weglLogicOp; -typedef void (APIENTRY * WXEGLMAP1D)(GLenum,GLdouble,GLdouble,GLint,GLint,const GLdouble *); -WXE_EXTERN WXEGLMAP1D weglMap1d; -typedef void (APIENTRY * WXEGLMAP1F)(GLenum,GLfloat,GLfloat,GLint,GLint,const GLfloat *); -WXE_EXTERN WXEGLMAP1F weglMap1f; -typedef void (APIENTRY * WXEGLMAP2D)(GLenum,GLdouble,GLdouble,GLint,GLint,GLdouble,GLdouble,GLint,GLint,const GLdouble *); -WXE_EXTERN WXEGLMAP2D weglMap2d; -typedef void (APIENTRY * WXEGLMAP2F)(GLenum,GLfloat,GLfloat,GLint,GLint,GLfloat,GLfloat,GLint,GLint,const GLfloat *); -WXE_EXTERN WXEGLMAP2F weglMap2f; -typedef void (APIENTRY * WXEGLMAPGRID1D)(GLint,GLdouble,GLdouble); -WXE_EXTERN WXEGLMAPGRID1D weglMapGrid1d; -typedef void (APIENTRY * WXEGLMAPGRID1F)(GLint,GLfloat,GLfloat); -WXE_EXTERN WXEGLMAPGRID1F weglMapGrid1f; -typedef void (APIENTRY * WXEGLMAPGRID2D)(GLint,GLdouble,GLdouble,GLint,GLdouble,GLdouble); -WXE_EXTERN WXEGLMAPGRID2D weglMapGrid2d; -typedef void (APIENTRY * WXEGLMAPGRID2F)(GLint,GLfloat,GLfloat,GLint,GLfloat,GLfloat); -WXE_EXTERN WXEGLMAPGRID2F weglMapGrid2f; -typedef void (APIENTRY * WXEGLMATERIALF)(GLenum,GLenum,GLfloat); -WXE_EXTERN WXEGLMATERIALF weglMaterialf; -typedef void (APIENTRY * WXEGLMATERIALFV)(GLenum,GLenum,const GLfloat *); -WXE_EXTERN WXEGLMATERIALFV weglMaterialfv; -typedef void (APIENTRY * WXEGLMATERIALI)(GLenum,GLenum,GLint); -WXE_EXTERN WXEGLMATERIALI weglMateriali; -typedef void (APIENTRY * WXEGLMATERIALIV)(GLenum,GLenum,const GLint *); -WXE_EXTERN WXEGLMATERIALIV weglMaterialiv; -typedef void (APIENTRY * WXEGLMATRIXMODE)(GLenum); -WXE_EXTERN WXEGLMATRIXMODE weglMatrixMode; typedef void (APIENTRY * WXEGLMULTMATRIXD)(const GLdouble *); WXE_EXTERN WXEGLMULTMATRIXD weglMultMatrixd; typedef void (APIENTRY * WXEGLMULTMATRIXF)(const GLfloat *); WXE_EXTERN WXEGLMULTMATRIXF weglMultMatrixf; +typedef void (APIENTRY * WXEGLROTATED)(GLdouble,GLdouble,GLdouble,GLdouble); +WXE_EXTERN WXEGLROTATED weglRotated; +typedef void (APIENTRY * WXEGLROTATEF)(GLfloat,GLfloat,GLfloat,GLfloat); +WXE_EXTERN WXEGLROTATEF weglRotatef; +typedef void (APIENTRY * WXEGLSCALED)(GLdouble,GLdouble,GLdouble); +WXE_EXTERN WXEGLSCALED weglScaled; +typedef void (APIENTRY * WXEGLSCALEF)(GLfloat,GLfloat,GLfloat); +WXE_EXTERN WXEGLSCALEF weglScalef; +typedef void (APIENTRY * WXEGLTRANSLATED)(GLdouble,GLdouble,GLdouble); +WXE_EXTERN WXEGLTRANSLATED weglTranslated; +typedef void (APIENTRY * WXEGLTRANSLATEF)(GLfloat,GLfloat,GLfloat); +WXE_EXTERN WXEGLTRANSLATEF weglTranslatef; +typedef GLboolean (APIENTRY * WXEGLISLIST)(GLuint); +WXE_EXTERN WXEGLISLIST weglIsList; +typedef void (APIENTRY * WXEGLDELETELISTS)(GLuint,GLsizei); +WXE_EXTERN WXEGLDELETELISTS weglDeleteLists; +typedef GLuint (APIENTRY * WXEGLGENLISTS)(GLsizei); +WXE_EXTERN WXEGLGENLISTS weglGenLists; typedef void (APIENTRY * WXEGLNEWLIST)(GLuint,GLenum); WXE_EXTERN WXEGLNEWLIST weglNewList; +typedef void (APIENTRY * WXEGLENDLIST)(); +WXE_EXTERN WXEGLENDLIST weglEndList; +typedef void (APIENTRY * WXEGLCALLLIST)(GLuint); +WXE_EXTERN WXEGLCALLLIST weglCallList; +typedef void (APIENTRY * WXEGLCALLLISTS)(GLsizei,GLenum,const GLuint *); +WXE_EXTERN WXEGLCALLLISTS weglCallLists; +typedef void (APIENTRY * WXEGLLISTBASE)(GLuint); +WXE_EXTERN WXEGLLISTBASE weglListBase; +typedef void (APIENTRY * WXEGLBEGIN)(GLenum); +WXE_EXTERN WXEGLBEGIN weglBegin; +typedef void (APIENTRY * WXEGLEND)(); +WXE_EXTERN WXEGLEND weglEnd; +typedef void (APIENTRY * WXEGLVERTEX2DV)(const GLdouble *); +WXE_EXTERN WXEGLVERTEX2DV weglVertex2dv; +typedef void (APIENTRY * WXEGLVERTEX2FV)(const GLfloat *); +WXE_EXTERN WXEGLVERTEX2FV weglVertex2fv; +typedef void (APIENTRY * WXEGLVERTEX2IV)(const GLint *); +WXE_EXTERN WXEGLVERTEX2IV weglVertex2iv; +typedef void (APIENTRY * WXEGLVERTEX2SV)(const GLshort *); +WXE_EXTERN WXEGLVERTEX2SV weglVertex2sv; +typedef void (APIENTRY * WXEGLVERTEX3DV)(const GLdouble *); +WXE_EXTERN WXEGLVERTEX3DV weglVertex3dv; +typedef void (APIENTRY * WXEGLVERTEX3FV)(const GLfloat *); +WXE_EXTERN WXEGLVERTEX3FV weglVertex3fv; +typedef void (APIENTRY * WXEGLVERTEX3IV)(const GLint *); +WXE_EXTERN WXEGLVERTEX3IV weglVertex3iv; +typedef void (APIENTRY * WXEGLVERTEX3SV)(const GLshort *); +WXE_EXTERN WXEGLVERTEX3SV weglVertex3sv; +typedef void (APIENTRY * WXEGLVERTEX4DV)(const GLdouble *); +WXE_EXTERN WXEGLVERTEX4DV weglVertex4dv; +typedef void (APIENTRY * WXEGLVERTEX4FV)(const GLfloat *); +WXE_EXTERN WXEGLVERTEX4FV weglVertex4fv; +typedef void (APIENTRY * WXEGLVERTEX4IV)(const GLint *); +WXE_EXTERN WXEGLVERTEX4IV weglVertex4iv; +typedef void (APIENTRY * WXEGLVERTEX4SV)(const GLshort *); +WXE_EXTERN WXEGLVERTEX4SV weglVertex4sv; typedef void (APIENTRY * WXEGLNORMAL3BV)(const GLbyte *); WXE_EXTERN WXEGLNORMAL3BV weglNormal3bv; typedef void (APIENTRY * WXEGLNORMAL3DV)(const GLdouble *); @@ -343,54 +215,80 @@ typedef void (APIENTRY * WXEGLNORMAL3IV)(const GLint *); WXE_EXTERN WXEGLNORMAL3IV weglNormal3iv; typedef void (APIENTRY * WXEGLNORMAL3SV)(const GLshort *); WXE_EXTERN WXEGLNORMAL3SV weglNormal3sv; -typedef void (APIENTRY * WXEGLNORMALPOINTER)(GLenum,GLsizei,const GLvoid *); -WXE_EXTERN WXEGLNORMALPOINTER weglNormalPointer; -typedef void (APIENTRY * WXEGLORTHO)(GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble); -WXE_EXTERN WXEGLORTHO weglOrtho; -typedef void (APIENTRY * WXEGLPASSTHROUGH)(GLfloat); -WXE_EXTERN WXEGLPASSTHROUGH weglPassThrough; -typedef void (APIENTRY * WXEGLPIXELMAPFV)(GLenum,GLsizei,const GLfloat *); -WXE_EXTERN WXEGLPIXELMAPFV weglPixelMapfv; -typedef void (APIENTRY * WXEGLPIXELMAPUIV)(GLenum,GLsizei,const GLuint *); -WXE_EXTERN WXEGLPIXELMAPUIV weglPixelMapuiv; -typedef void (APIENTRY * WXEGLPIXELMAPUSV)(GLenum,GLsizei,const GLushort *); -WXE_EXTERN WXEGLPIXELMAPUSV weglPixelMapusv; -typedef void (APIENTRY * WXEGLPIXELSTOREF)(GLenum,GLfloat); -WXE_EXTERN WXEGLPIXELSTOREF weglPixelStoref; -typedef void (APIENTRY * WXEGLPIXELSTOREI)(GLenum,GLint); -WXE_EXTERN WXEGLPIXELSTOREI weglPixelStorei; -typedef void (APIENTRY * WXEGLPIXELTRANSFERF)(GLenum,GLfloat); -WXE_EXTERN WXEGLPIXELTRANSFERF weglPixelTransferf; -typedef void (APIENTRY * WXEGLPIXELTRANSFERI)(GLenum,GLint); -WXE_EXTERN WXEGLPIXELTRANSFERI weglPixelTransferi; -typedef void (APIENTRY * WXEGLPIXELZOOM)(GLfloat,GLfloat); -WXE_EXTERN WXEGLPIXELZOOM weglPixelZoom; -typedef void (APIENTRY * WXEGLPOINTSIZE)(GLfloat); -WXE_EXTERN WXEGLPOINTSIZE weglPointSize; -typedef void (APIENTRY * WXEGLPOLYGONMODE)(GLenum,GLenum); -WXE_EXTERN WXEGLPOLYGONMODE weglPolygonMode; -typedef void (APIENTRY * WXEGLPOLYGONOFFSET)(GLfloat,GLfloat); -WXE_EXTERN WXEGLPOLYGONOFFSET weglPolygonOffset; -typedef void (APIENTRY * WXEGLPOLYGONSTIPPLE)(const GLubyte *); -WXE_EXTERN WXEGLPOLYGONSTIPPLE weglPolygonStipple; -typedef void (APIENTRY * WXEGLPOPATTRIB)(); -WXE_EXTERN WXEGLPOPATTRIB weglPopAttrib; -typedef void (APIENTRY * WXEGLPOPCLIENTATTRIB)(); -WXE_EXTERN WXEGLPOPCLIENTATTRIB weglPopClientAttrib; -typedef void (APIENTRY * WXEGLPOPMATRIX)(); -WXE_EXTERN WXEGLPOPMATRIX weglPopMatrix; -typedef void (APIENTRY * WXEGLPOPNAME)(); -WXE_EXTERN WXEGLPOPNAME weglPopName; -typedef void (APIENTRY * WXEGLPRIORITIZETEXTURES)(GLsizei,const GLuint *,const GLclampf *); -WXE_EXTERN WXEGLPRIORITIZETEXTURES weglPrioritizeTextures; -typedef void (APIENTRY * WXEGLPUSHATTRIB)(GLbitfield); -WXE_EXTERN WXEGLPUSHATTRIB weglPushAttrib; -typedef void (APIENTRY * WXEGLPUSHCLIENTATTRIB)(GLbitfield); -WXE_EXTERN WXEGLPUSHCLIENTATTRIB weglPushClientAttrib; -typedef void (APIENTRY * WXEGLPUSHMATRIX)(); -WXE_EXTERN WXEGLPUSHMATRIX weglPushMatrix; -typedef void (APIENTRY * WXEGLPUSHNAME)(GLuint); -WXE_EXTERN WXEGLPUSHNAME weglPushName; +typedef void (APIENTRY * WXEGLINDEXDV)(const GLdouble *); +WXE_EXTERN WXEGLINDEXDV weglIndexdv; +typedef void (APIENTRY * WXEGLINDEXFV)(const GLfloat *); +WXE_EXTERN WXEGLINDEXFV weglIndexfv; +typedef void (APIENTRY * WXEGLINDEXIV)(const GLint *); +WXE_EXTERN WXEGLINDEXIV weglIndexiv; +typedef void (APIENTRY * WXEGLINDEXSV)(const GLshort *); +WXE_EXTERN WXEGLINDEXSV weglIndexsv; +typedef void (APIENTRY * WXEGLINDEXUBV)(const GLubyte *); +WXE_EXTERN WXEGLINDEXUBV weglIndexubv; +typedef void (APIENTRY * WXEGLCOLOR3BV)(const GLbyte *); +WXE_EXTERN WXEGLCOLOR3BV weglColor3bv; +typedef void (APIENTRY * WXEGLCOLOR3DV)(const GLdouble *); +WXE_EXTERN WXEGLCOLOR3DV weglColor3dv; +typedef void (APIENTRY * WXEGLCOLOR3FV)(const GLfloat *); +WXE_EXTERN WXEGLCOLOR3FV weglColor3fv; +typedef void (APIENTRY * WXEGLCOLOR3IV)(const GLint *); +WXE_EXTERN WXEGLCOLOR3IV weglColor3iv; +typedef void (APIENTRY * WXEGLCOLOR3SV)(const GLshort *); +WXE_EXTERN WXEGLCOLOR3SV weglColor3sv; +typedef void (APIENTRY * WXEGLCOLOR3UBV)(const GLubyte *); +WXE_EXTERN WXEGLCOLOR3UBV weglColor3ubv; +typedef void (APIENTRY * WXEGLCOLOR3UIV)(const GLuint *); +WXE_EXTERN WXEGLCOLOR3UIV weglColor3uiv; +typedef void (APIENTRY * WXEGLCOLOR3USV)(const GLushort *); +WXE_EXTERN WXEGLCOLOR3USV weglColor3usv; +typedef void (APIENTRY * WXEGLCOLOR4BV)(const GLbyte *); +WXE_EXTERN WXEGLCOLOR4BV weglColor4bv; +typedef void (APIENTRY * WXEGLCOLOR4DV)(const GLdouble *); +WXE_EXTERN WXEGLCOLOR4DV weglColor4dv; +typedef void (APIENTRY * WXEGLCOLOR4FV)(const GLfloat *); +WXE_EXTERN WXEGLCOLOR4FV weglColor4fv; +typedef void (APIENTRY * WXEGLCOLOR4IV)(const GLint *); +WXE_EXTERN WXEGLCOLOR4IV weglColor4iv; +typedef void (APIENTRY * WXEGLCOLOR4SV)(const GLshort *); +WXE_EXTERN WXEGLCOLOR4SV weglColor4sv; +typedef void (APIENTRY * WXEGLCOLOR4UBV)(const GLubyte *); +WXE_EXTERN WXEGLCOLOR4UBV weglColor4ubv; +typedef void (APIENTRY * WXEGLCOLOR4UIV)(const GLuint *); +WXE_EXTERN WXEGLCOLOR4UIV weglColor4uiv; +typedef void (APIENTRY * WXEGLCOLOR4USV)(const GLushort *); +WXE_EXTERN WXEGLCOLOR4USV weglColor4usv; +typedef void (APIENTRY * WXEGLTEXCOORD1DV)(const GLdouble *); +WXE_EXTERN WXEGLTEXCOORD1DV weglTexCoord1dv; +typedef void (APIENTRY * WXEGLTEXCOORD1FV)(const GLfloat *); +WXE_EXTERN WXEGLTEXCOORD1FV weglTexCoord1fv; +typedef void (APIENTRY * WXEGLTEXCOORD1IV)(const GLint *); +WXE_EXTERN WXEGLTEXCOORD1IV weglTexCoord1iv; +typedef void (APIENTRY * WXEGLTEXCOORD1SV)(const GLshort *); +WXE_EXTERN WXEGLTEXCOORD1SV weglTexCoord1sv; +typedef void (APIENTRY * WXEGLTEXCOORD2DV)(const GLdouble *); +WXE_EXTERN WXEGLTEXCOORD2DV weglTexCoord2dv; +typedef void (APIENTRY * WXEGLTEXCOORD2FV)(const GLfloat *); +WXE_EXTERN WXEGLTEXCOORD2FV weglTexCoord2fv; +typedef void (APIENTRY * WXEGLTEXCOORD2IV)(const GLint *); +WXE_EXTERN WXEGLTEXCOORD2IV weglTexCoord2iv; +typedef void (APIENTRY * WXEGLTEXCOORD2SV)(const GLshort *); +WXE_EXTERN WXEGLTEXCOORD2SV weglTexCoord2sv; +typedef void (APIENTRY * WXEGLTEXCOORD3DV)(const GLdouble *); +WXE_EXTERN WXEGLTEXCOORD3DV weglTexCoord3dv; +typedef void (APIENTRY * WXEGLTEXCOORD3FV)(const GLfloat *); +WXE_EXTERN WXEGLTEXCOORD3FV weglTexCoord3fv; +typedef void (APIENTRY * WXEGLTEXCOORD3IV)(const GLint *); +WXE_EXTERN WXEGLTEXCOORD3IV weglTexCoord3iv; +typedef void (APIENTRY * WXEGLTEXCOORD3SV)(const GLshort *); +WXE_EXTERN WXEGLTEXCOORD3SV weglTexCoord3sv; +typedef void (APIENTRY * WXEGLTEXCOORD4DV)(const GLdouble *); +WXE_EXTERN WXEGLTEXCOORD4DV weglTexCoord4dv; +typedef void (APIENTRY * WXEGLTEXCOORD4FV)(const GLfloat *); +WXE_EXTERN WXEGLTEXCOORD4FV weglTexCoord4fv; +typedef void (APIENTRY * WXEGLTEXCOORD4IV)(const GLint *); +WXE_EXTERN WXEGLTEXCOORD4IV weglTexCoord4iv; +typedef void (APIENTRY * WXEGLTEXCOORD4SV)(const GLshort *); +WXE_EXTERN WXEGLTEXCOORD4SV weglTexCoord4sv; typedef void (APIENTRY * WXEGLRASTERPOS2DV)(const GLdouble *); WXE_EXTERN WXEGLRASTERPOS2DV weglRasterPos2dv; typedef void (APIENTRY * WXEGLRASTERPOS2FV)(const GLfloat *); @@ -415,150 +313,252 @@ typedef void (APIENTRY * WXEGLRASTERPOS4IV)(const GLint *); WXE_EXTERN WXEGLRASTERPOS4IV weglRasterPos4iv; typedef void (APIENTRY * WXEGLRASTERPOS4SV)(const GLshort *); WXE_EXTERN WXEGLRASTERPOS4SV weglRasterPos4sv; -typedef void (APIENTRY * WXEGLREADBUFFER)(GLenum); -WXE_EXTERN WXEGLREADBUFFER weglReadBuffer; -typedef void (APIENTRY * WXEGLREADPIXELS)(GLint,GLint,GLsizei,GLsizei,GLenum,GLenum,GLvoid *); -WXE_EXTERN WXEGLREADPIXELS weglReadPixels; typedef void (APIENTRY * WXEGLRECTD)(GLdouble,GLdouble,GLdouble,GLdouble); WXE_EXTERN WXEGLRECTD weglRectd; -typedef void (APIENTRY * WXEGLRECTDV)(const GLdouble *,const GLdouble *); -WXE_EXTERN WXEGLRECTDV weglRectdv; typedef void (APIENTRY * WXEGLRECTF)(GLfloat,GLfloat,GLfloat,GLfloat); WXE_EXTERN WXEGLRECTF weglRectf; -typedef void (APIENTRY * WXEGLRECTFV)(const GLfloat *,const GLfloat *); -WXE_EXTERN WXEGLRECTFV weglRectfv; typedef void (APIENTRY * WXEGLRECTI)(GLint,GLint,GLint,GLint); WXE_EXTERN WXEGLRECTI weglRecti; -typedef void (APIENTRY * WXEGLRECTIV)(const GLint *,const GLint *); -WXE_EXTERN WXEGLRECTIV weglRectiv; typedef void (APIENTRY * WXEGLRECTS)(GLshort,GLshort,GLshort,GLshort); WXE_EXTERN WXEGLRECTS weglRects; +typedef void (APIENTRY * WXEGLRECTDV)(const GLdouble *,const GLdouble *); +WXE_EXTERN WXEGLRECTDV weglRectdv; +typedef void (APIENTRY * WXEGLRECTFV)(const GLfloat *,const GLfloat *); +WXE_EXTERN WXEGLRECTFV weglRectfv; +typedef void (APIENTRY * WXEGLRECTIV)(const GLint *,const GLint *); +WXE_EXTERN WXEGLRECTIV weglRectiv; typedef void (APIENTRY * WXEGLRECTSV)(const GLshort *,const GLshort *); WXE_EXTERN WXEGLRECTSV weglRectsv; -typedef GLint (APIENTRY * WXEGLRENDERMODE)(GLenum); -WXE_EXTERN WXEGLRENDERMODE weglRenderMode; -typedef void (APIENTRY * WXEGLROTATED)(GLdouble,GLdouble,GLdouble,GLdouble); -WXE_EXTERN WXEGLROTATED weglRotated; -typedef void (APIENTRY * WXEGLROTATEF)(GLfloat,GLfloat,GLfloat,GLfloat); -WXE_EXTERN WXEGLROTATEF weglRotatef; -typedef void (APIENTRY * WXEGLSCALED)(GLdouble,GLdouble,GLdouble); -WXE_EXTERN WXEGLSCALED weglScaled; -typedef void (APIENTRY * WXEGLSCALEF)(GLfloat,GLfloat,GLfloat); -WXE_EXTERN WXEGLSCALEF weglScalef; -typedef void (APIENTRY * WXEGLSCISSOR)(GLint,GLint,GLsizei,GLsizei); -WXE_EXTERN WXEGLSCISSOR weglScissor; -typedef void (APIENTRY * WXEGLSELECTBUFFER)(GLsizei,GLuint *); -WXE_EXTERN WXEGLSELECTBUFFER weglSelectBuffer; +typedef void (APIENTRY * WXEGLVERTEXPOINTER)(GLint,GLenum,GLsizei,const GLvoid *); +WXE_EXTERN WXEGLVERTEXPOINTER weglVertexPointer; +typedef void (APIENTRY * WXEGLNORMALPOINTER)(GLenum,GLsizei,const GLvoid *); +WXE_EXTERN WXEGLNORMALPOINTER weglNormalPointer; +typedef void (APIENTRY * WXEGLCOLORPOINTER)(GLint,GLenum,GLsizei,const GLvoid *); +WXE_EXTERN WXEGLCOLORPOINTER weglColorPointer; +typedef void (APIENTRY * WXEGLINDEXPOINTER)(GLenum,GLsizei,const GLvoid *); +WXE_EXTERN WXEGLINDEXPOINTER weglIndexPointer; +typedef void (APIENTRY * WXEGLTEXCOORDPOINTER)(GLint,GLenum,GLsizei,const GLvoid *); +WXE_EXTERN WXEGLTEXCOORDPOINTER weglTexCoordPointer; +typedef void (APIENTRY * WXEGLEDGEFLAGPOINTER)(GLsizei,const GLvoid *); +WXE_EXTERN WXEGLEDGEFLAGPOINTER weglEdgeFlagPointer; +typedef void (APIENTRY * WXEGLARRAYELEMENT)(GLint); +WXE_EXTERN WXEGLARRAYELEMENT weglArrayElement; +typedef void (APIENTRY * WXEGLDRAWARRAYS)(GLenum,GLint,GLsizei); +WXE_EXTERN WXEGLDRAWARRAYS weglDrawArrays; +typedef void (APIENTRY * WXEGLDRAWELEMENTS)(GLenum,GLsizei,GLenum,const GLvoid *); +WXE_EXTERN WXEGLDRAWELEMENTS weglDrawElements; +typedef void (APIENTRY * WXEGLINTERLEAVEDARRAYS)(GLenum,GLsizei,const GLvoid *); +WXE_EXTERN WXEGLINTERLEAVEDARRAYS weglInterleavedArrays; typedef void (APIENTRY * WXEGLSHADEMODEL)(GLenum); WXE_EXTERN WXEGLSHADEMODEL weglShadeModel; +typedef void (APIENTRY * WXEGLLIGHTF)(GLenum,GLenum,GLfloat); +WXE_EXTERN WXEGLLIGHTF weglLightf; +typedef void (APIENTRY * WXEGLLIGHTI)(GLenum,GLenum,GLint); +WXE_EXTERN WXEGLLIGHTI weglLighti; +typedef void (APIENTRY * WXEGLLIGHTFV)(GLenum,GLenum,const GLfloat *); +WXE_EXTERN WXEGLLIGHTFV weglLightfv; +typedef void (APIENTRY * WXEGLLIGHTIV)(GLenum,GLenum,const GLint *); +WXE_EXTERN WXEGLLIGHTIV weglLightiv; +typedef void (APIENTRY * WXEGLGETLIGHTFV)(GLenum,GLenum,GLfloat *); +WXE_EXTERN WXEGLGETLIGHTFV weglGetLightfv; +typedef void (APIENTRY * WXEGLGETLIGHTIV)(GLenum,GLenum,GLint *); +WXE_EXTERN WXEGLGETLIGHTIV weglGetLightiv; +typedef void (APIENTRY * WXEGLLIGHTMODELF)(GLenum,GLfloat); +WXE_EXTERN WXEGLLIGHTMODELF weglLightModelf; +typedef void (APIENTRY * WXEGLLIGHTMODELI)(GLenum,GLint); +WXE_EXTERN WXEGLLIGHTMODELI weglLightModeli; +typedef void (APIENTRY * WXEGLLIGHTMODELFV)(GLenum,const GLfloat *); +WXE_EXTERN WXEGLLIGHTMODELFV weglLightModelfv; +typedef void (APIENTRY * WXEGLLIGHTMODELIV)(GLenum,const GLint *); +WXE_EXTERN WXEGLLIGHTMODELIV weglLightModeliv; +typedef void (APIENTRY * WXEGLMATERIALF)(GLenum,GLenum,GLfloat); +WXE_EXTERN WXEGLMATERIALF weglMaterialf; +typedef void (APIENTRY * WXEGLMATERIALI)(GLenum,GLenum,GLint); +WXE_EXTERN WXEGLMATERIALI weglMateriali; +typedef void (APIENTRY * WXEGLMATERIALFV)(GLenum,GLenum,const GLfloat *); +WXE_EXTERN WXEGLMATERIALFV weglMaterialfv; +typedef void (APIENTRY * WXEGLMATERIALIV)(GLenum,GLenum,const GLint *); +WXE_EXTERN WXEGLMATERIALIV weglMaterialiv; +typedef void (APIENTRY * WXEGLGETMATERIALFV)(GLenum,GLenum,GLfloat *); +WXE_EXTERN WXEGLGETMATERIALFV weglGetMaterialfv; +typedef void (APIENTRY * WXEGLGETMATERIALIV)(GLenum,GLenum,GLint *); +WXE_EXTERN WXEGLGETMATERIALIV weglGetMaterialiv; +typedef void (APIENTRY * WXEGLCOLORMATERIAL)(GLenum,GLenum); +WXE_EXTERN WXEGLCOLORMATERIAL weglColorMaterial; +typedef void (APIENTRY * WXEGLPIXELZOOM)(GLfloat,GLfloat); +WXE_EXTERN WXEGLPIXELZOOM weglPixelZoom; +typedef void (APIENTRY * WXEGLPIXELSTOREF)(GLenum,GLfloat); +WXE_EXTERN WXEGLPIXELSTOREF weglPixelStoref; +typedef void (APIENTRY * WXEGLPIXELSTOREI)(GLenum,GLint); +WXE_EXTERN WXEGLPIXELSTOREI weglPixelStorei; +typedef void (APIENTRY * WXEGLPIXELTRANSFERF)(GLenum,GLfloat); +WXE_EXTERN WXEGLPIXELTRANSFERF weglPixelTransferf; +typedef void (APIENTRY * WXEGLPIXELTRANSFERI)(GLenum,GLint); +WXE_EXTERN WXEGLPIXELTRANSFERI weglPixelTransferi; +typedef void (APIENTRY * WXEGLPIXELMAPFV)(GLenum,GLsizei,const GLfloat *); +WXE_EXTERN WXEGLPIXELMAPFV weglPixelMapfv; +typedef void (APIENTRY * WXEGLPIXELMAPUIV)(GLenum,GLsizei,const GLuint *); +WXE_EXTERN WXEGLPIXELMAPUIV weglPixelMapuiv; +typedef void (APIENTRY * WXEGLPIXELMAPUSV)(GLenum,GLsizei,const GLushort *); +WXE_EXTERN WXEGLPIXELMAPUSV weglPixelMapusv; +typedef void (APIENTRY * WXEGLGETPIXELMAPFV)(GLenum,GLfloat *); +WXE_EXTERN WXEGLGETPIXELMAPFV weglGetPixelMapfv; +typedef void (APIENTRY * WXEGLGETPIXELMAPUIV)(GLenum,GLuint *); +WXE_EXTERN WXEGLGETPIXELMAPUIV weglGetPixelMapuiv; +typedef void (APIENTRY * WXEGLGETPIXELMAPUSV)(GLenum,GLushort *); +WXE_EXTERN WXEGLGETPIXELMAPUSV weglGetPixelMapusv; +typedef void (APIENTRY * WXEGLBITMAP)(GLsizei,GLsizei,GLfloat,GLfloat,GLfloat,GLfloat,const GLubyte *); +WXE_EXTERN WXEGLBITMAP weglBitmap; +typedef void (APIENTRY * WXEGLREADPIXELS)(GLint,GLint,GLsizei,GLsizei,GLenum,GLenum,GLvoid *); +WXE_EXTERN WXEGLREADPIXELS weglReadPixels; +typedef void (APIENTRY * WXEGLDRAWPIXELS)(GLsizei,GLsizei,GLenum,GLenum,const GLvoid *); +WXE_EXTERN WXEGLDRAWPIXELS weglDrawPixels; +typedef void (APIENTRY * WXEGLCOPYPIXELS)(GLint,GLint,GLsizei,GLsizei,GLenum); +WXE_EXTERN WXEGLCOPYPIXELS weglCopyPixels; typedef void (APIENTRY * WXEGLSTENCILFUNC)(GLenum,GLint,GLuint); WXE_EXTERN WXEGLSTENCILFUNC weglStencilFunc; typedef void (APIENTRY * WXEGLSTENCILMASK)(GLuint); WXE_EXTERN WXEGLSTENCILMASK weglStencilMask; typedef void (APIENTRY * WXEGLSTENCILOP)(GLenum,GLenum,GLenum); WXE_EXTERN WXEGLSTENCILOP weglStencilOp; -typedef void (APIENTRY * WXEGLTEXCOORD1DV)(const GLdouble *); -WXE_EXTERN WXEGLTEXCOORD1DV weglTexCoord1dv; -typedef void (APIENTRY * WXEGLTEXCOORD1FV)(const GLfloat *); -WXE_EXTERN WXEGLTEXCOORD1FV weglTexCoord1fv; -typedef void (APIENTRY * WXEGLTEXCOORD1IV)(const GLint *); -WXE_EXTERN WXEGLTEXCOORD1IV weglTexCoord1iv; -typedef void (APIENTRY * WXEGLTEXCOORD1SV)(const GLshort *); -WXE_EXTERN WXEGLTEXCOORD1SV weglTexCoord1sv; -typedef void (APIENTRY * WXEGLTEXCOORD2DV)(const GLdouble *); -WXE_EXTERN WXEGLTEXCOORD2DV weglTexCoord2dv; -typedef void (APIENTRY * WXEGLTEXCOORD2FV)(const GLfloat *); -WXE_EXTERN WXEGLTEXCOORD2FV weglTexCoord2fv; -typedef void (APIENTRY * WXEGLTEXCOORD2IV)(const GLint *); -WXE_EXTERN WXEGLTEXCOORD2IV weglTexCoord2iv; -typedef void (APIENTRY * WXEGLTEXCOORD2SV)(const GLshort *); -WXE_EXTERN WXEGLTEXCOORD2SV weglTexCoord2sv; -typedef void (APIENTRY * WXEGLTEXCOORD3DV)(const GLdouble *); -WXE_EXTERN WXEGLTEXCOORD3DV weglTexCoord3dv; -typedef void (APIENTRY * WXEGLTEXCOORD3FV)(const GLfloat *); -WXE_EXTERN WXEGLTEXCOORD3FV weglTexCoord3fv; -typedef void (APIENTRY * WXEGLTEXCOORD3IV)(const GLint *); -WXE_EXTERN WXEGLTEXCOORD3IV weglTexCoord3iv; -typedef void (APIENTRY * WXEGLTEXCOORD3SV)(const GLshort *); -WXE_EXTERN WXEGLTEXCOORD3SV weglTexCoord3sv; -typedef void (APIENTRY * WXEGLTEXCOORD4DV)(const GLdouble *); -WXE_EXTERN WXEGLTEXCOORD4DV weglTexCoord4dv; -typedef void (APIENTRY * WXEGLTEXCOORD4FV)(const GLfloat *); -WXE_EXTERN WXEGLTEXCOORD4FV weglTexCoord4fv; -typedef void (APIENTRY * WXEGLTEXCOORD4IV)(const GLint *); -WXE_EXTERN WXEGLTEXCOORD4IV weglTexCoord4iv; -typedef void (APIENTRY * WXEGLTEXCOORD4SV)(const GLshort *); -WXE_EXTERN WXEGLTEXCOORD4SV weglTexCoord4sv; -typedef void (APIENTRY * WXEGLTEXCOORDPOINTER)(GLint,GLenum,GLsizei,const GLvoid *); -WXE_EXTERN WXEGLTEXCOORDPOINTER weglTexCoordPointer; -typedef void (APIENTRY * WXEGLTEXENVF)(GLenum,GLenum,GLfloat); -WXE_EXTERN WXEGLTEXENVF weglTexEnvf; -typedef void (APIENTRY * WXEGLTEXENVFV)(GLenum,GLenum,const GLfloat *); -WXE_EXTERN WXEGLTEXENVFV weglTexEnvfv; -typedef void (APIENTRY * WXEGLTEXENVI)(GLenum,GLenum,GLint); -WXE_EXTERN WXEGLTEXENVI weglTexEnvi; -typedef void (APIENTRY * WXEGLTEXENVIV)(GLenum,GLenum,const GLint *); -WXE_EXTERN WXEGLTEXENVIV weglTexEnviv; +typedef void (APIENTRY * WXEGLCLEARSTENCIL)(GLint); +WXE_EXTERN WXEGLCLEARSTENCIL weglClearStencil; typedef void (APIENTRY * WXEGLTEXGEND)(GLenum,GLenum,GLdouble); WXE_EXTERN WXEGLTEXGEND weglTexGend; -typedef void (APIENTRY * WXEGLTEXGENDV)(GLenum,GLenum,const GLdouble *); -WXE_EXTERN WXEGLTEXGENDV weglTexGendv; typedef void (APIENTRY * WXEGLTEXGENF)(GLenum,GLenum,GLfloat); WXE_EXTERN WXEGLTEXGENF weglTexGenf; -typedef void (APIENTRY * WXEGLTEXGENFV)(GLenum,GLenum,const GLfloat *); -WXE_EXTERN WXEGLTEXGENFV weglTexGenfv; typedef void (APIENTRY * WXEGLTEXGENI)(GLenum,GLenum,GLint); WXE_EXTERN WXEGLTEXGENI weglTexGeni; +typedef void (APIENTRY * WXEGLTEXGENDV)(GLenum,GLenum,const GLdouble *); +WXE_EXTERN WXEGLTEXGENDV weglTexGendv; +typedef void (APIENTRY * WXEGLTEXGENFV)(GLenum,GLenum,const GLfloat *); +WXE_EXTERN WXEGLTEXGENFV weglTexGenfv; typedef void (APIENTRY * WXEGLTEXGENIV)(GLenum,GLenum,const GLint *); WXE_EXTERN WXEGLTEXGENIV weglTexGeniv; -typedef void (APIENTRY * WXEGLTEXIMAGE1D)(GLenum,GLint,GLint,GLsizei,GLint,GLenum,GLenum,const GLvoid *); -WXE_EXTERN WXEGLTEXIMAGE1D weglTexImage1D; -typedef void (APIENTRY * WXEGLTEXIMAGE2D)(GLenum,GLint,GLint,GLsizei,GLsizei,GLint,GLenum,GLenum,const GLvoid *); -WXE_EXTERN WXEGLTEXIMAGE2D weglTexImage2D; +typedef void (APIENTRY * WXEGLGETTEXGENDV)(GLenum,GLenum,GLdouble *); +WXE_EXTERN WXEGLGETTEXGENDV weglGetTexGendv; +typedef void (APIENTRY * WXEGLGETTEXGENFV)(GLenum,GLenum,GLfloat *); +WXE_EXTERN WXEGLGETTEXGENFV weglGetTexGenfv; +typedef void (APIENTRY * WXEGLGETTEXGENIV)(GLenum,GLenum,GLint *); +WXE_EXTERN WXEGLGETTEXGENIV weglGetTexGeniv; +typedef void (APIENTRY * WXEGLTEXENVF)(GLenum,GLenum,GLfloat); +WXE_EXTERN WXEGLTEXENVF weglTexEnvf; +typedef void (APIENTRY * WXEGLTEXENVI)(GLenum,GLenum,GLint); +WXE_EXTERN WXEGLTEXENVI weglTexEnvi; +typedef void (APIENTRY * WXEGLTEXENVFV)(GLenum,GLenum,const GLfloat *); +WXE_EXTERN WXEGLTEXENVFV weglTexEnvfv; +typedef void (APIENTRY * WXEGLTEXENVIV)(GLenum,GLenum,const GLint *); +WXE_EXTERN WXEGLTEXENVIV weglTexEnviv; +typedef void (APIENTRY * WXEGLGETTEXENVFV)(GLenum,GLenum,GLfloat *); +WXE_EXTERN WXEGLGETTEXENVFV weglGetTexEnvfv; +typedef void (APIENTRY * WXEGLGETTEXENVIV)(GLenum,GLenum,GLint *); +WXE_EXTERN WXEGLGETTEXENVIV weglGetTexEnviv; typedef void (APIENTRY * WXEGLTEXPARAMETERF)(GLenum,GLenum,GLfloat); WXE_EXTERN WXEGLTEXPARAMETERF weglTexParameterf; -typedef void (APIENTRY * WXEGLTEXPARAMETERFV)(GLenum,GLenum,const GLfloat *); -WXE_EXTERN WXEGLTEXPARAMETERFV weglTexParameterfv; typedef void (APIENTRY * WXEGLTEXPARAMETERI)(GLenum,GLenum,GLint); WXE_EXTERN WXEGLTEXPARAMETERI weglTexParameteri; +typedef void (APIENTRY * WXEGLTEXPARAMETERFV)(GLenum,GLenum,const GLfloat *); +WXE_EXTERN WXEGLTEXPARAMETERFV weglTexParameterfv; typedef void (APIENTRY * WXEGLTEXPARAMETERIV)(GLenum,GLenum,const GLint *); WXE_EXTERN WXEGLTEXPARAMETERIV weglTexParameteriv; +typedef void (APIENTRY * WXEGLGETTEXPARAMETERFV)(GLenum,GLenum,GLfloat *); +WXE_EXTERN WXEGLGETTEXPARAMETERFV weglGetTexParameterfv; +typedef void (APIENTRY * WXEGLGETTEXPARAMETERIV)(GLenum,GLenum,GLint *); +WXE_EXTERN WXEGLGETTEXPARAMETERIV weglGetTexParameteriv; +typedef void (APIENTRY * WXEGLGETTEXLEVELPARAMETERFV)(GLenum,GLint,GLenum,GLfloat *); +WXE_EXTERN WXEGLGETTEXLEVELPARAMETERFV weglGetTexLevelParameterfv; +typedef void (APIENTRY * WXEGLGETTEXLEVELPARAMETERIV)(GLenum,GLint,GLenum,GLint *); +WXE_EXTERN WXEGLGETTEXLEVELPARAMETERIV weglGetTexLevelParameteriv; +typedef void (APIENTRY * WXEGLTEXIMAGE1D)(GLenum,GLint,GLint,GLsizei,GLint,GLenum,GLenum,const GLvoid *); +WXE_EXTERN WXEGLTEXIMAGE1D weglTexImage1D; +typedef void (APIENTRY * WXEGLTEXIMAGE2D)(GLenum,GLint,GLint,GLsizei,GLsizei,GLint,GLenum,GLenum,const GLvoid *); +WXE_EXTERN WXEGLTEXIMAGE2D weglTexImage2D; +typedef void (APIENTRY * WXEGLGETTEXIMAGE)(GLenum,GLint,GLenum,GLenum,GLvoid *); +WXE_EXTERN WXEGLGETTEXIMAGE weglGetTexImage; +typedef void (APIENTRY * WXEGLGENTEXTURES)(GLsizei,GLuint *); +WXE_EXTERN WXEGLGENTEXTURES weglGenTextures; +typedef void (APIENTRY * WXEGLDELETETEXTURES)(GLsizei,const GLuint *); +WXE_EXTERN WXEGLDELETETEXTURES weglDeleteTextures; +typedef void (APIENTRY * WXEGLBINDTEXTURE)(GLenum,GLuint); +WXE_EXTERN WXEGLBINDTEXTURE weglBindTexture; +typedef void (APIENTRY * WXEGLPRIORITIZETEXTURES)(GLsizei,const GLuint *,const GLclampf *); +WXE_EXTERN WXEGLPRIORITIZETEXTURES weglPrioritizeTextures; +typedef GLboolean (APIENTRY * WXEGLARETEXTURESRESIDENT)(GLsizei,const GLuint *,GLboolean *); +WXE_EXTERN WXEGLARETEXTURESRESIDENT weglAreTexturesResident; +typedef GLboolean (APIENTRY * WXEGLISTEXTURE)(GLuint); +WXE_EXTERN WXEGLISTEXTURE weglIsTexture; typedef void (APIENTRY * WXEGLTEXSUBIMAGE1D)(GLenum,GLint,GLint,GLsizei,GLenum,GLenum,const GLvoid *); WXE_EXTERN WXEGLTEXSUBIMAGE1D weglTexSubImage1D; typedef void (APIENTRY * WXEGLTEXSUBIMAGE2D)(GLenum,GLint,GLint,GLint,GLsizei,GLsizei,GLenum,GLenum,const GLvoid *); WXE_EXTERN WXEGLTEXSUBIMAGE2D weglTexSubImage2D; -typedef void (APIENTRY * WXEGLTRANSLATED)(GLdouble,GLdouble,GLdouble); -WXE_EXTERN WXEGLTRANSLATED weglTranslated; -typedef void (APIENTRY * WXEGLTRANSLATEF)(GLfloat,GLfloat,GLfloat); -WXE_EXTERN WXEGLTRANSLATEF weglTranslatef; -typedef void (APIENTRY * WXEGLVERTEX2DV)(const GLdouble *); -WXE_EXTERN WXEGLVERTEX2DV weglVertex2dv; -typedef void (APIENTRY * WXEGLVERTEX2FV)(const GLfloat *); -WXE_EXTERN WXEGLVERTEX2FV weglVertex2fv; -typedef void (APIENTRY * WXEGLVERTEX2IV)(const GLint *); -WXE_EXTERN WXEGLVERTEX2IV weglVertex2iv; -typedef void (APIENTRY * WXEGLVERTEX2SV)(const GLshort *); -WXE_EXTERN WXEGLVERTEX2SV weglVertex2sv; -typedef void (APIENTRY * WXEGLVERTEX3DV)(const GLdouble *); -WXE_EXTERN WXEGLVERTEX3DV weglVertex3dv; -typedef void (APIENTRY * WXEGLVERTEX3FV)(const GLfloat *); -WXE_EXTERN WXEGLVERTEX3FV weglVertex3fv; -typedef void (APIENTRY * WXEGLVERTEX3IV)(const GLint *); -WXE_EXTERN WXEGLVERTEX3IV weglVertex3iv; -typedef void (APIENTRY * WXEGLVERTEX3SV)(const GLshort *); -WXE_EXTERN WXEGLVERTEX3SV weglVertex3sv; -typedef void (APIENTRY * WXEGLVERTEX4DV)(const GLdouble *); -WXE_EXTERN WXEGLVERTEX4DV weglVertex4dv; -typedef void (APIENTRY * WXEGLVERTEX4FV)(const GLfloat *); -WXE_EXTERN WXEGLVERTEX4FV weglVertex4fv; -typedef void (APIENTRY * WXEGLVERTEX4IV)(const GLint *); -WXE_EXTERN WXEGLVERTEX4IV weglVertex4iv; -typedef void (APIENTRY * WXEGLVERTEX4SV)(const GLshort *); -WXE_EXTERN WXEGLVERTEX4SV weglVertex4sv; -typedef void (APIENTRY * WXEGLVERTEXPOINTER)(GLint,GLenum,GLsizei,const GLvoid *); -WXE_EXTERN WXEGLVERTEXPOINTER weglVertexPointer; -typedef void (APIENTRY * WXEGLVIEWPORT)(GLint,GLint,GLsizei,GLsizei); -WXE_EXTERN WXEGLVIEWPORT weglViewport; +typedef void (APIENTRY * WXEGLCOPYTEXIMAGE1D)(GLenum,GLint,GLenum,GLint,GLint,GLsizei,GLint); +WXE_EXTERN WXEGLCOPYTEXIMAGE1D weglCopyTexImage1D; +typedef void (APIENTRY * WXEGLCOPYTEXIMAGE2D)(GLenum,GLint,GLenum,GLint,GLint,GLsizei,GLsizei,GLint); +WXE_EXTERN WXEGLCOPYTEXIMAGE2D weglCopyTexImage2D; +typedef void (APIENTRY * WXEGLCOPYTEXSUBIMAGE1D)(GLenum,GLint,GLint,GLint,GLint,GLsizei); +WXE_EXTERN WXEGLCOPYTEXSUBIMAGE1D weglCopyTexSubImage1D; +typedef void (APIENTRY * WXEGLCOPYTEXSUBIMAGE2D)(GLenum,GLint,GLint,GLint,GLint,GLint,GLsizei,GLsizei); +WXE_EXTERN WXEGLCOPYTEXSUBIMAGE2D weglCopyTexSubImage2D; +typedef void (APIENTRY * WXEGLMAP1D)(GLenum,GLdouble,GLdouble,GLint,GLint,const GLdouble *); +WXE_EXTERN WXEGLMAP1D weglMap1d; +typedef void (APIENTRY * WXEGLMAP1F)(GLenum,GLfloat,GLfloat,GLint,GLint,const GLfloat *); +WXE_EXTERN WXEGLMAP1F weglMap1f; +typedef void (APIENTRY * WXEGLMAP2D)(GLenum,GLdouble,GLdouble,GLint,GLint,GLdouble,GLdouble,GLint,GLint,const GLdouble *); +WXE_EXTERN WXEGLMAP2D weglMap2d; +typedef void (APIENTRY * WXEGLMAP2F)(GLenum,GLfloat,GLfloat,GLint,GLint,GLfloat,GLfloat,GLint,GLint,const GLfloat *); +WXE_EXTERN WXEGLMAP2F weglMap2f; +typedef void (APIENTRY * WXEGLGETMAPDV)(GLenum,GLenum,GLdouble *); +WXE_EXTERN WXEGLGETMAPDV weglGetMapdv; +typedef void (APIENTRY * WXEGLGETMAPFV)(GLenum,GLenum,GLfloat *); +WXE_EXTERN WXEGLGETMAPFV weglGetMapfv; +typedef void (APIENTRY * WXEGLGETMAPIV)(GLenum,GLenum,GLint *); +WXE_EXTERN WXEGLGETMAPIV weglGetMapiv; +typedef void (APIENTRY * WXEGLEVALCOORD1DV)(const GLdouble *); +WXE_EXTERN WXEGLEVALCOORD1DV weglEvalCoord1dv; +typedef void (APIENTRY * WXEGLEVALCOORD1FV)(const GLfloat *); +WXE_EXTERN WXEGLEVALCOORD1FV weglEvalCoord1fv; +typedef void (APIENTRY * WXEGLEVALCOORD2DV)(const GLdouble *); +WXE_EXTERN WXEGLEVALCOORD2DV weglEvalCoord2dv; +typedef void (APIENTRY * WXEGLEVALCOORD2FV)(const GLfloat *); +WXE_EXTERN WXEGLEVALCOORD2FV weglEvalCoord2fv; +typedef void (APIENTRY * WXEGLMAPGRID1D)(GLint,GLdouble,GLdouble); +WXE_EXTERN WXEGLMAPGRID1D weglMapGrid1d; +typedef void (APIENTRY * WXEGLMAPGRID1F)(GLint,GLfloat,GLfloat); +WXE_EXTERN WXEGLMAPGRID1F weglMapGrid1f; +typedef void (APIENTRY * WXEGLMAPGRID2D)(GLint,GLdouble,GLdouble,GLint,GLdouble,GLdouble); +WXE_EXTERN WXEGLMAPGRID2D weglMapGrid2d; +typedef void (APIENTRY * WXEGLMAPGRID2F)(GLint,GLfloat,GLfloat,GLint,GLfloat,GLfloat); +WXE_EXTERN WXEGLMAPGRID2F weglMapGrid2f; +typedef void (APIENTRY * WXEGLEVALPOINT1)(GLint); +WXE_EXTERN WXEGLEVALPOINT1 weglEvalPoint1; +typedef void (APIENTRY * WXEGLEVALPOINT2)(GLint,GLint); +WXE_EXTERN WXEGLEVALPOINT2 weglEvalPoint2; +typedef void (APIENTRY * WXEGLEVALMESH1)(GLenum,GLint,GLint); +WXE_EXTERN WXEGLEVALMESH1 weglEvalMesh1; +typedef void (APIENTRY * WXEGLEVALMESH2)(GLenum,GLint,GLint,GLint,GLint); +WXE_EXTERN WXEGLEVALMESH2 weglEvalMesh2; +typedef void (APIENTRY * WXEGLFOGF)(GLenum,GLfloat); +WXE_EXTERN WXEGLFOGF weglFogf; +typedef void (APIENTRY * WXEGLFOGI)(GLenum,GLint); +WXE_EXTERN WXEGLFOGI weglFogi; +typedef void (APIENTRY * WXEGLFOGFV)(GLenum,const GLfloat *); +WXE_EXTERN WXEGLFOGFV weglFogfv; +typedef void (APIENTRY * WXEGLFOGIV)(GLenum,const GLint *); +WXE_EXTERN WXEGLFOGIV weglFogiv; +typedef void (APIENTRY * WXEGLFEEDBACKBUFFER)(GLsizei,GLenum,GLfloat *); +WXE_EXTERN WXEGLFEEDBACKBUFFER weglFeedbackBuffer; +typedef void (APIENTRY * WXEGLPASSTHROUGH)(GLfloat); +WXE_EXTERN WXEGLPASSTHROUGH weglPassThrough; +typedef void (APIENTRY * WXEGLSELECTBUFFER)(GLsizei,GLuint *); +WXE_EXTERN WXEGLSELECTBUFFER weglSelectBuffer; +typedef void (APIENTRY * WXEGLINITNAMES)(); +WXE_EXTERN WXEGLINITNAMES weglInitNames; +typedef void (APIENTRY * WXEGLLOADNAME)(GLuint); +WXE_EXTERN WXEGLLOADNAME weglLoadName; +typedef void (APIENTRY * WXEGLPUSHNAME)(GLuint); +WXE_EXTERN WXEGLPUSHNAME weglPushName; +typedef void (APIENTRY * WXEGLPOPNAME)(); +WXE_EXTERN WXEGLPOPNAME weglPopName; typedef void (APIENTRY * WXEGLBLENDCOLOR)(GLclampf,GLclampf,GLclampf,GLclampf); WXE_EXTERN WXEGLBLENDCOLOR weglBlendColor; typedef void (APIENTRY * WXEGLBLENDEQUATION)(GLenum); @@ -681,13 +681,13 @@ typedef void (APIENTRY * WXEGLMULTITEXCOORD4IV)(GLenum,const GLint *); WXE_EXTERN WXEGLMULTITEXCOORD4IV weglMultiTexCoord4iv; typedef void (APIENTRY * WXEGLMULTITEXCOORD4SV)(GLenum,const GLshort *); WXE_EXTERN WXEGLMULTITEXCOORD4SV weglMultiTexCoord4sv; -typedef void (APIENTRY * WXEGLLOADTRANSPOSEMATRIXF)(const GLfloat *); +typedef void (APIENTRY * WXEGLLOADTRANSPOSEMATRIXF)(const GLfloat m[16]); WXE_EXTERN WXEGLLOADTRANSPOSEMATRIXF weglLoadTransposeMatrixf; -typedef void (APIENTRY * WXEGLLOADTRANSPOSEMATRIXD)(const GLdouble *); +typedef void (APIENTRY * WXEGLLOADTRANSPOSEMATRIXD)(const GLdouble m[16]); WXE_EXTERN WXEGLLOADTRANSPOSEMATRIXD weglLoadTransposeMatrixd; -typedef void (APIENTRY * WXEGLMULTTRANSPOSEMATRIXF)(const GLfloat *); +typedef void (APIENTRY * WXEGLMULTTRANSPOSEMATRIXF)(const GLfloat m[16]); WXE_EXTERN WXEGLMULTTRANSPOSEMATRIXF weglMultTransposeMatrixf; -typedef void (APIENTRY * WXEGLMULTTRANSPOSEMATRIXD)(const GLdouble *); +typedef void (APIENTRY * WXEGLMULTTRANSPOSEMATRIXD)(const GLdouble m[16]); WXE_EXTERN WXEGLMULTTRANSPOSEMATRIXD weglMultTransposeMatrixd; typedef void (APIENTRY * WXEGLBLENDFUNCSEPARATE)(GLenum,GLenum,GLenum,GLenum); WXE_EXTERN WXEGLBLENDFUNCSEPARATE weglBlendFuncSeparate; @@ -1589,16 +1589,28 @@ typedef GLuint (APIENTRY * WXEGLGETDEBUGMESSAGELOGARB)(GLuint,GLsizei,GLenum *,G WXE_EXTERN WXEGLGETDEBUGMESSAGELOGARB weglGetDebugMessageLogARB; typedef GLenum (APIENTRY * WXEGLGETGRAPHICSRESETSTATUSARB)(); WXE_EXTERN WXEGLGETGRAPHICSRESETSTATUSARB weglGetGraphicsResetStatusARB; -typedef void (APIENTRY * WXEGLRESIZEBUFFERSMESA)(); -WXE_EXTERN WXEGLRESIZEBUFFERSMESA weglResizeBuffersMESA; -typedef void (APIENTRY * WXEGLWINDOWPOS4DVMESA)(const GLdouble *); -WXE_EXTERN WXEGLWINDOWPOS4DVMESA weglWindowPos4dvMESA; -typedef void (APIENTRY * WXEGLWINDOWPOS4FVMESA)(const GLfloat *); -WXE_EXTERN WXEGLWINDOWPOS4FVMESA weglWindowPos4fvMESA; -typedef void (APIENTRY * WXEGLWINDOWPOS4IVMESA)(const GLint *); -WXE_EXTERN WXEGLWINDOWPOS4IVMESA weglWindowPos4ivMESA; -typedef void (APIENTRY * WXEGLWINDOWPOS4SVMESA)(const GLshort *); -WXE_EXTERN WXEGLWINDOWPOS4SVMESA weglWindowPos4svMESA; +typedef void (APIENTRY * WXEGLDRAWARRAYSINSTANCEDBASEINSTANCE)(GLenum,GLint,GLsizei,GLsizei,GLuint); +WXE_EXTERN WXEGLDRAWARRAYSINSTANCEDBASEINSTANCE weglDrawArraysInstancedBaseInstance; +typedef void (APIENTRY * WXEGLDRAWELEMENTSINSTANCEDBASEINSTANCE)(GLenum,GLsizei,GLenum,const void *,GLsizei,GLuint); +WXE_EXTERN WXEGLDRAWELEMENTSINSTANCEDBASEINSTANCE weglDrawElementsInstancedBaseInstance; +typedef void (APIENTRY * WXEGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCE)(GLenum,GLsizei,GLenum,const void *,GLsizei,GLint,GLuint); +WXE_EXTERN WXEGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCE weglDrawElementsInstancedBaseVertexBaseInstance; +typedef void (APIENTRY * WXEGLDRAWTRANSFORMFEEDBACKINSTANCED)(GLenum,GLuint,GLsizei); +WXE_EXTERN WXEGLDRAWTRANSFORMFEEDBACKINSTANCED weglDrawTransformFeedbackInstanced; +typedef void (APIENTRY * WXEGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCED)(GLenum,GLuint,GLuint,GLsizei); +WXE_EXTERN WXEGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCED weglDrawTransformFeedbackStreamInstanced; +typedef void (APIENTRY * WXEGLGETINTERNALFORMATIV)(GLenum,GLenum,GLenum,GLsizei,GLint *); +WXE_EXTERN WXEGLGETINTERNALFORMATIV weglGetInternalformativ; +typedef void (APIENTRY * WXEGLBINDIMAGETEXTURE)(GLuint,GLuint,GLint,GLboolean,GLint,GLenum,GLenum); +WXE_EXTERN WXEGLBINDIMAGETEXTURE weglBindImageTexture; +typedef void (APIENTRY * WXEGLMEMORYBARRIER)(GLbitfield); +WXE_EXTERN WXEGLMEMORYBARRIER weglMemoryBarrier; +typedef void (APIENTRY * WXEGLTEXSTORAGE1D)(GLenum,GLsizei,GLenum,GLsizei); +WXE_EXTERN WXEGLTEXSTORAGE1D weglTexStorage1D; +typedef void (APIENTRY * WXEGLTEXSTORAGE2D)(GLenum,GLsizei,GLenum,GLsizei,GLsizei); +WXE_EXTERN WXEGLTEXSTORAGE2D weglTexStorage2D; +typedef void (APIENTRY * WXEGLTEXSTORAGE3D)(GLenum,GLsizei,GLenum,GLsizei,GLsizei,GLsizei); +WXE_EXTERN WXEGLTEXSTORAGE3D weglTexStorage3D; typedef void (APIENTRY * WXEGLDEPTHBOUNDSEXT)(GLclampd,GLclampd); WXE_EXTERN WXEGLDEPTHBOUNDSEXT weglDepthBoundsEXT; typedef void (APIENTRY * WXEGLSTENCILCLEARTAGEXT)(GLsizei,GLuint); diff --git a/lib/wx/c_src/gen/gl_finit.h b/lib/wx/c_src/gen/gl_finit.h index 583e36faf7..afe947ed80 100644 --- a/lib/wx/c_src/gen/gl_finit.h +++ b/lib/wx/c_src/gen/gl_finit.h @@ -1,7 +1,7 @@ /* * %CopyrightBegin% * - * Copyright Ericsson AB 2008-2010. All Rights Reserved. + * Copyright Ericsson AB 2008-2012. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in @@ -20,186 +20,135 @@ gl_fns_t gl_fns[] = { - {"glAccum", NULL, &weglAccum}, - {"glAlphaFunc", NULL, &weglAlphaFunc}, - {"glAreTexturesResident", NULL, &weglAreTexturesResident}, - {"glArrayElement", NULL, &weglArrayElement}, - {"glBegin", NULL, &weglBegin}, - {"glBindTexture", NULL, &weglBindTexture}, - {"glBitmap", NULL, &weglBitmap}, - {"glBlendFunc", NULL, &weglBlendFunc}, - {"glCallList", NULL, &weglCallList}, - {"glCallLists", NULL, &weglCallLists}, - {"glClear", NULL, &weglClear}, - {"glClearAccum", NULL, &weglClearAccum}, - {"glClearColor", NULL, &weglClearColor}, - {"glClearDepth", NULL, &weglClearDepth}, {"glClearIndex", NULL, &weglClearIndex}, - {"glClearStencil", NULL, &weglClearStencil}, - {"glClipPlane", NULL, &weglClipPlane}, - {"glColor3bv", NULL, &weglColor3bv}, - {"glColor3dv", NULL, &weglColor3dv}, - {"glColor3fv", NULL, &weglColor3fv}, - {"glColor3iv", NULL, &weglColor3iv}, - {"glColor3sv", NULL, &weglColor3sv}, - {"glColor3ubv", NULL, &weglColor3ubv}, - {"glColor3uiv", NULL, &weglColor3uiv}, - {"glColor3usv", NULL, &weglColor3usv}, - {"glColor4bv", NULL, &weglColor4bv}, - {"glColor4dv", NULL, &weglColor4dv}, - {"glColor4fv", NULL, &weglColor4fv}, - {"glColor4iv", NULL, &weglColor4iv}, - {"glColor4sv", NULL, &weglColor4sv}, - {"glColor4ubv", NULL, &weglColor4ubv}, - {"glColor4uiv", NULL, &weglColor4uiv}, - {"glColor4usv", NULL, &weglColor4usv}, + {"glClearColor", NULL, &weglClearColor}, + {"glClear", NULL, &weglClear}, + {"glIndexMask", NULL, &weglIndexMask}, {"glColorMask", NULL, &weglColorMask}, - {"glColorMaterial", NULL, &weglColorMaterial}, - {"glColorPointer", NULL, &weglColorPointer}, - {"glCopyPixels", NULL, &weglCopyPixels}, - {"glCopyTexImage1D", NULL, &weglCopyTexImage1D}, - {"glCopyTexImage2D", NULL, &weglCopyTexImage2D}, - {"glCopyTexSubImage1D", NULL, &weglCopyTexSubImage1D}, - {"glCopyTexSubImage2D", NULL, &weglCopyTexSubImage2D}, + {"glAlphaFunc", NULL, &weglAlphaFunc}, + {"glBlendFunc", NULL, &weglBlendFunc}, + {"glLogicOp", NULL, &weglLogicOp}, {"glCullFace", NULL, &weglCullFace}, - {"glDeleteLists", NULL, &weglDeleteLists}, - {"glDeleteTextures", NULL, &weglDeleteTextures}, - {"glDepthFunc", NULL, &weglDepthFunc}, - {"glDepthMask", NULL, &weglDepthMask}, - {"glDepthRange", NULL, &weglDepthRange}, - {"glDisable", NULL, &weglDisable}, - {"glDisableClientState", NULL, &weglDisableClientState}, - {"glDrawArrays", NULL, &weglDrawArrays}, - {"glDrawBuffer", NULL, &weglDrawBuffer}, - {"glDrawElements", NULL, &weglDrawElements}, - {"glDrawPixels", NULL, &weglDrawPixels}, + {"glFrontFace", NULL, &weglFrontFace}, + {"glPointSize", NULL, &weglPointSize}, + {"glLineWidth", NULL, &weglLineWidth}, + {"glLineStipple", NULL, &weglLineStipple}, + {"glPolygonMode", NULL, &weglPolygonMode}, + {"glPolygonOffset", NULL, &weglPolygonOffset}, + {"glPolygonStipple", NULL, &weglPolygonStipple}, + {"glGetPolygonStipple", NULL, &weglGetPolygonStipple}, {"glEdgeFlagv", NULL, &weglEdgeFlagv}, - {"glEdgeFlagPointer", NULL, &weglEdgeFlagPointer}, + {"glScissor", NULL, &weglScissor}, + {"glClipPlane", NULL, &weglClipPlane}, + {"glGetClipPlane", NULL, &weglGetClipPlane}, + {"glDrawBuffer", NULL, &weglDrawBuffer}, + {"glReadBuffer", NULL, &weglReadBuffer}, {"glEnable", NULL, &weglEnable}, + {"glDisable", NULL, &weglDisable}, + {"glIsEnabled", NULL, &weglIsEnabled}, {"glEnableClientState", NULL, &weglEnableClientState}, - {"glEnd", NULL, &weglEnd}, - {"glEndList", NULL, &weglEndList}, - {"glEvalCoord1dv", NULL, &weglEvalCoord1dv}, - {"glEvalCoord1fv", NULL, &weglEvalCoord1fv}, - {"glEvalCoord2dv", NULL, &weglEvalCoord2dv}, - {"glEvalCoord2fv", NULL, &weglEvalCoord2fv}, - {"glEvalMesh1", NULL, &weglEvalMesh1}, - {"glEvalMesh2", NULL, &weglEvalMesh2}, - {"glEvalPoint1", NULL, &weglEvalPoint1}, - {"glEvalPoint2", NULL, &weglEvalPoint2}, - {"glFeedbackBuffer", NULL, &weglFeedbackBuffer}, - {"glFinish", NULL, &weglFinish}, - {"glFlush", NULL, &weglFlush}, - {"glFogf", NULL, &weglFogf}, - {"glFogfv", NULL, &weglFogfv}, - {"glFogi", NULL, &weglFogi}, - {"glFogiv", NULL, &weglFogiv}, - {"glFrontFace", NULL, &weglFrontFace}, - {"glFrustum", NULL, &weglFrustum}, - {"glGenLists", NULL, &weglGenLists}, - {"glGenTextures", NULL, &weglGenTextures}, + {"glDisableClientState", NULL, &weglDisableClientState}, {"glGetBooleanv", NULL, &weglGetBooleanv}, - {"glGetClipPlane", NULL, &weglGetClipPlane}, {"glGetDoublev", NULL, &weglGetDoublev}, - {"glGetError", NULL, &weglGetError}, {"glGetFloatv", NULL, &weglGetFloatv}, {"glGetIntegerv", NULL, &weglGetIntegerv}, - {"glGetLightfv", NULL, &weglGetLightfv}, - {"glGetLightiv", NULL, &weglGetLightiv}, - {"glGetMapdv", NULL, &weglGetMapdv}, - {"glGetMapfv", NULL, &weglGetMapfv}, - {"glGetMapiv", NULL, &weglGetMapiv}, - {"glGetMaterialfv", NULL, &weglGetMaterialfv}, - {"glGetMaterialiv", NULL, &weglGetMaterialiv}, - {"glGetPixelMapfv", NULL, &weglGetPixelMapfv}, - {"glGetPixelMapuiv", NULL, &weglGetPixelMapuiv}, - {"glGetPixelMapusv", NULL, &weglGetPixelMapusv}, - {"glGetPolygonStipple", NULL, &weglGetPolygonStipple}, + {"glPushAttrib", NULL, &weglPushAttrib}, + {"glPopAttrib", NULL, &weglPopAttrib}, + {"glPushClientAttrib", NULL, &weglPushClientAttrib}, + {"glPopClientAttrib", NULL, &weglPopClientAttrib}, + {"glRenderMode", NULL, &weglRenderMode}, + {"glGetError", NULL, &weglGetError}, {"glGetString", NULL, &weglGetString}, - {"glGetTexEnvfv", NULL, &weglGetTexEnvfv}, - {"glGetTexEnviv", NULL, &weglGetTexEnviv}, - {"glGetTexGendv", NULL, &weglGetTexGendv}, - {"glGetTexGenfv", NULL, &weglGetTexGenfv}, - {"glGetTexGeniv", NULL, &weglGetTexGeniv}, - {"glGetTexImage", NULL, &weglGetTexImage}, - {"glGetTexLevelParameterfv", NULL, &weglGetTexLevelParameterfv}, - {"glGetTexLevelParameteriv", NULL, &weglGetTexLevelParameteriv}, - {"glGetTexParameterfv", NULL, &weglGetTexParameterfv}, - {"glGetTexParameteriv", NULL, &weglGetTexParameteriv}, + {"glFinish", NULL, &weglFinish}, + {"glFlush", NULL, &weglFlush}, {"glHint", NULL, &weglHint}, - {"glIndexMask", NULL, &weglIndexMask}, - {"glIndexPointer", NULL, &weglIndexPointer}, - {"glIndexdv", NULL, &weglIndexdv}, - {"glIndexfv", NULL, &weglIndexfv}, - {"glIndexiv", NULL, &weglIndexiv}, - {"glIndexsv", NULL, &weglIndexsv}, - {"glIndexubv", NULL, &weglIndexubv}, - {"glInitNames", NULL, &weglInitNames}, - {"glInterleavedArrays", NULL, &weglInterleavedArrays}, - {"glIsEnabled", NULL, &weglIsEnabled}, - {"glIsList", NULL, &weglIsList}, - {"glIsTexture", NULL, &weglIsTexture}, - {"glLightModelf", NULL, &weglLightModelf}, - {"glLightModelfv", NULL, &weglLightModelfv}, - {"glLightModeli", NULL, &weglLightModeli}, - {"glLightModeliv", NULL, &weglLightModeliv}, - {"glLightf", NULL, &weglLightf}, - {"glLightfv", NULL, &weglLightfv}, - {"glLighti", NULL, &weglLighti}, - {"glLightiv", NULL, &weglLightiv}, - {"glLineStipple", NULL, &weglLineStipple}, - {"glLineWidth", NULL, &weglLineWidth}, - {"glListBase", NULL, &weglListBase}, + {"glClearDepth", NULL, &weglClearDepth}, + {"glDepthFunc", NULL, &weglDepthFunc}, + {"glDepthMask", NULL, &weglDepthMask}, + {"glDepthRange", NULL, &weglDepthRange}, + {"glClearAccum", NULL, &weglClearAccum}, + {"glAccum", NULL, &weglAccum}, + {"glMatrixMode", NULL, &weglMatrixMode}, + {"glOrtho", NULL, &weglOrtho}, + {"glFrustum", NULL, &weglFrustum}, + {"glViewport", NULL, &weglViewport}, + {"glPushMatrix", NULL, &weglPushMatrix}, + {"glPopMatrix", NULL, &weglPopMatrix}, {"glLoadIdentity", NULL, &weglLoadIdentity}, {"glLoadMatrixd", NULL, &weglLoadMatrixd}, {"glLoadMatrixf", NULL, &weglLoadMatrixf}, - {"glLoadName", NULL, &weglLoadName}, - {"glLogicOp", NULL, &weglLogicOp}, - {"glMap1d", NULL, &weglMap1d}, - {"glMap1f", NULL, &weglMap1f}, - {"glMap2d", NULL, &weglMap2d}, - {"glMap2f", NULL, &weglMap2f}, - {"glMapGrid1d", NULL, &weglMapGrid1d}, - {"glMapGrid1f", NULL, &weglMapGrid1f}, - {"glMapGrid2d", NULL, &weglMapGrid2d}, - {"glMapGrid2f", NULL, &weglMapGrid2f}, - {"glMaterialf", NULL, &weglMaterialf}, - {"glMaterialfv", NULL, &weglMaterialfv}, - {"glMateriali", NULL, &weglMateriali}, - {"glMaterialiv", NULL, &weglMaterialiv}, - {"glMatrixMode", NULL, &weglMatrixMode}, {"glMultMatrixd", NULL, &weglMultMatrixd}, {"glMultMatrixf", NULL, &weglMultMatrixf}, + {"glRotated", NULL, &weglRotated}, + {"glRotatef", NULL, &weglRotatef}, + {"glScaled", NULL, &weglScaled}, + {"glScalef", NULL, &weglScalef}, + {"glTranslated", NULL, &weglTranslated}, + {"glTranslatef", NULL, &weglTranslatef}, + {"glIsList", NULL, &weglIsList}, + {"glDeleteLists", NULL, &weglDeleteLists}, + {"glGenLists", NULL, &weglGenLists}, {"glNewList", NULL, &weglNewList}, + {"glEndList", NULL, &weglEndList}, + {"glCallList", NULL, &weglCallList}, + {"glCallLists", NULL, &weglCallLists}, + {"glListBase", NULL, &weglListBase}, + {"glBegin", NULL, &weglBegin}, + {"glEnd", NULL, &weglEnd}, + {"glVertex2dv", NULL, &weglVertex2dv}, + {"glVertex2fv", NULL, &weglVertex2fv}, + {"glVertex2iv", NULL, &weglVertex2iv}, + {"glVertex2sv", NULL, &weglVertex2sv}, + {"glVertex3dv", NULL, &weglVertex3dv}, + {"glVertex3fv", NULL, &weglVertex3fv}, + {"glVertex3iv", NULL, &weglVertex3iv}, + {"glVertex3sv", NULL, &weglVertex3sv}, + {"glVertex4dv", NULL, &weglVertex4dv}, + {"glVertex4fv", NULL, &weglVertex4fv}, + {"glVertex4iv", NULL, &weglVertex4iv}, + {"glVertex4sv", NULL, &weglVertex4sv}, {"glNormal3bv", NULL, &weglNormal3bv}, {"glNormal3dv", NULL, &weglNormal3dv}, {"glNormal3fv", NULL, &weglNormal3fv}, {"glNormal3iv", NULL, &weglNormal3iv}, {"glNormal3sv", NULL, &weglNormal3sv}, - {"glNormalPointer", NULL, &weglNormalPointer}, - {"glOrtho", NULL, &weglOrtho}, - {"glPassThrough", NULL, &weglPassThrough}, - {"glPixelMapfv", NULL, &weglPixelMapfv}, - {"glPixelMapuiv", NULL, &weglPixelMapuiv}, - {"glPixelMapusv", NULL, &weglPixelMapusv}, - {"glPixelStoref", NULL, &weglPixelStoref}, - {"glPixelStorei", NULL, &weglPixelStorei}, - {"glPixelTransferf", NULL, &weglPixelTransferf}, - {"glPixelTransferi", NULL, &weglPixelTransferi}, - {"glPixelZoom", NULL, &weglPixelZoom}, - {"glPointSize", NULL, &weglPointSize}, - {"glPolygonMode", NULL, &weglPolygonMode}, - {"glPolygonOffset", NULL, &weglPolygonOffset}, - {"glPolygonStipple", NULL, &weglPolygonStipple}, - {"glPopAttrib", NULL, &weglPopAttrib}, - {"glPopClientAttrib", NULL, &weglPopClientAttrib}, - {"glPopMatrix", NULL, &weglPopMatrix}, - {"glPopName", NULL, &weglPopName}, - {"glPrioritizeTextures", NULL, &weglPrioritizeTextures}, - {"glPushAttrib", NULL, &weglPushAttrib}, - {"glPushClientAttrib", NULL, &weglPushClientAttrib}, - {"glPushMatrix", NULL, &weglPushMatrix}, - {"glPushName", NULL, &weglPushName}, + {"glIndexdv", NULL, &weglIndexdv}, + {"glIndexfv", NULL, &weglIndexfv}, + {"glIndexiv", NULL, &weglIndexiv}, + {"glIndexsv", NULL, &weglIndexsv}, + {"glIndexubv", NULL, &weglIndexubv}, + {"glColor3bv", NULL, &weglColor3bv}, + {"glColor3dv", NULL, &weglColor3dv}, + {"glColor3fv", NULL, &weglColor3fv}, + {"glColor3iv", NULL, &weglColor3iv}, + {"glColor3sv", NULL, &weglColor3sv}, + {"glColor3ubv", NULL, &weglColor3ubv}, + {"glColor3uiv", NULL, &weglColor3uiv}, + {"glColor3usv", NULL, &weglColor3usv}, + {"glColor4bv", NULL, &weglColor4bv}, + {"glColor4dv", NULL, &weglColor4dv}, + {"glColor4fv", NULL, &weglColor4fv}, + {"glColor4iv", NULL, &weglColor4iv}, + {"glColor4sv", NULL, &weglColor4sv}, + {"glColor4ubv", NULL, &weglColor4ubv}, + {"glColor4uiv", NULL, &weglColor4uiv}, + {"glColor4usv", NULL, &weglColor4usv}, + {"glTexCoord1dv", NULL, &weglTexCoord1dv}, + {"glTexCoord1fv", NULL, &weglTexCoord1fv}, + {"glTexCoord1iv", NULL, &weglTexCoord1iv}, + {"glTexCoord1sv", NULL, &weglTexCoord1sv}, + {"glTexCoord2dv", NULL, &weglTexCoord2dv}, + {"glTexCoord2fv", NULL, &weglTexCoord2fv}, + {"glTexCoord2iv", NULL, &weglTexCoord2iv}, + {"glTexCoord2sv", NULL, &weglTexCoord2sv}, + {"glTexCoord3dv", NULL, &weglTexCoord3dv}, + {"glTexCoord3fv", NULL, &weglTexCoord3fv}, + {"glTexCoord3iv", NULL, &weglTexCoord3iv}, + {"glTexCoord3sv", NULL, &weglTexCoord3sv}, + {"glTexCoord4dv", NULL, &weglTexCoord4dv}, + {"glTexCoord4fv", NULL, &weglTexCoord4fv}, + {"glTexCoord4iv", NULL, &weglTexCoord4iv}, + {"glTexCoord4sv", NULL, &weglTexCoord4sv}, {"glRasterPos2dv", NULL, &weglRasterPos2dv}, {"glRasterPos2fv", NULL, &weglRasterPos2fv}, {"glRasterPos2iv", NULL, &weglRasterPos2iv}, @@ -212,78 +161,129 @@ gl_fns_t gl_fns[] = {"glRasterPos4fv", NULL, &weglRasterPos4fv}, {"glRasterPos4iv", NULL, &weglRasterPos4iv}, {"glRasterPos4sv", NULL, &weglRasterPos4sv}, - {"glReadBuffer", NULL, &weglReadBuffer}, - {"glReadPixels", NULL, &weglReadPixels}, {"glRectd", NULL, &weglRectd}, - {"glRectdv", NULL, &weglRectdv}, {"glRectf", NULL, &weglRectf}, - {"glRectfv", NULL, &weglRectfv}, {"glRecti", NULL, &weglRecti}, - {"glRectiv", NULL, &weglRectiv}, {"glRects", NULL, &weglRects}, + {"glRectdv", NULL, &weglRectdv}, + {"glRectfv", NULL, &weglRectfv}, + {"glRectiv", NULL, &weglRectiv}, {"glRectsv", NULL, &weglRectsv}, - {"glRenderMode", NULL, &weglRenderMode}, - {"glRotated", NULL, &weglRotated}, - {"glRotatef", NULL, &weglRotatef}, - {"glScaled", NULL, &weglScaled}, - {"glScalef", NULL, &weglScalef}, - {"glScissor", NULL, &weglScissor}, - {"glSelectBuffer", NULL, &weglSelectBuffer}, + {"glVertexPointer", NULL, &weglVertexPointer}, + {"glNormalPointer", NULL, &weglNormalPointer}, + {"glColorPointer", NULL, &weglColorPointer}, + {"glIndexPointer", NULL, &weglIndexPointer}, + {"glTexCoordPointer", NULL, &weglTexCoordPointer}, + {"glEdgeFlagPointer", NULL, &weglEdgeFlagPointer}, + {"glArrayElement", NULL, &weglArrayElement}, + {"glDrawArrays", NULL, &weglDrawArrays}, + {"glDrawElements", NULL, &weglDrawElements}, + {"glInterleavedArrays", NULL, &weglInterleavedArrays}, {"glShadeModel", NULL, &weglShadeModel}, + {"glLightf", NULL, &weglLightf}, + {"glLighti", NULL, &weglLighti}, + {"glLightfv", NULL, &weglLightfv}, + {"glLightiv", NULL, &weglLightiv}, + {"glGetLightfv", NULL, &weglGetLightfv}, + {"glGetLightiv", NULL, &weglGetLightiv}, + {"glLightModelf", NULL, &weglLightModelf}, + {"glLightModeli", NULL, &weglLightModeli}, + {"glLightModelfv", NULL, &weglLightModelfv}, + {"glLightModeliv", NULL, &weglLightModeliv}, + {"glMaterialf", NULL, &weglMaterialf}, + {"glMateriali", NULL, &weglMateriali}, + {"glMaterialfv", NULL, &weglMaterialfv}, + {"glMaterialiv", NULL, &weglMaterialiv}, + {"glGetMaterialfv", NULL, &weglGetMaterialfv}, + {"glGetMaterialiv", NULL, &weglGetMaterialiv}, + {"glColorMaterial", NULL, &weglColorMaterial}, + {"glPixelZoom", NULL, &weglPixelZoom}, + {"glPixelStoref", NULL, &weglPixelStoref}, + {"glPixelStorei", NULL, &weglPixelStorei}, + {"glPixelTransferf", NULL, &weglPixelTransferf}, + {"glPixelTransferi", NULL, &weglPixelTransferi}, + {"glPixelMapfv", NULL, &weglPixelMapfv}, + {"glPixelMapuiv", NULL, &weglPixelMapuiv}, + {"glPixelMapusv", NULL, &weglPixelMapusv}, + {"glGetPixelMapfv", NULL, &weglGetPixelMapfv}, + {"glGetPixelMapuiv", NULL, &weglGetPixelMapuiv}, + {"glGetPixelMapusv", NULL, &weglGetPixelMapusv}, + {"glBitmap", NULL, &weglBitmap}, + {"glReadPixels", NULL, &weglReadPixels}, + {"glDrawPixels", NULL, &weglDrawPixels}, + {"glCopyPixels", NULL, &weglCopyPixels}, {"glStencilFunc", NULL, &weglStencilFunc}, {"glStencilMask", NULL, &weglStencilMask}, {"glStencilOp", NULL, &weglStencilOp}, - {"glTexCoord1dv", NULL, &weglTexCoord1dv}, - {"glTexCoord1fv", NULL, &weglTexCoord1fv}, - {"glTexCoord1iv", NULL, &weglTexCoord1iv}, - {"glTexCoord1sv", NULL, &weglTexCoord1sv}, - {"glTexCoord2dv", NULL, &weglTexCoord2dv}, - {"glTexCoord2fv", NULL, &weglTexCoord2fv}, - {"glTexCoord2iv", NULL, &weglTexCoord2iv}, - {"glTexCoord2sv", NULL, &weglTexCoord2sv}, - {"glTexCoord3dv", NULL, &weglTexCoord3dv}, - {"glTexCoord3fv", NULL, &weglTexCoord3fv}, - {"glTexCoord3iv", NULL, &weglTexCoord3iv}, - {"glTexCoord3sv", NULL, &weglTexCoord3sv}, - {"glTexCoord4dv", NULL, &weglTexCoord4dv}, - {"glTexCoord4fv", NULL, &weglTexCoord4fv}, - {"glTexCoord4iv", NULL, &weglTexCoord4iv}, - {"glTexCoord4sv", NULL, &weglTexCoord4sv}, - {"glTexCoordPointer", NULL, &weglTexCoordPointer}, - {"glTexEnvf", NULL, &weglTexEnvf}, - {"glTexEnvfv", NULL, &weglTexEnvfv}, - {"glTexEnvi", NULL, &weglTexEnvi}, - {"glTexEnviv", NULL, &weglTexEnviv}, + {"glClearStencil", NULL, &weglClearStencil}, {"glTexGend", NULL, &weglTexGend}, - {"glTexGendv", NULL, &weglTexGendv}, {"glTexGenf", NULL, &weglTexGenf}, - {"glTexGenfv", NULL, &weglTexGenfv}, {"glTexGeni", NULL, &weglTexGeni}, + {"glTexGendv", NULL, &weglTexGendv}, + {"glTexGenfv", NULL, &weglTexGenfv}, {"glTexGeniv", NULL, &weglTexGeniv}, - {"glTexImage1D", NULL, &weglTexImage1D}, - {"glTexImage2D", NULL, &weglTexImage2D}, + {"glGetTexGendv", NULL, &weglGetTexGendv}, + {"glGetTexGenfv", NULL, &weglGetTexGenfv}, + {"glGetTexGeniv", NULL, &weglGetTexGeniv}, + {"glTexEnvf", NULL, &weglTexEnvf}, + {"glTexEnvi", NULL, &weglTexEnvi}, + {"glTexEnvfv", NULL, &weglTexEnvfv}, + {"glTexEnviv", NULL, &weglTexEnviv}, + {"glGetTexEnvfv", NULL, &weglGetTexEnvfv}, + {"glGetTexEnviv", NULL, &weglGetTexEnviv}, {"glTexParameterf", NULL, &weglTexParameterf}, - {"glTexParameterfv", NULL, &weglTexParameterfv}, {"glTexParameteri", NULL, &weglTexParameteri}, + {"glTexParameterfv", NULL, &weglTexParameterfv}, {"glTexParameteriv", NULL, &weglTexParameteriv}, + {"glGetTexParameterfv", NULL, &weglGetTexParameterfv}, + {"glGetTexParameteriv", NULL, &weglGetTexParameteriv}, + {"glGetTexLevelParameterfv", NULL, &weglGetTexLevelParameterfv}, + {"glGetTexLevelParameteriv", NULL, &weglGetTexLevelParameteriv}, + {"glTexImage1D", NULL, &weglTexImage1D}, + {"glTexImage2D", NULL, &weglTexImage2D}, + {"glGetTexImage", NULL, &weglGetTexImage}, + {"glGenTextures", NULL, &weglGenTextures}, + {"glDeleteTextures", NULL, &weglDeleteTextures}, + {"glBindTexture", NULL, &weglBindTexture}, + {"glPrioritizeTextures", NULL, &weglPrioritizeTextures}, + {"glAreTexturesResident", NULL, &weglAreTexturesResident}, + {"glIsTexture", NULL, &weglIsTexture}, {"glTexSubImage1D", NULL, &weglTexSubImage1D}, {"glTexSubImage2D", NULL, &weglTexSubImage2D}, - {"glTranslated", NULL, &weglTranslated}, - {"glTranslatef", NULL, &weglTranslatef}, - {"glVertex2dv", NULL, &weglVertex2dv}, - {"glVertex2fv", NULL, &weglVertex2fv}, - {"glVertex2iv", NULL, &weglVertex2iv}, - {"glVertex2sv", NULL, &weglVertex2sv}, - {"glVertex3dv", NULL, &weglVertex3dv}, - {"glVertex3fv", NULL, &weglVertex3fv}, - {"glVertex3iv", NULL, &weglVertex3iv}, - {"glVertex3sv", NULL, &weglVertex3sv}, - {"glVertex4dv", NULL, &weglVertex4dv}, - {"glVertex4fv", NULL, &weglVertex4fv}, - {"glVertex4iv", NULL, &weglVertex4iv}, - {"glVertex4sv", NULL, &weglVertex4sv}, - {"glVertexPointer", NULL, &weglVertexPointer}, - {"glViewport", NULL, &weglViewport}, + {"glCopyTexImage1D", NULL, &weglCopyTexImage1D}, + {"glCopyTexImage2D", NULL, &weglCopyTexImage2D}, + {"glCopyTexSubImage1D", NULL, &weglCopyTexSubImage1D}, + {"glCopyTexSubImage2D", NULL, &weglCopyTexSubImage2D}, + {"glMap1d", NULL, &weglMap1d}, + {"glMap1f", NULL, &weglMap1f}, + {"glMap2d", NULL, &weglMap2d}, + {"glMap2f", NULL, &weglMap2f}, + {"glGetMapdv", NULL, &weglGetMapdv}, + {"glGetMapfv", NULL, &weglGetMapfv}, + {"glGetMapiv", NULL, &weglGetMapiv}, + {"glEvalCoord1dv", NULL, &weglEvalCoord1dv}, + {"glEvalCoord1fv", NULL, &weglEvalCoord1fv}, + {"glEvalCoord2dv", NULL, &weglEvalCoord2dv}, + {"glEvalCoord2fv", NULL, &weglEvalCoord2fv}, + {"glMapGrid1d", NULL, &weglMapGrid1d}, + {"glMapGrid1f", NULL, &weglMapGrid1f}, + {"glMapGrid2d", NULL, &weglMapGrid2d}, + {"glMapGrid2f", NULL, &weglMapGrid2f}, + {"glEvalPoint1", NULL, &weglEvalPoint1}, + {"glEvalPoint2", NULL, &weglEvalPoint2}, + {"glEvalMesh1", NULL, &weglEvalMesh1}, + {"glEvalMesh2", NULL, &weglEvalMesh2}, + {"glFogf", NULL, &weglFogf}, + {"glFogi", NULL, &weglFogi}, + {"glFogfv", NULL, &weglFogfv}, + {"glFogiv", NULL, &weglFogiv}, + {"glFeedbackBuffer", NULL, &weglFeedbackBuffer}, + {"glPassThrough", NULL, &weglPassThrough}, + {"glSelectBuffer", NULL, &weglSelectBuffer}, + {"glInitNames", NULL, &weglInitNames}, + {"glLoadName", NULL, &weglLoadName}, + {"glPushName", NULL, &weglPushName}, + {"glPopName", NULL, &weglPopName}, {"glBlendColor", NULL, &weglBlendColor}, {"glBlendEquation", NULL, &weglBlendEquation}, {"glDrawRangeElements", NULL, &weglDrawRangeElements}, @@ -367,14 +367,14 @@ gl_fns_t gl_fns[] = {"glSecondaryColor3uiv", NULL, &weglSecondaryColor3uiv}, {"glSecondaryColor3usv", NULL, &weglSecondaryColor3usv}, {"glSecondaryColorPointer", NULL, &weglSecondaryColorPointer}, - {"glWindowPos2dv", "glWindowPos2dvMESA", &weglWindowPos2dv}, - {"glWindowPos2fv", "glWindowPos2fvMESA", &weglWindowPos2fv}, - {"glWindowPos2iv", "glWindowPos2ivMESA", &weglWindowPos2iv}, - {"glWindowPos2sv", "glWindowPos2svMESA", &weglWindowPos2sv}, - {"glWindowPos3dv", "glWindowPos3dvMESA", &weglWindowPos3dv}, - {"glWindowPos3fv", "glWindowPos3fvMESA", &weglWindowPos3fv}, - {"glWindowPos3iv", "glWindowPos3ivMESA", &weglWindowPos3iv}, - {"glWindowPos3sv", "glWindowPos3svMESA", &weglWindowPos3sv}, + {"glWindowPos2dv", "glWindowPos2dvARB", &weglWindowPos2dv}, + {"glWindowPos2fv", "glWindowPos2fvARB", &weglWindowPos2fv}, + {"glWindowPos2iv", "glWindowPos2ivARB", &weglWindowPos2iv}, + {"glWindowPos2sv", "glWindowPos2svARB", &weglWindowPos2sv}, + {"glWindowPos3dv", "glWindowPos3dvARB", &weglWindowPos3dv}, + {"glWindowPos3fv", "glWindowPos3fvARB", &weglWindowPos3fv}, + {"glWindowPos3iv", "glWindowPos3ivARB", &weglWindowPos3iv}, + {"glWindowPos3sv", "glWindowPos3svARB", &weglWindowPos3sv}, {"glGenQueries", "glGenQueriesARB", &weglGenQueries}, {"glDeleteQueries", "glDeleteQueriesARB", &weglDeleteQueries}, {"glIsQuery", "glIsQueryARB", &weglIsQuery}, @@ -799,11 +799,17 @@ gl_fns_t gl_fns[] = {"glDebugMessageInsertARB", NULL, &weglDebugMessageInsertARB}, {"glGetDebugMessageLogARB", NULL, &weglGetDebugMessageLogARB}, {"glGetGraphicsResetStatusARB", NULL, &weglGetGraphicsResetStatusARB}, - {"glResizeBuffersMESA", NULL, &weglResizeBuffersMESA}, - {"glWindowPos4dvMESA", NULL, &weglWindowPos4dvMESA}, - {"glWindowPos4fvMESA", NULL, &weglWindowPos4fvMESA}, - {"glWindowPos4ivMESA", NULL, &weglWindowPos4ivMESA}, - {"glWindowPos4svMESA", NULL, &weglWindowPos4svMESA}, + {"glDrawArraysInstancedBaseInstance", NULL, &weglDrawArraysInstancedBaseInstance}, + {"glDrawElementsInstancedBaseInstance", NULL, &weglDrawElementsInstancedBaseInstance}, + {"glDrawElementsInstancedBaseVertexBaseInstance", NULL, &weglDrawElementsInstancedBaseVertexBaseInstance}, + {"glDrawTransformFeedbackInstanced", NULL, &weglDrawTransformFeedbackInstanced}, + {"glDrawTransformFeedbackStreamInstanced", NULL, &weglDrawTransformFeedbackStreamInstanced}, + {"glGetInternalformativ", NULL, &weglGetInternalformativ}, + {"glBindImageTexture", NULL, &weglBindImageTexture}, + {"glMemoryBarrier", NULL, &weglMemoryBarrier}, + {"glTexStorage1D", NULL, &weglTexStorage1D}, + {"glTexStorage2D", NULL, &weglTexStorage2D}, + {"glTexStorage3D", NULL, &weglTexStorage3D}, {"glDepthBoundsEXT", NULL, &weglDepthBoundsEXT}, {"glStencilClearTagEXT", NULL, &weglStencilClearTagEXT}, { NULL, NULL, NULL}}; diff --git a/lib/wx/c_src/gen/gl_funcs.cpp b/lib/wx/c_src/gen/gl_funcs.cpp index fa1476dba5..e1bd920e71 100644 --- a/lib/wx/c_src/gen/gl_funcs.cpp +++ b/lib/wx/c_src/gen/gl_funcs.cpp @@ -1,7 +1,7 @@ /* * %CopyrightBegin% * - * Copyright Ericsson AB 2008-2011. All Rights Reserved. + * Copyright Ericsson AB 2008-2012. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in @@ -346,477 +346,157 @@ case 5036: { // gluUnProject4 rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; driver_send_term(port,caller,rt,AP); }; break; -case 5037: { // glAccum - GLenum *op = (GLenum *) bp; bp += 4; - GLfloat *value = (GLfloat *) bp; bp += 4; - weglAccum(*op,*value); -}; break; -case 5038: { // glAlphaFunc - GLenum *func = (GLenum *) bp; bp += 4; - GLclampf *ref = (GLclampf *) bp; bp += 4; - weglAlphaFunc(*func,*ref); -}; break; -case 5039: { // glAreTexturesResident - int * texturesLen = (int *) bp; bp += 4; - GLuint * textures = (GLuint *) bp; bp += (8-((*texturesLen*4+4)%8))%8; - GLboolean *residences; - residences = (GLboolean *) driver_alloc(sizeof(GLboolean) * *texturesLen); - GLboolean result = weglAreTexturesResident(*texturesLen,textures,residences); - int AP = 0; ErlDrvTermData *rt; - rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(11 + (*texturesLen)*2)); - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result; - for(int i=0; i < *texturesLen; i++) { - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) residences[i];} - rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*texturesLen)+1; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); - driver_free(rt); - driver_free(residences); -}; break; -case 5040: { // glArrayElement - GLint *i = (GLint *) bp; bp += 4; - weglArrayElement(*i); -}; break; -case 5041: { // glBegin - GLenum *mode = (GLenum *) bp; bp += 4; - weglBegin(*mode); -}; break; -case 5042: { // glBindTexture - GLenum *target = (GLenum *) bp; bp += 4; - GLuint *texture = (GLuint *) bp; bp += 4; - weglBindTexture(*target,*texture); -}; break; -case 5043: { // glBitmap - GLsizei *width = (GLsizei *) bp; bp += 4; - GLsizei *height = (GLsizei *) bp; bp += 4; - GLfloat *xorig = (GLfloat *) bp; bp += 4; - GLfloat *yorig = (GLfloat *) bp; bp += 4; - GLfloat *xmove = (GLfloat *) bp; bp += 4; - GLfloat *ymove = (GLfloat *) bp; bp += 4; - GLubyte *bitmap = (GLubyte *) (ErlDrvSInt) * (int *) bp; bp += 4; - weglBitmap(*width,*height,*xorig,*yorig,*xmove,*ymove,bitmap); -}; break; -case 5044: { // glBitmap - GLsizei *width = (GLsizei *) bp; bp += 4; - GLsizei *height = (GLsizei *) bp; bp += 4; - GLfloat *xorig = (GLfloat *) bp; bp += 4; - GLfloat *yorig = (GLfloat *) bp; bp += 4; - GLfloat *xmove = (GLfloat *) bp; bp += 4; - GLfloat *ymove = (GLfloat *) bp; bp += 4; - GLubyte *bitmap = (GLubyte *) bins[0]; - weglBitmap(*width,*height,*xorig,*yorig,*xmove,*ymove,bitmap); -}; break; -case 5045: { // glBlendFunc - GLenum *sfactor = (GLenum *) bp; bp += 4; - GLenum *dfactor = (GLenum *) bp; bp += 4; - weglBlendFunc(*sfactor,*dfactor); -}; break; -case 5046: { // glCallList - GLuint *list = (GLuint *) bp; bp += 4; - weglCallList(*list); -}; break; -case 5047: { // glCallLists - int * listsLen = (int *) bp; bp += 4; - GLuint * lists = (GLuint *) bp; bp += (8-((*listsLen*4+4)%8))%8; - weglCallLists(*listsLen,GL_UNSIGNED_INT,lists); -}; break; -case 5048: { // glClear - GLbitfield *mask = (GLbitfield *) bp; bp += 4; - weglClear(*mask); -}; break; -case 5049: { // glClearAccum - GLfloat *red = (GLfloat *) bp; bp += 4; - GLfloat *green = (GLfloat *) bp; bp += 4; - GLfloat *blue = (GLfloat *) bp; bp += 4; - GLfloat *alpha = (GLfloat *) bp; bp += 4; - weglClearAccum(*red,*green,*blue,*alpha); +case 5037: { // glClearIndex + GLfloat *c = (GLfloat *) bp; bp += 4; + weglClearIndex(*c); }; break; -case 5050: { // glClearColor +case 5038: { // glClearColor GLclampf *red = (GLclampf *) bp; bp += 4; GLclampf *green = (GLclampf *) bp; bp += 4; GLclampf *blue = (GLclampf *) bp; bp += 4; GLclampf *alpha = (GLclampf *) bp; bp += 4; weglClearColor(*red,*green,*blue,*alpha); }; break; -case 5051: { // glClearDepth - GLclampd *depth = (GLclampd *) bp; bp += 8; - weglClearDepth(*depth); -}; break; -case 5052: { // glClearIndex - GLfloat *c = (GLfloat *) bp; bp += 4; - weglClearIndex(*c); -}; break; -case 5053: { // glClearStencil - GLint *s = (GLint *) bp; bp += 4; - weglClearStencil(*s); -}; break; -case 5054: { // glClipPlane - GLenum *plane = (GLenum *) bp; bp += 4; - bp += 4; - GLdouble * equation = (GLdouble *) bp; bp += 32; - weglClipPlane(*plane,equation); -}; break; -case 5055: { // glColor3bv - GLbyte *v = (GLbyte *) bp; bp += 1; - weglColor3bv(v); -}; break; -case 5056: { // glColor3dv - GLdouble *v = (GLdouble *) bp; bp += 8; - weglColor3dv(v); -}; break; -case 5057: { // glColor3fv - GLfloat *v = (GLfloat *) bp; bp += 4; - weglColor3fv(v); -}; break; -case 5058: { // glColor3iv - GLint *v = (GLint *) bp; bp += 4; - weglColor3iv(v); -}; break; -case 5059: { // glColor3sv - GLshort *v = (GLshort *) bp; bp += 2; - weglColor3sv(v); -}; break; -case 5060: { // glColor3ubv - GLubyte *v = (GLubyte *) bp; bp += 1; - weglColor3ubv(v); -}; break; -case 5061: { // glColor3uiv - GLuint *v = (GLuint *) bp; bp += 4; - weglColor3uiv(v); -}; break; -case 5062: { // glColor3usv - GLushort *v = (GLushort *) bp; bp += 2; - weglColor3usv(v); -}; break; -case 5063: { // glColor4bv - GLbyte *v = (GLbyte *) bp; bp += 1; - weglColor4bv(v); -}; break; -case 5064: { // glColor4dv - GLdouble *v = (GLdouble *) bp; bp += 8; - weglColor4dv(v); -}; break; -case 5065: { // glColor4fv - GLfloat *v = (GLfloat *) bp; bp += 4; - weglColor4fv(v); -}; break; -case 5066: { // glColor4iv - GLint *v = (GLint *) bp; bp += 4; - weglColor4iv(v); -}; break; -case 5067: { // glColor4sv - GLshort *v = (GLshort *) bp; bp += 2; - weglColor4sv(v); -}; break; -case 5068: { // glColor4ubv - GLubyte *v = (GLubyte *) bp; bp += 1; - weglColor4ubv(v); -}; break; -case 5069: { // glColor4uiv - GLuint *v = (GLuint *) bp; bp += 4; - weglColor4uiv(v); +case 5039: { // glClear + GLbitfield *mask = (GLbitfield *) bp; bp += 4; + weglClear(*mask); }; break; -case 5070: { // glColor4usv - GLushort *v = (GLushort *) bp; bp += 2; - weglColor4usv(v); +case 5040: { // glIndexMask + GLuint *mask = (GLuint *) bp; bp += 4; + weglIndexMask(*mask); }; break; -case 5071: { // glColorMask +case 5041: { // glColorMask GLboolean *red = (GLboolean *) bp; bp += 1; GLboolean *green = (GLboolean *) bp; bp += 1; GLboolean *blue = (GLboolean *) bp; bp += 1; GLboolean *alpha = (GLboolean *) bp; bp += 1; weglColorMask(*red,*green,*blue,*alpha); }; break; -case 5072: { // glColorMaterial - GLenum *face = (GLenum *) bp; bp += 4; - GLenum *mode = (GLenum *) bp; bp += 4; - weglColorMaterial(*face,*mode); -}; break; -case 5073: { // glColorPointer - GLint *size = (GLint *) bp; bp += 4; - GLenum *type = (GLenum *) bp; bp += 4; - GLsizei *stride = (GLsizei *) bp; bp += 4; - GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; - weglColorPointer(*size,*type,*stride,pointer); -}; break; -case 5074: { // glColorPointer - GLint *size = (GLint *) bp; bp += 4; - GLenum *type = (GLenum *) bp; bp += 4; - GLsizei *stride = (GLsizei *) bp; bp += 4; - GLvoid *pointer = (GLvoid *) bins[0]; - weglColorPointer(*size,*type,*stride,pointer); -}; break; -case 5075: { // glCopyPixels - GLint *x = (GLint *) bp; bp += 4; - GLint *y = (GLint *) bp; bp += 4; - GLsizei *width = (GLsizei *) bp; bp += 4; - GLsizei *height = (GLsizei *) bp; bp += 4; - GLenum *type = (GLenum *) bp; bp += 4; - weglCopyPixels(*x,*y,*width,*height,*type); -}; break; -case 5076: { // glCopyTexImage1D - GLenum *target = (GLenum *) bp; bp += 4; - GLint *level = (GLint *) bp; bp += 4; - GLenum *internalFormat = (GLenum *) bp; bp += 4; - GLint *x = (GLint *) bp; bp += 4; - GLint *y = (GLint *) bp; bp += 4; - GLsizei *width = (GLsizei *) bp; bp += 4; - GLint *border = (GLint *) bp; bp += 4; - weglCopyTexImage1D(*target,*level,*internalFormat,*x,*y,*width,*border); -}; break; -case 5077: { // glCopyTexImage2D - GLenum *target = (GLenum *) bp; bp += 4; - GLint *level = (GLint *) bp; bp += 4; - GLenum *internalFormat = (GLenum *) bp; bp += 4; - GLint *x = (GLint *) bp; bp += 4; - GLint *y = (GLint *) bp; bp += 4; - GLsizei *width = (GLsizei *) bp; bp += 4; - GLsizei *height = (GLsizei *) bp; bp += 4; - GLint *border = (GLint *) bp; bp += 4; - weglCopyTexImage2D(*target,*level,*internalFormat,*x,*y,*width,*height,*border); +case 5042: { // glAlphaFunc + GLenum *func = (GLenum *) bp; bp += 4; + GLclampf *ref = (GLclampf *) bp; bp += 4; + weglAlphaFunc(*func,*ref); }; break; -case 5078: { // glCopyTexSubImage1D - GLenum *target = (GLenum *) bp; bp += 4; - GLint *level = (GLint *) bp; bp += 4; - GLint *xoffset = (GLint *) bp; bp += 4; - GLint *x = (GLint *) bp; bp += 4; - GLint *y = (GLint *) bp; bp += 4; - GLsizei *width = (GLsizei *) bp; bp += 4; - weglCopyTexSubImage1D(*target,*level,*xoffset,*x,*y,*width); +case 5043: { // glBlendFunc + GLenum *sfactor = (GLenum *) bp; bp += 4; + GLenum *dfactor = (GLenum *) bp; bp += 4; + weglBlendFunc(*sfactor,*dfactor); }; break; -case 5079: { // glCopyTexSubImage2D - GLenum *target = (GLenum *) bp; bp += 4; - GLint *level = (GLint *) bp; bp += 4; - GLint *xoffset = (GLint *) bp; bp += 4; - GLint *yoffset = (GLint *) bp; bp += 4; - GLint *x = (GLint *) bp; bp += 4; - GLint *y = (GLint *) bp; bp += 4; - GLsizei *width = (GLsizei *) bp; bp += 4; - GLsizei *height = (GLsizei *) bp; bp += 4; - weglCopyTexSubImage2D(*target,*level,*xoffset,*yoffset,*x,*y,*width,*height); +case 5044: { // glLogicOp + GLenum *opcode = (GLenum *) bp; bp += 4; + weglLogicOp(*opcode); }; break; -case 5080: { // glCullFace +case 5045: { // glCullFace GLenum *mode = (GLenum *) bp; bp += 4; weglCullFace(*mode); }; break; -case 5081: { // glDeleteLists - GLuint *list = (GLuint *) bp; bp += 4; - GLsizei *range = (GLsizei *) bp; bp += 4; - weglDeleteLists(*list,*range); -}; break; -case 5082: { // glDeleteTextures - int * texturesLen = (int *) bp; bp += 4; - GLuint * textures = (GLuint *) bp; bp += (8-((*texturesLen*4+4)%8))%8; - weglDeleteTextures(*texturesLen,textures); -}; break; -case 5083: { // glDepthFunc - GLenum *func = (GLenum *) bp; bp += 4; - weglDepthFunc(*func); -}; break; -case 5084: { // glDepthMask - GLboolean *flag = (GLboolean *) bp; bp += 1; - weglDepthMask(*flag); -}; break; -case 5085: { // glDepthRange - GLclampd *zNear = (GLclampd *) bp; bp += 8; - GLclampd *zFar = (GLclampd *) bp; bp += 8; - weglDepthRange(*zNear,*zFar); -}; break; -case 5086: { // glDisable - GLenum *cap = (GLenum *) bp; bp += 4; - weglDisable(*cap); +case 5046: { // glFrontFace + GLenum *mode = (GLenum *) bp; bp += 4; + weglFrontFace(*mode); }; break; -case 5087: { // glDisableClientState - GLenum *array = (GLenum *) bp; bp += 4; - weglDisableClientState(*array); +case 5047: { // glPointSize + GLfloat *size = (GLfloat *) bp; bp += 4; + weglPointSize(*size); }; break; -case 5088: { // glDrawArrays - GLenum *mode = (GLenum *) bp; bp += 4; - GLint *first = (GLint *) bp; bp += 4; - GLsizei *count = (GLsizei *) bp; bp += 4; - weglDrawArrays(*mode,*first,*count); +case 5048: { // glLineWidth + GLfloat *width = (GLfloat *) bp; bp += 4; + weglLineWidth(*width); }; break; -case 5089: { // glDrawBuffer - GLenum *mode = (GLenum *) bp; bp += 4; - weglDrawBuffer(*mode); +case 5049: { // glLineStipple + GLint *factor = (GLint *) bp; bp += 4; + GLushort *pattern = (GLushort *) bp; bp += 2; + weglLineStipple(*factor,*pattern); }; break; -case 5090: { // glDrawElements +case 5050: { // glPolygonMode + GLenum *face = (GLenum *) bp; bp += 4; GLenum *mode = (GLenum *) bp; bp += 4; - GLsizei *count = (GLsizei *) bp; bp += 4; - GLenum *type = (GLenum *) bp; bp += 4; - GLvoid *indices = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; - weglDrawElements(*mode,*count,*type,indices); + weglPolygonMode(*face,*mode); }; break; -case 5091: { // glDrawElements - GLenum *mode = (GLenum *) bp; bp += 4; - GLsizei *count = (GLsizei *) bp; bp += 4; - GLenum *type = (GLenum *) bp; bp += 4; - GLvoid *indices = (GLvoid *) bins[0]; - weglDrawElements(*mode,*count,*type,indices); +case 5051: { // glPolygonOffset + GLfloat *factor = (GLfloat *) bp; bp += 4; + GLfloat *units = (GLfloat *) bp; bp += 4; + weglPolygonOffset(*factor,*units); }; break; -case 5092: { // glDrawPixels - GLsizei *width = (GLsizei *) bp; bp += 4; - GLsizei *height = (GLsizei *) bp; bp += 4; - GLenum *format = (GLenum *) bp; bp += 4; - GLenum *type = (GLenum *) bp; bp += 4; - GLvoid *pixels = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; - weglDrawPixels(*width,*height,*format,*type,pixels); +case 5052: { // glPolygonStipple + GLubyte *mask = (GLubyte *) bins[0]; + weglPolygonStipple(mask); }; break; -case 5093: { // glDrawPixels - GLsizei *width = (GLsizei *) bp; bp += 4; - GLsizei *height = (GLsizei *) bp; bp += 4; - GLenum *format = (GLenum *) bp; bp += 4; - GLenum *type = (GLenum *) bp; bp += 4; - GLvoid *pixels = (GLvoid *) bins[0]; - weglDrawPixels(*width,*height,*format,*type,pixels); +case 5053: { // glGetPolygonStipple + ErlDrvBinary *mask = driver_alloc_binary(128); + weglGetPolygonStipple((GLubyte*) mask->orig_bytes); + int AP = 0; ErlDrvTermData rt[8]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + rt[AP++] = ERL_DRV_BINARY; rt[AP++] = (ErlDrvTermData) mask; rt[AP++] = 128; rt[AP++] = 0; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); + driver_free_binary(mask); }; break; -case 5094: { // glEdgeFlagv +case 5054: { // glEdgeFlagv GLboolean *flag = (GLboolean *) bp; bp += 1; weglEdgeFlagv(flag); }; break; -case 5095: { // glEdgeFlagPointer - GLsizei *stride = (GLsizei *) bp; bp += 4; - GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; - weglEdgeFlagPointer(*stride,pointer); -}; break; -case 5096: { // glEdgeFlagPointer - GLsizei *stride = (GLsizei *) bp; bp += 4; - GLvoid *pointer = (GLvoid *) bins[0]; - weglEdgeFlagPointer(*stride,pointer); -}; break; -case 5097: { // glEnable - GLenum *cap = (GLenum *) bp; bp += 4; - weglEnable(*cap); -}; break; -case 5098: { // glEnableClientState - GLenum *array = (GLenum *) bp; bp += 4; - weglEnableClientState(*array); -}; break; -case 5099: { // glEnd - weglEnd(); -}; break; -case 5100: { // glEndList - weglEndList(); -}; break; -case 5101: { // glEvalCoord1dv - GLdouble *u = (GLdouble *) bp; bp += 8; - weglEvalCoord1dv(u); -}; break; -case 5102: { // glEvalCoord1fv - GLfloat *u = (GLfloat *) bp; bp += 4; - weglEvalCoord1fv(u); -}; break; -case 5103: { // glEvalCoord2dv - GLdouble *u = (GLdouble *) bp; bp += 8; - weglEvalCoord2dv(u); -}; break; -case 5104: { // glEvalCoord2fv - GLfloat *u = (GLfloat *) bp; bp += 4; - weglEvalCoord2fv(u); -}; break; -case 5105: { // glEvalMesh1 - GLenum *mode = (GLenum *) bp; bp += 4; - GLint *i1 = (GLint *) bp; bp += 4; - GLint *i2 = (GLint *) bp; bp += 4; - weglEvalMesh1(*mode,*i1,*i2); -}; break; -case 5106: { // glEvalMesh2 - GLenum *mode = (GLenum *) bp; bp += 4; - GLint *i1 = (GLint *) bp; bp += 4; - GLint *i2 = (GLint *) bp; bp += 4; - GLint *j1 = (GLint *) bp; bp += 4; - GLint *j2 = (GLint *) bp; bp += 4; - weglEvalMesh2(*mode,*i1,*i2,*j1,*j2); -}; break; -case 5107: { // glEvalPoint1 - GLint *i = (GLint *) bp; bp += 4; - weglEvalPoint1(*i); +case 5055: { // glScissor + GLint *x = (GLint *) bp; bp += 4; + GLint *y = (GLint *) bp; bp += 4; + GLsizei *width = (GLsizei *) bp; bp += 4; + GLsizei *height = (GLsizei *) bp; bp += 4; + weglScissor(*x,*y,*width,*height); }; break; -case 5108: { // glEvalPoint2 - GLint *i = (GLint *) bp; bp += 4; - GLint *j = (GLint *) bp; bp += 4; - weglEvalPoint2(*i,*j); +case 5056: { // glClipPlane + GLenum *plane = (GLenum *) bp; bp += 4; + bp += 4; + GLdouble * equation = (GLdouble *) bp; bp += 32; + weglClipPlane(*plane,equation); }; break; -case 5109: { // glFeedbackBuffer - GLsizei *size = (GLsizei *) bp; bp += 4; - GLenum *type = (GLenum *) bp; bp += 4; - GLfloat *buffer = (GLfloat *) bins[0]; - weglFeedbackBuffer(*size,*type,buffer); - int AP = 0; ErlDrvTermData rt[6]; +case 5057: { // glGetClipPlane + GLenum *plane = (GLenum *) bp; bp += 4; + GLdouble equation[4] = {0.0,0.0,0.0,0.0}; + weglGetClipPlane(*plane,equation); + int AP = 0; ErlDrvTermData rt[14]; rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); + GLdouble *equationTmp = equation; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) equationTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) equationTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) equationTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) equationTmp++; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; driver_send_term(port,caller,rt,AP); }; break; -case 5110: { // glFinish - weglFinish(); -}; break; -case 5111: { // glFlush - weglFlush(); -}; break; -case 5112: { // glFogf - GLenum *pname = (GLenum *) bp; bp += 4; - GLfloat *param = (GLfloat *) bp; bp += 4; - weglFogf(*pname,*param); -}; break; -case 5113: { // glFogfv - GLenum *pname = (GLenum *) bp; bp += 4; - int *paramsLen = (int *) bp; bp += 4; - GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+0)%2*4; - weglFogfv(*pname,params); -}; break; -case 5114: { // glFogi - GLenum *pname = (GLenum *) bp; bp += 4; - GLint *param = (GLint *) bp; bp += 4; - weglFogi(*pname,*param); -}; break; -case 5115: { // glFogiv - GLenum *pname = (GLenum *) bp; bp += 4; - int *paramsLen = (int *) bp; bp += 4; - GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+0)%2*4; - weglFogiv(*pname,params); +case 5058: { // glDrawBuffer + GLenum *mode = (GLenum *) bp; bp += 4; + weglDrawBuffer(*mode); }; break; -case 5116: { // glFrontFace +case 5059: { // glReadBuffer GLenum *mode = (GLenum *) bp; bp += 4; - weglFrontFace(*mode); + weglReadBuffer(*mode); }; break; -case 5117: { // glFrustum - GLdouble *left = (GLdouble *) bp; bp += 8; - GLdouble *right = (GLdouble *) bp; bp += 8; - GLdouble *bottom = (GLdouble *) bp; bp += 8; - GLdouble *top = (GLdouble *) bp; bp += 8; - GLdouble *zNear = (GLdouble *) bp; bp += 8; - GLdouble *zFar = (GLdouble *) bp; bp += 8; - weglFrustum(*left,*right,*bottom,*top,*zNear,*zFar); +case 5060: { // glEnable + GLenum *cap = (GLenum *) bp; bp += 4; + weglEnable(*cap); }; break; -case 5118: { // glGenLists - GLsizei *range = (GLsizei *) bp; bp += 4; - GLuint result = weglGenLists(*range); +case 5061: { // glDisable + GLenum *cap = (GLenum *) bp; bp += 4; + weglDisable(*cap); +}; break; +case 5062: { // glIsEnabled + GLenum *cap = (GLenum *) bp; bp += 4; + GLboolean result = weglIsEnabled(*cap); int AP = 0; ErlDrvTermData rt[6]; rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result; rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; driver_send_term(port,caller,rt,AP); }; break; -case 5119: { // glGenTextures - GLsizei *n = (GLsizei *) bp; bp += 4; - GLuint *textures; - textures = (GLuint *) driver_alloc(sizeof(GLuint) * *n); - weglGenTextures(*n,textures); - int AP = 0; ErlDrvTermData *rt; - rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(7 + (*n)*2)); - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - for(int i=0; i < *n; i++) { - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) textures[i];} - rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*n)+1; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); - driver_free(rt); - driver_free(textures); +case 5063: { // glEnableClientState + GLenum *cap = (GLenum *) bp; bp += 4; + weglEnableClientState(*cap); }; break; -case 5120: { // glGetBooleanv +case 5064: { // glDisableClientState + GLenum *cap = (GLenum *) bp; bp += 4; + weglDisableClientState(*cap); +}; break; +case 5065: { // glGetBooleanv GLenum *pname = (GLenum *) bp; bp += 4; GLboolean params[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; weglGetBooleanv(*pname,params); @@ -843,22 +523,7 @@ case 5120: { // glGetBooleanv rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; driver_send_term(port,caller,rt,AP); }; break; -case 5121: { // glGetClipPlane - GLenum *plane = (GLenum *) bp; bp += 4; - GLdouble equation[4] = {0.0,0.0,0.0,0.0}; - weglGetClipPlane(*plane,equation); - int AP = 0; ErlDrvTermData rt[14]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - GLdouble *equationTmp = equation; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) equationTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) equationTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) equationTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) equationTmp++; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); -}; break; -case 5122: { // glGetDoublev +case 5066: { // glGetDoublev GLenum *pname = (GLenum *) bp; bp += 4; GLdouble params[16] = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; weglGetDoublev(*pname,params); @@ -885,15 +550,7 @@ case 5122: { // glGetDoublev rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; driver_send_term(port,caller,rt,AP); }; break; -case 5123: { // glGetError - GLenum result = weglGetError(); - int AP = 0; ErlDrvTermData rt[6]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); -}; break; -case 5124: { // glGetFloatv +case 5067: { // glGetFloatv GLenum *pname = (GLenum *) bp; bp += 4; GLfloat params[16] = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; weglGetFloatv(*pname,params); @@ -921,7 +578,7 @@ case 5124: { // glGetFloatv rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; driver_send_term(port,caller,rt,AP); }; break; -case 5125: { // glGetIntegerv +case 5068: { // glGetIntegerv GLenum *pname = (GLenum *) bp; bp += 4; GLint params[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; weglGetIntegerv(*pname,params); @@ -948,146 +605,38 @@ case 5125: { // glGetIntegerv rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; driver_send_term(port,caller,rt,AP); }; break; -case 5126: { // glGetLightfv - GLenum *light = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLfloat params[4] = {0.0,0.0,0.0,0.0}; - weglGetLightfv(*light,*pname,params); - int AP = 0; ErlDrvTermData rt[14]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - GLdouble paramsConv[4], *paramsTmp = paramsConv; - for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i]; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); -}; break; -case 5127: { // glGetLightiv - GLenum *light = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLint params[4] = {0,0,0,0}; - weglGetLightiv(*light,*pname,params); - int AP = 0; ErlDrvTermData rt[14]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - GLint *paramsTmp = params; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); -}; break; -case 5128: { // glGetMapdv - GLenum *target = (GLenum *) bp; bp += 4; - GLenum *query = (GLenum *) bp; bp += 4; - GLdouble *v = (GLdouble *) bins[0]; - weglGetMapdv(*target,*query,v); - int AP = 0; ErlDrvTermData rt[6]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); -}; break; -case 5129: { // glGetMapfv - GLenum *target = (GLenum *) bp; bp += 4; - GLenum *query = (GLenum *) bp; bp += 4; - GLfloat *v = (GLfloat *) bins[0]; - weglGetMapfv(*target,*query,v); - int AP = 0; ErlDrvTermData rt[6]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); -}; break; -case 5130: { // glGetMapiv - GLenum *target = (GLenum *) bp; bp += 4; - GLenum *query = (GLenum *) bp; bp += 4; - GLint *v = (GLint *) bins[0]; - weglGetMapiv(*target,*query,v); - int AP = 0; ErlDrvTermData rt[6]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); +case 5069: { // glPushAttrib + GLbitfield *mask = (GLbitfield *) bp; bp += 4; + weglPushAttrib(*mask); }; break; -case 5131: { // glGetMaterialfv - GLenum *face = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLfloat params[4] = {0.0,0.0,0.0,0.0}; - weglGetMaterialfv(*face,*pname,params); - int AP = 0; ErlDrvTermData rt[14]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - GLdouble paramsConv[4], *paramsTmp = paramsConv; - for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i]; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); +case 5070: { // glPopAttrib + weglPopAttrib(); }; break; -case 5132: { // glGetMaterialiv - GLenum *face = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLint params[4] = {0,0,0,0}; - weglGetMaterialiv(*face,*pname,params); - int AP = 0; ErlDrvTermData rt[14]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - GLint *paramsTmp = params; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); +case 5071: { // glPushClientAttrib + GLbitfield *mask = (GLbitfield *) bp; bp += 4; + weglPushClientAttrib(*mask); }; break; -case 5133: { // glGetPixelMapfv - GLenum *map = (GLenum *) bp; bp += 4; - GLfloat *values = (GLfloat *) bins[0]; - weglGetPixelMapfv(*map,values); - int AP = 0; ErlDrvTermData rt[6]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); +case 5072: { // glPopClientAttrib + weglPopClientAttrib(); }; break; -case 5134: { // glGetPixelMapuiv - GLenum *map = (GLenum *) bp; bp += 4; - GLuint *values = (GLuint *) bins[0]; - weglGetPixelMapuiv(*map,values); +case 5073: { // glRenderMode + GLenum *mode = (GLenum *) bp; bp += 4; + GLint result = weglRenderMode(*mode); int AP = 0; ErlDrvTermData rt[6]; rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result; rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; driver_send_term(port,caller,rt,AP); }; break; -case 5135: { // glGetPixelMapusv - GLenum *map = (GLenum *) bp; bp += 4; - GLushort *values = (GLushort *) bins[0]; - weglGetPixelMapusv(*map,values); +case 5074: { // glGetError + GLenum result = weglGetError(); int AP = 0; ErlDrvTermData rt[6]; rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); -}; break; -case 5136: { // glGetPolygonStipple - ErlDrvBinary *mask = driver_alloc_binary(128); - weglGetPolygonStipple((GLubyte*) mask->orig_bytes); - int AP = 0; ErlDrvTermData rt[8]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - rt[AP++] = ERL_DRV_BINARY; rt[AP++] = (ErlDrvTermData) mask; rt[AP++] = 128; rt[AP++] = 0; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result; rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; driver_send_term(port,caller,rt,AP); - driver_free_binary(mask); }; break; -case 5137: { // glGetString +case 5075: { // glGetString GLenum *name = (GLenum *) bp; bp += 4; const GLubyte * result = weglGetString(*name); int AP = 0; ErlDrvTermData rt[7]; @@ -1096,229 +645,139 @@ case 5137: { // glGetString rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; driver_send_term(port,caller,rt,AP); }; break; -case 5138: { // glGetTexEnvfv - GLenum *target = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLfloat params[4] = {0.0,0.0,0.0,0.0}; - weglGetTexEnvfv(*target,*pname,params); - int AP = 0; ErlDrvTermData rt[14]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - GLdouble paramsConv[4], *paramsTmp = paramsConv; - for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i]; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); +case 5076: { // glFinish + weglFinish(); }; break; -case 5139: { // glGetTexEnviv +case 5077: { // glFlush + weglFlush(); +}; break; +case 5078: { // glHint GLenum *target = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLint params[4] = {0,0,0,0}; - weglGetTexEnviv(*target,*pname,params); - int AP = 0; ErlDrvTermData rt[14]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - GLint *paramsTmp = params; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); + GLenum *mode = (GLenum *) bp; bp += 4; + weglHint(*target,*mode); }; break; -case 5140: { // glGetTexGendv - GLenum *coord = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLdouble params[4] = {0.0,0.0,0.0,0.0}; - weglGetTexGendv(*coord,*pname,params); - int AP = 0; ErlDrvTermData rt[14]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - GLdouble *paramsTmp = params; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); +case 5079: { // glClearDepth + GLclampd *depth = (GLclampd *) bp; bp += 8; + weglClearDepth(*depth); }; break; -case 5141: { // glGetTexGenfv - GLenum *coord = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLfloat params[4] = {0.0,0.0,0.0,0.0}; - weglGetTexGenfv(*coord,*pname,params); - int AP = 0; ErlDrvTermData rt[14]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - GLdouble paramsConv[4], *paramsTmp = paramsConv; - for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i]; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); +case 5080: { // glDepthFunc + GLenum *func = (GLenum *) bp; bp += 4; + weglDepthFunc(*func); }; break; -case 5142: { // glGetTexGeniv - GLenum *coord = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLint params[4] = {0,0,0,0}; - weglGetTexGeniv(*coord,*pname,params); - int AP = 0; ErlDrvTermData rt[14]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - GLint *paramsTmp = params; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); +case 5081: { // glDepthMask + GLboolean *flag = (GLboolean *) bp; bp += 1; + weglDepthMask(*flag); }; break; -case 5143: { // glGetTexImage - GLenum *target = (GLenum *) bp; bp += 4; - GLint *level = (GLint *) bp; bp += 4; - GLenum *format = (GLenum *) bp; bp += 4; - GLenum *type = (GLenum *) bp; bp += 4; - GLvoid *pixels = (GLvoid *) bins[0]; - weglGetTexImage(*target,*level,*format,*type,pixels); - int AP = 0; ErlDrvTermData rt[6]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); +case 5082: { // glDepthRange + GLclampd *near_val = (GLclampd *) bp; bp += 8; + GLclampd *far_val = (GLclampd *) bp; bp += 8; + weglDepthRange(*near_val,*far_val); }; break; -case 5144: { // glGetTexLevelParameterfv - GLenum *target = (GLenum *) bp; bp += 4; - GLint *level = (GLint *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLfloat params[1] = {0.0}; - weglGetTexLevelParameterfv(*target,*level,*pname,params); - int AP = 0; ErlDrvTermData rt[8]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - GLdouble paramsConv[1], *paramsTmp = paramsConv; - for(int i=0; i < 1; i++) paramsConv[i] = (GLdouble) params[i]; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 1; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); +case 5083: { // glClearAccum + GLfloat *red = (GLfloat *) bp; bp += 4; + GLfloat *green = (GLfloat *) bp; bp += 4; + GLfloat *blue = (GLfloat *) bp; bp += 4; + GLfloat *alpha = (GLfloat *) bp; bp += 4; + weglClearAccum(*red,*green,*blue,*alpha); }; break; -case 5145: { // glGetTexLevelParameteriv - GLenum *target = (GLenum *) bp; bp += 4; - GLint *level = (GLint *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLint params[1] = {0}; - weglGetTexLevelParameteriv(*target,*level,*pname,params); - int AP = 0; ErlDrvTermData rt[8]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - GLint *paramsTmp = params; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 1; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); +case 5084: { // glAccum + GLenum *op = (GLenum *) bp; bp += 4; + GLfloat *value = (GLfloat *) bp; bp += 4; + weglAccum(*op,*value); }; break; -case 5146: { // glGetTexParameterfv - GLenum *target = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLfloat params[4] = {0.0,0.0,0.0,0.0}; - weglGetTexParameterfv(*target,*pname,params); - int AP = 0; ErlDrvTermData rt[14]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - GLdouble paramsConv[4], *paramsTmp = paramsConv; - for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i]; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); +case 5085: { // glMatrixMode + GLenum *mode = (GLenum *) bp; bp += 4; + weglMatrixMode(*mode); }; break; -case 5147: { // glGetTexParameteriv - GLenum *target = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLint params[4] = {0,0,0,0}; - weglGetTexParameteriv(*target,*pname,params); - int AP = 0; ErlDrvTermData rt[14]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - GLint *paramsTmp = params; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); +case 5086: { // glOrtho + GLdouble *left = (GLdouble *) bp; bp += 8; + GLdouble *right = (GLdouble *) bp; bp += 8; + GLdouble *bottom = (GLdouble *) bp; bp += 8; + GLdouble *top = (GLdouble *) bp; bp += 8; + GLdouble *near_val = (GLdouble *) bp; bp += 8; + GLdouble *far_val = (GLdouble *) bp; bp += 8; + weglOrtho(*left,*right,*bottom,*top,*near_val,*far_val); }; break; -case 5148: { // glHint - GLenum *target = (GLenum *) bp; bp += 4; - GLenum *mode = (GLenum *) bp; bp += 4; - weglHint(*target,*mode); +case 5087: { // glFrustum + GLdouble *left = (GLdouble *) bp; bp += 8; + GLdouble *right = (GLdouble *) bp; bp += 8; + GLdouble *bottom = (GLdouble *) bp; bp += 8; + GLdouble *top = (GLdouble *) bp; bp += 8; + GLdouble *near_val = (GLdouble *) bp; bp += 8; + GLdouble *far_val = (GLdouble *) bp; bp += 8; + weglFrustum(*left,*right,*bottom,*top,*near_val,*far_val); }; break; -case 5149: { // glIndexMask - GLuint *mask = (GLuint *) bp; bp += 4; - weglIndexMask(*mask); +case 5088: { // glViewport + GLint *x = (GLint *) bp; bp += 4; + GLint *y = (GLint *) bp; bp += 4; + GLsizei *width = (GLsizei *) bp; bp += 4; + GLsizei *height = (GLsizei *) bp; bp += 4; + weglViewport(*x,*y,*width,*height); }; break; -case 5150: { // glIndexPointer - GLenum *type = (GLenum *) bp; bp += 4; - GLsizei *stride = (GLsizei *) bp; bp += 4; - GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; - weglIndexPointer(*type,*stride,pointer); +case 5089: { // glPushMatrix + weglPushMatrix(); }; break; -case 5151: { // glIndexPointer - GLenum *type = (GLenum *) bp; bp += 4; - GLsizei *stride = (GLsizei *) bp; bp += 4; - GLvoid *pointer = (GLvoid *) bins[0]; - weglIndexPointer(*type,*stride,pointer); +case 5090: { // glPopMatrix + weglPopMatrix(); }; break; -case 5152: { // glIndexdv - GLdouble *c = (GLdouble *) bp; bp += 8; - weglIndexdv(c); +case 5091: { // glLoadIdentity + weglLoadIdentity(); }; break; -case 5153: { // glIndexfv - GLfloat *c = (GLfloat *) bp; bp += 4; - weglIndexfv(c); +case 5092: { // glLoadMatrixd + GLdouble * m = (GLdouble *) bp; bp += 128; + weglLoadMatrixd(m); }; break; -case 5154: { // glIndexiv - GLint *c = (GLint *) bp; bp += 4; - weglIndexiv(c); +case 5093: { // glLoadMatrixf + GLfloat * m = (GLfloat *) bp; bp += 64; + weglLoadMatrixf(m); }; break; -case 5155: { // glIndexsv - GLshort *c = (GLshort *) bp; bp += 2; - weglIndexsv(c); +case 5094: { // glMultMatrixd + GLdouble * m = (GLdouble *) bp; bp += 128; + weglMultMatrixd(m); }; break; -case 5156: { // glIndexubv - GLubyte *c = (GLubyte *) bp; bp += 1; - weglIndexubv(c); +case 5095: { // glMultMatrixf + GLfloat * m = (GLfloat *) bp; bp += 64; + weglMultMatrixf(m); }; break; -case 5157: { // glInitNames - weglInitNames(); +case 5096: { // glRotated + GLdouble *angle = (GLdouble *) bp; bp += 8; + GLdouble *x = (GLdouble *) bp; bp += 8; + GLdouble *y = (GLdouble *) bp; bp += 8; + GLdouble *z = (GLdouble *) bp; bp += 8; + weglRotated(*angle,*x,*y,*z); }; break; -case 5158: { // glInterleavedArrays - GLenum *format = (GLenum *) bp; bp += 4; - GLsizei *stride = (GLsizei *) bp; bp += 4; - GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; - weglInterleavedArrays(*format,*stride,pointer); +case 5097: { // glRotatef + GLfloat *angle = (GLfloat *) bp; bp += 4; + GLfloat *x = (GLfloat *) bp; bp += 4; + GLfloat *y = (GLfloat *) bp; bp += 4; + GLfloat *z = (GLfloat *) bp; bp += 4; + weglRotatef(*angle,*x,*y,*z); }; break; -case 5159: { // glInterleavedArrays - GLenum *format = (GLenum *) bp; bp += 4; - GLsizei *stride = (GLsizei *) bp; bp += 4; - GLvoid *pointer = (GLvoid *) bins[0]; - weglInterleavedArrays(*format,*stride,pointer); +case 5098: { // glScaled + GLdouble *x = (GLdouble *) bp; bp += 8; + GLdouble *y = (GLdouble *) bp; bp += 8; + GLdouble *z = (GLdouble *) bp; bp += 8; + weglScaled(*x,*y,*z); }; break; -case 5160: { // glIsEnabled - GLenum *cap = (GLenum *) bp; bp += 4; - GLboolean result = weglIsEnabled(*cap); - int AP = 0; ErlDrvTermData rt[6]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result; - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); +case 5099: { // glScalef + GLfloat *x = (GLfloat *) bp; bp += 4; + GLfloat *y = (GLfloat *) bp; bp += 4; + GLfloat *z = (GLfloat *) bp; bp += 4; + weglScalef(*x,*y,*z); }; break; -case 5161: { // glIsList +case 5100: { // glTranslated + GLdouble *x = (GLdouble *) bp; bp += 8; + GLdouble *y = (GLdouble *) bp; bp += 8; + GLdouble *z = (GLdouble *) bp; bp += 8; + weglTranslated(*x,*y,*z); +}; break; +case 5101: { // glTranslatef + GLfloat *x = (GLfloat *) bp; bp += 4; + GLfloat *y = (GLfloat *) bp; bp += 4; + GLfloat *z = (GLfloat *) bp; bp += 4; + weglTranslatef(*x,*y,*z); +}; break; +case 5102: { // glIsList GLuint *list = (GLuint *) bp; bp += 4; GLboolean result = weglIsList(*list); int AP = 0; ErlDrvTermData rt[6]; @@ -1327,760 +786,1129 @@ case 5161: { // glIsList rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; driver_send_term(port,caller,rt,AP); }; break; -case 5162: { // glIsTexture - GLuint *texture = (GLuint *) bp; bp += 4; - GLboolean result = weglIsTexture(*texture); +case 5103: { // glDeleteLists + GLuint *list = (GLuint *) bp; bp += 4; + GLsizei *range = (GLsizei *) bp; bp += 4; + weglDeleteLists(*list,*range); +}; break; +case 5104: { // glGenLists + GLsizei *range = (GLsizei *) bp; bp += 4; + GLuint result = weglGenLists(*range); int AP = 0; ErlDrvTermData rt[6]; rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result; rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; driver_send_term(port,caller,rt,AP); }; break; -case 5163: { // glLightModelf - GLenum *pname = (GLenum *) bp; bp += 4; - GLfloat *param = (GLfloat *) bp; bp += 4; - weglLightModelf(*pname,*param); -}; break; -case 5164: { // glLightModelfv - GLenum *pname = (GLenum *) bp; bp += 4; - int *paramsLen = (int *) bp; bp += 4; - GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+0)%2*4; - weglLightModelfv(*pname,params); -}; break; -case 5165: { // glLightModeli - GLenum *pname = (GLenum *) bp; bp += 4; - GLint *param = (GLint *) bp; bp += 4; - weglLightModeli(*pname,*param); -}; break; -case 5166: { // glLightModeliv - GLenum *pname = (GLenum *) bp; bp += 4; - int *paramsLen = (int *) bp; bp += 4; - GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+0)%2*4; - weglLightModeliv(*pname,params); +case 5105: { // glNewList + GLuint *list = (GLuint *) bp; bp += 4; + GLenum *mode = (GLenum *) bp; bp += 4; + weglNewList(*list,*mode); }; break; -case 5167: { // glLightf - GLenum *light = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLfloat *param = (GLfloat *) bp; bp += 4; - weglLightf(*light,*pname,*param); +case 5106: { // glEndList + weglEndList(); }; break; -case 5168: { // glLightfv - GLenum *light = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - int *paramsLen = (int *) bp; bp += 4; - GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; - weglLightfv(*light,*pname,params); +case 5107: { // glCallList + GLuint *list = (GLuint *) bp; bp += 4; + weglCallList(*list); }; break; -case 5169: { // glLighti - GLenum *light = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLint *param = (GLint *) bp; bp += 4; - weglLighti(*light,*pname,*param); +case 5108: { // glCallLists + int * listsLen = (int *) bp; bp += 4; + GLuint * lists = (GLuint *) bp; bp += (8-((*listsLen*4+4)%8))%8; + weglCallLists(*listsLen,GL_UNSIGNED_INT,lists); }; break; -case 5170: { // glLightiv - GLenum *light = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - int *paramsLen = (int *) bp; bp += 4; - GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; - weglLightiv(*light,*pname,params); +case 5109: { // glListBase + GLuint *base = (GLuint *) bp; bp += 4; + weglListBase(*base); }; break; -case 5171: { // glLineStipple - GLint *factor = (GLint *) bp; bp += 4; - GLushort *pattern = (GLushort *) bp; bp += 2; - weglLineStipple(*factor,*pattern); +case 5110: { // glBegin + GLenum *mode = (GLenum *) bp; bp += 4; + weglBegin(*mode); }; break; -case 5172: { // glLineWidth - GLfloat *width = (GLfloat *) bp; bp += 4; - weglLineWidth(*width); +case 5111: { // glEnd + weglEnd(); }; break; -case 5173: { // glListBase - GLuint *base = (GLuint *) bp; bp += 4; - weglListBase(*base); +case 5112: { // glVertex2dv + GLdouble *v = (GLdouble *) bp; bp += 8; + weglVertex2dv(v); }; break; -case 5174: { // glLoadIdentity - weglLoadIdentity(); +case 5113: { // glVertex2fv + GLfloat *v = (GLfloat *) bp; bp += 4; + weglVertex2fv(v); }; break; -case 5175: { // glLoadMatrixd - GLdouble * m = (GLdouble *) bp; bp += 128; - weglLoadMatrixd(m); +case 5114: { // glVertex2iv + GLint *v = (GLint *) bp; bp += 4; + weglVertex2iv(v); }; break; -case 5176: { // glLoadMatrixf - GLfloat * m = (GLfloat *) bp; bp += 64; - weglLoadMatrixf(m); +case 5115: { // glVertex2sv + GLshort *v = (GLshort *) bp; bp += 2; + weglVertex2sv(v); }; break; -case 5177: { // glLoadName - GLuint *name = (GLuint *) bp; bp += 4; - weglLoadName(*name); +case 5116: { // glVertex3dv + GLdouble *v = (GLdouble *) bp; bp += 8; + weglVertex3dv(v); }; break; -case 5178: { // glLogicOp - GLenum *opcode = (GLenum *) bp; bp += 4; - weglLogicOp(*opcode); +case 5117: { // glVertex3fv + GLfloat *v = (GLfloat *) bp; bp += 4; + weglVertex3fv(v); }; break; -case 5179: { // glMap1d - GLenum *target = (GLenum *) bp; bp += 4; - bp += 4; - GLdouble *u1 = (GLdouble *) bp; bp += 8; - GLdouble *u2 = (GLdouble *) bp; bp += 8; - GLint *stride = (GLint *) bp; bp += 4; - GLint *order = (GLint *) bp; bp += 4; - GLdouble *points = (GLdouble *) bins[0]; - weglMap1d(*target,*u1,*u2,*stride,*order,points); +case 5118: { // glVertex3iv + GLint *v = (GLint *) bp; bp += 4; + weglVertex3iv(v); }; break; -case 5180: { // glMap1f - GLenum *target = (GLenum *) bp; bp += 4; - GLfloat *u1 = (GLfloat *) bp; bp += 4; - GLfloat *u2 = (GLfloat *) bp; bp += 4; - GLint *stride = (GLint *) bp; bp += 4; - GLint *order = (GLint *) bp; bp += 4; - GLfloat *points = (GLfloat *) bins[0]; - weglMap1f(*target,*u1,*u2,*stride,*order,points); +case 5119: { // glVertex3sv + GLshort *v = (GLshort *) bp; bp += 2; + weglVertex3sv(v); }; break; -case 5181: { // glMap2d - GLenum *target = (GLenum *) bp; bp += 4; - bp += 4; - GLdouble *u1 = (GLdouble *) bp; bp += 8; - GLdouble *u2 = (GLdouble *) bp; bp += 8; - GLint *ustride = (GLint *) bp; bp += 4; - GLint *uorder = (GLint *) bp; bp += 4; - GLdouble *v1 = (GLdouble *) bp; bp += 8; - GLdouble *v2 = (GLdouble *) bp; bp += 8; - GLint *vstride = (GLint *) bp; bp += 4; - GLint *vorder = (GLint *) bp; bp += 4; - GLdouble *points = (GLdouble *) bins[0]; - weglMap2d(*target,*u1,*u2,*ustride,*uorder,*v1,*v2,*vstride,*vorder,points); +case 5120: { // glVertex4dv + GLdouble *v = (GLdouble *) bp; bp += 8; + weglVertex4dv(v); }; break; -case 5182: { // glMap2f - GLenum *target = (GLenum *) bp; bp += 4; - GLfloat *u1 = (GLfloat *) bp; bp += 4; - GLfloat *u2 = (GLfloat *) bp; bp += 4; - GLint *ustride = (GLint *) bp; bp += 4; - GLint *uorder = (GLint *) bp; bp += 4; - GLfloat *v1 = (GLfloat *) bp; bp += 4; - GLfloat *v2 = (GLfloat *) bp; bp += 4; - GLint *vstride = (GLint *) bp; bp += 4; - GLint *vorder = (GLint *) bp; bp += 4; - GLfloat *points = (GLfloat *) bins[0]; - weglMap2f(*target,*u1,*u2,*ustride,*uorder,*v1,*v2,*vstride,*vorder,points); +case 5121: { // glVertex4fv + GLfloat *v = (GLfloat *) bp; bp += 4; + weglVertex4fv(v); }; break; -case 5183: { // glMapGrid1d - GLint *un = (GLint *) bp; bp += 4; - bp += 4; - GLdouble *u1 = (GLdouble *) bp; bp += 8; - GLdouble *u2 = (GLdouble *) bp; bp += 8; - weglMapGrid1d(*un,*u1,*u2); +case 5122: { // glVertex4iv + GLint *v = (GLint *) bp; bp += 4; + weglVertex4iv(v); }; break; -case 5184: { // glMapGrid1f - GLint *un = (GLint *) bp; bp += 4; - GLfloat *u1 = (GLfloat *) bp; bp += 4; - GLfloat *u2 = (GLfloat *) bp; bp += 4; - weglMapGrid1f(*un,*u1,*u2); +case 5123: { // glVertex4sv + GLshort *v = (GLshort *) bp; bp += 2; + weglVertex4sv(v); }; break; -case 5185: { // glMapGrid2d - GLint *un = (GLint *) bp; bp += 4; - bp += 4; - GLdouble *u1 = (GLdouble *) bp; bp += 8; - GLdouble *u2 = (GLdouble *) bp; bp += 8; - GLint *vn = (GLint *) bp; bp += 4; - bp += 4; - GLdouble *v1 = (GLdouble *) bp; bp += 8; - GLdouble *v2 = (GLdouble *) bp; bp += 8; - weglMapGrid2d(*un,*u1,*u2,*vn,*v1,*v2); +case 5124: { // glNormal3bv + GLbyte *v = (GLbyte *) bp; bp += 1; + weglNormal3bv(v); }; break; -case 5186: { // glMapGrid2f - GLint *un = (GLint *) bp; bp += 4; - GLfloat *u1 = (GLfloat *) bp; bp += 4; - GLfloat *u2 = (GLfloat *) bp; bp += 4; - GLint *vn = (GLint *) bp; bp += 4; - GLfloat *v1 = (GLfloat *) bp; bp += 4; - GLfloat *v2 = (GLfloat *) bp; bp += 4; - weglMapGrid2f(*un,*u1,*u2,*vn,*v1,*v2); +case 5125: { // glNormal3dv + GLdouble *v = (GLdouble *) bp; bp += 8; + weglNormal3dv(v); }; break; -case 5187: { // glMaterialf - GLenum *face = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLfloat *param = (GLfloat *) bp; bp += 4; - weglMaterialf(*face,*pname,*param); +case 5126: { // glNormal3fv + GLfloat *v = (GLfloat *) bp; bp += 4; + weglNormal3fv(v); }; break; -case 5188: { // glMaterialfv - GLenum *face = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - int *paramsLen = (int *) bp; bp += 4; - GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; - weglMaterialfv(*face,*pname,params); +case 5127: { // glNormal3iv + GLint *v = (GLint *) bp; bp += 4; + weglNormal3iv(v); }; break; -case 5189: { // glMateriali - GLenum *face = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLint *param = (GLint *) bp; bp += 4; - weglMateriali(*face,*pname,*param); +case 5128: { // glNormal3sv + GLshort *v = (GLshort *) bp; bp += 2; + weglNormal3sv(v); }; break; -case 5190: { // glMaterialiv - GLenum *face = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - int *paramsLen = (int *) bp; bp += 4; - GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; - weglMaterialiv(*face,*pname,params); +case 5129: { // glIndexdv + GLdouble *c = (GLdouble *) bp; bp += 8; + weglIndexdv(c); }; break; -case 5191: { // glMatrixMode - GLenum *mode = (GLenum *) bp; bp += 4; - weglMatrixMode(*mode); +case 5130: { // glIndexfv + GLfloat *c = (GLfloat *) bp; bp += 4; + weglIndexfv(c); }; break; -case 5192: { // glMultMatrixd - GLdouble * m = (GLdouble *) bp; bp += 128; - weglMultMatrixd(m); +case 5131: { // glIndexiv + GLint *c = (GLint *) bp; bp += 4; + weglIndexiv(c); }; break; -case 5193: { // glMultMatrixf - GLfloat * m = (GLfloat *) bp; bp += 64; - weglMultMatrixf(m); +case 5132: { // glIndexsv + GLshort *c = (GLshort *) bp; bp += 2; + weglIndexsv(c); }; break; -case 5194: { // glNewList - GLuint *list = (GLuint *) bp; bp += 4; - GLenum *mode = (GLenum *) bp; bp += 4; - weglNewList(*list,*mode); +case 5133: { // glIndexubv + GLubyte *c = (GLubyte *) bp; bp += 1; + weglIndexubv(c); }; break; -case 5195: { // glNormal3bv +case 5134: { // glColor3bv GLbyte *v = (GLbyte *) bp; bp += 1; - weglNormal3bv(v); + weglColor3bv(v); }; break; -case 5196: { // glNormal3dv +case 5135: { // glColor3dv GLdouble *v = (GLdouble *) bp; bp += 8; - weglNormal3dv(v); + weglColor3dv(v); }; break; -case 5197: { // glNormal3fv +case 5136: { // glColor3fv GLfloat *v = (GLfloat *) bp; bp += 4; - weglNormal3fv(v); + weglColor3fv(v); }; break; -case 5198: { // glNormal3iv +case 5137: { // glColor3iv GLint *v = (GLint *) bp; bp += 4; - weglNormal3iv(v); + weglColor3iv(v); }; break; -case 5199: { // glNormal3sv +case 5138: { // glColor3sv GLshort *v = (GLshort *) bp; bp += 2; - weglNormal3sv(v); + weglColor3sv(v); }; break; -case 5200: { // glNormalPointer - GLenum *type = (GLenum *) bp; bp += 4; - GLsizei *stride = (GLsizei *) bp; bp += 4; - GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; - weglNormalPointer(*type,*stride,pointer); +case 5139: { // glColor3ubv + GLubyte *v = (GLubyte *) bp; bp += 1; + weglColor3ubv(v); }; break; -case 5201: { // glNormalPointer - GLenum *type = (GLenum *) bp; bp += 4; - GLsizei *stride = (GLsizei *) bp; bp += 4; - GLvoid *pointer = (GLvoid *) bins[0]; - weglNormalPointer(*type,*stride,pointer); +case 5140: { // glColor3uiv + GLuint *v = (GLuint *) bp; bp += 4; + weglColor3uiv(v); }; break; -case 5202: { // glOrtho - GLdouble *left = (GLdouble *) bp; bp += 8; - GLdouble *right = (GLdouble *) bp; bp += 8; - GLdouble *bottom = (GLdouble *) bp; bp += 8; - GLdouble *top = (GLdouble *) bp; bp += 8; - GLdouble *zNear = (GLdouble *) bp; bp += 8; - GLdouble *zFar = (GLdouble *) bp; bp += 8; - weglOrtho(*left,*right,*bottom,*top,*zNear,*zFar); +case 5141: { // glColor3usv + GLushort *v = (GLushort *) bp; bp += 2; + weglColor3usv(v); }; break; -case 5203: { // glPassThrough - GLfloat *token = (GLfloat *) bp; bp += 4; - weglPassThrough(*token); +case 5142: { // glColor4bv + GLbyte *v = (GLbyte *) bp; bp += 1; + weglColor4bv(v); }; break; -case 5204: { // glPixelMapfv - GLenum *map = (GLenum *) bp; bp += 4; - GLsizei *mapsize = (GLsizei *) bp; bp += 4; - GLfloat *values = (GLfloat *) bins[0]; - weglPixelMapfv(*map,*mapsize,values); +case 5143: { // glColor4dv + GLdouble *v = (GLdouble *) bp; bp += 8; + weglColor4dv(v); }; break; -case 5205: { // glPixelMapuiv - GLenum *map = (GLenum *) bp; bp += 4; - GLsizei *mapsize = (GLsizei *) bp; bp += 4; - GLuint *values = (GLuint *) bins[0]; - weglPixelMapuiv(*map,*mapsize,values); +case 5144: { // glColor4fv + GLfloat *v = (GLfloat *) bp; bp += 4; + weglColor4fv(v); }; break; -case 5206: { // glPixelMapusv - GLenum *map = (GLenum *) bp; bp += 4; - GLsizei *mapsize = (GLsizei *) bp; bp += 4; - GLushort *values = (GLushort *) bins[0]; - weglPixelMapusv(*map,*mapsize,values); +case 5145: { // glColor4iv + GLint *v = (GLint *) bp; bp += 4; + weglColor4iv(v); }; break; -case 5207: { // glPixelStoref - GLenum *pname = (GLenum *) bp; bp += 4; - GLfloat *param = (GLfloat *) bp; bp += 4; - weglPixelStoref(*pname,*param); +case 5146: { // glColor4sv + GLshort *v = (GLshort *) bp; bp += 2; + weglColor4sv(v); }; break; -case 5208: { // glPixelStorei - GLenum *pname = (GLenum *) bp; bp += 4; - GLint *param = (GLint *) bp; bp += 4; - weglPixelStorei(*pname,*param); +case 5147: { // glColor4ubv + GLubyte *v = (GLubyte *) bp; bp += 1; + weglColor4ubv(v); }; break; -case 5209: { // glPixelTransferf - GLenum *pname = (GLenum *) bp; bp += 4; - GLfloat *param = (GLfloat *) bp; bp += 4; - weglPixelTransferf(*pname,*param); +case 5148: { // glColor4uiv + GLuint *v = (GLuint *) bp; bp += 4; + weglColor4uiv(v); }; break; -case 5210: { // glPixelTransferi - GLenum *pname = (GLenum *) bp; bp += 4; - GLint *param = (GLint *) bp; bp += 4; - weglPixelTransferi(*pname,*param); +case 5149: { // glColor4usv + GLushort *v = (GLushort *) bp; bp += 2; + weglColor4usv(v); }; break; -case 5211: { // glPixelZoom - GLfloat *xfactor = (GLfloat *) bp; bp += 4; - GLfloat *yfactor = (GLfloat *) bp; bp += 4; - weglPixelZoom(*xfactor,*yfactor); +case 5150: { // glTexCoord1dv + GLdouble *v = (GLdouble *) bp; bp += 8; + weglTexCoord1dv(v); }; break; -case 5212: { // glPointSize - GLfloat *size = (GLfloat *) bp; bp += 4; - weglPointSize(*size); +case 5151: { // glTexCoord1fv + GLfloat *v = (GLfloat *) bp; bp += 4; + weglTexCoord1fv(v); }; break; -case 5213: { // glPolygonMode - GLenum *face = (GLenum *) bp; bp += 4; - GLenum *mode = (GLenum *) bp; bp += 4; - weglPolygonMode(*face,*mode); +case 5152: { // glTexCoord1iv + GLint *v = (GLint *) bp; bp += 4; + weglTexCoord1iv(v); }; break; -case 5214: { // glPolygonOffset - GLfloat *factor = (GLfloat *) bp; bp += 4; - GLfloat *units = (GLfloat *) bp; bp += 4; - weglPolygonOffset(*factor,*units); +case 5153: { // glTexCoord1sv + GLshort *v = (GLshort *) bp; bp += 2; + weglTexCoord1sv(v); }; break; -case 5215: { // glPolygonStipple - GLubyte *mask = (GLubyte *) bins[0]; - weglPolygonStipple(mask); +case 5154: { // glTexCoord2dv + GLdouble *v = (GLdouble *) bp; bp += 8; + weglTexCoord2dv(v); }; break; -case 5216: { // glPopAttrib - weglPopAttrib(); +case 5155: { // glTexCoord2fv + GLfloat *v = (GLfloat *) bp; bp += 4; + weglTexCoord2fv(v); }; break; -case 5217: { // glPopClientAttrib - weglPopClientAttrib(); +case 5156: { // glTexCoord2iv + GLint *v = (GLint *) bp; bp += 4; + weglTexCoord2iv(v); }; break; -case 5218: { // glPopMatrix - weglPopMatrix(); +case 5157: { // glTexCoord2sv + GLshort *v = (GLshort *) bp; bp += 2; + weglTexCoord2sv(v); }; break; -case 5219: { // glPopName - weglPopName(); +case 5158: { // glTexCoord3dv + GLdouble *v = (GLdouble *) bp; bp += 8; + weglTexCoord3dv(v); }; break; -case 5220: { // glPrioritizeTextures - int * texturesLen = (int *) bp; bp += 4; - GLuint * textures = (GLuint *) bp; bp += (8-((*texturesLen*4+4)%8))%8; - int * prioritiesLen = (int *) bp; bp += 4; - GLclampf * priorities = (GLclampf *) bp; bp += (8-((*prioritiesLen*4+4)%8))%8; - weglPrioritizeTextures(*texturesLen,textures,priorities); +case 5159: { // glTexCoord3fv + GLfloat *v = (GLfloat *) bp; bp += 4; + weglTexCoord3fv(v); }; break; -case 5221: { // glPushAttrib - GLbitfield *mask = (GLbitfield *) bp; bp += 4; - weglPushAttrib(*mask); +case 5160: { // glTexCoord3iv + GLint *v = (GLint *) bp; bp += 4; + weglTexCoord3iv(v); }; break; -case 5222: { // glPushClientAttrib - GLbitfield *mask = (GLbitfield *) bp; bp += 4; - weglPushClientAttrib(*mask); +case 5161: { // glTexCoord3sv + GLshort *v = (GLshort *) bp; bp += 2; + weglTexCoord3sv(v); }; break; -case 5223: { // glPushMatrix - weglPushMatrix(); +case 5162: { // glTexCoord4dv + GLdouble *v = (GLdouble *) bp; bp += 8; + weglTexCoord4dv(v); }; break; -case 5224: { // glPushName - GLuint *name = (GLuint *) bp; bp += 4; - weglPushName(*name); +case 5163: { // glTexCoord4fv + GLfloat *v = (GLfloat *) bp; bp += 4; + weglTexCoord4fv(v); }; break; -case 5225: { // glRasterPos2dv +case 5164: { // glTexCoord4iv + GLint *v = (GLint *) bp; bp += 4; + weglTexCoord4iv(v); +}; break; +case 5165: { // glTexCoord4sv + GLshort *v = (GLshort *) bp; bp += 2; + weglTexCoord4sv(v); +}; break; +case 5166: { // glRasterPos2dv GLdouble *v = (GLdouble *) bp; bp += 8; weglRasterPos2dv(v); }; break; -case 5226: { // glRasterPos2fv +case 5167: { // glRasterPos2fv GLfloat *v = (GLfloat *) bp; bp += 4; weglRasterPos2fv(v); }; break; -case 5227: { // glRasterPos2iv +case 5168: { // glRasterPos2iv GLint *v = (GLint *) bp; bp += 4; weglRasterPos2iv(v); }; break; -case 5228: { // glRasterPos2sv +case 5169: { // glRasterPos2sv GLshort *v = (GLshort *) bp; bp += 2; weglRasterPos2sv(v); }; break; -case 5229: { // glRasterPos3dv +case 5170: { // glRasterPos3dv GLdouble *v = (GLdouble *) bp; bp += 8; weglRasterPos3dv(v); }; break; -case 5230: { // glRasterPos3fv +case 5171: { // glRasterPos3fv GLfloat *v = (GLfloat *) bp; bp += 4; weglRasterPos3fv(v); }; break; -case 5231: { // glRasterPos3iv +case 5172: { // glRasterPos3iv GLint *v = (GLint *) bp; bp += 4; weglRasterPos3iv(v); }; break; -case 5232: { // glRasterPos3sv +case 5173: { // glRasterPos3sv GLshort *v = (GLshort *) bp; bp += 2; weglRasterPos3sv(v); }; break; -case 5233: { // glRasterPos4dv +case 5174: { // glRasterPos4dv GLdouble *v = (GLdouble *) bp; bp += 8; weglRasterPos4dv(v); }; break; -case 5234: { // glRasterPos4fv +case 5175: { // glRasterPos4fv GLfloat *v = (GLfloat *) bp; bp += 4; weglRasterPos4fv(v); }; break; -case 5235: { // glRasterPos4iv +case 5176: { // glRasterPos4iv GLint *v = (GLint *) bp; bp += 4; weglRasterPos4iv(v); }; break; -case 5236: { // glRasterPos4sv +case 5177: { // glRasterPos4sv GLshort *v = (GLshort *) bp; bp += 2; weglRasterPos4sv(v); }; break; -case 5237: { // glReadBuffer - GLenum *mode = (GLenum *) bp; bp += 4; - weglReadBuffer(*mode); -}; break; -case 5238: { // glReadPixels - GLint *x = (GLint *) bp; bp += 4; - GLint *y = (GLint *) bp; bp += 4; - GLsizei *width = (GLsizei *) bp; bp += 4; - GLsizei *height = (GLsizei *) bp; bp += 4; - GLenum *format = (GLenum *) bp; bp += 4; - GLenum *type = (GLenum *) bp; bp += 4; - GLvoid *pixels = (GLvoid *) bins[0]; - weglReadPixels(*x,*y,*width,*height,*format,*type,pixels); - int AP = 0; ErlDrvTermData rt[6]; - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); - rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; - driver_send_term(port,caller,rt,AP); -}; break; -case 5239: { // glRectd +case 5178: { // glRectd GLdouble *x1 = (GLdouble *) bp; bp += 8; GLdouble *y1 = (GLdouble *) bp; bp += 8; GLdouble *x2 = (GLdouble *) bp; bp += 8; GLdouble *y2 = (GLdouble *) bp; bp += 8; weglRectd(*x1,*y1,*x2,*y2); }; break; -case 5240: { // glRectdv - GLdouble * v1 = (GLdouble *) bp; bp += 16; - GLdouble * v2 = (GLdouble *) bp; bp += 16; - weglRectdv(v1,v2); -}; break; -case 5241: { // glRectf +case 5179: { // glRectf GLfloat *x1 = (GLfloat *) bp; bp += 4; GLfloat *y1 = (GLfloat *) bp; bp += 4; GLfloat *x2 = (GLfloat *) bp; bp += 4; GLfloat *y2 = (GLfloat *) bp; bp += 4; weglRectf(*x1,*y1,*x2,*y2); }; break; -case 5242: { // glRectfv - GLfloat * v1 = (GLfloat *) bp; bp += 8; - GLfloat * v2 = (GLfloat *) bp; bp += 8; - weglRectfv(v1,v2); -}; break; -case 5243: { // glRecti +case 5180: { // glRecti GLint *x1 = (GLint *) bp; bp += 4; GLint *y1 = (GLint *) bp; bp += 4; GLint *x2 = (GLint *) bp; bp += 4; GLint *y2 = (GLint *) bp; bp += 4; weglRecti(*x1,*y1,*x2,*y2); }; break; -case 5244: { // glRectiv - GLint * v1 = (GLint *) bp; bp += 8; - GLint * v2 = (GLint *) bp; bp += 8; - weglRectiv(v1,v2); -}; break; -case 5245: { // glRects +case 5181: { // glRects GLshort *x1 = (GLshort *) bp; bp += 2; GLshort *y1 = (GLshort *) bp; bp += 2; GLshort *x2 = (GLshort *) bp; bp += 2; GLshort *y2 = (GLshort *) bp; bp += 2; weglRects(*x1,*y1,*x2,*y2); }; break; -case 5246: { // glRectsv +case 5182: { // glRectdv + GLdouble * v1 = (GLdouble *) bp; bp += 16; + GLdouble * v2 = (GLdouble *) bp; bp += 16; + weglRectdv(v1,v2); +}; break; +case 5183: { // glRectfv + GLfloat * v1 = (GLfloat *) bp; bp += 8; + GLfloat * v2 = (GLfloat *) bp; bp += 8; + weglRectfv(v1,v2); +}; break; +case 5184: { // glRectiv + GLint * v1 = (GLint *) bp; bp += 8; + GLint * v2 = (GLint *) bp; bp += 8; + weglRectiv(v1,v2); +}; break; +case 5185: { // glRectsv GLshort * v1 = (GLshort *) bp; bp += 4; GLshort * v2 = (GLshort *) bp; bp += 4; weglRectsv(v1,v2); }; break; -case 5247: { // glRenderMode +case 5186: { // glVertexPointer + GLint *size = (GLint *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + GLsizei *stride = (GLsizei *) bp; bp += 4; + GLvoid *ptr = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; + weglVertexPointer(*size,*type,*stride,ptr); +}; break; +case 5187: { // glVertexPointer + GLint *size = (GLint *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + GLsizei *stride = (GLsizei *) bp; bp += 4; + GLvoid *ptr = (GLvoid *) bins[0]; + weglVertexPointer(*size,*type,*stride,ptr); +}; break; +case 5188: { // glNormalPointer + GLenum *type = (GLenum *) bp; bp += 4; + GLsizei *stride = (GLsizei *) bp; bp += 4; + GLvoid *ptr = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; + weglNormalPointer(*type,*stride,ptr); +}; break; +case 5189: { // glNormalPointer + GLenum *type = (GLenum *) bp; bp += 4; + GLsizei *stride = (GLsizei *) bp; bp += 4; + GLvoid *ptr = (GLvoid *) bins[0]; + weglNormalPointer(*type,*stride,ptr); +}; break; +case 5190: { // glColorPointer + GLint *size = (GLint *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + GLsizei *stride = (GLsizei *) bp; bp += 4; + GLvoid *ptr = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; + weglColorPointer(*size,*type,*stride,ptr); +}; break; +case 5191: { // glColorPointer + GLint *size = (GLint *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + GLsizei *stride = (GLsizei *) bp; bp += 4; + GLvoid *ptr = (GLvoid *) bins[0]; + weglColorPointer(*size,*type,*stride,ptr); +}; break; +case 5192: { // glIndexPointer + GLenum *type = (GLenum *) bp; bp += 4; + GLsizei *stride = (GLsizei *) bp; bp += 4; + GLvoid *ptr = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; + weglIndexPointer(*type,*stride,ptr); +}; break; +case 5193: { // glIndexPointer + GLenum *type = (GLenum *) bp; bp += 4; + GLsizei *stride = (GLsizei *) bp; bp += 4; + GLvoid *ptr = (GLvoid *) bins[0]; + weglIndexPointer(*type,*stride,ptr); +}; break; +case 5194: { // glTexCoordPointer + GLint *size = (GLint *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + GLsizei *stride = (GLsizei *) bp; bp += 4; + GLvoid *ptr = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; + weglTexCoordPointer(*size,*type,*stride,ptr); +}; break; +case 5195: { // glTexCoordPointer + GLint *size = (GLint *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + GLsizei *stride = (GLsizei *) bp; bp += 4; + GLvoid *ptr = (GLvoid *) bins[0]; + weglTexCoordPointer(*size,*type,*stride,ptr); +}; break; +case 5196: { // glEdgeFlagPointer + GLsizei *stride = (GLsizei *) bp; bp += 4; + GLvoid *ptr = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; + weglEdgeFlagPointer(*stride,ptr); +}; break; +case 5197: { // glEdgeFlagPointer + GLsizei *stride = (GLsizei *) bp; bp += 4; + GLvoid *ptr = (GLvoid *) bins[0]; + weglEdgeFlagPointer(*stride,ptr); +}; break; +case 5198: { // glArrayElement + GLint *i = (GLint *) bp; bp += 4; + weglArrayElement(*i); +}; break; +case 5199: { // glDrawArrays GLenum *mode = (GLenum *) bp; bp += 4; - GLint result = weglRenderMode(*mode); + GLint *first = (GLint *) bp; bp += 4; + GLsizei *count = (GLsizei *) bp; bp += 4; + weglDrawArrays(*mode,*first,*count); +}; break; +case 5200: { // glDrawElements + GLenum *mode = (GLenum *) bp; bp += 4; + GLsizei *count = (GLsizei *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + GLvoid *indices = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; + weglDrawElements(*mode,*count,*type,indices); +}; break; +case 5201: { // glDrawElements + GLenum *mode = (GLenum *) bp; bp += 4; + GLsizei *count = (GLsizei *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + GLvoid *indices = (GLvoid *) bins[0]; + weglDrawElements(*mode,*count,*type,indices); +}; break; +case 5202: { // glInterleavedArrays + GLenum *format = (GLenum *) bp; bp += 4; + GLsizei *stride = (GLsizei *) bp; bp += 4; + GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; + weglInterleavedArrays(*format,*stride,pointer); +}; break; +case 5203: { // glInterleavedArrays + GLenum *format = (GLenum *) bp; bp += 4; + GLsizei *stride = (GLsizei *) bp; bp += 4; + GLvoid *pointer = (GLvoid *) bins[0]; + weglInterleavedArrays(*format,*stride,pointer); +}; break; +case 5204: { // glShadeModel + GLenum *mode = (GLenum *) bp; bp += 4; + weglShadeModel(*mode); +}; break; +case 5205: { // glLightf + GLenum *light = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLfloat *param = (GLfloat *) bp; bp += 4; + weglLightf(*light,*pname,*param); +}; break; +case 5206: { // glLighti + GLenum *light = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLint *param = (GLint *) bp; bp += 4; + weglLighti(*light,*pname,*param); +}; break; +case 5207: { // glLightfv + GLenum *light = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + int *paramsLen = (int *) bp; bp += 4; + GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; + weglLightfv(*light,*pname,params); +}; break; +case 5208: { // glLightiv + GLenum *light = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + int *paramsLen = (int *) bp; bp += 4; + GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; + weglLightiv(*light,*pname,params); +}; break; +case 5209: { // glGetLightfv + GLenum *light = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLfloat params[4] = {0.0,0.0,0.0,0.0}; + weglGetLightfv(*light,*pname,params); + int AP = 0; ErlDrvTermData rt[14]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + GLdouble paramsConv[4], *paramsTmp = paramsConv; + for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i]; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); +}; break; +case 5210: { // glGetLightiv + GLenum *light = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLint params[4] = {0,0,0,0}; + weglGetLightiv(*light,*pname,params); + int AP = 0; ErlDrvTermData rt[14]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + GLint *paramsTmp = params; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); +}; break; +case 5211: { // glLightModelf + GLenum *pname = (GLenum *) bp; bp += 4; + GLfloat *param = (GLfloat *) bp; bp += 4; + weglLightModelf(*pname,*param); +}; break; +case 5212: { // glLightModeli + GLenum *pname = (GLenum *) bp; bp += 4; + GLint *param = (GLint *) bp; bp += 4; + weglLightModeli(*pname,*param); +}; break; +case 5213: { // glLightModelfv + GLenum *pname = (GLenum *) bp; bp += 4; + int *paramsLen = (int *) bp; bp += 4; + GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+0)%2*4; + weglLightModelfv(*pname,params); +}; break; +case 5214: { // glLightModeliv + GLenum *pname = (GLenum *) bp; bp += 4; + int *paramsLen = (int *) bp; bp += 4; + GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+0)%2*4; + weglLightModeliv(*pname,params); +}; break; +case 5215: { // glMaterialf + GLenum *face = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLfloat *param = (GLfloat *) bp; bp += 4; + weglMaterialf(*face,*pname,*param); +}; break; +case 5216: { // glMateriali + GLenum *face = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLint *param = (GLint *) bp; bp += 4; + weglMateriali(*face,*pname,*param); +}; break; +case 5217: { // glMaterialfv + GLenum *face = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + int *paramsLen = (int *) bp; bp += 4; + GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; + weglMaterialfv(*face,*pname,params); +}; break; +case 5218: { // glMaterialiv + GLenum *face = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + int *paramsLen = (int *) bp; bp += 4; + GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; + weglMaterialiv(*face,*pname,params); +}; break; +case 5219: { // glGetMaterialfv + GLenum *face = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLfloat params[4] = {0.0,0.0,0.0,0.0}; + weglGetMaterialfv(*face,*pname,params); + int AP = 0; ErlDrvTermData rt[14]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + GLdouble paramsConv[4], *paramsTmp = paramsConv; + for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i]; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); +}; break; +case 5220: { // glGetMaterialiv + GLenum *face = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLint params[4] = {0,0,0,0}; + weglGetMaterialiv(*face,*pname,params); + int AP = 0; ErlDrvTermData rt[14]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + GLint *paramsTmp = params; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); +}; break; +case 5221: { // glColorMaterial + GLenum *face = (GLenum *) bp; bp += 4; + GLenum *mode = (GLenum *) bp; bp += 4; + weglColorMaterial(*face,*mode); +}; break; +case 5222: { // glPixelZoom + GLfloat *xfactor = (GLfloat *) bp; bp += 4; + GLfloat *yfactor = (GLfloat *) bp; bp += 4; + weglPixelZoom(*xfactor,*yfactor); +}; break; +case 5223: { // glPixelStoref + GLenum *pname = (GLenum *) bp; bp += 4; + GLfloat *param = (GLfloat *) bp; bp += 4; + weglPixelStoref(*pname,*param); +}; break; +case 5224: { // glPixelStorei + GLenum *pname = (GLenum *) bp; bp += 4; + GLint *param = (GLint *) bp; bp += 4; + weglPixelStorei(*pname,*param); +}; break; +case 5225: { // glPixelTransferf + GLenum *pname = (GLenum *) bp; bp += 4; + GLfloat *param = (GLfloat *) bp; bp += 4; + weglPixelTransferf(*pname,*param); +}; break; +case 5226: { // glPixelTransferi + GLenum *pname = (GLenum *) bp; bp += 4; + GLint *param = (GLint *) bp; bp += 4; + weglPixelTransferi(*pname,*param); +}; break; +case 5227: { // glPixelMapfv + GLenum *map = (GLenum *) bp; bp += 4; + GLsizei *mapsize = (GLsizei *) bp; bp += 4; + GLfloat *values = (GLfloat *) bins[0]; + weglPixelMapfv(*map,*mapsize,values); +}; break; +case 5228: { // glPixelMapuiv + GLenum *map = (GLenum *) bp; bp += 4; + GLsizei *mapsize = (GLsizei *) bp; bp += 4; + GLuint *values = (GLuint *) bins[0]; + weglPixelMapuiv(*map,*mapsize,values); +}; break; +case 5229: { // glPixelMapusv + GLenum *map = (GLenum *) bp; bp += 4; + GLsizei *mapsize = (GLsizei *) bp; bp += 4; + GLushort *values = (GLushort *) bins[0]; + weglPixelMapusv(*map,*mapsize,values); +}; break; +case 5230: { // glGetPixelMapfv + GLenum *map = (GLenum *) bp; bp += 4; + GLfloat *values = (GLfloat *) bins[0]; + weglGetPixelMapfv(*map,values); int AP = 0; ErlDrvTermData rt[6]; rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); - rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; driver_send_term(port,caller,rt,AP); }; break; -case 5248: { // glRotated - GLdouble *angle = (GLdouble *) bp; bp += 8; - GLdouble *x = (GLdouble *) bp; bp += 8; - GLdouble *y = (GLdouble *) bp; bp += 8; - GLdouble *z = (GLdouble *) bp; bp += 8; - weglRotated(*angle,*x,*y,*z); +case 5231: { // glGetPixelMapuiv + GLenum *map = (GLenum *) bp; bp += 4; + GLuint *values = (GLuint *) bins[0]; + weglGetPixelMapuiv(*map,values); + int AP = 0; ErlDrvTermData rt[6]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); }; break; -case 5249: { // glRotatef - GLfloat *angle = (GLfloat *) bp; bp += 4; - GLfloat *x = (GLfloat *) bp; bp += 4; - GLfloat *y = (GLfloat *) bp; bp += 4; - GLfloat *z = (GLfloat *) bp; bp += 4; - weglRotatef(*angle,*x,*y,*z); +case 5232: { // glGetPixelMapusv + GLenum *map = (GLenum *) bp; bp += 4; + GLushort *values = (GLushort *) bins[0]; + weglGetPixelMapusv(*map,values); + int AP = 0; ErlDrvTermData rt[6]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); }; break; -case 5250: { // glScaled - GLdouble *x = (GLdouble *) bp; bp += 8; - GLdouble *y = (GLdouble *) bp; bp += 8; - GLdouble *z = (GLdouble *) bp; bp += 8; - weglScaled(*x,*y,*z); +case 5233: { // glBitmap + GLsizei *width = (GLsizei *) bp; bp += 4; + GLsizei *height = (GLsizei *) bp; bp += 4; + GLfloat *xorig = (GLfloat *) bp; bp += 4; + GLfloat *yorig = (GLfloat *) bp; bp += 4; + GLfloat *xmove = (GLfloat *) bp; bp += 4; + GLfloat *ymove = (GLfloat *) bp; bp += 4; + GLubyte *bitmap = (GLubyte *) (ErlDrvSInt) * (int *) bp; bp += 4; + weglBitmap(*width,*height,*xorig,*yorig,*xmove,*ymove,bitmap); }; break; -case 5251: { // glScalef - GLfloat *x = (GLfloat *) bp; bp += 4; - GLfloat *y = (GLfloat *) bp; bp += 4; - GLfloat *z = (GLfloat *) bp; bp += 4; - weglScalef(*x,*y,*z); +case 5234: { // glBitmap + GLsizei *width = (GLsizei *) bp; bp += 4; + GLsizei *height = (GLsizei *) bp; bp += 4; + GLfloat *xorig = (GLfloat *) bp; bp += 4; + GLfloat *yorig = (GLfloat *) bp; bp += 4; + GLfloat *xmove = (GLfloat *) bp; bp += 4; + GLfloat *ymove = (GLfloat *) bp; bp += 4; + GLubyte *bitmap = (GLubyte *) bins[0]; + weglBitmap(*width,*height,*xorig,*yorig,*xmove,*ymove,bitmap); }; break; -case 5252: { // glScissor +case 5235: { // glReadPixels GLint *x = (GLint *) bp; bp += 4; GLint *y = (GLint *) bp; bp += 4; GLsizei *width = (GLsizei *) bp; bp += 4; GLsizei *height = (GLsizei *) bp; bp += 4; - weglScissor(*x,*y,*width,*height); -}; break; -case 5253: { // glSelectBuffer - GLsizei *size = (GLsizei *) bp; bp += 4; - GLuint *buffer = (GLuint *) bins[0]; - weglSelectBuffer(*size,buffer); + GLenum *format = (GLenum *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + GLvoid *pixels = (GLvoid *) bins[0]; + weglReadPixels(*x,*y,*width,*height,*format,*type,pixels); int AP = 0; ErlDrvTermData rt[6]; rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; driver_send_term(port,caller,rt,AP); }; break; -case 5254: { // glShadeModel - GLenum *mode = (GLenum *) bp; bp += 4; - weglShadeModel(*mode); +case 5236: { // glDrawPixels + GLsizei *width = (GLsizei *) bp; bp += 4; + GLsizei *height = (GLsizei *) bp; bp += 4; + GLenum *format = (GLenum *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + GLvoid *pixels = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; + weglDrawPixels(*width,*height,*format,*type,pixels); +}; break; +case 5237: { // glDrawPixels + GLsizei *width = (GLsizei *) bp; bp += 4; + GLsizei *height = (GLsizei *) bp; bp += 4; + GLenum *format = (GLenum *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + GLvoid *pixels = (GLvoid *) bins[0]; + weglDrawPixels(*width,*height,*format,*type,pixels); +}; break; +case 5238: { // glCopyPixels + GLint *x = (GLint *) bp; bp += 4; + GLint *y = (GLint *) bp; bp += 4; + GLsizei *width = (GLsizei *) bp; bp += 4; + GLsizei *height = (GLsizei *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + weglCopyPixels(*x,*y,*width,*height,*type); }; break; -case 5255: { // glStencilFunc +case 5239: { // glStencilFunc GLenum *func = (GLenum *) bp; bp += 4; GLint *ref = (GLint *) bp; bp += 4; GLuint *mask = (GLuint *) bp; bp += 4; weglStencilFunc(*func,*ref,*mask); }; break; -case 5256: { // glStencilMask +case 5240: { // glStencilMask GLuint *mask = (GLuint *) bp; bp += 4; weglStencilMask(*mask); }; break; -case 5257: { // glStencilOp +case 5241: { // glStencilOp GLenum *fail = (GLenum *) bp; bp += 4; GLenum *zfail = (GLenum *) bp; bp += 4; GLenum *zpass = (GLenum *) bp; bp += 4; weglStencilOp(*fail,*zfail,*zpass); }; break; -case 5258: { // glTexCoord1dv - GLdouble *v = (GLdouble *) bp; bp += 8; - weglTexCoord1dv(v); -}; break; -case 5259: { // glTexCoord1fv - GLfloat *v = (GLfloat *) bp; bp += 4; - weglTexCoord1fv(v); -}; break; -case 5260: { // glTexCoord1iv - GLint *v = (GLint *) bp; bp += 4; - weglTexCoord1iv(v); -}; break; -case 5261: { // glTexCoord1sv - GLshort *v = (GLshort *) bp; bp += 2; - weglTexCoord1sv(v); -}; break; -case 5262: { // glTexCoord2dv - GLdouble *v = (GLdouble *) bp; bp += 8; - weglTexCoord2dv(v); -}; break; -case 5263: { // glTexCoord2fv - GLfloat *v = (GLfloat *) bp; bp += 4; - weglTexCoord2fv(v); -}; break; -case 5264: { // glTexCoord2iv - GLint *v = (GLint *) bp; bp += 4; - weglTexCoord2iv(v); -}; break; -case 5265: { // glTexCoord2sv - GLshort *v = (GLshort *) bp; bp += 2; - weglTexCoord2sv(v); -}; break; -case 5266: { // glTexCoord3dv - GLdouble *v = (GLdouble *) bp; bp += 8; - weglTexCoord3dv(v); +case 5242: { // glClearStencil + GLint *s = (GLint *) bp; bp += 4; + weglClearStencil(*s); }; break; -case 5267: { // glTexCoord3fv - GLfloat *v = (GLfloat *) bp; bp += 4; - weglTexCoord3fv(v); +case 5243: { // glTexGend + GLenum *coord = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLdouble *param = (GLdouble *) bp; bp += 8; + weglTexGend(*coord,*pname,*param); }; break; -case 5268: { // glTexCoord3iv - GLint *v = (GLint *) bp; bp += 4; - weglTexCoord3iv(v); +case 5244: { // glTexGenf + GLenum *coord = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLfloat *param = (GLfloat *) bp; bp += 4; + weglTexGenf(*coord,*pname,*param); }; break; -case 5269: { // glTexCoord3sv - GLshort *v = (GLshort *) bp; bp += 2; - weglTexCoord3sv(v); +case 5245: { // glTexGeni + GLenum *coord = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLint *param = (GLint *) bp; bp += 4; + weglTexGeni(*coord,*pname,*param); }; break; -case 5270: { // glTexCoord4dv - GLdouble *v = (GLdouble *) bp; bp += 8; - weglTexCoord4dv(v); +case 5246: { // glTexGendv + GLenum *coord = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + int *paramsLen = (int *) bp; bp += 8; + GLdouble *params = (GLdouble *) bp; bp += *paramsLen*8; + weglTexGendv(*coord,*pname,params); }; break; -case 5271: { // glTexCoord4fv - GLfloat *v = (GLfloat *) bp; bp += 4; - weglTexCoord4fv(v); +case 5247: { // glTexGenfv + GLenum *coord = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + int *paramsLen = (int *) bp; bp += 4; + GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; + weglTexGenfv(*coord,*pname,params); }; break; -case 5272: { // glTexCoord4iv - GLint *v = (GLint *) bp; bp += 4; - weglTexCoord4iv(v); +case 5248: { // glTexGeniv + GLenum *coord = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + int *paramsLen = (int *) bp; bp += 4; + GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; + weglTexGeniv(*coord,*pname,params); }; break; -case 5273: { // glTexCoord4sv - GLshort *v = (GLshort *) bp; bp += 2; - weglTexCoord4sv(v); +case 5249: { // glGetTexGendv + GLenum *coord = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLdouble params[4] = {0.0,0.0,0.0,0.0}; + weglGetTexGendv(*coord,*pname,params); + int AP = 0; ErlDrvTermData rt[14]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + GLdouble *paramsTmp = params; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); }; break; -case 5274: { // glTexCoordPointer - GLint *size = (GLint *) bp; bp += 4; - GLenum *type = (GLenum *) bp; bp += 4; - GLsizei *stride = (GLsizei *) bp; bp += 4; - GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; - weglTexCoordPointer(*size,*type,*stride,pointer); +case 5250: { // glGetTexGenfv + GLenum *coord = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLfloat params[4] = {0.0,0.0,0.0,0.0}; + weglGetTexGenfv(*coord,*pname,params); + int AP = 0; ErlDrvTermData rt[14]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + GLdouble paramsConv[4], *paramsTmp = paramsConv; + for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i]; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); }; break; -case 5275: { // glTexCoordPointer - GLint *size = (GLint *) bp; bp += 4; - GLenum *type = (GLenum *) bp; bp += 4; - GLsizei *stride = (GLsizei *) bp; bp += 4; - GLvoid *pointer = (GLvoid *) bins[0]; - weglTexCoordPointer(*size,*type,*stride,pointer); +case 5251: { // glGetTexGeniv + GLenum *coord = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLint params[4] = {0,0,0,0}; + weglGetTexGeniv(*coord,*pname,params); + int AP = 0; ErlDrvTermData rt[14]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + GLint *paramsTmp = params; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); }; break; -case 5276: { // glTexEnvf +case 5252: { // glTexEnvf GLenum *target = (GLenum *) bp; bp += 4; GLenum *pname = (GLenum *) bp; bp += 4; GLfloat *param = (GLfloat *) bp; bp += 4; weglTexEnvf(*target,*pname,*param); }; break; -case 5277: { // glTexEnvfv +case 5253: { // glTexEnvi GLenum *target = (GLenum *) bp; bp += 4; GLenum *pname = (GLenum *) bp; bp += 4; - int *paramsLen = (int *) bp; bp += 4; - GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; - weglTexEnvfv(*target,*pname,params); + GLint *param = (GLint *) bp; bp += 4; + weglTexEnvi(*target,*pname,*param); }; break; -case 5278: { // glTexEnvi +case 5254: { // glTexEnvfv GLenum *target = (GLenum *) bp; bp += 4; GLenum *pname = (GLenum *) bp; bp += 4; - GLint *param = (GLint *) bp; bp += 4; - weglTexEnvi(*target,*pname,*param); + int *paramsLen = (int *) bp; bp += 4; + GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; + weglTexEnvfv(*target,*pname,params); }; break; -case 5279: { // glTexEnviv +case 5255: { // glTexEnviv GLenum *target = (GLenum *) bp; bp += 4; GLenum *pname = (GLenum *) bp; bp += 4; int *paramsLen = (int *) bp; bp += 4; GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; weglTexEnviv(*target,*pname,params); }; break; -case 5280: { // glTexGend - GLenum *coord = (GLenum *) bp; bp += 4; +case 5256: { // glGetTexEnvfv + GLenum *target = (GLenum *) bp; bp += 4; GLenum *pname = (GLenum *) bp; bp += 4; - GLdouble *param = (GLdouble *) bp; bp += 8; - weglTexGend(*coord,*pname,*param); + GLfloat params[4] = {0.0,0.0,0.0,0.0}; + weglGetTexEnvfv(*target,*pname,params); + int AP = 0; ErlDrvTermData rt[14]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + GLdouble paramsConv[4], *paramsTmp = paramsConv; + for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i]; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); }; break; -case 5281: { // glTexGendv - GLenum *coord = (GLenum *) bp; bp += 4; +case 5257: { // glGetTexEnviv + GLenum *target = (GLenum *) bp; bp += 4; GLenum *pname = (GLenum *) bp; bp += 4; - int *paramsLen = (int *) bp; bp += 8; - GLdouble *params = (GLdouble *) bp; bp += *paramsLen*8; - weglTexGendv(*coord,*pname,params); + GLint params[4] = {0,0,0,0}; + weglGetTexEnviv(*target,*pname,params); + int AP = 0; ErlDrvTermData rt[14]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + GLint *paramsTmp = params; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); }; break; -case 5282: { // glTexGenf - GLenum *coord = (GLenum *) bp; bp += 4; +case 5258: { // glTexParameterf + GLenum *target = (GLenum *) bp; bp += 4; GLenum *pname = (GLenum *) bp; bp += 4; GLfloat *param = (GLfloat *) bp; bp += 4; - weglTexGenf(*coord,*pname,*param); + weglTexParameterf(*target,*pname,*param); }; break; -case 5283: { // glTexGenfv - GLenum *coord = (GLenum *) bp; bp += 4; +case 5259: { // glTexParameteri + GLenum *target = (GLenum *) bp; bp += 4; GLenum *pname = (GLenum *) bp; bp += 4; - int *paramsLen = (int *) bp; bp += 4; - GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; - weglTexGenfv(*coord,*pname,params); + GLint *param = (GLint *) bp; bp += 4; + weglTexParameteri(*target,*pname,*param); }; break; -case 5284: { // glTexGeni - GLenum *coord = (GLenum *) bp; bp += 4; +case 5260: { // glTexParameterfv + GLenum *target = (GLenum *) bp; bp += 4; GLenum *pname = (GLenum *) bp; bp += 4; - GLint *param = (GLint *) bp; bp += 4; - weglTexGeni(*coord,*pname,*param); + int *paramsLen = (int *) bp; bp += 4; + GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; + weglTexParameterfv(*target,*pname,params); }; break; -case 5285: { // glTexGeniv - GLenum *coord = (GLenum *) bp; bp += 4; +case 5261: { // glTexParameteriv + GLenum *target = (GLenum *) bp; bp += 4; GLenum *pname = (GLenum *) bp; bp += 4; int *paramsLen = (int *) bp; bp += 4; GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; - weglTexGeniv(*coord,*pname,params); + weglTexParameteriv(*target,*pname,params); +}; break; +case 5262: { // glGetTexParameterfv + GLenum *target = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLfloat params[4] = {0.0,0.0,0.0,0.0}; + weglGetTexParameterfv(*target,*pname,params); + int AP = 0; ErlDrvTermData rt[14]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + GLdouble paramsConv[4], *paramsTmp = paramsConv; + for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i]; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); +}; break; +case 5263: { // glGetTexParameteriv + GLenum *target = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLint params[4] = {0,0,0,0}; + weglGetTexParameteriv(*target,*pname,params); + int AP = 0; ErlDrvTermData rt[14]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + GLint *paramsTmp = params; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); }; break; -case 5286: { // glTexImage1D +case 5264: { // glGetTexLevelParameterfv GLenum *target = (GLenum *) bp; bp += 4; GLint *level = (GLint *) bp; bp += 4; - GLint *internalformat = (GLint *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLfloat params[1] = {0.0}; + weglGetTexLevelParameterfv(*target,*level,*pname,params); + int AP = 0; ErlDrvTermData rt[8]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + GLdouble paramsConv[1], *paramsTmp = paramsConv; + for(int i=0; i < 1; i++) paramsConv[i] = (GLdouble) params[i]; + rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 1; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); +}; break; +case 5265: { // glGetTexLevelParameteriv + GLenum *target = (GLenum *) bp; bp += 4; + GLint *level = (GLint *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLint params[1] = {0}; + weglGetTexLevelParameteriv(*target,*level,*pname,params); + int AP = 0; ErlDrvTermData rt[8]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + GLint *paramsTmp = params; + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 1; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); +}; break; +case 5266: { // glTexImage1D + GLenum *target = (GLenum *) bp; bp += 4; + GLint *level = (GLint *) bp; bp += 4; + GLint *internalFormat = (GLint *) bp; bp += 4; GLsizei *width = (GLsizei *) bp; bp += 4; GLint *border = (GLint *) bp; bp += 4; GLenum *format = (GLenum *) bp; bp += 4; GLenum *type = (GLenum *) bp; bp += 4; GLvoid *pixels = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; - weglTexImage1D(*target,*level,*internalformat,*width,*border,*format,*type,pixels); + weglTexImage1D(*target,*level,*internalFormat,*width,*border,*format,*type,pixels); }; break; -case 5287: { // glTexImage1D +case 5267: { // glTexImage1D GLenum *target = (GLenum *) bp; bp += 4; GLint *level = (GLint *) bp; bp += 4; - GLint *internalformat = (GLint *) bp; bp += 4; + GLint *internalFormat = (GLint *) bp; bp += 4; GLsizei *width = (GLsizei *) bp; bp += 4; GLint *border = (GLint *) bp; bp += 4; GLenum *format = (GLenum *) bp; bp += 4; GLenum *type = (GLenum *) bp; bp += 4; GLvoid *pixels = (GLvoid *) bins[0]; - weglTexImage1D(*target,*level,*internalformat,*width,*border,*format,*type,pixels); + weglTexImage1D(*target,*level,*internalFormat,*width,*border,*format,*type,pixels); }; break; -case 5288: { // glTexImage2D +case 5268: { // glTexImage2D GLenum *target = (GLenum *) bp; bp += 4; GLint *level = (GLint *) bp; bp += 4; - GLint *internalformat = (GLint *) bp; bp += 4; + GLint *internalFormat = (GLint *) bp; bp += 4; GLsizei *width = (GLsizei *) bp; bp += 4; GLsizei *height = (GLsizei *) bp; bp += 4; GLint *border = (GLint *) bp; bp += 4; GLenum *format = (GLenum *) bp; bp += 4; GLenum *type = (GLenum *) bp; bp += 4; GLvoid *pixels = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; - weglTexImage2D(*target,*level,*internalformat,*width,*height,*border,*format,*type,pixels); + weglTexImage2D(*target,*level,*internalFormat,*width,*height,*border,*format,*type,pixels); }; break; -case 5289: { // glTexImage2D +case 5269: { // glTexImage2D GLenum *target = (GLenum *) bp; bp += 4; GLint *level = (GLint *) bp; bp += 4; - GLint *internalformat = (GLint *) bp; bp += 4; + GLint *internalFormat = (GLint *) bp; bp += 4; GLsizei *width = (GLsizei *) bp; bp += 4; GLsizei *height = (GLsizei *) bp; bp += 4; GLint *border = (GLint *) bp; bp += 4; GLenum *format = (GLenum *) bp; bp += 4; GLenum *type = (GLenum *) bp; bp += 4; GLvoid *pixels = (GLvoid *) bins[0]; - weglTexImage2D(*target,*level,*internalformat,*width,*height,*border,*format,*type,pixels); + weglTexImage2D(*target,*level,*internalFormat,*width,*height,*border,*format,*type,pixels); }; break; -case 5290: { // glTexParameterf +case 5270: { // glGetTexImage GLenum *target = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLfloat *param = (GLfloat *) bp; bp += 4; - weglTexParameterf(*target,*pname,*param); + GLint *level = (GLint *) bp; bp += 4; + GLenum *format = (GLenum *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + GLvoid *pixels = (GLvoid *) bins[0]; + weglGetTexImage(*target,*level,*format,*type,pixels); + int AP = 0; ErlDrvTermData rt[6]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); }; break; -case 5291: { // glTexParameterfv - GLenum *target = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - int *paramsLen = (int *) bp; bp += 4; - GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; - weglTexParameterfv(*target,*pname,params); +case 5271: { // glGenTextures + GLsizei *n = (GLsizei *) bp; bp += 4; + GLuint *textures; + textures = (GLuint *) driver_alloc(sizeof(GLuint) * *n); + weglGenTextures(*n,textures); + int AP = 0; ErlDrvTermData *rt; + rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(7 + (*n)*2)); + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + for(int i=0; i < *n; i++) { + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) textures[i];} + rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*n)+1; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); + driver_free(rt); + driver_free(textures); }; break; -case 5292: { // glTexParameteri - GLenum *target = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - GLint *param = (GLint *) bp; bp += 4; - weglTexParameteri(*target,*pname,*param); +case 5272: { // glDeleteTextures + int * texturesLen = (int *) bp; bp += 4; + GLuint * textures = (GLuint *) bp; bp += (8-((*texturesLen*4+4)%8))%8; + weglDeleteTextures(*texturesLen,textures); }; break; -case 5293: { // glTexParameteriv +case 5273: { // glBindTexture GLenum *target = (GLenum *) bp; bp += 4; - GLenum *pname = (GLenum *) bp; bp += 4; - int *paramsLen = (int *) bp; bp += 4; - GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4; - weglTexParameteriv(*target,*pname,params); + GLuint *texture = (GLuint *) bp; bp += 4; + weglBindTexture(*target,*texture); }; break; -case 5294: { // glTexSubImage1D +case 5274: { // glPrioritizeTextures + int * texturesLen = (int *) bp; bp += 4; + GLuint * textures = (GLuint *) bp; bp += (8-((*texturesLen*4+4)%8))%8; + int * prioritiesLen = (int *) bp; bp += 4; + GLclampf * priorities = (GLclampf *) bp; bp += (8-((*prioritiesLen*4+4)%8))%8; + weglPrioritizeTextures(*texturesLen,textures,priorities); +}; break; +case 5275: { // glAreTexturesResident + int * texturesLen = (int *) bp; bp += 4; + GLuint * textures = (GLuint *) bp; bp += (8-((*texturesLen*4+4)%8))%8; + GLboolean *residences; + residences = (GLboolean *) driver_alloc(sizeof(GLboolean) * *texturesLen); + GLboolean result = weglAreTexturesResident(*texturesLen,textures,residences); + int AP = 0; ErlDrvTermData *rt; + rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(11 + (*texturesLen)*2)); + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result; + for(int i=0; i < *texturesLen; i++) { + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) residences[i];} + rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*texturesLen)+1; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); + driver_free(rt); + driver_free(residences); +}; break; +case 5276: { // glIsTexture + GLuint *texture = (GLuint *) bp; bp += 4; + GLboolean result = weglIsTexture(*texture); + int AP = 0; ErlDrvTermData rt[6]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); +}; break; +case 5277: { // glTexSubImage1D GLenum *target = (GLenum *) bp; bp += 4; GLint *level = (GLint *) bp; bp += 4; GLint *xoffset = (GLint *) bp; bp += 4; @@ -2090,7 +1918,7 @@ case 5294: { // glTexSubImage1D GLvoid *pixels = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; weglTexSubImage1D(*target,*level,*xoffset,*width,*format,*type,pixels); }; break; -case 5295: { // glTexSubImage1D +case 5278: { // glTexSubImage1D GLenum *target = (GLenum *) bp; bp += 4; GLint *level = (GLint *) bp; bp += 4; GLint *xoffset = (GLint *) bp; bp += 4; @@ -2100,7 +1928,7 @@ case 5295: { // glTexSubImage1D GLvoid *pixels = (GLvoid *) bins[0]; weglTexSubImage1D(*target,*level,*xoffset,*width,*format,*type,pixels); }; break; -case 5296: { // glTexSubImage2D +case 5279: { // glTexSubImage2D GLenum *target = (GLenum *) bp; bp += 4; GLint *level = (GLint *) bp; bp += 4; GLint *xoffset = (GLint *) bp; bp += 4; @@ -2112,7 +1940,7 @@ case 5296: { // glTexSubImage2D GLvoid *pixels = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; weglTexSubImage2D(*target,*level,*xoffset,*yoffset,*width,*height,*format,*type,pixels); }; break; -case 5297: { // glTexSubImage2D +case 5280: { // glTexSubImage2D GLenum *target = (GLenum *) bp; bp += 4; GLint *level = (GLint *) bp; bp += 4; GLint *xoffset = (GLint *) bp; bp += 4; @@ -2124,86 +1952,258 @@ case 5297: { // glTexSubImage2D GLvoid *pixels = (GLvoid *) bins[0]; weglTexSubImage2D(*target,*level,*xoffset,*yoffset,*width,*height,*format,*type,pixels); }; break; -case 5298: { // glTranslated - GLdouble *x = (GLdouble *) bp; bp += 8; - GLdouble *y = (GLdouble *) bp; bp += 8; - GLdouble *z = (GLdouble *) bp; bp += 8; - weglTranslated(*x,*y,*z); +case 5281: { // glCopyTexImage1D + GLenum *target = (GLenum *) bp; bp += 4; + GLint *level = (GLint *) bp; bp += 4; + GLenum *internalformat = (GLenum *) bp; bp += 4; + GLint *x = (GLint *) bp; bp += 4; + GLint *y = (GLint *) bp; bp += 4; + GLsizei *width = (GLsizei *) bp; bp += 4; + GLint *border = (GLint *) bp; bp += 4; + weglCopyTexImage1D(*target,*level,*internalformat,*x,*y,*width,*border); }; break; -case 5299: { // glTranslatef - GLfloat *x = (GLfloat *) bp; bp += 4; - GLfloat *y = (GLfloat *) bp; bp += 4; - GLfloat *z = (GLfloat *) bp; bp += 4; - weglTranslatef(*x,*y,*z); +case 5282: { // glCopyTexImage2D + GLenum *target = (GLenum *) bp; bp += 4; + GLint *level = (GLint *) bp; bp += 4; + GLenum *internalformat = (GLenum *) bp; bp += 4; + GLint *x = (GLint *) bp; bp += 4; + GLint *y = (GLint *) bp; bp += 4; + GLsizei *width = (GLsizei *) bp; bp += 4; + GLsizei *height = (GLsizei *) bp; bp += 4; + GLint *border = (GLint *) bp; bp += 4; + weglCopyTexImage2D(*target,*level,*internalformat,*x,*y,*width,*height,*border); }; break; -case 5300: { // glVertex2dv - GLdouble *v = (GLdouble *) bp; bp += 8; - weglVertex2dv(v); +case 5283: { // glCopyTexSubImage1D + GLenum *target = (GLenum *) bp; bp += 4; + GLint *level = (GLint *) bp; bp += 4; + GLint *xoffset = (GLint *) bp; bp += 4; + GLint *x = (GLint *) bp; bp += 4; + GLint *y = (GLint *) bp; bp += 4; + GLsizei *width = (GLsizei *) bp; bp += 4; + weglCopyTexSubImage1D(*target,*level,*xoffset,*x,*y,*width); }; break; -case 5301: { // glVertex2fv - GLfloat *v = (GLfloat *) bp; bp += 4; - weglVertex2fv(v); +case 5284: { // glCopyTexSubImage2D + GLenum *target = (GLenum *) bp; bp += 4; + GLint *level = (GLint *) bp; bp += 4; + GLint *xoffset = (GLint *) bp; bp += 4; + GLint *yoffset = (GLint *) bp; bp += 4; + GLint *x = (GLint *) bp; bp += 4; + GLint *y = (GLint *) bp; bp += 4; + GLsizei *width = (GLsizei *) bp; bp += 4; + GLsizei *height = (GLsizei *) bp; bp += 4; + weglCopyTexSubImage2D(*target,*level,*xoffset,*yoffset,*x,*y,*width,*height); }; break; -case 5302: { // glVertex2iv - GLint *v = (GLint *) bp; bp += 4; - weglVertex2iv(v); +case 5285: { // glMap1d + GLenum *target = (GLenum *) bp; bp += 4; + bp += 4; + GLdouble *u1 = (GLdouble *) bp; bp += 8; + GLdouble *u2 = (GLdouble *) bp; bp += 8; + GLint *stride = (GLint *) bp; bp += 4; + GLint *order = (GLint *) bp; bp += 4; + GLdouble *points = (GLdouble *) bins[0]; + weglMap1d(*target,*u1,*u2,*stride,*order,points); }; break; -case 5303: { // glVertex2sv - GLshort *v = (GLshort *) bp; bp += 2; - weglVertex2sv(v); +case 5286: { // glMap1f + GLenum *target = (GLenum *) bp; bp += 4; + GLfloat *u1 = (GLfloat *) bp; bp += 4; + GLfloat *u2 = (GLfloat *) bp; bp += 4; + GLint *stride = (GLint *) bp; bp += 4; + GLint *order = (GLint *) bp; bp += 4; + GLfloat *points = (GLfloat *) bins[0]; + weglMap1f(*target,*u1,*u2,*stride,*order,points); }; break; -case 5304: { // glVertex3dv - GLdouble *v = (GLdouble *) bp; bp += 8; - weglVertex3dv(v); +case 5287: { // glMap2d + GLenum *target = (GLenum *) bp; bp += 4; + bp += 4; + GLdouble *u1 = (GLdouble *) bp; bp += 8; + GLdouble *u2 = (GLdouble *) bp; bp += 8; + GLint *ustride = (GLint *) bp; bp += 4; + GLint *uorder = (GLint *) bp; bp += 4; + GLdouble *v1 = (GLdouble *) bp; bp += 8; + GLdouble *v2 = (GLdouble *) bp; bp += 8; + GLint *vstride = (GLint *) bp; bp += 4; + GLint *vorder = (GLint *) bp; bp += 4; + GLdouble *points = (GLdouble *) bins[0]; + weglMap2d(*target,*u1,*u2,*ustride,*uorder,*v1,*v2,*vstride,*vorder,points); }; break; -case 5305: { // glVertex3fv - GLfloat *v = (GLfloat *) bp; bp += 4; - weglVertex3fv(v); +case 5288: { // glMap2f + GLenum *target = (GLenum *) bp; bp += 4; + GLfloat *u1 = (GLfloat *) bp; bp += 4; + GLfloat *u2 = (GLfloat *) bp; bp += 4; + GLint *ustride = (GLint *) bp; bp += 4; + GLint *uorder = (GLint *) bp; bp += 4; + GLfloat *v1 = (GLfloat *) bp; bp += 4; + GLfloat *v2 = (GLfloat *) bp; bp += 4; + GLint *vstride = (GLint *) bp; bp += 4; + GLint *vorder = (GLint *) bp; bp += 4; + GLfloat *points = (GLfloat *) bins[0]; + weglMap2f(*target,*u1,*u2,*ustride,*uorder,*v1,*v2,*vstride,*vorder,points); }; break; -case 5306: { // glVertex3iv - GLint *v = (GLint *) bp; bp += 4; - weglVertex3iv(v); +case 5289: { // glGetMapdv + GLenum *target = (GLenum *) bp; bp += 4; + GLenum *query = (GLenum *) bp; bp += 4; + GLdouble *v = (GLdouble *) bins[0]; + weglGetMapdv(*target,*query,v); + int AP = 0; ErlDrvTermData rt[6]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); }; break; -case 5307: { // glVertex3sv - GLshort *v = (GLshort *) bp; bp += 2; - weglVertex3sv(v); +case 5290: { // glGetMapfv + GLenum *target = (GLenum *) bp; bp += 4; + GLenum *query = (GLenum *) bp; bp += 4; + GLfloat *v = (GLfloat *) bins[0]; + weglGetMapfv(*target,*query,v); + int AP = 0; ErlDrvTermData rt[6]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); }; break; -case 5308: { // glVertex4dv - GLdouble *v = (GLdouble *) bp; bp += 8; - weglVertex4dv(v); +case 5291: { // glGetMapiv + GLenum *target = (GLenum *) bp; bp += 4; + GLenum *query = (GLenum *) bp; bp += 4; + GLint *v = (GLint *) bins[0]; + weglGetMapiv(*target,*query,v); + int AP = 0; ErlDrvTermData rt[6]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); }; break; -case 5309: { // glVertex4fv - GLfloat *v = (GLfloat *) bp; bp += 4; - weglVertex4fv(v); +case 5292: { // glEvalCoord1dv + GLdouble *u = (GLdouble *) bp; bp += 8; + weglEvalCoord1dv(u); }; break; -case 5310: { // glVertex4iv - GLint *v = (GLint *) bp; bp += 4; - weglVertex4iv(v); +case 5293: { // glEvalCoord1fv + GLfloat *u = (GLfloat *) bp; bp += 4; + weglEvalCoord1fv(u); }; break; -case 5311: { // glVertex4sv - GLshort *v = (GLshort *) bp; bp += 2; - weglVertex4sv(v); +case 5294: { // glEvalCoord2dv + GLdouble *u = (GLdouble *) bp; bp += 8; + weglEvalCoord2dv(u); }; break; -case 5312: { // glVertexPointer - GLint *size = (GLint *) bp; bp += 4; - GLenum *type = (GLenum *) bp; bp += 4; - GLsizei *stride = (GLsizei *) bp; bp += 4; - GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; - weglVertexPointer(*size,*type,*stride,pointer); +case 5295: { // glEvalCoord2fv + GLfloat *u = (GLfloat *) bp; bp += 4; + weglEvalCoord2fv(u); }; break; -case 5313: { // glVertexPointer - GLint *size = (GLint *) bp; bp += 4; +case 5296: { // glMapGrid1d + GLint *un = (GLint *) bp; bp += 4; + bp += 4; + GLdouble *u1 = (GLdouble *) bp; bp += 8; + GLdouble *u2 = (GLdouble *) bp; bp += 8; + weglMapGrid1d(*un,*u1,*u2); +}; break; +case 5297: { // glMapGrid1f + GLint *un = (GLint *) bp; bp += 4; + GLfloat *u1 = (GLfloat *) bp; bp += 4; + GLfloat *u2 = (GLfloat *) bp; bp += 4; + weglMapGrid1f(*un,*u1,*u2); +}; break; +case 5298: { // glMapGrid2d + GLint *un = (GLint *) bp; bp += 4; + bp += 4; + GLdouble *u1 = (GLdouble *) bp; bp += 8; + GLdouble *u2 = (GLdouble *) bp; bp += 8; + GLint *vn = (GLint *) bp; bp += 4; + bp += 4; + GLdouble *v1 = (GLdouble *) bp; bp += 8; + GLdouble *v2 = (GLdouble *) bp; bp += 8; + weglMapGrid2d(*un,*u1,*u2,*vn,*v1,*v2); +}; break; +case 5299: { // glMapGrid2f + GLint *un = (GLint *) bp; bp += 4; + GLfloat *u1 = (GLfloat *) bp; bp += 4; + GLfloat *u2 = (GLfloat *) bp; bp += 4; + GLint *vn = (GLint *) bp; bp += 4; + GLfloat *v1 = (GLfloat *) bp; bp += 4; + GLfloat *v2 = (GLfloat *) bp; bp += 4; + weglMapGrid2f(*un,*u1,*u2,*vn,*v1,*v2); +}; break; +case 5300: { // glEvalPoint1 + GLint *i = (GLint *) bp; bp += 4; + weglEvalPoint1(*i); +}; break; +case 5301: { // glEvalPoint2 + GLint *i = (GLint *) bp; bp += 4; + GLint *j = (GLint *) bp; bp += 4; + weglEvalPoint2(*i,*j); +}; break; +case 5302: { // glEvalMesh1 + GLenum *mode = (GLenum *) bp; bp += 4; + GLint *i1 = (GLint *) bp; bp += 4; + GLint *i2 = (GLint *) bp; bp += 4; + weglEvalMesh1(*mode,*i1,*i2); +}; break; +case 5303: { // glEvalMesh2 + GLenum *mode = (GLenum *) bp; bp += 4; + GLint *i1 = (GLint *) bp; bp += 4; + GLint *i2 = (GLint *) bp; bp += 4; + GLint *j1 = (GLint *) bp; bp += 4; + GLint *j2 = (GLint *) bp; bp += 4; + weglEvalMesh2(*mode,*i1,*i2,*j1,*j2); +}; break; +case 5304: { // glFogf + GLenum *pname = (GLenum *) bp; bp += 4; + GLfloat *param = (GLfloat *) bp; bp += 4; + weglFogf(*pname,*param); +}; break; +case 5305: { // glFogi + GLenum *pname = (GLenum *) bp; bp += 4; + GLint *param = (GLint *) bp; bp += 4; + weglFogi(*pname,*param); +}; break; +case 5306: { // glFogfv + GLenum *pname = (GLenum *) bp; bp += 4; + int *paramsLen = (int *) bp; bp += 4; + GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+0)%2*4; + weglFogfv(*pname,params); +}; break; +case 5307: { // glFogiv + GLenum *pname = (GLenum *) bp; bp += 4; + int *paramsLen = (int *) bp; bp += 4; + GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+0)%2*4; + weglFogiv(*pname,params); +}; break; +case 5308: { // glFeedbackBuffer + GLsizei *size = (GLsizei *) bp; bp += 4; GLenum *type = (GLenum *) bp; bp += 4; - GLsizei *stride = (GLsizei *) bp; bp += 4; - GLvoid *pointer = (GLvoid *) bins[0]; - weglVertexPointer(*size,*type,*stride,pointer); + GLfloat *buffer = (GLfloat *) bins[0]; + weglFeedbackBuffer(*size,*type,buffer); + int AP = 0; ErlDrvTermData rt[6]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); }; break; -case 5314: { // glViewport - GLint *x = (GLint *) bp; bp += 4; - GLint *y = (GLint *) bp; bp += 4; - GLsizei *width = (GLsizei *) bp; bp += 4; - GLsizei *height = (GLsizei *) bp; bp += 4; - weglViewport(*x,*y,*width,*height); +case 5309: { // glPassThrough + GLfloat *token = (GLfloat *) bp; bp += 4; + weglPassThrough(*token); +}; break; +case 5310: { // glSelectBuffer + GLsizei *size = (GLsizei *) bp; bp += 4; + GLuint *buffer = (GLuint *) bins[0]; + weglSelectBuffer(*size,buffer); + int AP = 0; ErlDrvTermData rt[6]; + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); +}; break; +case 5311: { // glInitNames + weglInitNames(); +}; break; +case 5312: { // glLoadName + GLuint *name = (GLuint *) bp; bp += 4; + weglLoadName(*name); +}; break; +case 5313: { // glPushName + GLuint *name = (GLuint *) bp; bp += 4; + weglPushName(*name); +}; break; +case 5314: { // glPopName + weglPopName(); }; break; case 5315: { // glBlendColor GLclampf *red = (GLclampf *) bp; bp += 4; @@ -2237,7 +2237,7 @@ case 5318: { // glDrawRangeElements case 5319: { // glTexImage3D GLenum *target = (GLenum *) bp; bp += 4; GLint *level = (GLint *) bp; bp += 4; - GLint *internalformat = (GLint *) bp; bp += 4; + GLint *internalFormat = (GLint *) bp; bp += 4; GLsizei *width = (GLsizei *) bp; bp += 4; GLsizei *height = (GLsizei *) bp; bp += 4; GLsizei *depth = (GLsizei *) bp; bp += 4; @@ -2245,12 +2245,12 @@ case 5319: { // glTexImage3D GLenum *format = (GLenum *) bp; bp += 4; GLenum *type = (GLenum *) bp; bp += 4; GLvoid *pixels = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4; - weglTexImage3D(*target,*level,*internalformat,*width,*height,*depth,*border,*format,*type,pixels); + weglTexImage3D(*target,*level,*internalFormat,*width,*height,*depth,*border,*format,*type,pixels); }; break; case 5320: { // glTexImage3D GLenum *target = (GLenum *) bp; bp += 4; GLint *level = (GLint *) bp; bp += 4; - GLint *internalformat = (GLint *) bp; bp += 4; + GLint *internalFormat = (GLint *) bp; bp += 4; GLsizei *width = (GLsizei *) bp; bp += 4; GLsizei *height = (GLsizei *) bp; bp += 4; GLsizei *depth = (GLsizei *) bp; bp += 4; @@ -2258,7 +2258,7 @@ case 5320: { // glTexImage3D GLenum *format = (GLenum *) bp; bp += 4; GLenum *type = (GLenum *) bp; bp += 4; GLvoid *pixels = (GLvoid *) bins[0]; - weglTexImage3D(*target,*level,*internalformat,*width,*height,*depth,*border,*format,*type,pixels); + weglTexImage3D(*target,*level,*internalFormat,*width,*height,*depth,*border,*format,*type,pixels); }; break; case 5321: { // glTexSubImage3D GLenum *target = (GLenum *) bp; bp += 4; @@ -2591,9 +2591,9 @@ case 5351: { // glGetMinmax GLboolean *reset = (GLboolean *) bp; bp += 1; bp += 3; GLenum *format = (GLenum *) bp; bp += 4; - GLenum *type = (GLenum *) bp; bp += 4; + GLenum *types = (GLenum *) bp; bp += 4; GLvoid *values = (GLvoid *) bins[0]; - weglGetMinmax(*target,*reset,*format,*type,values); + weglGetMinmax(*target,*reset,*format,*types,values); int AP = 0; ErlDrvTermData rt[6]; rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); @@ -2797,9 +2797,9 @@ case 5371: { // glCompressedTexSubImage1D }; break; case 5372: { // glGetCompressedTexImage GLenum *target = (GLenum *) bp; bp += 4; - GLint *level = (GLint *) bp; bp += 4; + GLint *lod = (GLint *) bp; bp += 4; GLvoid *img = (GLvoid *) bins[0]; - weglGetCompressedTexImage(*target,*level,img); + weglGetCompressedTexImage(*target,*lod,img); int AP = 0; ErlDrvTermData rt[6]; rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok"); @@ -6927,31 +6927,129 @@ case 5856: { // glGetGraphicsResetStatusARB rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; driver_send_term(port,caller,rt,AP); }; break; -case 5857: { // glResizeBuffersMESA - weglResizeBuffersMESA(); +case 5857: { // glDrawArraysInstancedBaseInstance + GLenum *mode = (GLenum *) bp; bp += 4; + GLint *first = (GLint *) bp; bp += 4; + GLsizei *count = (GLsizei *) bp; bp += 4; + GLsizei *primcount = (GLsizei *) bp; bp += 4; + GLuint *baseinstance = (GLuint *) bp; bp += 4; + weglDrawArraysInstancedBaseInstance(*mode,*first,*count,*primcount,*baseinstance); }; break; -case 5858: { // glWindowPos4dvMESA - GLdouble *v = (GLdouble *) bp; bp += 8; - weglWindowPos4dvMESA(v); +case 5858: { // glDrawElementsInstancedBaseInstance + GLenum *mode = (GLenum *) bp; bp += 4; + GLsizei *count = (GLsizei *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + void *indices = (void *) (ErlDrvSInt) * (int *) bp; bp += 4; + GLsizei *primcount = (GLsizei *) bp; bp += 4; + GLuint *baseinstance = (GLuint *) bp; bp += 4; + weglDrawElementsInstancedBaseInstance(*mode,*count,*type,indices,*primcount,*baseinstance); }; break; -case 5859: { // glWindowPos4fvMESA - GLfloat *v = (GLfloat *) bp; bp += 4; - weglWindowPos4fvMESA(v); +case 5859: { // glDrawElementsInstancedBaseInstance + GLenum *mode = (GLenum *) bp; bp += 4; + GLsizei *count = (GLsizei *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + void *indices = (void *) bins[0]; + GLsizei *primcount = (GLsizei *) bp; bp += 4; + GLuint *baseinstance = (GLuint *) bp; bp += 4; + weglDrawElementsInstancedBaseInstance(*mode,*count,*type,indices,*primcount,*baseinstance); }; break; -case 5860: { // glWindowPos4ivMESA - GLint *v = (GLint *) bp; bp += 4; - weglWindowPos4ivMESA(v); +case 5860: { // glDrawElementsInstancedBaseVertexBaseInstance + GLenum *mode = (GLenum *) bp; bp += 4; + GLsizei *count = (GLsizei *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + void *indices = (void *) (ErlDrvSInt) * (int *) bp; bp += 4; + GLsizei *primcount = (GLsizei *) bp; bp += 4; + GLint *basevertex = (GLint *) bp; bp += 4; + GLuint *baseinstance = (GLuint *) bp; bp += 4; + weglDrawElementsInstancedBaseVertexBaseInstance(*mode,*count,*type,indices,*primcount,*basevertex,*baseinstance); }; break; -case 5861: { // glWindowPos4svMESA - GLshort *v = (GLshort *) bp; bp += 2; - weglWindowPos4svMESA(v); +case 5861: { // glDrawElementsInstancedBaseVertexBaseInstance + GLenum *mode = (GLenum *) bp; bp += 4; + GLsizei *count = (GLsizei *) bp; bp += 4; + GLenum *type = (GLenum *) bp; bp += 4; + void *indices = (void *) bins[0]; + GLsizei *primcount = (GLsizei *) bp; bp += 4; + GLint *basevertex = (GLint *) bp; bp += 4; + GLuint *baseinstance = (GLuint *) bp; bp += 4; + weglDrawElementsInstancedBaseVertexBaseInstance(*mode,*count,*type,indices,*primcount,*basevertex,*baseinstance); +}; break; +case 5862: { // glDrawTransformFeedbackInstanced + GLenum *mode = (GLenum *) bp; bp += 4; + GLuint *id = (GLuint *) bp; bp += 4; + GLsizei *primcount = (GLsizei *) bp; bp += 4; + weglDrawTransformFeedbackInstanced(*mode,*id,*primcount); +}; break; +case 5863: { // glDrawTransformFeedbackStreamInstanced + GLenum *mode = (GLenum *) bp; bp += 4; + GLuint *id = (GLuint *) bp; bp += 4; + GLuint *stream = (GLuint *) bp; bp += 4; + GLsizei *primcount = (GLsizei *) bp; bp += 4; + weglDrawTransformFeedbackStreamInstanced(*mode,*id,*stream,*primcount); +}; break; +case 5864: { // glGetInternalformativ + GLenum *target = (GLenum *) bp; bp += 4; + GLenum *internalformat = (GLenum *) bp; bp += 4; + GLenum *pname = (GLenum *) bp; bp += 4; + GLsizei *bufSize = (GLsizei *) bp; bp += 4; + GLint *params; + params = (GLint *) driver_alloc(sizeof(GLint) * *bufSize); + weglGetInternalformativ(*target,*internalformat,*pname,*bufSize,params); + int AP = 0; ErlDrvTermData *rt; + rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(7 + (*bufSize)*2)); + rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_egl_result_"); + for(int i=0; i < *bufSize; i++) { + rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) params[i];} + rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*bufSize)+1; + rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; + driver_send_term(port,caller,rt,AP); + driver_free(rt); + driver_free(params); +}; break; +case 5865: { // glBindImageTexture + GLuint *unit = (GLuint *) bp; bp += 4; + GLuint *texture = (GLuint *) bp; bp += 4; + GLint *level = (GLint *) bp; bp += 4; + GLboolean *layered = (GLboolean *) bp; bp += 1; + bp += 3; + GLint *layer = (GLint *) bp; bp += 4; + GLenum *access = (GLenum *) bp; bp += 4; + GLenum *format = (GLenum *) bp; bp += 4; + weglBindImageTexture(*unit,*texture,*level,*layered,*layer,*access,*format); +}; break; +case 5866: { // glMemoryBarrier + GLbitfield *barriers = (GLbitfield *) bp; bp += 4; + weglMemoryBarrier(*barriers); +}; break; +case 5867: { // glTexStorage1D + GLenum *target = (GLenum *) bp; bp += 4; + GLsizei *levels = (GLsizei *) bp; bp += 4; + GLenum *internalformat = (GLenum *) bp; bp += 4; + GLsizei *width = (GLsizei *) bp; bp += 4; + weglTexStorage1D(*target,*levels,*internalformat,*width); +}; break; +case 5868: { // glTexStorage2D + GLenum *target = (GLenum *) bp; bp += 4; + GLsizei *levels = (GLsizei *) bp; bp += 4; + GLenum *internalformat = (GLenum *) bp; bp += 4; + GLsizei *width = (GLsizei *) bp; bp += 4; + GLsizei *height = (GLsizei *) bp; bp += 4; + weglTexStorage2D(*target,*levels,*internalformat,*width,*height); +}; break; +case 5869: { // glTexStorage3D + GLenum *target = (GLenum *) bp; bp += 4; + GLsizei *levels = (GLsizei *) bp; bp += 4; + GLenum *internalformat = (GLenum *) bp; bp += 4; + GLsizei *width = (GLsizei *) bp; bp += 4; + GLsizei *height = (GLsizei *) bp; bp += 4; + GLsizei *depth = (GLsizei *) bp; bp += 4; + weglTexStorage3D(*target,*levels,*internalformat,*width,*height,*depth); }; break; -case 5862: { // glDepthBoundsEXT +case 5870: { // glDepthBoundsEXT GLclampd *zmin = (GLclampd *) bp; bp += 8; GLclampd *zmax = (GLclampd *) bp; bp += 8; weglDepthBoundsEXT(*zmin,*zmax); }; break; -case 5863: { // glStencilClearTagEXT +case 5871: { // glStencilClearTagEXT GLsizei *stencilTagBits = (GLsizei *) bp; bp += 4; GLuint *stencilClearTag = (GLuint *) bp; bp += 4; weglStencilClearTagEXT(*stencilTagBits,*stencilClearTag); diff --git a/lib/wx/c_src/gen/glu_finit.h b/lib/wx/c_src/gen/glu_finit.h index 63e9c2fc78..0e55d48a2a 100644 --- a/lib/wx/c_src/gen/glu_finit.h +++ b/lib/wx/c_src/gen/glu_finit.h @@ -1,7 +1,7 @@ /* * %CopyrightBegin% * - * Copyright Ericsson AB 2008-2010. All Rights Reserved. + * Copyright Ericsson AB 2008-2012. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in |