Changeset 6

Show
Ignore:
Timestamp:
05/09/04 06:13:18 (5 years ago)
Author:
aldacron
Message:

* Corrected a bug in gl.d introduced during a refactor before the intial checkin. It caused the opengl shared lib to not be loaded.
* Converted all tabs in the existing source files to spaces, since the format was all screwy
* gltest was crashing if opengl could not be intialized. Fixed that and made it more error tolerant overall.
* renamed the isGL* propeties in DGLContext to gl*
* added glarb.d
* added loading of GL_ARB extensions to gl.d
* updated README.GL to reflect the changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/README.GL

    r5 r6  
    88missing or corrupt shared library in a manner suitable for your application. 
    99 
    10 As of the intial source check in, Derelict supports all core OpenGL functions 
    11 up to version 1.5. Support for all known extensions is being worked on, the 
     10Currently, Derelict supports all core OpenGL functions up to version 1.5 and 
     11all GL_ARB extensions. Support for all known extensions is being worked on, the 
    1212completion of which will mark the 0.1 release of Derelict. Please post in the 
    1313Derelict forum at dsource.org any descrepencies you find (such as missing 
     
    7070version - a float value containing the specific OpenGL version (i.e. 1.50000) 
    7171 
    72 isGL12, isGL13, isGL14, isGL15 - int properties which can be used as booleans 
     72gl12, gl13, gl14, gl15 - int properties which can be treated as booleans 
    7373 
    74 Note that there is no isGL11 property, as that is assumed to be the most basic 
    75 version available. Also note that once the extension modules are completed, 
    76 DGLContext will contain properties to query for the availability of specific 
    77 extensions.  
     74Note that there is no gl11 property, as that is assumed to be the most basic 
     75version available.  
     76 
     77DGLContext also contains several properties to test for the avaialbility of 
     78various extensions. The properties are named according to the extension string 
     79you would check for with glGetString. Examples: 
     80 
     81query string: "GL_ARB_multitexture" 
     82DGLContext property: glarbMultitexture 
     83 
     84query string: "GL_ARB_texture_env_add" 
     85DGLContext property: glarbTextureEnvAdd 
     86 
     87All extensions Derelict supports (or will support) follows the above syntax.         
    7888 
    7989++++++++++++++++++++++++++   CODE  +++++++++++++++++++++++++++++++++++++++++++++ 
    8090 
    81 if(DGLContext.isGL15) 
    82     // do GL 1.5 stuff 
    83 else if(GLContext.isGL14) 
    84     // do GL 1.4 stuff 
     91// querying for specific GL versions 
     92if(DGLContext.gl15) 
     93    // do GL 1.5 stuff 
     94else if(GLContext.gl14) 
     95    // do GL 1.4 stuff 
     96     
     97// querying for specific extensions 
     98if(DGLContext.glarbVertexProgram) 
     99    ... 
     100     
     101if(DGLContext.glarbDepthTexture) 
     102    ... 
    85103 
    86104++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
  • trunk/src/derelict/opengl/Makefile

    r5 r6  
    77OGL.SRC.DIR = $(SRC.DIR)\derelict\opengl 
    88OGL.SRC = \ 
    9     $(OGL.SRC.DIR)\gl.d \ 
    10     $(OGL.SRC.DIR)\gl10.d \ 
    11     $(OGL.SRC.DIR)\gl11.d \ 
    12     $(OGL.SRC.DIR)\gl12.d \ 
    13     $(OGL.SRC.DIR)\gl13.d \ 
    14     $(OGL.SRC.DIR)\gl14.d \ 
    15     $(OGL.SRC.DIR)\gl15.d \ 
    16     $(OGL.SRC.DIR)\gltypes.d \ 
    17     $(OGL.SRC.DIR)\platformgl.d 
    18      
     9    $(OGL.SRC.DIR)\gl.d \ 
     10    $(OGL.SRC.DIR)\gl10.d \ 
     11    $(OGL.SRC.DIR)\gl11.d \ 
     12    $(OGL.SRC.DIR)\gl12.d \ 
     13    $(OGL.SRC.DIR)\gl13.d \ 
     14    $(OGL.SRC.DIR)\gl14.d \ 
     15    $(OGL.SRC.DIR)\gl15.d \ 
     16    $(OGL.SRC.DIR)\glarb.d \ 
     17    $(OGL.SRC.DIR)\gltypes.d \ 
     18    $(OGL.SRC.DIR)\platformgl.d 
     19     
    1920OGL.OBJ.DIR = $(OBJ.DIR)\opengl 
    2021OGL.OBJ = \ 
    21     $(OGL.OBJ.DIR)\gl.obj \ 
    22     $(OGL.OBJ.DIR)\gl10.obj \ 
    23     $(OGL.OBJ.DIR)\gl11.obj \ 
    24     $(OGL.OBJ.DIR)\gl12.obj \ 
    25     $(OGL.OBJ.DIR)\gl13.obj \ 
    26     $(OGL.OBJ.DIR)\gl14.obj \ 
    27     $(OGL.OBJ.DIR)\gl15.obj \ 
    28     $(OGL.OBJ.DIR)\gltypes.obj \ 
    29     $(OGL.OBJ.DIR)\platformgl.obj    
     22    $(OGL.OBJ.DIR)\gl.obj \ 
     23    $(OGL.OBJ.DIR)\gl10.obj \ 
     24    $(OGL.OBJ.DIR)\gl11.obj \ 
     25    $(OGL.OBJ.DIR)\gl12.obj \ 
     26    $(OGL.OBJ.DIR)\gl13.obj \ 
     27    $(OGL.OBJ.DIR)\gl14.obj \ 
     28    $(OGL.OBJ.DIR)\gl15.obj \ 
     29    $(OGL.OBJ.DIR)\glarb.obj \ 
     30    $(OGL.OBJ.DIR)\gltypes.obj \ 
     31    $(OGL.OBJ.DIR)\platformgl.obj    
    3032 
    3133DFLAGS = -v 
    32 LIBFLAGS = -c       
     34LIBFLAGS = -c        
    3335DINC = -I$(OGL.SRC.DIR) 
    3436OGL.LIB = $(LIB.DIR)\derelictGL 
     
    3638 
    3739DEFAULT: lib 
    38      
     40     
    3941clean: 
    40    del $(OGL.OBJ.DIR)\*.obj 
    41    del $(OGL.SRC.DIR)\*.map 
     42    del $(OGL.OBJ.DIR)\*.obj 
     43    del $(OGL.SRC.DIR)\*.map 
    4244 
    4345cleanall: 
    44    del $(OGL.OBJ.DIR)\*.obj 
    45    del $(OGL.SRC.DIR)\*.map 
    46    del $(OGL.LIB).lib 
    47    del $(OGL.LIB).bak 
    48    del $(OGL.TEST) 
     46    del $(OGL.OBJ.DIR)\*.obj 
     47    del $(OGL.SRC.DIR)\*.map 
     48    del $(OGL.LIB).lib 
     49    del $(OGL.LIB).bak 
     50    del $(OGL.TEST) 
    4951 
    5052 
    5153lib: 
    52    dmd $(OGL.SRC) -c $(DFLAGS) $(DINC) -od$(OGL.OBJ.DIR) 
    53    lib $(LIBFLAGS) $(OGL.LIB).lib $(OGL.OBJ) 
     54    dmd $(OGL.SRC) -c $(DFLAGS) $(DINC) -od$(OGL.OBJ.DIR) 
     55    lib $(LIBFLAGS) $(OGL.LIB).lib $(OGL.OBJ) 
    5456 
    5557test: 
    56    dmd $(OGL.SRC) $(OGL.SRC.DIR)\gltest.d gdi32.lib -v $(DINC) -od$(OGL.OBJ.DIR) -of$(OGL.TEST) 
    57      
     58    dmd $(OGL.SRC) $(OGL.SRC.DIR)\gltest.d gdi32.lib -v $(DINC) -od$(OGL.OBJ.DIR) -of$(OGL.TEST) 
     59     
    5860all: lib test 
  • trunk/src/derelict/opengl/gl.d

    r5 r6  
    1111import derelict.opengl.gl14; 
    1212import derelict.opengl.gl15; 
     13import derelict.opengl.glarb; 
    1314 
    1415//============================================================================== 
     
    1819version(Win32) 
    1920{ 
    20      
     21 
    2122private import std.c.windows.windows; 
    2223 
     
    3031private FARPROC getProc(char *name) 
    3132{ 
    32    FARPROC fp = GetProcAddress(hlib, name); 
    33    if(null == fp) 
    34    
    35        char[] funcname = toString(name); 
    36        throw new Exception("Failed to load opengl function " ~ funcname); 
    37    
    38    return fp; 
     33    FARPROC fp = GetProcAddress(hlib, name); 
     34    if(null == fp) 
     35   
     36        char[] funcname = toString(name); 
     37        throw new Exception("Failed to load opengl function " ~ funcname); 
     38   
     39    return fp; 
    3940} 
    4041 
     
    4647private FARPROC getGLProc(char *name) 
    4748{ 
    48    FARPROC fp = wglGetProcAddress(name); 
    49    if(null == fp) 
    50        printf("Failed to load opengl function %s\n", name); 
    51    return fp; 
    52 } 
    53  
    54 /*! 
    55 * Loads the shared lib along with all core platform-specific gl functions  
     49    FARPROC fp = wglGetProcAddress(name); 
     50    if(null == fp) 
     51        printf("Failed to load opengl function %s\n", name); 
     52    return fp; 
     53} 
     54 
     55/*! 
     56* Loads the shared lib along with all core platform-specific gl functions 
    5657* (wgl* in this case). Throws an Exception if the lib cannot or any of the 
    5758* functions cannot be loaded. 
     
    5960private void loadPlatformGL() 
    6061{ 
    61    hlib = LoadLibraryA("opengl32.dll"); 
    62    if(null == hlib) 
    63        throw new Exception("Failed to load opengl32.dll"); 
    64          
    65    wglCopyContext = cast(pfwglCopyContext)getProc("wglCopyContext"); 
    66    wglCreateContext = cast(pfwglCreateContext)getProc( "wglCreateContext"); 
    67    wglCreateLayerContext = cast(pfwglCreateLayerContext)getProc("wglCreateLayerContext"); 
    68    wglDeleteContext = cast(pfwglDeleteContext)getProc( "wglDeleteContext"); 
    69    wglDescribeLayerPlane = cast(pfwglDescribeLayerPlane)getProc("wglDescribeLayerPlane"); 
    70    wglGetCurrentContext = cast(pfwglGetCurrentContext)getProc("wglGetCurrentContext"); 
    71    wglGetCurrentDC = cast(pfwglGetCurrentDC)getProc("wglGetCurrentDC"); 
    72    wglGetLayerPaletteEntries = cast(pfwglGetLayerPaletteEntries)getProc("wglGetLayerPaletteEntries"); 
    73    wglGetProcAddress = cast(pfwglGetProcAddress)getProc( "wglGetProcAddress"); 
    74    wglMakeCurrent = cast(pfwglMakeCurrent)getProc( "wglMakeCurrent"); 
    75    wglRealizeLayerPalette = cast(pfwglRealizeLayerPalette)getProc("wglRealizeLayerPalette"); 
    76    wglSetLayerPaletteEntries = cast(pfwglSetLayerPaletteEntries)getProc("wglSetLayerPaletteEntries"); 
    77    wglShareLists = cast(pfwglShareLists)getProc("wglShareLists"); 
    78    wglSwapLayerBuffers = cast(pfwglSwapLayerBuffers)getProc("wglSwapLayerBuffers"); 
    79    wglUseFontBitmaps = cast(pfwglUseFontBitmapsA)getProc("wglUseFontBitmapsA"); 
    80    wglUseFontOutlines = cast(pfwglUseFontOutlinesA)getProc("wglUseFontOutlinesA"); 
     62    hlib = LoadLibraryA("opengl32.dll"); 
     63    if(null == hlib) 
     64        throw new Exception("Failed to load opengl32.dll"); 
     65 
     66    wglCopyContext = cast(pfwglCopyContext)getProc("wglCopyContext"); 
     67    wglCreateContext = cast(pfwglCreateContext)getProc( "wglCreateContext"); 
     68    wglCreateLayerContext = cast(pfwglCreateLayerContext)getProc("wglCreateLayerContext"); 
     69    wglDeleteContext = cast(pfwglDeleteContext)getProc( "wglDeleteContext"); 
     70    wglDescribeLayerPlane = cast(pfwglDescribeLayerPlane)getProc("wglDescribeLayerPlane"); 
     71    wglGetCurrentContext = cast(pfwglGetCurrentContext)getProc("wglGetCurrentContext"); 
     72    wglGetCurrentDC = cast(pfwglGetCurrentDC)getProc("wglGetCurrentDC"); 
     73    wglGetLayerPaletteEntries = cast(pfwglGetLayerPaletteEntries)getProc("wglGetLayerPaletteEntries"); 
     74    wglGetProcAddress = cast(pfwglGetProcAddress)getProc( "wglGetProcAddress"); 
     75    wglMakeCurrent = cast(pfwglMakeCurrent)getProc( "wglMakeCurrent"); 
     76    wglRealizeLayerPalette = cast(pfwglRealizeLayerPalette)getProc("wglRealizeLayerPalette"); 
     77    wglSetLayerPaletteEntries = cast(pfwglSetLayerPaletteEntries)getProc("wglSetLayerPaletteEntries"); 
     78    wglShareLists = cast(pfwglShareLists)getProc("wglShareLists"); 
     79    wglSwapLayerBuffers = cast(pfwglSwapLayerBuffers)getProc("wglSwapLayerBuffers"); 
     80    wglUseFontBitmaps = cast(pfwglUseFontBitmapsA)getProc("wglUseFontBitmapsA"); 
     81    wglUseFontOutlines = cast(pfwglUseFontOutlinesA)getProc("wglUseFontOutlinesA"); 
    8182} 
    8283 
     
    8687private void unloadGL() 
    8788{ 
    88    if(null != hlib) 
    89        FreeLibrary(hlib); 
     89    if(null != hlib) 
     90        FreeLibrary(hlib); 
    9091} 
    9192 
     
    100101private void loadGL10() 
    101102{ 
    102    glClearIndex        = cast(pfglClearIndex)getProc("glClearIndex"); 
    103    glClearColor        = cast(pfglClearColor)getProc("glClearColor"); 
    104    glClear             = cast(pfglClear)getProc("glClear"); 
    105    glIndexMask         = cast(pfglIndexMask)getProc("glIndexMask"); 
    106    glColorMask         = cast(pfglColorMask)getProc("glColorMask"); 
    107    glAlphaFunc         = cast(pfglAlphaFunc)getProc("glAlphaFunc"); 
    108    glBlendFunc         = cast(pfglBlendFunc)getProc("glBlendFunc"); 
    109    glLogicOp           = cast(pfglLogicOp)getProc("glLogicOp"); 
    110    glCullFace          = cast(pfglCullFace)getProc("glCullFace"); 
    111    glFrontFace         = cast(pfglFrontFace)getProc("glFrontFace"); 
    112    glPointSize         = cast(pfglPointSize)getProc("glPointSize"); 
    113    glLineWidth         = cast(pfglLineWidth)getProc("glLineWidth"); 
    114    glLineStipple       = cast(pfglLineStipple)getProc("glLineStipple"); 
    115    glPolygonMode       = cast(pfglPolygonMode)getProc("glPolygonMode"); 
    116    glPolygonOffset     = cast(pfglPolygonOffset)getProc("glPolygonOffset"); 
    117    glPolygonStipple    = cast(pfglPolygonStipple)getProc("glPolygonStipple"); 
    118    glGetPolygonStipple = cast(pfglGetPolygonStipple)getProc("glGetPolygonStipple"); 
    119    glEdgeFlag          = cast(pfglEdgeFlag)getProc("glEdgeFlag"); 
    120    glEdgeFlagv         = cast(pfglEdgeFlagv)getProc("glEdgeFlagv"); 
    121    glScissor           = cast(pfglScissor)getProc("glScissor"); 
    122    glClipPlane         = cast(pfglClipPlane)getProc("glClipPlane"); 
    123    glGetClipPlane      = cast(pfglGetClipPlane)getProc("glGetClipPlane"); 
    124    glDrawBuffer        = cast(pfglDrawBuffer)getProc("glDrawBuffer"); 
    125    glReadBuffer        = cast(pfglReadBuffer)getProc("glReadBuffer"); 
    126    glEnable            = cast(pfglEnable)getProc("glEnable"); 
    127    glDisable           = cast(pfglDisable)getProc("glDisable"); 
    128    glIsEnabled         = cast(pfglIsEnabled)getProc("glIsEnabled"); 
    129    glEnableClientState = cast(pfglEnableClientState)getProc("glEnableClientState"); 
    130    glDisableClientState = cast(pfglDisableClientState)getProc("glDisableClientState"); 
    131    glGetBooleanv       = cast(pfglGetBooleanv)getProc("glGetBooleanv"); 
    132    glGetDoublev        = cast(pfglGetDoublev)getProc("glGetDoublev"); 
    133    glGetFloatv         = cast(pfglGetFloatv)getProc("glGetFloatv"); 
    134    glGetIntegerv       = cast(pfglGetIntegerv)getProc("glGetIntegerv"); 
    135    glPushAttrib        = cast(pfglPushAttrib)getProc("glPushAttrib"); 
    136    glPopAttrib         = cast(pfglPopAttrib)getProc("glPopAttrib"); 
    137    glPushClientAttrib  = cast(pfglPushClientAttrib)getProc("glPushClientAttrib"); 
    138    glPopClientAttrib   = cast(pfglPopClientAttrib)getProc("glPopClientAttrib"); 
    139    glRenderMode        = cast(pfglRenderMode)getProc("glRenderMode"); 
    140    glGetError          = cast(pfglGetError)getProc("glGetError"); 
    141    glGetString         = cast(pfglGetString)getProc("glGetString"); 
    142    glFinish            = cast(pfglFinish)getProc("glFinish"); 
    143    glFlush             = cast(pfglFlush)getProc("glFlush"); 
    144    glHint              = cast(pfglHint)getProc("glHint"); 
    145    glClearDepth        = cast(pfglClearDepth)getProc("glClearDepth"); 
    146    glDepthFunc         = cast(pfglDepthFunc)getProc("glDepthFunc"); 
    147    glDepthMask         = cast(pfglDepthMask)getProc("glDepthMask"); 
    148    glDepthRange        = cast(pfglDepthRange)getProc("glDepthRange"); 
    149    glClearAccum        = cast(pfglClearAccum)getProc("glClearAccum"); 
    150    glAccum             = cast(pfglAccum)getProc("glAccum"); 
    151    glMatrixMode        = cast(pfglMatrixMode)getProc("glMatrixMode"); 
    152    glOrtho             = cast(pfglOrtho)getProc("glOrtho"); 
    153    glFrustum           = cast(pfglFrustum)getProc("glFrustum"); 
    154    glViewport          = cast(pfglViewport)getProc("glViewport"); 
    155    glPushMatrix        = cast(pfglPushMatrix)getProc("glPushMatrix"); 
    156    glPopMatrix         = cast(pfglPopMatrix)getProc("glPopMatrix"); 
    157    glLoadIdentity      = cast(pfglLoadIdentity)getProc("glLoadIdentity"); 
    158    glLoadMatrixd       = cast(pfglLoadMatrixd)getProc("glLoadMatrixd"); 
    159    glLoadMatrixf       = cast(pfglLoadMatrixf)getProc("glLoadMatrixf"); 
    160    glMultMatrixd       = cast(pfglMultMatrixd)getProc("glMultMatrixd"); 
    161    glMultMatrixf       = cast(pfglMultMatrixf)getProc("glMultMatrixf"); 
    162    glRotated           = cast(pfglRotated)getProc("glRotated"); 
    163    glRotatef           = cast(pfglRotatef)getProc("glRotatef"); 
    164    glScaled            = cast(pfglScaled)getProc("glScaled"); 
    165    glScalef            = cast(pfglScalef)getProc("glScalef"); 
    166    glTranslated        = cast(pfglTranslated)getProc("glTranslated"); 
    167    glTranslatef        = cast(pfglTranslatef)getProc("glTranslatef"); 
    168    glIsList            = cast(pfglIsList)getProc("glIsList"); 
    169    glDeleteLists       = cast(pfglDeleteLists)getProc("glDeleteLists"); 
    170    glGenLists          = cast(pfglGenLists)getProc("glGenLists"); 
    171    glNewList           = cast(pfglNewList)getProc("glNewList"); 
    172    glEndList           = cast(pfglEndList)getProc("glEndList"); 
    173    glCallList          = cast(pfglCallList)getProc("glCallList"); 
    174    glCallLists         = cast(pfglCallLists)getProc("glCallLists"); 
    175    glListBase          = cast(pfglListBase)getProc("glListBase"); 
    176    glBegin             = cast(pfglBegin)getProc("glBegin"); 
    177    glEnd               = cast(pfglEnd)getProc("glEnd"); 
    178    glVertex2d          = cast(pfglVertex2d)getProc("glVertex2d"); 
    179    glVertex2f          = cast(pfglVertex2f)getProc("glVertex2f"); 
    180    glVertex2i          = cast(pfglVertex2i)getProc("glVertex2i"); 
    181    glVertex2s          = cast(pfglVertex2s)getProc("glVertex2s"); 
    182    glVertex3d          = cast(pfglVertex3d)getProc("glVertex3d"); 
    183    glVertex3f          = cast(pfglVertex3f)getProc("glVertex3f"); 
    184    glVertex3i          = cast(pfglVertex3i)getProc("glVertex3i"); 
    185    glVertex3s          = cast(pfglVertex3s)getProc("glVertex3s"); 
    186    glVertex4d          = cast(pfglVertex4d)getProc("glVertex4d"); 
    187    glVertex4f          = cast(pfglVertex4f)getProc("glVertex4f"); 
    188    glVertex4i          = cast(pfglVertex4i)getProc("glVertex4i"); 
    189    glVertex4s          = cast(pfglVertex4s)getProc("glVertex4s"); 
    190    glVertex2dv         = cast(pfglVertex2dv)getProc("glVertex2dv"); 
    191    glVertex2fv         = cast(pfglVertex2fv)getProc("glVertex2fv"); 
    192    glVertex2iv         = cast(pfglVertex2iv)getProc("glVertex2iv"); 
    193    glVertex2sv         = cast(pfglVertex2sv)getProc("glVertex2sv"); 
    194    glVertex3dv         = cast(pfglVertex3dv)getProc("glVertex3dv"); 
    195    glVertex3fv         = cast(pfglVertex3fv)getProc("glVertex3fv"); 
    196    glVertex3iv         = cast(pfglVertex3iv)getProc("glVertex3iv"); 
    197    glVertex3sv         = cast(pfglVertex3sv)getProc("glVertex3sv"); 
    198    glVertex4dv         = cast(pfglVertex4dv)getProc("glVertex4dv"); 
    199    glVertex4fv         = cast(pfglVertex4fv)getProc("glVertex4fv"); 
    200    glVertex4iv         = cast(pfglVertex4iv)getProc("glVertex4iv"); 
    201    glVertex4sv         = cast(pfglVertex4sv)getProc("glVertex4sv"); 
    202    glNormal3b          = cast(pfglNormal3b)getProc("glNormal3b"); 
    203    glNormal3d          = cast(pfglNormal3d)getProc("glNormal3d"); 
    204    glNormal3f          = cast(pfglNormal3f)getProc("glNormal3f"); 
    205    glNormal3i          = cast(pfglNormal3i)getProc("glNormal3i"); 
    206    glNormal3s          = cast(pfglNormal3s)getProc("glNormal3s"); 
    207    glNormal3bv         = cast(pfglNormal3bv)getProc("glNormal3bv"); 
    208    glNormal3dv         = cast(pfglNormal3dv)getProc("glNormal3dv"); 
    209    glNormal3fv         = cast(pfglNormal3fv)getProc("glNormal3fv"); 
    210    glNormal3iv         = cast(pfglNormal3iv)getProc("glNormal3iv"); 
    211    glNormal3sv         = cast(pfglNormal3sv)getProc("glNormal3sv"); 
    212    glIndexd            = cast(pfglIndexd)getProc("glIndexd"); 
    213    glIndexf            = cast(pfglIndexf)getProc("glIndexf"); 
    214    glIndexi            = cast(pfglIndexi)getProc("glIndexi"); 
    215    glIndexs            = cast(pfglIndexs)getProc("glIndexs"); 
    216    glIndexub           = cast(pfglIndexub)getProc("glIndexub"); 
    217    glIndexdv           = cast(pfglIndexdv)getProc("glIndexdv"); 
    218    glIndexfv           = cast(pfglIndexfv)getProc("glIndexfv"); 
    219    glIndexiv           = cast(pfglIndexiv)getProc("glIndexiv"); 
    220    glIndexsv           = cast(pfglIndexsv)getProc("glIndexsv"); 
    221    glIndexubv          = cast(pfglIndexubv)getProc("glIndexubv"); 
    222    glColor3b           = cast(pfglColor3b)getProc("glColor3b"); 
    223    glColor3d           = cast(pfglColor3d)getProc("glColor3d"); 
    224    glColor3f           = cast(pfglColor3f)getProc("glColor3f"); 
    225    glColor3i           = cast(pfglColor3i)getProc("glColor3i"); 
    226    glColor3s           = cast(pfglColor3s)getProc("glColor3s"); 
    227    glColor3ub          = cast(pfglColor3ub)getProc("glColor3ub"); 
    228    glColor3ui          = cast(pfglColor3ui)getProc("glColor3ui"); 
    229    glColor3us          = cast(pfglColor3us)getProc("glColor3us"); 
    230    glColor4b           = cast(pfglColor4b)getProc("glColor4b"); 
    231    glColor4d           = cast(pfglColor4d)getProc("glColor4d"); 
    232    glColor4i           = cast(pfglColor4i)getProc("glColor4i"); 
    233    glColor4s           = cast(pfglColor4s)getProc("glColor4s"); 
    234    glColor4ub          = cast(pfglColor4ub)getProc("glColor4ub"); 
    235    glColor4ui          = cast(pfglColor4ui)getProc("glColor4ui"); 
    236    glColor4us          = cast(pfglColor4us)getProc("glColor4us"); 
    237    glColor3bv          = cast(pfglColor3bv)getProc("glColor3bv"); 
    238    glColor3dv          = cast(pfglColor3dv)getProc("glColor3dv"); 
    239    glColor3fv          = cast(pfglColor3fv)getProc("glColor3fv"); 
    240    glColor3iv          = cast(pfglColor3iv)getProc("glColor3iv"); 
    241    glColor3sv          = cast(pfglColor3sv)getProc("glColor3sv"); 
    242    glColor3ubv         = cast(pfglColor3ubv)getProc("glColor3ubv"); 
    243    glColor3uiv         = cast(pfglColor3uiv)getProc("glColor3uiv"); 
    244    glColor3usv         = cast(pfglColor3usv)getProc("glColor3usv"); 
    245    glColor4bv          = cast(pfglColor4bv)getProc("glColor4bv"); 
    246    glColor4dv          = cast(pfglColor4dv)getProc("glColor4dv"); 
    247    glColor4fv          = cast(pfglColor4fv)getProc("glColor4fv"); 
    248    glColor4iv          = cast(pfglColor4iv)getProc("glColor4iv"); 
    249    glColor4sv          = cast(pfglColor4sv)getProc("glColor4sv"); 
    250    glColor4ubv         = cast(pfglColor4ubv)getProc("glColor4ubv"); 
    251    glColor4uiv         = cast(pfglColor4uiv)getProc("glColor4uiv"); 
    252    glColor4usv         = cast(pfglColor4usv)getProc("glColor4usv"); 
    253    glTexCoord1d        = cast(pfglTexCoord1d)getProc("glTexCoord1d"); 
    254    glTexCoord1f        = cast(pfglTexCoord1f)getProc("glTexCoord1f"); 
    255    glTexCoord1i        = cast(pfglTexCoord1i)getProc("glTexCoord1i"); 
    256    glTexCoord1s        = cast(pfglTexCoord1s)getProc("glTexCoord1s"); 
    257    glTexCoord2d        = cast(pfglTexCoord2d)getProc("glTexCoord2d"); 
    258    glTexCoord2f        = cast(pfglTexCoord2f)getProc("glTexCoord2f"); 
    259    glTexCoord2i        = cast(pfglTexCoord2i)getProc("glTexCoord2i"); 
    260    glTexCoord2s        = cast(pfglTexCoord2s)getProc("glTexCoord2s"); 
    261    glTexCoord3d        = cast(pfglTexCoord3d)getProc("glTexCoord3d"); 
    262    glTexCoord3f        = cast(pfglTexCoord3f)getProc("glTexCoord3f"); 
    263    glTexCoord3i        = cast(pfglTexCoord3i)getProc("glTexCoord3i"); 
    264    glTexCoord3s        = cast(pfglTexCoord3s)getProc("glTexCoord3s"); 
    265    glTexCoord4d        = cast(pfglTexCoord4d)getProc("glTexCoord4d"); 
    266    glTexCoord4f        = cast(pfglTexCoord4f)getProc("glTexCoord4f"); 
    267    glTexCoord4i        = cast(pfglTexCoord4i)getProc("glTexCoord4i"); 
    268     glTexCoord4s        = cast(pfglTexCoord4s)getProc("glTexCoord4s");   
    269    glTexCoord1dv       = cast(pfglTexCoord1dv)getProc("glTexCoord1dv"); 
    270    glTexCoord1fv       = cast(pfglTexCoord1fv)getProc("glTexCoord1fv"); 
    271    glTexCoord1iv       = cast(pfglTexCoord1iv)getProc("glTexCoord1iv"); 
    272    glTexCoord1sv       = cast(pfglTexCoord1sv)getProc("glTexCoord1sv"); 
    273    glTexCoord2dv       = cast(pfglTexCoord2dv)getProc("glTexCoord2dv"); 
    274    glTexCoord2fv       = cast(pfglTexCoord2fv)getProc("glTexCoord2fv"); 
    275    glTexCoord2iv       = cast(pfglTexCoord2iv)getProc("glTexCoord2iv"); 
    276    glTexCoord2sv       = cast(pfglTexCoord2sv)getProc("glTexCoord2sv"); 
    277    glTexCoord3dv       = cast(pfglTexCoord3dv)getProc("glTexCoord3dv"); 
    278    glTexCoord3fv       = cast(pfglTexCoord3fv)getProc("glTexCoord3fv"); 
    279    glTexCoord3iv       = cast(pfglTexCoord3iv)getProc("glTexCoord3iv"); 
    280    glTexCoord3sv       = cast(pfglTexCoord3sv)getProc("glTexCoord3sv"); 
    281    glTexCoord4dv       = cast(pfglTexCoord4dv)getProc("glTexCoord4dv"); 
    282    glTexCoord4fv       = cast(pfglTexCoord4fv)getProc("glTexCoord4fv"); 
    283    glTexCoord4iv       = cast(pfglTexCoord4iv)getProc("glTexCoord4iv"); 
    284    glTexCoord4sv       = cast(pfglTexCoord4sv)getProc("glTexCoord4sv"); 
    285    glRasterPos2d       = cast(pfglRasterPos2d)getProc("glRasterPos2d"); 
    286    glRasterPos2f       = cast(pfglRasterPos2f)getProc("glRasterPos2f"); 
    287    glRasterPos2i       = cast(pfglRasterPos2i)getProc("glRasterPos2i"); 
    288    glRasterPos2s       = cast(pfglRasterPos2s)getProc("glRasterPos2s"); 
    289    glRasterPos3d       = cast(pfglRasterPos3d)getProc("glRasterPos3d"); 
    290    glRasterPos3f       = cast(pfglRasterPos3f)getProc("glRasterPos3f"); 
    291    glRasterPos3i       = cast(pfglRasterPos3i)getProc("glRasterPos3i"); 
    292    glRasterPos3s       = cast(pfglRasterPos3s)getProc("glRasterPos3s"); 
    293    glRasterPos4d       = cast(pfglRasterPos4d)getProc("glRasterPos4d"); 
    294    glRasterPos4f       = cast(pfglRasterPos4f)getProc("glRasterPos4f"); 
    295    glRasterPos4i       = cast(pfglRasterPos4i)getProc("glRasterPos4i"); 
    296    glRasterPos4s       = cast(pfglRasterPos4s)getProc("glRasterPos4s"); 
    297    glRasterPos2dv      = cast(pfglRasterPos2dv)getProc("glRasterPos2dv"); 
    298    glRasterPos2fv      = cast(pfglRasterPos2fv)getProc("glRasterPos2fv"); 
    299    glRasterPos2iv      = cast(pfglRasterPos2iv)getProc("glRasterPos2iv"); 
    300    glRasterPos2sv      = cast(pfglRasterPos2sv)getProc("glRasterPos2sv"); 
    301    glRasterPos3dv      = cast(pfglRasterPos3dv)getProc("glRasterPos3dv"); 
    302    glRasterPos3fv      = cast(pfglRasterPos3fv)getProc("glRasterPos3fv"); 
    303    glRasterPos3iv      = cast(pfglRasterPos3iv)getProc("glRasterPos3iv"); 
    304    glRasterPos3sv      = cast(pfglRasterPos3sv)getProc("glRasterPos3sv"); 
    305    glRasterPos4dv      = cast(pfglRasterPos4dv)getProc("glRasterPos4dv"); 
    306    glRasterPos4fv      = cast(pfglRasterPos4fv)getProc("glRasterPos4fv"); 
    307    glRasterPos4iv      = cast(pfglRasterPos4iv)getProc("glRasterPos4iv"); 
    308    glRasterPos4sv      = cast(pfglRasterPos4sv)getProc("glRasterPos4sv"); 
    309    glRectd             = cast(pfglRectd)getProc("glRectd"); 
    310    glRectf             = cast(pfglRectf)getProc("glRectf"); 
    311    glRecti             = cast(pfglRecti)getProc("glRecti"); 
    312    glRects             = cast(pfglRects)getProc("glRects"); 
    313    glRectdv            = cast(pfglRectdv)getProc("glRectdv"); 
    314    glRectfv            = cast(pfglRectfv)getProc("glRectfv"); 
    315    glRectiv            = cast(pfglRectiv)getProc("glRectiv"); 
    316    glRectsv            = cast(pfglRectsv)getProc("glRectsv"); 
    317    glShadeModel        = cast(pfglShadeModel)getProc("glShadeModel"); 
    318    glLightf            = cast(pfglLightf)getProc("glLightf"); 
    319    glLighti            = cast(pfglLighti)getProc("glLighti"); 
    320    glLightfv           = cast(pfglLightfv)getProc("glLightfv"); 
    321    glLightiv           = cast(pfglLightiv)getProc("glLightiv"); 
    322    glGetLightfv        = cast(pfglGetLightfv)getProc("glGetLightfv"); 
    323    glGetLightiv        = cast(pfglGetLightiv)getProc("glGetLightiv"); 
    324    glLightModelf       = cast(pfglLightModelf)getProc("glLightModelf"); 
    325    glLightModeli       = cast(pfglLightModeli)getProc("glLightModeli"); 
    326    glLightModelfv      = cast(pfglLightModelfv)getProc("glLightModelfv"); 
    327    glLightModeliv      = cast(pfglLightModeliv)getProc("glLightModeliv"); 
    328    glMaterialf         = cast(pfglMaterialf)getProc("glMaterialf"); 
    329    glMateriali         = cast(pfglMateriali)getProc("glMateriali"); 
    330    glMaterialfv        = cast(pfglMaterialfv)getProc("glMaterialfv"); 
    331    glMaterialiv        = cast(pfglMaterialiv)getProc("glMaterialiv"); 
    332    glGetMaterialfv     = cast(pfglGetMaterialfv)getProc("glGetMaterialfv"); 
    333    glGetMaterialiv     = cast(pfglGetMaterialiv)getProc("glGetMaterialiv"); 
    334    glColorMaterial     = cast(pfglColorMaterial)getProc("glColorMaterial"); 
    335    glPixelZoom         = cast(pfglPixelZoom)getProc("glPixelZoom"); 
    336    glPixelStoref       = cast(pfglPixelStoref)getProc("glPixelStoref"); 
    337    glPixelStorei       = cast(pfglPixelStorei)getProc("glPixelStorei"); 
    338    glPixelTransferf    = cast(pfglPixelTransferf)getProc("glPixelTransferf"); 
    339    glPixelTransferi    = cast(pfglPixelTransferi)getProc("glPixelTransferi"); 
    340    glPixelMapfv        = cast(pfglPixelMapfv)getProc("glPixelMapfv"); 
    341    glPixelMapuiv       = cast(pfglPixelMapuiv)getProc("glPixelMapuiv"); 
    342    glPixelMapusv       = cast(pfglPixelMapusv)getProc("glPixelMapusv"); 
    343    glGetPixelMapfv     = cast(pfglGetPixelMapfv)getProc("glGetPixelMapfv"); 
    344    glGetPixelMapuiv    = cast(pfglGetPixelMapuiv)getProc("glGetPixelMapuiv"); 
    345    glGetPixelMapusv    = cast(pfglGetPixelMapusv)getProc("glGetPixelMapusv"); 
    346    glBitmap            = cast(pfglBitmap)getProc("glBitmap"); 
    347    glReadPixels        = cast(pfglReadPixels)getProc("glReadPixels"); 
    348    glDrawPixels        = cast(pfglDrawPixels)getProc("glDrawPixels"); 
    349    glCopyPixels        = cast(pfglCopyPixels)getProc("glCopyPixels"); 
    350    glStencilFunc       = cast(pfglStencilFunc)getProc("glStencilFunc"); 
    351    glStencilMask       = cast(pfglStencilMask)getProc("glStencilMask"); 
    352    glStencilOp         = cast(pfglStencilOp)getProc("glStencilOp"); 
    353    glClearStencil      = cast(pfglClearStencil)getProc("glClearStencil"); 
    354    glTexGend           = cast(pfglTexGend)getProc("glTexGend"); 
    355    glTexGenf           = cast(pfglTexGenf)getProc("glTexGenf"); 
    356    glTexGeni           = cast(pfglTexGeni)getProc("glTexGeni"); 
    357    glTexGendv          = cast(pfglTexGendv)getProc("glTexGendv"); 
    358    glTexGenfv          = cast(pfglTexGenfv)getProc("glTexGenfv"); 
    359    glTexGeniv          = cast(pfglTexGeniv)getProc("glTexGeniv"); 
    360    glTexEnvf           = cast(pfglTexEnvf)getProc("glTexEnvf"); 
    361    glTexEnvi           = cast(pfglTexEnvi)getProc("glTexEnvi"); 
    362    glTexEnvfv          = cast(pfglTexEnvfv)getProc("glTexEnvfv"); 
    363    glTexEnviv          = cast(pfglTexEnviv)getProc("glTexEnviv"); 
    364    glGetTexEnvfv       = cast(pfglGetTexEnvfv)getProc("glGetTexEnvfv"); 
    365    glGetTexEnviv       = cast(pfglGetTexEnviv)getProc("glGetTexEnviv"); 
    366    glTexParameterf     = cast(pfglTexParameterf)getProc("glTexParameterf"); 
    367    glTexParameteri     = cast(pfglTexParameteri)getProc("glTexParameteri"); 
    368    glTexParameterfv    = cast(pfglTexParameterfv)getProc("glTexParameterfv"); 
    369    glTexParameteriv    = cast(pfglTexParameteriv)getProc("glTexParameteriv"); 
    370    glGetTexParameterfv = cast(pfglGetTexParameterfv)getProc("glGetTexParameterfv"); 
    371    glGetTexParameteriv = cast(pfglGetTexParameteriv)getProc("glGetTexParameteriv"); 
    372    glGetTexLevelParameterfv = cast(pfglGetTexLevelParameterfv)getProc("glGetTexLevelParameterfv"); 
    373    glGetTexLevelParameteriv = cast(pfglGetTexLevelParameteriv)getProc("glGetTexLevelParameteriv"); 
    374    glTexImage1D        = cast(pfglTexImage1D)getProc("glTexImage1D"); 
    375    glTexImage2D        = cast(pfglTexImage2D)getProc("glTexImage2D"); 
    376    glGetTexImage       = cast(pfglGetTexImage)getProc("glGetTexImage"); 
    377    glMap1d             = cast(pfglMap1d)getProc("glMap1d"); 
    378    glMap1f             = cast(pfglMap1f)getProc("glMap1f"); 
    379    glMap2d             = cast(pfglMap2d)getProc("glMap2d"); 
    380    glMap2f             = cast(pfglMap2f)getProc("glMap2f"); 
    381    glGetMapdv          = cast(pfglGetMapdv)getProc("glGetMapdv"); 
    382    glGetMapfv          = cast(pfglGetMapfv)getProc("glGetMapfv"); 
    383    glEvalCoord1d       = cast(pfglEvalCoord1d)getProc("glEvalCoord1d"); 
    384    glEvalCoord1f       = cast(pfglEvalCoord1f)getProc("glEvalCoord1f"); 
    385    glEvalCoord1dv      = cast(pfglEvalCoord1dv)getProc("glEvalCoord1dv"); 
    386    glEvalCoord1fv      = cast(pfglEvalCoord1fv)getProc("glEvalCoord1fv"); 
    387    glEvalCoord2d       = cast(pfglEvalCoord2d)getProc("glEvalCoord2d"); 
    388    glEvalCoord2f       = cast(pfglEvalCoord2f)getProc("glEvalCoord2f"); 
    389    glEvalCoord2dv      = cast(pfglEvalCoord2dv)getProc("glEvalCoord2dv"); 
    390    glEvalCoord2fv      = cast(pfglEvalCoord2fv)getProc("glEvalCoord2fv"); 
    391    glMapGrid1d         = cast(pfglMapGrid1d)getProc("glMapGrid1d"); 
    392    glMapGrid1f         = cast(pfglMapGrid1f)getProc("glMapGrid1f"); 
    393    glMapGrid2d         = cast(pfglMapGrid2d)getProc("glMapGrid2d"); 
    394    glMapGrid2f         = cast(pfglMapGrid2f)getProc("glMapGrid2f"); 
    395    glEvalPoint1        = cast(pfglEvalPoint1)getProc("glEvalPoint1"); 
    396    glEvalPoint2        = cast(pfglEvalPoint2)getProc("glEvalPoint2"); 
    397    glEvalMesh1         = cast(pfglEvalMesh1)getProc("glEvalMesh1"); 
    398    glEvalMesh2         = cast(pfglEvalMesh2)getProc("glEvalMesh2"); 
    399    glFogf              = cast(pfglFogf)getProc("glFogf"); 
    400    glFogi              = cast(pfglFogi)getProc("glFogi"); 
    401    glFogfv             = cast(pfglFogfv)getProc("glFogfv"); 
    402    glFogiv             = cast(pfglFogiv)getProc("glFogiv"); 
    403    glFeedbackBuffer    = cast(pfglFeedbackBuffer)getProc("glFeedbackBuffer"); 
    404    glPassThrough       = cast(pfglPassThrough)getProc("glPassThrough"); 
    405    glSelectBuffer      = cast(pfglSelectBuffer)getProc("glSelectBuffer"); 
    406    glInitNames         = cast(pfglInitNames)getProc("glInitNames"); 
    407    glLoadName          = cast(pfglLoadName)getProc("glLoadName"); 
    408    glPushName          = cast(pfglPushName)getProc("glPushName"); 
    409    glPopName           = cast(pfglPopName)getProc("glPopName"); 
     103    glClearIndex        = cast(pfglClearIndex)getProc("glClearIndex"); 
     104    glClearColor        = cast(pfglClearColor)getProc("glClearColor"); 
     105    glClear             = cast(pfglClear)getProc("glClear"); 
     106    glIndexMask         = cast(pfglIndexMask)getProc("glIndexMask"); 
     107    glColorMask         = cast(pfglColorMask)getProc("glColorMask"); 
     108    glAlphaFunc         = cast(pfglAlphaFunc)getProc("glAlphaFunc"); 
     109    glBlendFunc         = cast(pfglBlendFunc)getProc("glBlendFunc"); 
     110    glLogicOp           = cast(pfglLogicOp)getProc("glLogicOp"); 
     111    glCullFace          = cast(pfglCullFace)getProc("glCullFace"); 
     112    glFrontFace         = cast(pfglFrontFace)getProc("glFrontFace"); 
     113    glPointSize         = cast(pfglPointSize)getProc("glPointSize"); 
     114    glLineWidth         = cast(pfglLineWidth)getProc("glLineWidth"); 
     115    glLineStipple       = cast(pfglLineStipple)getProc("glLineStipple"); 
     116    glPolygonMode       = cast(pfglPolygonMode)getProc("glPolygonMode"); 
     117    glPolygonOffset     = cast(pfglPolygonOffset)getProc("glPolygonOffset"); 
     118    glPolygonStipple    = cast(pfglPolygonStipple)getProc("glPolygonStipple"); 
     119    glGetPolygonStipple = cast(pfglGetPolygonStipple)getProc("glGetPolygonStipple"); 
     120    glEdgeFlag          = cast(pfglEdgeFlag)getProc("glEdgeFlag"); 
     121    glEdgeFlagv         = cast(pfglEdgeFlagv)getProc("glEdgeFlagv"); 
     122    glScissor           = cast(pfglScissor)getProc("glScissor"); 
     123    glClipPlane         = cast(pfglClipPlane)getProc("glClipPlane"); 
     124    glGetClipPlane      = cast(pfglGetClipPlane)getProc("glGetClipPlane"); 
     125    glDrawBuffer        = cast(pfglDrawBuffer)getProc("glDrawBuffer"); 
     126    glReadBuffer        = cast(pfglReadBuffer)getProc("glReadBuffer"); 
     127    glEnable            = cast(pfglEnable)getProc("glEnable"); 
     128    glDisable           = cast(pfglDisable)getProc("glDisable"); 
     129    glIsEnabled         = cast(pfglIsEnabled)getProc("glIsEnabled"); 
     130    glEnableClientState = cast(pfglEnableClientState)getProc("glEnableClientState"); 
     131    glDisableClientState = cast(pfglDisableClientState)getProc("glDisableClientState"); 
     132    glGetBooleanv       = cast(pfglGetBooleanv)getProc("glGetBooleanv"); 
     133    glGetDoublev        = cast(pfglGetDoublev)getProc("glGetDoublev"); 
     134    glGetFloatv         = cast(pfglGetFloatv)getProc("glGetFloatv"); 
     135    glGetIntegerv       = cast(pfglGetIntegerv)getProc("glGetIntegerv"); 
     136    glPushAttrib        = cast(pfglPushAttrib)getProc("glPushAttrib"); 
     137    glPopAttrib         = cast(pfglPopAttrib)getProc("glPopAttrib"); 
     138    glPushClientAttrib  = cast(pfglPushClientAttrib)getProc("glPushClientAttrib"); 
     139    glPopClientAttrib   = cast(pfglPopClientAttrib)getProc("glPopClientAttrib"); 
     140    glRenderMode        = cast(pfglRenderMode)getProc("glRenderMode"); 
     141    glGetError          = cast(pfglGetError)getProc("glGetError"); 
     142    glGetString         = cast(pfglGetString)getProc("glGetString"); 
     143    glFinish            = cast(pfglFinish)getProc("glFinish"); 
     144    glFlush             = cast(pfglFlush)getProc("glFlush"); 
     145    glHint              = cast(pfglHint)getProc("glHint"); 
     146    glClearDepth        = cast(pfglClearDepth)getProc("glClearDepth"); 
     147    glDepthFunc         = cast(pfglDepthFunc)getProc("glDepthFunc"); 
     148    glDepthMask         = cast(pfglDepthMask)getProc("glDepthMask"); 
     149    glDepthRange        = cast(pfglDepthRange)getProc("glDepthRange"); 
     150    glClearAccum        = cast(pfglClearAccum)getProc("glClearAccum"); 
     151    glAccum             = cast(pfglAccum)getProc("glAccum"); 
     152    glMatrixMode        = cast(pfglMatrixMode)getProc("glMatrixMode"); 
     153    glOrtho             = cast(pfglOrtho)getProc("glOrtho"); 
     154    glFrustum           = cast(pfglFrustum)getProc("glFrustum"); 
     155    glViewport          = cast(pfglViewport)getProc("glViewport"); 
     156    glPushMatrix        = cast(pfglPushMatrix)getProc("glPushMatrix"); 
     157    glPopMatrix         = cast(pfglPopMatrix)getProc("glPopMatrix"); 
     158    glLoadIdentity      = cast(pfglLoadIdentity)getProc("glLoadIdentity"); 
     159    glLoadMatrixd       = cast(pfglLoadMatrixd)getProc("glLoadMatrixd"); 
     160    glLoadMatrixf       = cast(pfglLoadMatrixf)getProc("glLoadMatrixf"); 
     161    glMultMatrixd       = cast(pfglMultMatrixd)getProc("glMultMatrixd"); 
     162    glMultMatrixf       = cast(pfglMultMatrixf)getProc("glMultMatrixf"); 
     163    glRotated           = cast(pfglRotated)getProc("glRotated"); 
     164    glRotatef           = cast(pfglRotatef)getProc("glRotatef"); 
     165    glScaled            = cast(pfglScaled)getProc("glScaled"); 
     166    glScalef            = cast(pfglScalef)getProc("glScalef"); 
     167    glTranslated        = cast(pfglTranslated)getProc("glTranslated"); 
     168    glTranslatef        = cast(pfglTranslatef)getProc("glTranslatef"); 
     169    glIsList            = cast(pfglIsList)getProc("glIsList"); 
     170    glDeleteLists       = cast(pfglDeleteLists)getProc("glDeleteLists"); 
     171    glGenLists          = cast(pfglGenLists)getProc("glGenLists"); 
     172    glNewList           = cast(pfglNewList)getProc("glNewList"); 
     173    glEndList           = cast(pfglEndList)getProc("glEndList"); 
     174    glCallList          = cast(pfglCallList)getProc("glCallList"); 
     175    glCallLists         = cast(pfglCallLists)getProc("glCallLists"); 
     176    glListBase          = cast(pfglListBase)getProc("glListBase"); 
     177    glBegin             = cast(pfglBegin)getProc("glBegin"); 
     178    glEnd               = cast(pfglEnd)getProc("glEnd"); 
     179    glVertex2d          = cast(pfglVertex2d)getProc("glVertex2d"); 
     180    glVertex2f          = cast(pfglVertex2f)getProc("glVertex2f"); 
     181    glVertex2i          = cast(pfglVertex2i)getProc("glVertex2i"); 
     182    glVertex2s          = cast(pfglVertex2s)getProc("glVertex2s"); 
     183    glVertex3d          = cast(pfglVertex3d)getProc("glVertex3d"); 
     184    glVertex3f          = cast(pfglVertex3f)getProc("glVertex3f"); 
     185    glVertex3i          = cast(pfglVertex3i)getProc("glVertex3i"); 
     186    glVertex3s          = cast(pfglVertex3s)getProc("glVertex3s"); 
     187    glVertex4d          = cast(pfglVertex4d)getProc("glVertex4d"); 
     188    glVertex4f          = cast(pfglVertex4f)getProc("glVertex4f"); 
     189    glVertex4i          = cast(pfglVertex4i)getProc("glVertex4i"); 
     190    glVertex4s          = cast(pfglVertex4s)getProc("glVertex4s"); 
     191    glVertex2dv         = cast(pfglVertex2dv)getProc("glVertex2dv"); 
     192    glVertex2fv         = cast(pfglVertex2fv)getProc("glVertex2fv"); 
     193    glVertex2iv         = cast(pfglVertex2iv)getProc("glVertex2iv"); 
     194    glVertex2sv         = cast(pfglVertex2sv)getProc("glVertex2sv"); 
     195    glVertex3dv         = cast(pfglVertex3dv)getProc("glVertex3dv"); 
     196    glVertex3fv         = cast(pfglVertex3fv)getProc("glVertex3fv"); 
     197    glVertex3iv         = cast(pfglVertex3iv)getProc("glVertex3iv"); 
     198    glVertex3sv         = cast(pfglVertex3sv)getProc("glVertex3sv"); 
     199    glVertex4dv         = cast(pfglVertex4dv)getProc("glVertex4dv"); 
     200    glVertex4fv         = cast(pfglVertex4fv)getProc("glVertex4fv"); 
     201    glVertex4iv         = cast(pfglVertex4iv)getProc("glVertex4iv"); 
     202    glVertex4sv         = cast(pfglVertex4sv)getProc("glVertex4sv"); 
     203    glNormal3b          = cast(pfglNormal3b)getProc("glNormal3b"); 
     204    glNormal3d          = cast(pfglNormal3d)getProc("glNormal3d"); 
     205    glNormal3f          = cast(pfglNormal3f)getProc("glNormal3f"); 
     206    glNormal3i          = cast(pfglNormal3i)getProc("glNormal3i"); 
     207    glNormal3s          = cast(pfglNormal3s)getProc("glNormal3s"); 
     208    glNormal3bv         = cast(pfglNormal3bv)getProc("glNormal3bv"); 
     209    glNormal3dv         = cast(pfglNormal3dv)getProc("glNormal3dv"); 
     210    glNormal3fv         = cast(pfglNormal3fv)getProc("glNormal3fv"); 
     211    glNormal3iv         = cast(pfglNormal3iv)getProc("glNormal3iv"); 
     212    glNormal3sv         = cast(pfglNormal3sv)getProc("glNormal3sv"); 
     213    glIndexd            = cast(pfglIndexd)getProc("glIndexd"); 
     214    glIndexf            = cast(pfglIndexf)getProc("glIndexf"); 
     215    glIndexi            = cast(pfglIndexi)getProc("glIndexi"); 
     216    glIndexs            = cast(pfglIndexs)getProc("glIndexs"); 
     217    glIndexub           = cast(pfglIndexub)getProc("glIndexub"); 
     218    glIndexdv           = cast(pfglIndexdv)getProc("glIndexdv"); 
     219    glIndexfv           = cast(pfglIndexfv)getProc("glIndexfv"); 
     220    glIndexiv           = cast(pfglIndexiv)getProc("glIndexiv"); 
     221    glIndexsv           = cast(pfglIndexsv)getProc("glIndexsv"); 
     222    glIndexubv          = cast(pfglIndexubv)getProc("glIndexubv"); 
     223    glColor3b           = cast(pfglColor3b)getProc("glColor3b"); 
     224    glColor3d           = cast(pfglColor3d)getProc("glColor3d"); 
     225    glColor3f           = cast(pfglColor3f)getProc("glColor3f"); 
     226    glColor3i           = cast(pfglColor3i)getProc("glColor3i"); 
     227    glColor3s           = cast(pfglColor3s)getProc("glColor3s"); 
     228    glColor3ub          = cast(pfglColor3ub)getProc("glColor3ub"); 
     229    glColor3ui          = cast(pfglColor3ui)getProc("glColor3ui"); 
     230    glColor3us          = cast(pfglColor3us)getProc("glColor3us"); 
     231    glColor4b           = cast(pfglColor4b)getProc("glColor4b"); 
     232    glColor4d           = cast(pfglColor4d)getProc("glColor4d"); 
     233    glColor4i           = cast(pfglColor4i)getProc("glColor4i"); 
     234    glColor4s           = cast(pfglColor4s)getProc("glColor4s"); 
     235    glColor4ub          = cast(pfglColor4ub)getProc("glColor4ub"); 
     236    glColor4ui          = cast(pfglColor4ui)getProc("glColor4ui"); 
     237    glColor4us          = cast(pfglColor4us)getProc("glColor4us"); 
     238    glColor3bv          = cast(pfglColor3bv)getProc("glColor3bv"); 
     239    glColor3dv          = cast(pfglColor3dv)getProc("glColor3dv"); 
     240    glColor3fv          = cast(pfglColor3fv)getProc("glColor3fv"); 
     241    glColor3iv          = cast(pfglColor3iv)getProc("glColor3iv"); 
     242    glColor3sv          = cast(pfglColor3sv)getProc("glColor3sv"); 
     243    glColor3ubv         = cast(pfglColor3ubv)getProc("glColor3ubv"); 
     244    glColor3uiv         = cast(pfglColor3uiv)getProc("glColor3uiv"); 
     245    glColor3usv         = cast(pfglColor3usv)getProc("glColor3usv"); 
     246    glColor4bv          = cast(pfglColor4bv)getProc("glColor4bv"); 
     247    glColor4dv          = cast(pfglColor4dv)getProc("glColor4dv"); 
     248    glColor4fv          = cast(pfglColor4fv)getProc("glColor4fv"); 
     249    glColor4iv          = cast(pfglColor4iv)getProc("glColor4iv"); 
     250    glColor4sv          = cast(pfglColor4sv)getProc("glColor4sv"); 
     251    glColor4ubv         = cast(pfglColor4ubv)getProc("glColor4ubv"); 
     252    glColor4uiv         = cast(pfglColor4uiv)getProc("glColor4uiv"); 
     253    glColor4usv         = cast(pfglColor4usv)getProc("glColor4usv"); 
     254    glTexCoord1d        = cast(pfglTexCoord1d)getProc("glTexCoord1d"); 
     255    glTexCoord1f        = cast(pfglTexCoord1f)getProc("glTexCoord1f"); 
     256    glTexCoord1i        = cast(pfglTexCoord1i)getProc("glTexCoord1i"); 
     257    glTexCoord1s        = cast(pfglTexCoord1s)getProc("glTexCoord1s"); 
     258    glTexCoord2d        = cast(pfglTexCoord2d)getProc("glTexCoord2d"); 
     259    glTexCoord2f        = cast(pfglTexCoord2f)getProc("glTexCoord2f"); 
     260    glTexCoord2i        = cast(pfglTexCoord2i)getProc("glTexCoord2i"); 
     261    glTexCoord2s        = cast(pfglTexCoord2s)getProc("glTexCoord2s"); 
     262    glTexCoord3d        = cast(pfglTexCoord3d)getProc("glTexCoord3d"); 
     263    glTexCoord3f        = cast(pfglTexCoord3f)getProc("glTexCoord3f"); 
     264    glTexCoord3i        = cast(pfglTexCoord3i)getProc("glTexCoord3i"); 
     265    glTexCoord3s        = cast(pfglTexCoord3s)getProc("glTexCoord3s"); 
     266    glTexCoord4d        = cast(pfglTexCoord4d)getProc("glTexCoord4d"); 
     267    glTexCoord4f        = cast(pfglTexCoord4f)getProc("glTexCoord4f"); 
     268    glTexCoord4i        = cast(pfglTexCoord4i)getProc("glTexCoord4i"); 
     269    glTexCoord4s        = cast(pfglTexCoord4s)getProc("glTexCoord4s"); 
     270    glTexCoord1dv       = cast(pfglTexCoord1dv)getProc("glTexCoord1dv"); 
     271    glTexCoord1fv       = cast(pfglTexCoord1fv)getProc("glTexCoord1fv"); 
     272    glTexCoord1iv       = cast(pfglTexCoord1iv)getProc("glTexCoord1iv"); 
     273    glTexCoord1sv       = cast(pfglTexCoord1sv)getProc("glTexCoord1sv"); 
     274    glTexCoord2dv       = cast(pfglTexCoord2dv)getProc("glTexCoord2dv"); 
     275    glTexCoord2fv       = cast(pfglTexCoord2fv)getProc("glTexCoord2fv"); 
     276    glTexCoord2iv       = cast(pfglTexCoord2iv)getProc("glTexCoord2iv"); 
     277    glTexCoord2sv       = cast(pfglTexCoord2sv)getProc("glTexCoord2sv"); 
     278    glTexCoord3dv       = cast(pfglTexCoord3dv)getProc("glTexCoord3dv"); 
     279    glTexCoord3fv       = cast(pfglTexCoord3fv)getProc("glTexCoord3fv"); 
     280    glTexCoord3iv       = cast(pfglTexCoord3iv)getProc("glTexCoord3iv"); 
     281    glTexCoord3sv       = cast(pfglTexCoord3sv)getProc("glTexCoord3sv"); 
     282    glTexCoord4dv       = cast(pfglTexCoord4dv)getProc("glTexCoord4dv"); 
     283    glTexCoord4fv       = cast(pfglTexCoord4fv)getProc("glTexCoord4fv"); 
     284    glTexCoord4iv       = cast(pfglTexCoord4iv)getProc("glTexCoord4iv"); 
     285    glTexCoord4sv       = cast(pfglTexCoord4sv)getProc("glTexCoord4sv"); 
     286    glRasterPos2d       = cast(pfglRasterPos2d)getProc("glRasterPos2d"); 
     287    glRasterPos2f       = cast(pfglRasterPos2f)getProc("glRasterPos2f"); 
     288    glRasterPos2i       = cast(pfglRasterPos2i)getProc("glRasterPos2i"); 
     289    glRasterPos2s       = cast(pfglRasterPos2s)getProc("glRasterPos2s"); 
     290    glRasterPos3d       = cast(pfglRasterPos3d)getProc("glRasterPos3d"); 
     291    glRasterPos3f       = cast(pfglRasterPos3f)getProc("glRasterPos3f"); 
     292    glRasterPos3i       = cast(pfglRasterPos3i)getProc("glRasterPos3i"); 
     293    glRasterPos3s       = cast(pfglRasterPos3s)getProc("glRasterPos3s"); 
     294    glRasterPos4d       = cast(pfglRasterPos4d)getProc("glRasterPos4d"); 
     295    glRasterPos4f       = cast(pfglRasterPos4f)getProc("glRasterPos4f"); 
     296    glRasterPos4i       = cast(pfglRasterPos4i)getProc("glRasterPos4i"); 
     297    glRasterPos4s       = cast(pfglRasterPos4s)getProc("glRasterPos4s"); 
     298    glRasterPos2dv      = cast(pfglRasterPos2dv)getProc("glRasterPos2dv"); 
     299    glRasterPos2fv      = cast(pfglRasterPos2fv)getProc("glRasterPos2fv"); 
     300    glRasterPos2iv      = cast(pfglRasterPos2iv)getProc("glRasterPos2iv"); 
     301    glRasterPos2sv      = cast(pfglRasterPos2sv)getProc("glRasterPos2sv"); 
     302    glRasterPos3dv      = cast(pfglRasterPos3dv)getProc("glRasterPos3dv"); 
     303    glRasterPos3fv      = cast(pfglRasterPos3fv)getProc("glRasterPos3fv"); 
     304    glRasterPos3iv      = cast(pfglRasterPos3iv)getProc("glRasterPos3iv"); 
     305    glRasterPos3sv      = cast(pfglRasterPos3sv)getProc("glRasterPos3sv"); 
     306    glRasterPos4dv      = cast(pfglRasterPos4dv)getProc("glRasterPos4dv"); 
     307    glRasterPos4fv      = cast(pfglRasterPos4fv)getProc("glRasterPos4fv"); 
     308    glRasterPos4iv      = cast(pfglRasterPos4iv)getProc("glRasterPos4iv"); 
     309    glRasterPos4sv      = cast(pfglRasterPos4sv)getProc("glRasterPos4sv"); 
     310    glRectd             = cast(pfglRectd)getProc("glRectd");&nb