Skip to content
This repository
Browse code

New GL packages with dlsym() support for MacOS

  • Loading branch information...
commit aba4b46e16ff319fc77f744e6c75c04050af7ed5 1 parent 3efc31d
Christoph Schunk authored

Showing 3 changed files with 6,185 additions and 6,221 deletions. Show diff stats Hide diff stats

  1. +584 596 gl21/gl21.go
  2. +3,112 3,124 gl33/gl33.go
  3. +2,489 2,501 gl42/gl42.go
1,180 gl21/gl21.go
@@ -38,8 +38,7 @@ package gl21
38 38 //
39 39 // #include <stdlib.h>
40 40 // #if defined(__APPLE__)
41   -// #include <mach-o/dyld.h>
42   -// #include <string.h>
  41 +// #include <dlfcn.h>
43 42 // #elif defined(_WIN32)
44 43 // #define WIN32_LEAN_AND_MEAN 1
45 44 // #include <windows.h>
@@ -181,18 +180,7 @@ package gl21
181 180 //
182 181 // void* goglGetProcAddress(const char* name) {
183 182 // #ifdef __APPLE__
184   -// NSSymbol symbol;
185   -// char symbolname[1024];
186   -// symbolname[0] = '_';
187   -// strcpy(symbolname + 1, name);
188   -// symbol = NULL;
189   -// if(NSIsSymbolNameDefined(symbolname)) {
190   -// symbol = NSLookupAndBindSymbol(symbolname);
191   -// if (symbol) {
192   -// return NSAddressOfSymbol(symbol);
193   -// }
194   -// }
195   -// return NULL;
  183 +// return dlsym(RTLD_DEFAULT, name);
196 184 // #elif _WIN32
197 185 // void* pf = wglGetProcAddress((LPCSTR)name);
198 186 // if(pf) {
@@ -2567,65 +2555,346 @@ package gl21
2567 2555 // (*ptrglMultTransposeMatrixd)(m);
2568 2556 // }
2569 2557 //
2570   -// int init_VERSION_1_4() {
2571   -// ptrglBlendFuncSeparate = goglGetProcAddress("glBlendFuncSeparate");
2572   -// if(ptrglBlendFuncSeparate == NULL) return 1;
2573   -// ptrglMultiDrawArrays = goglGetProcAddress("glMultiDrawArrays");
2574   -// if(ptrglMultiDrawArrays == NULL) return 1;
2575   -// ptrglMultiDrawElements = goglGetProcAddress("glMultiDrawElements");
2576   -// if(ptrglMultiDrawElements == NULL) return 1;
2577   -// ptrglPointParameterf = goglGetProcAddress("glPointParameterf");
2578   -// if(ptrglPointParameterf == NULL) return 1;
2579   -// ptrglPointParameterfv = goglGetProcAddress("glPointParameterfv");
2580   -// if(ptrglPointParameterfv == NULL) return 1;
2581   -// ptrglPointParameteri = goglGetProcAddress("glPointParameteri");
2582   -// if(ptrglPointParameteri == NULL) return 1;
2583   -// ptrglPointParameteriv = goglGetProcAddress("glPointParameteriv");
2584   -// if(ptrglPointParameteriv == NULL) return 1;
  2558 +// int init_VERSION_2_1() {
  2559 +// ptrglUniformMatrix2x3fv = goglGetProcAddress("glUniformMatrix2x3fv");
  2560 +// if(ptrglUniformMatrix2x3fv == NULL) return 1;
  2561 +// ptrglUniformMatrix3x2fv = goglGetProcAddress("glUniformMatrix3x2fv");
  2562 +// if(ptrglUniformMatrix3x2fv == NULL) return 1;
  2563 +// ptrglUniformMatrix2x4fv = goglGetProcAddress("glUniformMatrix2x4fv");
  2564 +// if(ptrglUniformMatrix2x4fv == NULL) return 1;
  2565 +// ptrglUniformMatrix4x2fv = goglGetProcAddress("glUniformMatrix4x2fv");
  2566 +// if(ptrglUniformMatrix4x2fv == NULL) return 1;
  2567 +// ptrglUniformMatrix3x4fv = goglGetProcAddress("glUniformMatrix3x4fv");
  2568 +// if(ptrglUniformMatrix3x4fv == NULL) return 1;
  2569 +// ptrglUniformMatrix4x3fv = goglGetProcAddress("glUniformMatrix4x3fv");
  2570 +// if(ptrglUniformMatrix4x3fv == NULL) return 1;
2585 2571 // return 0;
2586 2572 // }
2587   -// int init_VERSION_1_5() {
2588   -// ptrglGenQueries = goglGetProcAddress("glGenQueries");
2589   -// if(ptrglGenQueries == NULL) return 1;
2590   -// ptrglDeleteQueries = goglGetProcAddress("glDeleteQueries");
2591   -// if(ptrglDeleteQueries == NULL) return 1;
2592   -// ptrglIsQuery = goglGetProcAddress("glIsQuery");
2593   -// if(ptrglIsQuery == NULL) return 1;
2594   -// ptrglBeginQuery = goglGetProcAddress("glBeginQuery");
2595   -// if(ptrglBeginQuery == NULL) return 1;
2596   -// ptrglEndQuery = goglGetProcAddress("glEndQuery");
2597   -// if(ptrglEndQuery == NULL) return 1;
2598   -// ptrglGetQueryiv = goglGetProcAddress("glGetQueryiv");
2599   -// if(ptrglGetQueryiv == NULL) return 1;
2600   -// ptrglGetQueryObjectiv = goglGetProcAddress("glGetQueryObjectiv");
2601   -// if(ptrglGetQueryObjectiv == NULL) return 1;
2602   -// ptrglGetQueryObjectuiv = goglGetProcAddress("glGetQueryObjectuiv");
2603   -// if(ptrglGetQueryObjectuiv == NULL) return 1;
2604   -// ptrglBindBuffer = goglGetProcAddress("glBindBuffer");
2605   -// if(ptrglBindBuffer == NULL) return 1;
2606   -// ptrglDeleteBuffers = goglGetProcAddress("glDeleteBuffers");
2607   -// if(ptrglDeleteBuffers == NULL) return 1;
2608   -// ptrglGenBuffers = goglGetProcAddress("glGenBuffers");
2609   -// if(ptrglGenBuffers == NULL) return 1;
2610   -// ptrglIsBuffer = goglGetProcAddress("glIsBuffer");
2611   -// if(ptrglIsBuffer == NULL) return 1;
2612   -// ptrglBufferData = goglGetProcAddress("glBufferData");
2613   -// if(ptrglBufferData == NULL) return 1;
2614   -// ptrglBufferSubData = goglGetProcAddress("glBufferSubData");
2615   -// if(ptrglBufferSubData == NULL) return 1;
2616   -// ptrglGetBufferSubData = goglGetProcAddress("glGetBufferSubData");
2617   -// if(ptrglGetBufferSubData == NULL) return 1;
2618   -// ptrglMapBuffer = goglGetProcAddress("glMapBuffer");
2619   -// if(ptrglMapBuffer == NULL) return 1;
2620   -// ptrglUnmapBuffer = goglGetProcAddress("glUnmapBuffer");
2621   -// if(ptrglUnmapBuffer == NULL) return 1;
2622   -// ptrglGetBufferParameteriv = goglGetProcAddress("glGetBufferParameteriv");
2623   -// if(ptrglGetBufferParameteriv == NULL) return 1;
2624   -// ptrglGetBufferPointerv = goglGetProcAddress("glGetBufferPointerv");
2625   -// if(ptrglGetBufferPointerv == NULL) return 1;
  2573 +// int init_VERSION_2_0() {
  2574 +// ptrglBlendEquationSeparate = goglGetProcAddress("glBlendEquationSeparate");
  2575 +// if(ptrglBlendEquationSeparate == NULL) return 1;
  2576 +// ptrglDrawBuffers = goglGetProcAddress("glDrawBuffers");
  2577 +// if(ptrglDrawBuffers == NULL) return 1;
  2578 +// ptrglStencilOpSeparate = goglGetProcAddress("glStencilOpSeparate");
  2579 +// if(ptrglStencilOpSeparate == NULL) return 1;
  2580 +// ptrglStencilFuncSeparate = goglGetProcAddress("glStencilFuncSeparate");
  2581 +// if(ptrglStencilFuncSeparate == NULL) return 1;
  2582 +// ptrglStencilMaskSeparate = goglGetProcAddress("glStencilMaskSeparate");
  2583 +// if(ptrglStencilMaskSeparate == NULL) return 1;
  2584 +// ptrglAttachShader = goglGetProcAddress("glAttachShader");
  2585 +// if(ptrglAttachShader == NULL) return 1;
  2586 +// ptrglBindAttribLocation = goglGetProcAddress("glBindAttribLocation");
  2587 +// if(ptrglBindAttribLocation == NULL) return 1;
  2588 +// ptrglCompileShader = goglGetProcAddress("glCompileShader");
  2589 +// if(ptrglCompileShader == NULL) return 1;
  2590 +// ptrglCreateProgram = goglGetProcAddress("glCreateProgram");
  2591 +// if(ptrglCreateProgram == NULL) return 1;
  2592 +// ptrglCreateShader = goglGetProcAddress("glCreateShader");
  2593 +// if(ptrglCreateShader == NULL) return 1;
  2594 +// ptrglDeleteProgram = goglGetProcAddress("glDeleteProgram");
  2595 +// if(ptrglDeleteProgram == NULL) return 1;
  2596 +// ptrglDeleteShader = goglGetProcAddress("glDeleteShader");
  2597 +// if(ptrglDeleteShader == NULL) return 1;
  2598 +// ptrglDetachShader = goglGetProcAddress("glDetachShader");
  2599 +// if(ptrglDetachShader == NULL) return 1;
  2600 +// ptrglDisableVertexAttribArray = goglGetProcAddress("glDisableVertexAttribArray");
  2601 +// if(ptrglDisableVertexAttribArray == NULL) return 1;
  2602 +// ptrglEnableVertexAttribArray = goglGetProcAddress("glEnableVertexAttribArray");
  2603 +// if(ptrglEnableVertexAttribArray == NULL) return 1;
  2604 +// ptrglGetActiveAttrib = goglGetProcAddress("glGetActiveAttrib");
  2605 +// if(ptrglGetActiveAttrib == NULL) return 1;
  2606 +// ptrglGetActiveUniform = goglGetProcAddress("glGetActiveUniform");
  2607 +// if(ptrglGetActiveUniform == NULL) return 1;
  2608 +// ptrglGetAttachedShaders = goglGetProcAddress("glGetAttachedShaders");
  2609 +// if(ptrglGetAttachedShaders == NULL) return 1;
  2610 +// ptrglGetAttribLocation = goglGetProcAddress("glGetAttribLocation");
  2611 +// if(ptrglGetAttribLocation == NULL) return 1;
  2612 +// ptrglGetProgramiv = goglGetProcAddress("glGetProgramiv");
  2613 +// if(ptrglGetProgramiv == NULL) return 1;
  2614 +// ptrglGetProgramInfoLog = goglGetProcAddress("glGetProgramInfoLog");
  2615 +// if(ptrglGetProgramInfoLog == NULL) return 1;
  2616 +// ptrglGetShaderiv = goglGetProcAddress("glGetShaderiv");
  2617 +// if(ptrglGetShaderiv == NULL) return 1;
  2618 +// ptrglGetShaderInfoLog = goglGetProcAddress("glGetShaderInfoLog");
  2619 +// if(ptrglGetShaderInfoLog == NULL) return 1;
  2620 +// ptrglGetShaderSource = goglGetProcAddress("glGetShaderSource");
  2621 +// if(ptrglGetShaderSource == NULL) return 1;
  2622 +// ptrglGetUniformLocation = goglGetProcAddress("glGetUniformLocation");
  2623 +// if(ptrglGetUniformLocation == NULL) return 1;
  2624 +// ptrglGetUniformfv = goglGetProcAddress("glGetUniformfv");
  2625 +// if(ptrglGetUniformfv == NULL) return 1;
  2626 +// ptrglGetUniformiv = goglGetProcAddress("glGetUniformiv");
  2627 +// if(ptrglGetUniformiv == NULL) return 1;
  2628 +// ptrglGetVertexAttribdv = goglGetProcAddress("glGetVertexAttribdv");
  2629 +// if(ptrglGetVertexAttribdv == NULL) return 1;
  2630 +// ptrglGetVertexAttribfv = goglGetProcAddress("glGetVertexAttribfv");
  2631 +// if(ptrglGetVertexAttribfv == NULL) return 1;
  2632 +// ptrglGetVertexAttribiv = goglGetProcAddress("glGetVertexAttribiv");
  2633 +// if(ptrglGetVertexAttribiv == NULL) return 1;
  2634 +// ptrglGetVertexAttribPointerv = goglGetProcAddress("glGetVertexAttribPointerv");
  2635 +// if(ptrglGetVertexAttribPointerv == NULL) return 1;
  2636 +// ptrglIsProgram = goglGetProcAddress("glIsProgram");
  2637 +// if(ptrglIsProgram == NULL) return 1;
  2638 +// ptrglIsShader = goglGetProcAddress("glIsShader");
  2639 +// if(ptrglIsShader == NULL) return 1;
  2640 +// ptrglLinkProgram = goglGetProcAddress("glLinkProgram");
  2641 +// if(ptrglLinkProgram == NULL) return 1;
  2642 +// ptrglShaderSource = goglGetProcAddress("glShaderSource");
  2643 +// if(ptrglShaderSource == NULL) return 1;
  2644 +// ptrglUseProgram = goglGetProcAddress("glUseProgram");
  2645 +// if(ptrglUseProgram == NULL) return 1;
  2646 +// ptrglUniform1f = goglGetProcAddress("glUniform1f");
  2647 +// if(ptrglUniform1f == NULL) return 1;
  2648 +// ptrglUniform2f = goglGetProcAddress("glUniform2f");
  2649 +// if(ptrglUniform2f == NULL) return 1;
  2650 +// ptrglUniform3f = goglGetProcAddress("glUniform3f");
  2651 +// if(ptrglUniform3f == NULL) return 1;
  2652 +// ptrglUniform4f = goglGetProcAddress("glUniform4f");
  2653 +// if(ptrglUniform4f == NULL) return 1;
  2654 +// ptrglUniform1i = goglGetProcAddress("glUniform1i");
  2655 +// if(ptrglUniform1i == NULL) return 1;
  2656 +// ptrglUniform2i = goglGetProcAddress("glUniform2i");
  2657 +// if(ptrglUniform2i == NULL) return 1;
  2658 +// ptrglUniform3i = goglGetProcAddress("glUniform3i");
  2659 +// if(ptrglUniform3i == NULL) return 1;
  2660 +// ptrglUniform4i = goglGetProcAddress("glUniform4i");
  2661 +// if(ptrglUniform4i == NULL) return 1;
  2662 +// ptrglUniform1fv = goglGetProcAddress("glUniform1fv");
  2663 +// if(ptrglUniform1fv == NULL) return 1;
  2664 +// ptrglUniform2fv = goglGetProcAddress("glUniform2fv");
  2665 +// if(ptrglUniform2fv == NULL) return 1;
  2666 +// ptrglUniform3fv = goglGetProcAddress("glUniform3fv");
  2667 +// if(ptrglUniform3fv == NULL) return 1;
  2668 +// ptrglUniform4fv = goglGetProcAddress("glUniform4fv");
  2669 +// if(ptrglUniform4fv == NULL) return 1;
  2670 +// ptrglUniform1iv = goglGetProcAddress("glUniform1iv");
  2671 +// if(ptrglUniform1iv == NULL) return 1;
  2672 +// ptrglUniform2iv = goglGetProcAddress("glUniform2iv");
  2673 +// if(ptrglUniform2iv == NULL) return 1;
  2674 +// ptrglUniform3iv = goglGetProcAddress("glUniform3iv");
  2675 +// if(ptrglUniform3iv == NULL) return 1;
  2676 +// ptrglUniform4iv = goglGetProcAddress("glUniform4iv");
  2677 +// if(ptrglUniform4iv == NULL) return 1;
  2678 +// ptrglUniformMatrix2fv = goglGetProcAddress("glUniformMatrix2fv");
  2679 +// if(ptrglUniformMatrix2fv == NULL) return 1;
  2680 +// ptrglUniformMatrix3fv = goglGetProcAddress("glUniformMatrix3fv");
  2681 +// if(ptrglUniformMatrix3fv == NULL) return 1;
  2682 +// ptrglUniformMatrix4fv = goglGetProcAddress("glUniformMatrix4fv");
  2683 +// if(ptrglUniformMatrix4fv == NULL) return 1;
  2684 +// ptrglValidateProgram = goglGetProcAddress("glValidateProgram");
  2685 +// if(ptrglValidateProgram == NULL) return 1;
  2686 +// ptrglVertexAttrib1d = goglGetProcAddress("glVertexAttrib1d");
  2687 +// if(ptrglVertexAttrib1d == NULL) return 1;
  2688 +// ptrglVertexAttrib1dv = goglGetProcAddress("glVertexAttrib1dv");
  2689 +// if(ptrglVertexAttrib1dv == NULL) return 1;
  2690 +// ptrglVertexAttrib1f = goglGetProcAddress("glVertexAttrib1f");
  2691 +// if(ptrglVertexAttrib1f == NULL) return 1;
  2692 +// ptrglVertexAttrib1fv = goglGetProcAddress("glVertexAttrib1fv");
  2693 +// if(ptrglVertexAttrib1fv == NULL) return 1;
  2694 +// ptrglVertexAttrib1s = goglGetProcAddress("glVertexAttrib1s");
  2695 +// if(ptrglVertexAttrib1s == NULL) return 1;
  2696 +// ptrglVertexAttrib1sv = goglGetProcAddress("glVertexAttrib1sv");
  2697 +// if(ptrglVertexAttrib1sv == NULL) return 1;
  2698 +// ptrglVertexAttrib2d = goglGetProcAddress("glVertexAttrib2d");
  2699 +// if(ptrglVertexAttrib2d == NULL) return 1;
  2700 +// ptrglVertexAttrib2dv = goglGetProcAddress("glVertexAttrib2dv");
  2701 +// if(ptrglVertexAttrib2dv == NULL) return 1;
  2702 +// ptrglVertexAttrib2f = goglGetProcAddress("glVertexAttrib2f");
  2703 +// if(ptrglVertexAttrib2f == NULL) return 1;
  2704 +// ptrglVertexAttrib2fv = goglGetProcAddress("glVertexAttrib2fv");
  2705 +// if(ptrglVertexAttrib2fv == NULL) return 1;
  2706 +// ptrglVertexAttrib2s = goglGetProcAddress("glVertexAttrib2s");
  2707 +// if(ptrglVertexAttrib2s == NULL) return 1;
  2708 +// ptrglVertexAttrib2sv = goglGetProcAddress("glVertexAttrib2sv");
  2709 +// if(ptrglVertexAttrib2sv == NULL) return 1;
  2710 +// ptrglVertexAttrib3d = goglGetProcAddress("glVertexAttrib3d");
  2711 +// if(ptrglVertexAttrib3d == NULL) return 1;
  2712 +// ptrglVertexAttrib3dv = goglGetProcAddress("glVertexAttrib3dv");
  2713 +// if(ptrglVertexAttrib3dv == NULL) return 1;
  2714 +// ptrglVertexAttrib3f = goglGetProcAddress("glVertexAttrib3f");
  2715 +// if(ptrglVertexAttrib3f == NULL) return 1;
  2716 +// ptrglVertexAttrib3fv = goglGetProcAddress("glVertexAttrib3fv");
  2717 +// if(ptrglVertexAttrib3fv == NULL) return 1;
  2718 +// ptrglVertexAttrib3s = goglGetProcAddress("glVertexAttrib3s");
  2719 +// if(ptrglVertexAttrib3s == NULL) return 1;
  2720 +// ptrglVertexAttrib3sv = goglGetProcAddress("glVertexAttrib3sv");
  2721 +// if(ptrglVertexAttrib3sv == NULL) return 1;
  2722 +// ptrglVertexAttrib4Nbv = goglGetProcAddress("glVertexAttrib4Nbv");
  2723 +// if(ptrglVertexAttrib4Nbv == NULL) return 1;
  2724 +// ptrglVertexAttrib4Niv = goglGetProcAddress("glVertexAttrib4Niv");
  2725 +// if(ptrglVertexAttrib4Niv == NULL) return 1;
  2726 +// ptrglVertexAttrib4Nsv = goglGetProcAddress("glVertexAttrib4Nsv");
  2727 +// if(ptrglVertexAttrib4Nsv == NULL) return 1;
  2728 +// ptrglVertexAttrib4Nub = goglGetProcAddress("glVertexAttrib4Nub");
  2729 +// if(ptrglVertexAttrib4Nub == NULL) return 1;
  2730 +// ptrglVertexAttrib4Nubv = goglGetProcAddress("glVertexAttrib4Nubv");
  2731 +// if(ptrglVertexAttrib4Nubv == NULL) return 1;
  2732 +// ptrglVertexAttrib4Nuiv = goglGetProcAddress("glVertexAttrib4Nuiv");
  2733 +// if(ptrglVertexAttrib4Nuiv == NULL) return 1;
  2734 +// ptrglVertexAttrib4Nusv = goglGetProcAddress("glVertexAttrib4Nusv");
  2735 +// if(ptrglVertexAttrib4Nusv == NULL) return 1;
  2736 +// ptrglVertexAttrib4bv = goglGetProcAddress("glVertexAttrib4bv");
  2737 +// if(ptrglVertexAttrib4bv == NULL) return 1;
  2738 +// ptrglVertexAttrib4d = goglGetProcAddress("glVertexAttrib4d");
  2739 +// if(ptrglVertexAttrib4d == NULL) return 1;
  2740 +// ptrglVertexAttrib4dv = goglGetProcAddress("glVertexAttrib4dv");
  2741 +// if(ptrglVertexAttrib4dv == NULL) return 1;
  2742 +// ptrglVertexAttrib4f = goglGetProcAddress("glVertexAttrib4f");
  2743 +// if(ptrglVertexAttrib4f == NULL) return 1;
  2744 +// ptrglVertexAttrib4fv = goglGetProcAddress("glVertexAttrib4fv");
  2745 +// if(ptrglVertexAttrib4fv == NULL) return 1;
  2746 +// ptrglVertexAttrib4iv = goglGetProcAddress("glVertexAttrib4iv");
  2747 +// if(ptrglVertexAttrib4iv == NULL) return 1;
  2748 +// ptrglVertexAttrib4s = goglGetProcAddress("glVertexAttrib4s");
  2749 +// if(ptrglVertexAttrib4s == NULL) return 1;
  2750 +// ptrglVertexAttrib4sv = goglGetProcAddress("glVertexAttrib4sv");
  2751 +// if(ptrglVertexAttrib4sv == NULL) return 1;
  2752 +// ptrglVertexAttrib4ubv = goglGetProcAddress("glVertexAttrib4ubv");
  2753 +// if(ptrglVertexAttrib4ubv == NULL) return 1;
  2754 +// ptrglVertexAttrib4uiv = goglGetProcAddress("glVertexAttrib4uiv");
  2755 +// if(ptrglVertexAttrib4uiv == NULL) return 1;
  2756 +// ptrglVertexAttrib4usv = goglGetProcAddress("glVertexAttrib4usv");
  2757 +// if(ptrglVertexAttrib4usv == NULL) return 1;
  2758 +// ptrglVertexAttribPointer = goglGetProcAddress("glVertexAttribPointer");
  2759 +// if(ptrglVertexAttribPointer == NULL) return 1;
2626 2760 // return 0;
2627 2761 // }
2628   -// int init_VERSION_1_0() {
  2762 +// int init_VERSION_1_3_DEPRECATED() {
  2763 +// ptrglClientActiveTexture = goglGetProcAddress("glClientActiveTexture");
  2764 +// if(ptrglClientActiveTexture == NULL) return 1;
  2765 +// ptrglMultiTexCoord1d = goglGetProcAddress("glMultiTexCoord1d");
  2766 +// if(ptrglMultiTexCoord1d == NULL) return 1;
  2767 +// ptrglMultiTexCoord1dv = goglGetProcAddress("glMultiTexCoord1dv");
  2768 +// if(ptrglMultiTexCoord1dv == NULL) return 1;
  2769 +// ptrglMultiTexCoord1f = goglGetProcAddress("glMultiTexCoord1f");
  2770 +// if(ptrglMultiTexCoord1f == NULL) return 1;
  2771 +// ptrglMultiTexCoord1fv = goglGetProcAddress("glMultiTexCoord1fv");
  2772 +// if(ptrglMultiTexCoord1fv == NULL) return 1;
  2773 +// ptrglMultiTexCoord1i = goglGetProcAddress("glMultiTexCoord1i");
  2774 +// if(ptrglMultiTexCoord1i == NULL) return 1;
  2775 +// ptrglMultiTexCoord1iv = goglGetProcAddress("glMultiTexCoord1iv");
  2776 +// if(ptrglMultiTexCoord1iv == NULL) return 1;
  2777 +// ptrglMultiTexCoord1s = goglGetProcAddress("glMultiTexCoord1s");
  2778 +// if(ptrglMultiTexCoord1s == NULL) return 1;
  2779 +// ptrglMultiTexCoord1sv = goglGetProcAddress("glMultiTexCoord1sv");
  2780 +// if(ptrglMultiTexCoord1sv == NULL) return 1;
  2781 +// ptrglMultiTexCoord2d = goglGetProcAddress("glMultiTexCoord2d");
  2782 +// if(ptrglMultiTexCoord2d == NULL) return 1;
  2783 +// ptrglMultiTexCoord2dv = goglGetProcAddress("glMultiTexCoord2dv");
  2784 +// if(ptrglMultiTexCoord2dv == NULL) return 1;
  2785 +// ptrglMultiTexCoord2f = goglGetProcAddress("glMultiTexCoord2f");
  2786 +// if(ptrglMultiTexCoord2f == NULL) return 1;
  2787 +// ptrglMultiTexCoord2fv = goglGetProcAddress("glMultiTexCoord2fv");
  2788 +// if(ptrglMultiTexCoord2fv == NULL) return 1;
  2789 +// ptrglMultiTexCoord2i = goglGetProcAddress("glMultiTexCoord2i");
  2790 +// if(ptrglMultiTexCoord2i == NULL) return 1;
  2791 +// ptrglMultiTexCoord2iv = goglGetProcAddress("glMultiTexCoord2iv");
  2792 +// if(ptrglMultiTexCoord2iv == NULL) return 1;
  2793 +// ptrglMultiTexCoord2s = goglGetProcAddress("glMultiTexCoord2s");
  2794 +// if(ptrglMultiTexCoord2s == NULL) return 1;
  2795 +// ptrglMultiTexCoord2sv = goglGetProcAddress("glMultiTexCoord2sv");
  2796 +// if(ptrglMultiTexCoord2sv == NULL) return 1;
  2797 +// ptrglMultiTexCoord3d = goglGetProcAddress("glMultiTexCoord3d");
  2798 +// if(ptrglMultiTexCoord3d == NULL) return 1;
  2799 +// ptrglMultiTexCoord3dv = goglGetProcAddress("glMultiTexCoord3dv");
  2800 +// if(ptrglMultiTexCoord3dv == NULL) return 1;
  2801 +// ptrglMultiTexCoord3f = goglGetProcAddress("glMultiTexCoord3f");
  2802 +// if(ptrglMultiTexCoord3f == NULL) return 1;
  2803 +// ptrglMultiTexCoord3fv = goglGetProcAddress("glMultiTexCoord3fv");
  2804 +// if(ptrglMultiTexCoord3fv == NULL) return 1;
  2805 +// ptrglMultiTexCoord3i = goglGetProcAddress("glMultiTexCoord3i");
  2806 +// if(ptrglMultiTexCoord3i == NULL) return 1;
  2807 +// ptrglMultiTexCoord3iv = goglGetProcAddress("glMultiTexCoord3iv");
  2808 +// if(ptrglMultiTexCoord3iv == NULL) return 1;
  2809 +// ptrglMultiTexCoord3s = goglGetProcAddress("glMultiTexCoord3s");
  2810 +// if(ptrglMultiTexCoord3s == NULL) return 1;
  2811 +// ptrglMultiTexCoord3sv = goglGetProcAddress("glMultiTexCoord3sv");
  2812 +// if(ptrglMultiTexCoord3sv == NULL) return 1;
  2813 +// ptrglMultiTexCoord4d = goglGetProcAddress("glMultiTexCoord4d");
  2814 +// if(ptrglMultiTexCoord4d == NULL) return 1;
  2815 +// ptrglMultiTexCoord4dv = goglGetProcAddress("glMultiTexCoord4dv");
  2816 +// if(ptrglMultiTexCoord4dv == NULL) return 1;
  2817 +// ptrglMultiTexCoord4f = goglGetProcAddress("glMultiTexCoord4f");
  2818 +// if(ptrglMultiTexCoord4f == NULL) return 1;
  2819 +// ptrglMultiTexCoord4fv = goglGetProcAddress("glMultiTexCoord4fv");
  2820 +// if(ptrglMultiTexCoord4fv == NULL) return 1;
  2821 +// ptrglMultiTexCoord4i = goglGetProcAddress("glMultiTexCoord4i");
  2822 +// if(ptrglMultiTexCoord4i == NULL) return 1;
  2823 +// ptrglMultiTexCoord4iv = goglGetProcAddress("glMultiTexCoord4iv");
  2824 +// if(ptrglMultiTexCoord4iv == NULL) return 1;
  2825 +// ptrglMultiTexCoord4s = goglGetProcAddress("glMultiTexCoord4s");
  2826 +// if(ptrglMultiTexCoord4s == NULL) return 1;
  2827 +// ptrglMultiTexCoord4sv = goglGetProcAddress("glMultiTexCoord4sv");
  2828 +// if(ptrglMultiTexCoord4sv == NULL) return 1;
  2829 +// ptrglLoadTransposeMatrixf = goglGetProcAddress("glLoadTransposeMatrixf");
  2830 +// if(ptrglLoadTransposeMatrixf == NULL) return 1;
  2831 +// ptrglLoadTransposeMatrixd = goglGetProcAddress("glLoadTransposeMatrixd");
  2832 +// if(ptrglLoadTransposeMatrixd == NULL) return 1;
  2833 +// ptrglMultTransposeMatrixf = goglGetProcAddress("glMultTransposeMatrixf");
  2834 +// if(ptrglMultTransposeMatrixf == NULL) return 1;
  2835 +// ptrglMultTransposeMatrixd = goglGetProcAddress("glMultTransposeMatrixd");
  2836 +// if(ptrglMultTransposeMatrixd == NULL) return 1;
  2837 +// return 0;
  2838 +// }
  2839 +// int init_VERSION_1_4() {
  2840 +// ptrglBlendFuncSeparate = goglGetProcAddress("glBlendFuncSeparate");
  2841 +// if(ptrglBlendFuncSeparate == NULL) return 1;
  2842 +// ptrglMultiDrawArrays = goglGetProcAddress("glMultiDrawArrays");
  2843 +// if(ptrglMultiDrawArrays == NULL) return 1;
  2844 +// ptrglMultiDrawElements = goglGetProcAddress("glMultiDrawElements");
  2845 +// if(ptrglMultiDrawElements == NULL) return 1;
  2846 +// ptrglPointParameterf = goglGetProcAddress("glPointParameterf");
  2847 +// if(ptrglPointParameterf == NULL) return 1;
  2848 +// ptrglPointParameterfv = goglGetProcAddress("glPointParameterfv");
  2849 +// if(ptrglPointParameterfv == NULL) return 1;
  2850 +// ptrglPointParameteri = goglGetProcAddress("glPointParameteri");
  2851 +// if(ptrglPointParameteri == NULL) return 1;
  2852 +// ptrglPointParameteriv = goglGetProcAddress("glPointParameteriv");
  2853 +// if(ptrglPointParameteriv == NULL) return 1;
  2854 +// return 0;
  2855 +// }
  2856 +// int init_VERSION_1_5() {
  2857 +// ptrglGenQueries = goglGetProcAddress("glGenQueries");
  2858 +// if(ptrglGenQueries == NULL) return 1;
  2859 +// ptrglDeleteQueries = goglGetProcAddress("glDeleteQueries");
  2860 +// if(ptrglDeleteQueries == NULL) return 1;
  2861 +// ptrglIsQuery = goglGetProcAddress("glIsQuery");
  2862 +// if(ptrglIsQuery == NULL) return 1;
  2863 +// ptrglBeginQuery = goglGetProcAddress("glBeginQuery");
  2864 +// if(ptrglBeginQuery == NULL) return 1;
  2865 +// ptrglEndQuery = goglGetProcAddress("glEndQuery");
  2866 +// if(ptrglEndQuery == NULL) return 1;
  2867 +// ptrglGetQueryiv = goglGetProcAddress("glGetQueryiv");
  2868 +// if(ptrglGetQueryiv == NULL) return 1;
  2869 +// ptrglGetQueryObjectiv = goglGetProcAddress("glGetQueryObjectiv");
  2870 +// if(ptrglGetQueryObjectiv == NULL) return 1;
  2871 +// ptrglGetQueryObjectuiv = goglGetProcAddress("glGetQueryObjectuiv");
  2872 +// if(ptrglGetQueryObjectuiv == NULL) return 1;
  2873 +// ptrglBindBuffer = goglGetProcAddress("glBindBuffer");
  2874 +// if(ptrglBindBuffer == NULL) return 1;
  2875 +// ptrglDeleteBuffers = goglGetProcAddress("glDeleteBuffers");
  2876 +// if(ptrglDeleteBuffers == NULL) return 1;
  2877 +// ptrglGenBuffers = goglGetProcAddress("glGenBuffers");
  2878 +// if(ptrglGenBuffers == NULL) return 1;
  2879 +// ptrglIsBuffer = goglGetProcAddress("glIsBuffer");
  2880 +// if(ptrglIsBuffer == NULL) return 1;
  2881 +// ptrglBufferData = goglGetProcAddress("glBufferData");
  2882 +// if(ptrglBufferData == NULL) return 1;
  2883 +// ptrglBufferSubData = goglGetProcAddress("glBufferSubData");
  2884 +// if(ptrglBufferSubData == NULL) return 1;
  2885 +// ptrglGetBufferSubData = goglGetProcAddress("glGetBufferSubData");
  2886 +// if(ptrglGetBufferSubData == NULL) return 1;
  2887 +// ptrglMapBuffer = goglGetProcAddress("glMapBuffer");
  2888 +// if(ptrglMapBuffer == NULL) return 1;
  2889 +// ptrglUnmapBuffer = goglGetProcAddress("glUnmapBuffer");
  2890 +// if(ptrglUnmapBuffer == NULL) return 1;
  2891 +// ptrglGetBufferParameteriv = goglGetProcAddress("glGetBufferParameteriv");
  2892 +// if(ptrglGetBufferParameteriv == NULL) return 1;
  2893 +// ptrglGetBufferPointerv = goglGetProcAddress("glGetBufferPointerv");
  2894 +// if(ptrglGetBufferPointerv == NULL) return 1;
  2895 +// return 0;
  2896 +// }
  2897 +// int init_VERSION_1_0() {
2629 2898 // ptrglCullFace = goglGetProcAddress("glCullFace");
2630 2899 // if(ptrglCullFace == NULL) return 1;
2631 2900 // ptrglFrontFace = goglGetProcAddress("glFrontFace");
@@ -3491,287 +3760,6 @@ package gl21
3491 3760 // if(ptrglResetMinmax == NULL) return 1;
3492 3761 // return 0;
3493 3762 // }
3494   -// int init_VERSION_2_1() {
3495   -// ptrglUniformMatrix2x3fv = goglGetProcAddress("glUniformMatrix2x3fv");
3496   -// if(ptrglUniformMatrix2x3fv == NULL) return 1;
3497   -// ptrglUniformMatrix3x2fv = goglGetProcAddress("glUniformMatrix3x2fv");
3498   -// if(ptrglUniformMatrix3x2fv == NULL) return 1;
3499   -// ptrglUniformMatrix2x4fv = goglGetProcAddress("glUniformMatrix2x4fv");
3500   -// if(ptrglUniformMatrix2x4fv == NULL) return 1;
3501   -// ptrglUniformMatrix4x2fv = goglGetProcAddress("glUniformMatrix4x2fv");
3502   -// if(ptrglUniformMatrix4x2fv == NULL) return 1;
3503   -// ptrglUniformMatrix3x4fv = goglGetProcAddress("glUniformMatrix3x4fv");
3504   -// if(ptrglUniformMatrix3x4fv == NULL) return 1;
3505   -// ptrglUniformMatrix4x3fv = goglGetProcAddress("glUniformMatrix4x3fv");
3506   -// if(ptrglUniformMatrix4x3fv == NULL) return 1;
3507   -// return 0;
3508   -// }
3509   -// int init_VERSION_2_0() {
3510   -// ptrglBlendEquationSeparate = goglGetProcAddress("glBlendEquationSeparate");
3511   -// if(ptrglBlendEquationSeparate == NULL) return 1;
3512   -// ptrglDrawBuffers = goglGetProcAddress("glDrawBuffers");
3513   -// if(ptrglDrawBuffers == NULL) return 1;
3514   -// ptrglStencilOpSeparate = goglGetProcAddress("glStencilOpSeparate");
3515   -// if(ptrglStencilOpSeparate == NULL) return 1;
3516   -// ptrglStencilFuncSeparate = goglGetProcAddress("glStencilFuncSeparate");
3517   -// if(ptrglStencilFuncSeparate == NULL) return 1;
3518   -// ptrglStencilMaskSeparate = goglGetProcAddress("glStencilMaskSeparate");
3519   -// if(ptrglStencilMaskSeparate == NULL) return 1;
3520   -// ptrglAttachShader = goglGetProcAddress("glAttachShader");
3521   -// if(ptrglAttachShader == NULL) return 1;
3522   -// ptrglBindAttribLocation = goglGetProcAddress("glBindAttribLocation");
3523   -// if(ptrglBindAttribLocation == NULL) return 1;
3524   -// ptrglCompileShader = goglGetProcAddress("glCompileShader");
3525   -// if(ptrglCompileShader == NULL) return 1;
3526   -// ptrglCreateProgram = goglGetProcAddress("glCreateProgram");
3527   -// if(ptrglCreateProgram == NULL) return 1;
3528   -// ptrglCreateShader = goglGetProcAddress("glCreateShader");
3529   -// if(ptrglCreateShader == NULL) return 1;
3530   -// ptrglDeleteProgram = goglGetProcAddress("glDeleteProgram");
3531   -// if(ptrglDeleteProgram == NULL) return 1;
3532   -// ptrglDeleteShader = goglGetProcAddress("glDeleteShader");
3533   -// if(ptrglDeleteShader == NULL) return 1;
3534   -// ptrglDetachShader = goglGetProcAddress("glDetachShader");
3535   -// if(ptrglDetachShader == NULL) return 1;
3536   -// ptrglDisableVertexAttribArray = goglGetProcAddress("glDisableVertexAttribArray");
3537   -// if(ptrglDisableVertexAttribArray == NULL) return 1;
3538   -// ptrglEnableVertexAttribArray = goglGetProcAddress("glEnableVertexAttribArray");
3539   -// if(ptrglEnableVertexAttribArray == NULL) return 1;
3540   -// ptrglGetActiveAttrib = goglGetProcAddress("glGetActiveAttrib");
3541   -// if(ptrglGetActiveAttrib == NULL) return 1;
3542   -// ptrglGetActiveUniform = goglGetProcAddress("glGetActiveUniform");
3543   -// if(ptrglGetActiveUniform == NULL) return 1;
3544   -// ptrglGetAttachedShaders = goglGetProcAddress("glGetAttachedShaders");
3545   -// if(ptrglGetAttachedShaders == NULL) return 1;
3546   -// ptrglGetAttribLocation = goglGetProcAddress("glGetAttribLocation");
3547   -// if(ptrglGetAttribLocation == NULL) return 1;
3548   -// ptrglGetProgramiv = goglGetProcAddress("glGetProgramiv");
3549   -// if(ptrglGetProgramiv == NULL) return 1;
3550   -// ptrglGetProgramInfoLog = goglGetProcAddress("glGetProgramInfoLog");
3551   -// if(ptrglGetProgramInfoLog == NULL) return 1;
3552   -// ptrglGetShaderiv = goglGetProcAddress("glGetShaderiv");
3553   -// if(ptrglGetShaderiv == NULL) return 1;
3554   -// ptrglGetShaderInfoLog = goglGetProcAddress("glGetShaderInfoLog");
3555   -// if(ptrglGetShaderInfoLog == NULL) return 1;
3556   -// ptrglGetShaderSource = goglGetProcAddress("glGetShaderSource");
3557   -// if(ptrglGetShaderSource == NULL) return 1;
3558   -// ptrglGetUniformLocation = goglGetProcAddress("glGetUniformLocation");
3559   -// if(ptrglGetUniformLocation == NULL) return 1;
3560   -// ptrglGetUniformfv = goglGetProcAddress("glGetUniformfv");
3561   -// if(ptrglGetUniformfv == NULL) return 1;
3562   -// ptrglGetUniformiv = goglGetProcAddress("glGetUniformiv");
3563   -// if(ptrglGetUniformiv == NULL) return 1;
3564   -// ptrglGetVertexAttribdv = goglGetProcAddress("glGetVertexAttribdv");
3565   -// if(ptrglGetVertexAttribdv == NULL) return 1;
3566   -// ptrglGetVertexAttribfv = goglGetProcAddress("glGetVertexAttribfv");
3567   -// if(ptrglGetVertexAttribfv == NULL) return 1;
3568   -// ptrglGetVertexAttribiv = goglGetProcAddress("glGetVertexAttribiv");
3569   -// if(ptrglGetVertexAttribiv == NULL) return 1;
3570   -// ptrglGetVertexAttribPointerv = goglGetProcAddress("glGetVertexAttribPointerv");
3571   -// if(ptrglGetVertexAttribPointerv == NULL) return 1;
3572   -// ptrglIsProgram = goglGetProcAddress("glIsProgram");
3573   -// if(ptrglIsProgram == NULL) return 1;
3574   -// ptrglIsShader = goglGetProcAddress("glIsShader");
3575   -// if(ptrglIsShader == NULL) return 1;
3576   -// ptrglLinkProgram = goglGetProcAddress("glLinkProgram");
3577   -// if(ptrglLinkProgram == NULL) return 1;
3578   -// ptrglShaderSource = goglGetProcAddress("glShaderSource");
3579   -// if(ptrglShaderSource == NULL) return 1;
3580   -// ptrglUseProgram = goglGetProcAddress("glUseProgram");
3581   -// if(ptrglUseProgram == NULL) return 1;
3582   -// ptrglUniform1f = goglGetProcAddress("glUniform1f");
3583   -// if(ptrglUniform1f == NULL) return 1;
3584   -// ptrglUniform2f = goglGetProcAddress("glUniform2f");
3585   -// if(ptrglUniform2f == NULL) return 1;
3586   -// ptrglUniform3f = goglGetProcAddress("glUniform3f");
3587   -// if(ptrglUniform3f == NULL) return 1;
3588   -// ptrglUniform4f = goglGetProcAddress("glUniform4f");
3589   -// if(ptrglUniform4f == NULL) return 1;
3590   -// ptrglUniform1i = goglGetProcAddress("glUniform1i");
3591   -// if(ptrglUniform1i == NULL) return 1;
3592   -// ptrglUniform2i = goglGetProcAddress("glUniform2i");
3593   -// if(ptrglUniform2i == NULL) return 1;
3594   -// ptrglUniform3i = goglGetProcAddress("glUniform3i");
3595   -// if(ptrglUniform3i == NULL) return 1;
3596   -// ptrglUniform4i = goglGetProcAddress("glUniform4i");
3597   -// if(ptrglUniform4i == NULL) return 1;
3598   -// ptrglUniform1fv = goglGetProcAddress("glUniform1fv");
3599   -// if(ptrglUniform1fv == NULL) return 1;
3600   -// ptrglUniform2fv = goglGetProcAddress("glUniform2fv");
3601   -// if(ptrglUniform2fv == NULL) return 1;
3602   -// ptrglUniform3fv = goglGetProcAddress("glUniform3fv");
3603   -// if(ptrglUniform3fv == NULL) return 1;
3604   -// ptrglUniform4fv = goglGetProcAddress("glUniform4fv");
3605   -// if(ptrglUniform4fv == NULL) return 1;
3606   -// ptrglUniform1iv = goglGetProcAddress("glUniform1iv");
3607   -// if(ptrglUniform1iv == NULL) return 1;
3608   -// ptrglUniform2iv = goglGetProcAddress("glUniform2iv");
3609   -// if(ptrglUniform2iv == NULL) return 1;
3610   -// ptrglUniform3iv = goglGetProcAddress("glUniform3iv");
3611   -// if(ptrglUniform3iv == NULL) return 1;
3612   -// ptrglUniform4iv = goglGetProcAddress("glUniform4iv");
3613   -// if(ptrglUniform4iv == NULL) return 1;
3614   -// ptrglUniformMatrix2fv = goglGetProcAddress("glUniformMatrix2fv");
3615   -// if(ptrglUniformMatrix2fv == NULL) return 1;
3616   -// ptrglUniformMatrix3fv = goglGetProcAddress("glUniformMatrix3fv");
3617   -// if(ptrglUniformMatrix3fv == NULL) return 1;
3618   -// ptrglUniformMatrix4fv = goglGetProcAddress("glUniformMatrix4fv");
3619   -// if(ptrglUniformMatrix4fv == NULL) return 1;
3620   -// ptrglValidateProgram = goglGetProcAddress("glValidateProgram");
3621   -// if(ptrglValidateProgram == NULL) return 1;
3622   -// ptrglVertexAttrib1d = goglGetProcAddress("glVertexAttrib1d");
3623   -// if(ptrglVertexAttrib1d == NULL) return 1;
3624   -// ptrglVertexAttrib1dv = goglGetProcAddress("glVertexAttrib1dv");
3625   -// if(ptrglVertexAttrib1dv == NULL) return 1;
3626   -// ptrglVertexAttrib1f = goglGetProcAddress("glVertexAttrib1f");
3627   -// if(ptrglVertexAttrib1f == NULL) return 1;
3628   -// ptrglVertexAttrib1fv = goglGetProcAddress("glVertexAttrib1fv");
3629   -// if(ptrglVertexAttrib1fv == NULL) return 1;
3630   -// ptrglVertexAttrib1s = goglGetProcAddress("glVertexAttrib1s");
3631   -// if(ptrglVertexAttrib1s == NULL) return 1;
3632   -// ptrglVertexAttrib1sv = goglGetProcAddress("glVertexAttrib1sv");
3633   -// if(ptrglVertexAttrib1sv == NULL) return 1;
3634   -// ptrglVertexAttrib2d = goglGetProcAddress("glVertexAttrib2d");
3635   -// if(ptrglVertexAttrib2d == NULL) return 1;
3636   -// ptrglVertexAttrib2dv = goglGetProcAddress("glVertexAttrib2dv");
3637   -// if(ptrglVertexAttrib2dv == NULL) return 1;
3638   -// ptrglVertexAttrib2f = goglGetProcAddress("glVertexAttrib2f");
3639   -// if(ptrglVertexAttrib2f == NULL) return 1;
3640   -// ptrglVertexAttrib2fv = goglGetProcAddress("glVertexAttrib2fv");
3641   -// if(ptrglVertexAttrib2fv == NULL) return 1;
3642   -// ptrglVertexAttrib2s = goglGetProcAddress("glVertexAttrib2s");
3643   -// if(ptrglVertexAttrib2s == NULL) return 1;
3644   -// ptrglVertexAttrib2sv = goglGetProcAddress("glVertexAttrib2sv");
3645   -// if(ptrglVertexAttrib2sv == NULL) return 1;
3646   -// ptrglVertexAttrib3d = goglGetProcAddress("glVertexAttrib3d");
3647   -// if(ptrglVertexAttrib3d == NULL) return 1;
3648   -// ptrglVertexAttrib3dv = goglGetProcAddress("glVertexAttrib3dv");
3649   -// if(ptrglVertexAttrib3dv == NULL) return 1;
3650   -// ptrglVertexAttrib3f = goglGetProcAddress("glVertexAttrib3f");
3651   -// if(ptrglVertexAttrib3f == NULL) return 1;
3652   -// ptrglVertexAttrib3fv = goglGetProcAddress("glVertexAttrib3fv");
3653   -// if(ptrglVertexAttrib3fv == NULL) return 1;
3654   -// ptrglVertexAttrib3s = goglGetProcAddress("glVertexAttrib3s");
3655   -// if(ptrglVertexAttrib3s == NULL) return 1;
3656   -// ptrglVertexAttrib3sv = goglGetProcAddress("glVertexAttrib3sv");
3657   -// if(ptrglVertexAttrib3sv == NULL) return 1;
3658   -// ptrglVertexAttrib4Nbv = goglGetProcAddress("glVertexAttrib4Nbv");
3659   -// if(ptrglVertexAttrib4Nbv == NULL) return 1;
3660   -// ptrglVertexAttrib4Niv = goglGetProcAddress("glVertexAttrib4Niv");
3661   -// if(ptrglVertexAttrib4Niv == NULL) return 1;
3662   -// ptrglVertexAttrib4Nsv = goglGetProcAddress("glVertexAttrib4Nsv");
3663   -// if(ptrglVertexAttrib4Nsv == NULL) return 1;
3664   -// ptrglVertexAttrib4Nub = goglGetProcAddress("glVertexAttrib4Nub");
3665   -// if(ptrglVertexAttrib4Nub == NULL) return 1;
3666   -// ptrglVertexAttrib4Nubv = goglGetProcAddress("glVertexAttrib4Nubv");
3667   -// if(ptrglVertexAttrib4Nubv == NULL) return 1;
3668   -// ptrglVertexAttrib4Nuiv = goglGetProcAddress("glVertexAttrib4Nuiv");
3669   -// if(ptrglVertexAttrib4Nuiv == NULL) return 1;
3670   -// ptrglVertexAttrib4Nusv = goglGetProcAddress("glVertexAttrib4Nusv");
3671   -// if(ptrglVertexAttrib4Nusv == NULL) return 1;
3672   -// ptrglVertexAttrib4bv = goglGetProcAddress("glVertexAttrib4bv");
3673   -// if(ptrglVertexAttrib4bv == NULL) return 1;
3674   -// ptrglVertexAttrib4d = goglGetProcAddress("glVertexAttrib4d");
3675   -// if(ptrglVertexAttrib4d == NULL) return 1;
3676   -// ptrglVertexAttrib4dv = goglGetProcAddress("glVertexAttrib4dv");
3677   -// if(ptrglVertexAttrib4dv == NULL) return 1;
3678   -// ptrglVertexAttrib4f = goglGetProcAddress("glVertexAttrib4f");
3679   -// if(ptrglVertexAttrib4f == NULL) return 1;
3680   -// ptrglVertexAttrib4fv = goglGetProcAddress("glVertexAttrib4fv");
3681   -// if(ptrglVertexAttrib4fv == NULL) return 1;
3682   -// ptrglVertexAttrib4iv = goglGetProcAddress("glVertexAttrib4iv");
3683   -// if(ptrglVertexAttrib4iv == NULL) return 1;
3684   -// ptrglVertexAttrib4s = goglGetProcAddress("glVertexAttrib4s");
3685   -// if(ptrglVertexAttrib4s == NULL) return 1;
3686   -// ptrglVertexAttrib4sv = goglGetProcAddress("glVertexAttrib4sv");
3687   -// if(ptrglVertexAttrib4sv == NULL) return 1;
3688   -// ptrglVertexAttrib4ubv = goglGetProcAddress("glVertexAttrib4ubv");
3689   -// if(ptrglVertexAttrib4ubv == NULL) return 1;
3690   -// ptrglVertexAttrib4uiv = goglGetProcAddress("glVertexAttrib4uiv");
3691   -// if(ptrglVertexAttrib4uiv == NULL) return 1;
3692   -// ptrglVertexAttrib4usv = goglGetProcAddress("glVertexAttrib4usv");
3693   -// if(ptrglVertexAttrib4usv == NULL) return 1;
3694   -// ptrglVertexAttribPointer = goglGetProcAddress("glVertexAttribPointer");
3695   -// if(ptrglVertexAttribPointer == NULL) return 1;
3696   -// return 0;
3697   -// }
3698   -// int init_VERSION_1_3_DEPRECATED() {
3699   -// ptrglClientActiveTexture = goglGetProcAddress("glClientActiveTexture");
3700   -// if(ptrglClientActiveTexture == NULL) return 1;
3701   -// ptrglMultiTexCoord1d = goglGetProcAddress("glMultiTexCoord1d");
3702   -// if(ptrglMultiTexCoord1d == NULL) return 1;
3703   -// ptrglMultiTexCoord1dv = goglGetProcAddress("glMultiTexCoord1dv");
3704   -// if(ptrglMultiTexCoord1dv == NULL) return 1;
3705   -// ptrglMultiTexCoord1f = goglGetProcAddress("glMultiTexCoord1f");
3706   -// if(ptrglMultiTexCoord1f == NULL) return 1;
3707   -// ptrglMultiTexCoord1fv = goglGetProcAddress("glMultiTexCoord1fv");
3708   -// if(ptrglMultiTexCoord1fv == NULL) return 1;
3709   -// ptrglMultiTexCoord1i = goglGetProcAddress("glMultiTexCoord1i");
3710   -// if(ptrglMultiTexCoord1i == NULL) return 1;
3711   -// ptrglMultiTexCoord1iv = goglGetProcAddress("glMultiTexCoord1iv");
3712   -// if(ptrglMultiTexCoord1iv == NULL) return 1;
3713   -// ptrglMultiTexCoord1s = goglGetProcAddress("glMultiTexCoord1s");
3714   -// if(ptrglMultiTexCoord1s == NULL) return 1;
3715   -// ptrglMultiTexCoord1sv = goglGetProcAddress("glMultiTexCoord1sv");
3716   -// if(ptrglMultiTexCoord1sv == NULL) return 1;
3717   -// ptrglMultiTexCoord2d = goglGetProcAddress("glMultiTexCoord2d");
3718   -// if(ptrglMultiTexCoord2d == NULL) return 1;
3719   -// ptrglMultiTexCoord2dv = goglGetProcAddress("glMultiTexCoord2dv");
3720   -// if(ptrglMultiTexCoord2dv == NULL) return 1;
3721   -// ptrglMultiTexCoord2f = goglGetProcAddress("glMultiTexCoord2f");
3722   -// if(ptrglMultiTexCoord2f == NULL) return 1;
3723   -// ptrglMultiTexCoord2fv = goglGetProcAddress("glMultiTexCoord2fv");
3724   -// if(ptrglMultiTexCoord2fv == NULL) return 1;
3725   -// ptrglMultiTexCoord2i = goglGetProcAddress("glMultiTexCoord2i");
3726   -// if(ptrglMultiTexCoord2i == NULL) return 1;
3727   -// ptrglMultiTexCoord2iv = goglGetProcAddress("glMultiTexCoord2iv");
3728   -// if(ptrglMultiTexCoord2iv == NULL) return 1;
3729   -// ptrglMultiTexCoord2s = goglGetProcAddress("glMultiTexCoord2s");
3730   -// if(ptrglMultiTexCoord2s == NULL) return 1;
3731   -// ptrglMultiTexCoord2sv = goglGetProcAddress("glMultiTexCoord2sv");
3732   -// if(ptrglMultiTexCoord2sv == NULL) return 1;
3733   -// ptrglMultiTexCoord3d = goglGetProcAddress("glMultiTexCoord3d");
3734   -// if(ptrglMultiTexCoord3d == NULL) return 1;
3735   -// ptrglMultiTexCoord3dv = goglGetProcAddress("glMultiTexCoord3dv");
3736   -// if(ptrglMultiTexCoord3dv == NULL) return 1;
3737   -// ptrglMultiTexCoord3f = goglGetProcAddress("glMultiTexCoord3f");
3738   -// if(ptrglMultiTexCoord3f == NULL) return 1;
3739   -// ptrglMultiTexCoord3fv = goglGetProcAddress("glMultiTexCoord3fv");
3740   -// if(ptrglMultiTexCoord3fv == NULL) return 1;
3741   -// ptrglMultiTexCoord3i = goglGetProcAddress("glMultiTexCoord3i");
3742   -// if(ptrglMultiTexCoord3i == NULL) return 1;
3743   -// ptrglMultiTexCoord3iv = goglGetProcAddress("glMultiTexCoord3iv");
3744   -// if(ptrglMultiTexCoord3iv == NULL) return 1;
3745   -// ptrglMultiTexCoord3s = goglGetProcAddress("glMultiTexCoord3s");
3746   -// if(ptrglMultiTexCoord3s == NULL) return 1;
3747   -// ptrglMultiTexCoord3sv = goglGetProcAddress("glMultiTexCoord3sv");
3748   -// if(ptrglMultiTexCoord3sv == NULL) return 1;
3749   -// ptrglMultiTexCoord4d = goglGetProcAddress("glMultiTexCoord4d");
3750   -// if(ptrglMultiTexCoord4d == NULL) return 1;
3751   -// ptrglMultiTexCoord4dv = goglGetProcAddress("glMultiTexCoord4dv");
3752   -// if(ptrglMultiTexCoord4dv == NULL) return 1;
3753   -// ptrglMultiTexCoord4f = goglGetProcAddress("glMultiTexCoord4f");
3754   -// if(ptrglMultiTexCoord4f == NULL) return 1;
3755   -// ptrglMultiTexCoord4fv = goglGetProcAddress("glMultiTexCoord4fv");
3756   -// if(ptrglMultiTexCoord4fv == NULL) return 1;
3757   -// ptrglMultiTexCoord4i = goglGetProcAddress("glMultiTexCoord4i");
3758   -// if(ptrglMultiTexCoord4i == NULL) return 1;
3759   -// ptrglMultiTexCoord4iv = goglGetProcAddress("glMultiTexCoord4iv");
3760   -// if(ptrglMultiTexCoord4iv == NULL) return 1;
3761   -// ptrglMultiTexCoord4s = goglGetProcAddress("glMultiTexCoord4s");
3762   -// if(ptrglMultiTexCoord4s == NULL) return 1;
3763   -// ptrglMultiTexCoord4sv = goglGetProcAddress("glMultiTexCoord4sv");
3764   -// if(ptrglMultiTexCoord4sv == NULL) return 1;
3765   -// ptrglLoadTransposeMatrixf = goglGetProcAddress("glLoadTransposeMatrixf");
3766   -// if(ptrglLoadTransposeMatrixf == NULL) return 1;
3767   -// ptrglLoadTransposeMatrixd = goglGetProcAddress("glLoadTransposeMatrixd");
3768   -// if(ptrglLoadTransposeMatrixd == NULL) return 1;
3769   -// ptrglMultTransposeMatrixf = goglGetProcAddress("glMultTransposeMatrixf");
3770   -// if(ptrglMultTransposeMatrixf == NULL) return 1;
3771   -// ptrglMultTransposeMatrixd = goglGetProcAddress("glMultTransposeMatrixd");
3772   -// if(ptrglMultTransposeMatrixd == NULL) return 1;
3773   -// return 0;
3774   -// }
3775 3763 //
3776 3764 import "C"
3777 3765 import "unsafe"
@@ -3802,8 +3790,26 @@ type (
3802 3790 Sizeiptr C.GLsizeiptr
3803 3791 )
3804 3792
  3793 +// VERSION_1_2_DEPRECATED
  3794 +const (
  3795 + LIGHT_MODEL_COLOR_CONTROL = 0x81F8
  3796 + SINGLE_COLOR = 0x81F9
  3797 + SEPARATE_SPECULAR_COLOR = 0x81FA
  3798 + ALIASED_POINT_SIZE_RANGE = 0x846D
  3799 + RESCALE_NORMAL = 0x803A
  3800 +)
  3801 +// VERSION_2_0_DEPRECATED
  3802 +const (
  3803 + MAX_TEXTURE_COORDS = 0x8871
  3804 + POINT_SPRITE = 0x8861
  3805 + VERTEX_PROGRAM_TWO_SIDE = 0x8643
  3806 + COORD_REPLACE = 0x8862
  3807 +)
3805 3808 // VERSION_2_1
3806 3809 const (
  3810 + COMPRESSED_SRGB = 0x8C48
  3811 + SRGB = 0x8C40
  3812 + SRGB_ALPHA = 0x8C42
3807 3813 FLOAT_MAT2x4 = 0x8B66
3808 3814 FLOAT_MAT2x3 = 0x8B65
3809 3815 PIXEL_UNPACK_BUFFER = 0x88EC
@@ -3817,12 +3823,36 @@ const (
3817 3823 FLOAT_MAT4x3 = 0x8B6A
3818 3824 FLOAT_MAT3x4 = 0x8B68
3819 3825 FLOAT_MAT3x2 = 0x8B67
3820   - COMPRESSED_SRGB = 0x8C48
3821   - SRGB = 0x8C40
3822   - SRGB_ALPHA = 0x8C42
3823 3826 )
3824 3827 // VERSION_2_0
3825 3828 const (
  3829 + STENCIL_BACK_VALUE_MASK = 0x8CA4
  3830 + VERTEX_ATTRIB_ARRAY_SIZE = 0x8623
  3831 + STENCIL_BACK_PASS_DEPTH_PASS = 0x8803
  3832 + VERTEX_SHADER = 0x8B31
  3833 + VERTEX_ATTRIB_ARRAY_TYPE = 0x8625
  3834 + INT_VEC4 = 0x8B55
  3835 + INT_VEC3 = 0x8B54
  3836 + INT_VEC2 = 0x8B53
  3837 + MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49
  3838 + MAX_DRAW_BUFFERS = 0x8824
  3839 + VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A
  3840 + INFO_LOG_LENGTH = 0x8B84
  3841 + DELETE_STATUS = 0x8B80
  3842 + FLOAT_VEC4 = 0x8B52
  3843 + FLOAT_VEC2 = 0x8B50
  3844 + FLOAT_VEC3 = 0x8B51
  3845 + STENCIL_BACK_REF = 0x8CA3
  3846 + ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A
  3847 + SHADING_LANGUAGE_VERSION = 0x8B8C
  3848 + MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D
  3849 + ACTIVE_UNIFORMS = 0x8B86
  3850 + ATTACHED_SHADERS = 0x8B85
  3851 + VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622
  3852 + MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A
  3853 + MAX_TEXTURE_IMAGE_UNITS = 0x8872
  3854 + STENCIL_BACK_FAIL = 0x8801
  3855 + VERTEX_ATTRIB_ARRAY_POINTER = 0x8645
3826 3856 MAX_VARYING_FLOATS = 0x8B4B
3827 3857 CURRENT_VERTEX_ATTRIB = 0x8626
3828 3858 SAMPLER_1D_SHADOW = 0x8B61
@@ -3876,36 +3906,19 @@ const (
3876 3906 DRAW_BUFFER9 = 0x882E
3877 3907 BLEND_EQUATION_ALPHA = 0x883D
3878 3908 BLEND_EQUATION_RGB = 0x8009
3879   - STENCIL_BACK_VALUE_MASK = 0x8CA4
3880   - VERTEX_ATTRIB_ARRAY_SIZE = 0x8623
3881   - STENCIL_BACK_PASS_DEPTH_PASS = 0x8803
3882   - VERTEX_SHADER = 0x8B31
3883   - VERTEX_ATTRIB_ARRAY_TYPE = 0x8625
3884   - INT_VEC4 = 0x8B55
3885   - INT_VEC3 = 0x8B54
3886   - INT_VEC2 = 0x8B53
3887   - MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49
3888   - MAX_DRAW_BUFFERS = 0x8824
3889   - VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A
3890   - INFO_LOG_LENGTH = 0x8B84
3891   - DELETE_STATUS = 0x8B80
3892   - FLOAT_VEC4 = 0x8B52
3893   - FLOAT_VEC2 = 0x8B50
3894   - FLOAT_VEC3 = 0x8B51
3895   - STENCIL_BACK_REF = 0x8CA3
3896   - ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A
3897   - SHADING_LANGUAGE_VERSION = 0x8B8C
3898   - MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D
3899   - ACTIVE_UNIFORMS = 0x8B86
3900   - ATTACHED_SHADERS = 0x8B85
3901   - VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622
3902   - MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A
3903   - MAX_TEXTURE_IMAGE_UNITS = 0x8872
3904   - STENCIL_BACK_FAIL = 0x8801
3905   - VERTEX_ATTRIB_ARRAY_POINTER = 0x8645
3906 3909 )
3907 3910 // VERSION_1_3_DEPRECATED
3908 3911 const (
  3912 + RGB_SCALE = 0x8573
  3913 + COMBINE_ALPHA = 0x8572
  3914 + TRANSPOSE_TEXTURE_MATRIX = 0x84E5
  3915 + OPERAND1_ALPHA = 0x8599
  3916 + TRANSPOSE_COLOR_MATRIX = 0x84E6
  3917 + OPERAND1_RGB = 0x8591
  3918 + PREVIOUS = 0x8578
  3919 + OPERAND2_RGB = 0x8592
  3920 + CONSTANT = 0x8576
  3921 + SOURCE2_RGB = 0x8582
3909 3922 MAX_TEXTURE_UNITS = 0x84E2
3910 3923 ADD_SIGNED = 0x8574
3911 3924 NORMAL_MAP = 0x8511
@@ -3933,32 +3946,19 @@ const (
3933 3946 TRANSPOSE_MODELVIEW_MATRIX = 0x84E3
3934 3947 SOURCE1_RGB = 0x8581
3935 3948 INTERPOLATE = 0x8575
3936   - RGB_SCALE = 0x8573
3937   - COMBINE_ALPHA = 0x8572
3938   - TRANSPOSE_TEXTURE_MATRIX = 0x84E5
3939   - OPERAND1_ALPHA = 0x8599
3940   - TRANSPOSE_COLOR_MATRIX = 0x84E6
3941   - OPERAND1_RGB = 0x8591
3942   - PREVIOUS = 0x8578
3943   - OPERAND2_RGB = 0x8592
3944   - CONSTANT = 0x8576
3945   - SOURCE2_RGB = 0x8582
3946 3949 )
3947 3950 // VERSION_2_1_DEPRECATED
3948 3951 const (
3949   - CURRENT_RASTER_SECONDARY_COLOR = 0x845F
3950   - SLUMINANCE_ALPHA = 0x8C44
3951   - SLUMINANCE = 0x8C46
3952 3952 SLUMINANCE8_ALPHA8 = 0x8C45
3953 3953 SLUMINANCE8 = 0x8C47
3954 3954 COMPRESSED_SLUMINANCE = 0x8C4A
3955 3955 COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B
  3956 + CURRENT_RASTER_SECONDARY_COLOR = 0x845F
  3957 + SLUMINANCE_ALPHA = 0x8C44
  3958 + SLUMINANCE = 0x8C46
3956 3959 )
3957 3960 // VERSION_1_5_DEPRECATED
3958 3961 const (
3959   - NORMAL_ARRAY_BUFFER_BINDING = 0x8897
3960   - SRC2_ALPHA = 0x858A
3961   - INDEX_ARRAY_BUFFER_BINDING = 0x8899
3962 3962 FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D
3963 3963 SRC2_RGB = 0x8582
3964 3964 FOG_COORD_SRC = 0x8450
@@ -3979,9 +3979,15 @@ const (
3979 3979 SRC0_ALPHA = 0x8588
3980 3980 CURRENT_FOG_COORD = 0x8453
3981 3981 SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C
  3982 + NORMAL_ARRAY_BUFFER_BINDING = 0x8897
  3983 + SRC2_ALPHA = 0x858A
  3984 + INDEX_ARRAY_BUFFER_BINDING = 0x8899
3982 3985 )
3983 3986 // VERSION_1_4
3984 3987 const (
  3988 + BLEND_DST_ALPHA = 0x80CA
  3989 + POINT_FADE_THRESHOLD_SIZE = 0x8128
  3990 + INCR_WRAP = 0x8507
3985 3991 TEXTURE_LOD_BIAS = 0x8501
3986 3992 BLEND_SRC_ALPHA = 0x80CB
3987 3993 DEPTH_COMPONENT16 = 0x81A5
@@ -3995,12 +4001,13 @@ const (
3995 4001 TEXTURE_COMPARE_MODE = 0x884C
3996 4002 MAX_TEXTURE_LOD_BIAS = 0x84FD
3997 4003 TEXTURE_DEPTH_SIZE = 0x884A
3998   - BLEND_DST_ALPHA = 0x80CA
3999   - POINT_FADE_THRESHOLD_SIZE = 0x8128
4000   - INCR_WRAP = 0x8507
4001 4004 )
4002 4005 // VERSION_1_5
4003 4006 const (
  4007 + BUFFER_MAPPED = 0x88BC
  4008 + STREAM_READ = 0x88E1
  4009 + BUFFER_USAGE = 0x8765
  4010 + STATIC_READ = 0x88E5
4004 4011 ARRAY_BUFFER_BINDING = 0x8894
4005 4012 STATIC_COPY = 0x88E6
4006 4013 BUFFER_ACCESS = 0x88BB
@@ -4024,46 +4031,9 @@ const (
4024 4031 WRITE_ONLY = 0x88B9
4025 4032 QUERY_RESULT = 0x8866
4026 4033 VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F
4027   - BUFFER_MAPPED = 0x88BC
4028   - STREAM_READ = 0x88E1
4029   - BUFFER_USAGE = 0x8765
4030   - STATIC_READ = 0x88E5
4031 4034 )
4032 4035 // VERSION_1_1
4033 4036 const (
4034   - STENCIL_CLEAR_VALUE = 0x0B91
4035   - INVALID_OPERATION = 0x0502
4036   - EQUIV = 0x1509
4037   - AND_INVERTED = 0x1504
4038   - BACK_RIGHT = 0x0403
4039   - RGB12 = 0x8053
4040   - POINT_SIZE = 0x0B11
4041   - RGB10 = 0x8052
4042   - STENCIL_PASS_DEPTH_PASS = 0x0B96
4043   - RGB16 = 0x8054
4044   - ONE = 1
4045   - STENCIL_BUFFER_BIT = 0x00000400
4046   - STENCIL = 0x1802
4047   - FRONT_RIGHT = 0x0401
4048   - READ_BUFFER = 0x0C02
4049   - BACK = 0x0405
4050   - DEPTH_BUFFER_BIT = 0x00000100
4051   - UNSIGNED_SHORT = 0x1403
4052   - POLYGON_OFFSET_FILL = 0x8037
4053   - UNPACK_LSB_FIRST = 0x0CF1
4054   - ALPHA = 0x1906
4055   - INVALID_VALUE = 0x0501
4056   - SET = 0x150F
4057   - RIGHT = 0x0407
4058   - LINE_WIDTH_GRANULARITY = 0x0B23
4059   - NEAREST_MIPMAP_LINEAR = 0x2702
4060   - POINTS = 0x0000
4061   - FILL = 0x1B02
4062   - AND_REVERSE = 0x1502
4063   - CLEAR = 0x1500
4064   - DEPTH_FUNC = 0x0B74
4065   - TEXTURE_WIDTH = 0x1000
4066   - CCW = 0x0901
4067 4037 GEQUAL = 0x0206
4068 4038 OR_REVERSE = 0x150B
4069 4039 BLUE = 0x1905
@@ -4230,18 +4200,42 @@ const (
4230 4200 VENDOR = 0x1F00
4231 4201 RGB5 = 0x8050
4232 4202 DITHER = 0x0BD0
  4203 + STENCIL_CLEAR_VALUE = 0x0B91
  4204 + INVALID_OPERATION = 0x0502
  4205 + EQUIV = 0x1509
  4206 + AND_INVERTED = 0x1504
  4207 + BACK_RIGHT = 0x0403
  4208 + RGB12 = 0x8053
  4209 + POINT_SIZE = 0x0B11
  4210 + RGB10 = 0x8052
  4211 + STENCIL_PASS_DEPTH_PASS = 0x0B96
  4212 + RGB16 = 0x8054
  4213 + ONE = 1
  4214 + STENCIL_BUFFER_BIT = 0x00000400
  4215 + STENCIL = 0x1802
  4216 + FRONT_RIGHT = 0x0401
  4217 + READ_BUFFER = 0x0C02
  4218 + BACK = 0x0405
  4219 + DEPTH_BUFFER_BIT = 0x00000100
  4220 + UNSIGNED_SHORT = 0x1403
  4221 + POLYGON_OFFSET_FILL = 0x8037
  4222 + UNPACK_LSB_FIRST = 0x0CF1
  4223 + ALPHA = 0x1906
  4224 + INVALID_VALUE = 0x0501
  4225 + SET = 0x150F
  4226 + RIGHT = 0x0407
  4227 + LINE_WIDTH_GRANULARITY = 0x0B23
  4228 + NEAREST_MIPMAP_LINEAR = 0x2702
  4229 + POINTS = 0x0000
  4230 + FILL = 0x1B02
  4231 + AND_REVERSE = 0x1502
  4232 + CLEAR = 0x1500
  4233 + DEPTH_FUNC = 0x0B74
  4234 + TEXTURE_WIDTH = 0x1000
  4235 + CCW = 0x0901
4233 4236 )
4234 4237 // VERSION_1_4_DEPRECATED
4235 4238 const (
4236   - FOG_COORDINATE_ARRAY_STRIDE = 0x8455
4237   - SECONDARY_COLOR_ARRAY_STRIDE = 0x845C
4238   - TEXTURE_FILTER_CONTROL = 0x8500
4239   - DEPTH_TEXTURE_MODE = 0x884B
4240   - COLOR_SUM = 0x8458
4241   - SECONDARY_COLOR_ARRAY_SIZE = 0x845A
4242   - CURRENT_SECONDARY_COLOR = 0x8459
4243   - FOG_COORDINATE_ARRAY_POINTER = 0x8456
4244   - FOG_COORDINATE_SOURCE = 0x8450
4245 4239 GENERATE_MIPMAP_HINT = 0x8192
4246 4240 SECONDARY_COLOR_ARRAY_POINTER = 0x845D
4247 4241 SECONDARY_COLOR_ARRAY_TYPE = 0x845B
@@ -4256,9 +4250,33 @@ const (
4256 4250 POINT_DISTANCE_ATTENUATION = 0x8129
4257 4251 FOG_COORDINATE = 0x8451
4258 4252 POINT_SIZE_MAX = 0x8127
  4253 + FOG_COORDINATE_ARRAY_STRIDE = 0x8455
  4254 + SECONDARY_COLOR_ARRAY_STRIDE = 0x845C
  4255 + TEXTURE_FILTER_CONTROL = 0x8500
  4256 + DEPTH_TEXTURE_MODE = 0x884B
  4257 + COLOR_SUM = 0x8458
  4258 + SECONDARY_COLOR_ARRAY_SIZE = 0x845A
  4259 + CURRENT_SECONDARY_COLOR = 0x8459
  4260 + FOG_COORDINATE_ARRAY_POINTER = 0x8456
  4261 + FOG_COORDINATE_SOURCE = 0x8450
4259 4262 )
4260 4263 // VERSION_1_2
4261 4264 const (
  4265 + PACK_SKIP_IMAGES = 0x806B
  4266 + TEXTURE_MAX_LEVEL = 0x813D
  4267 + UNSIGNED_BYTE_3_3_2 = 0x8032
  4268 + ALIASED_LINE_WIDTH_RANGE = 0x846E
  4269 + UNSIGNED_INT_2_10_10_10_REV = 0x8368
  4270 + UNPACK_IMAGE_HEIGHT = 0x806E
  4271 + UNSIGNED_SHORT_5_6_5_REV = 0x8364
  4272 + UNSIGNED_SHORT_1_5_5_5_REV = 0x8366
  4273 + UNSIGNED_BYTE_2_3_3_REV = 0x8362
  4274 + UNSIGNED_SHORT_4_4_4_4_REV = 0x8365
  4275 + UNSIGNED_INT_8_8_8_8 = 0x8035
  4276 + UNSIGNED_SHORT_5_6_5 = 0x8363
  4277 + TEXTURE_BASE_LEVEL = 0x813C
  4278 + SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23
  4279 + TEXTURE_WRAP_R = 0x8072
4262 4280 UNPACK_SKIP_IMAGES = 0x806D
4263 4281 PACK_IMAGE_HEIGHT = 0x806C
4264 4282 TEXTURE_MIN_LOD = 0x813A
@@ -4280,24 +4298,29 @@ const (
4280 4298 TEXTURE_BINDING_3D = 0x806A
4281 4299 CLAMP_TO_EDGE = 0x812F
4282 4300 TEXTURE_3D = 0x806F
4283   - PACK_SKIP_IMAGES = 0x806B
4284   - TEXTURE_MAX_LEVEL = 0x813D
4285   - UNSIGNED_BYTE_3_3_2 = 0x8032
4286   - ALIASED_LINE_WIDTH_RANGE = 0x846E
4287   - UNSIGNED_INT_2_10_10_10_REV = 0x8368
4288   - UNPACK_IMAGE_HEIGHT = 0x806E
4289   - UNSIGNED_SHORT_5_6_5_REV = 0x8364
4290   - UNSIGNED_SHORT_1_5_5_5_REV = 0x8366
4291   - UNSIGNED_BYTE_2_3_3_REV = 0x8362
4292   - UNSIGNED_SHORT_4_4_4_4_REV = 0x8365
4293   - UNSIGNED_INT_8_8_8_8 = 0x8035
4294   - UNSIGNED_SHORT_5_6_5 = 0x8363
4295   - TEXTURE_BASE_LEVEL = 0x813C
4296   - SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23
4297   - TEXTURE_WRAP_R = 0x8072
4298 4301 )
4299 4302 // VERSION_1_3
4300 4303 const (
  4304 + TEXTURE_BINDING_CUBE_MAP = 0x8514
  4305 + SAMPLE_ALPHA_TO_ONE = 0x809F
  4306 + COMPRESSED_RGBA = 0x84EE
  4307 + MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C
  4308 + SAMPLE_COVERAGE_INVERT = 0x80AB
  4309 + TEXTURE4 = 0x84C4
  4310 + TEXTURE5 = 0x84C5
  4311 + TEXTURE6 = 0x84C6
  4312 + TEXTURE7 = 0x84C7
  4313 + TEXTURE0 = 0x84C0
  4314 + TEXTURE1 = 0x84C1
  4315 + TEXTURE2 = 0x84C2
  4316 + TEXTURE3 = 0x84C3
  4317 + TEXTURE8 = 0x84C8
  4318 + TEXTURE9 = 0x84C9
  4319 + SAMPLE_COVERAGE_VALUE = 0x80AA
  4320 + TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519
  4321 + TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515
  4322 + TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517
  4323 + ACTIVE_TEXTURE = 0x84E0
4301 4324 NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2
4302 4325 TEXTURE_COMPRESSED = 0x86A1
4303 4326 PROXY_TEXTURE_CUBE_MAP = 0x851B
@@ -4337,124 +4360,9 @@ const (
4337 4360 TEXTURE_COMPRESSION_HINT = 0x84EF
4338 4361 TEXTURE_CUBE_MAP = 0x8513
4339 4362 CLAMP_TO_BORDER = 0x812D
4340   - TEXTURE_BINDING_CUBE_MAP = 0x8514
4341   - SAMPLE_ALPHA_TO_ONE = 0x809F
4342   - COMPRESSED_RGBA = 0x84EE
4343   - MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C
4344   - SAMPLE_COVERAGE_INVERT = 0x80AB
4345   - TEXTURE4 = 0x84C4
4346   - TEXTURE5 = 0x84C5
4347   - TEXTURE6 = 0x84C6
4348   - TEXTURE7 = 0x84C7
4349   - TEXTURE0 = 0x84C0
4350   - TEXTURE1 = 0x84C1
4351   - TEXTURE2 = 0x84C2
4352   - TEXTURE3 = 0x84C3
4353   - TEXTURE8 = 0x84C8
4354   - TEXTURE9 = 0x84C9
4355   - SAMPLE_COVERAGE_VALUE = 0x80AA
4356   - TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519
4357   - TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515
4358   - TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517
4359   - ACTIVE_TEXTURE = 0x84E0
4360 4363 )
4361 4364 // VERSION_1_1_DEPRECATED
4362 4365 const (
4363   - LUMINANCE4_ALPHA4 = 0x8043
4364   - SELECT = 0x1C02
4365   - LINE_BIT = 0x00000004
4366   - PIXEL_MAP_I_TO_I = 0x0C70
4367   - PIXEL_MAP_A_TO_A_SIZE = 0x0CB9
4368   - NORMAL_ARRAY_POINTER = 0x808F
4369   - POLYGON_STIPPLE_BIT = 0x00000010
4370   - LUMINANCE = 0x1909
4371   - POINT_SMOOTH_HINT = 0x0C51
4372   - TEXTURE_COORD_ARRAY_POINTER = 0x8092
4373   - CURRENT_NORMAL = 0x0B02
4374   - PIXEL_MAP_S_TO_S = 0x0C71
4375   - POLYGON = 0x0009
4376   - X3D_COLOR_TEXTURE = 0x0603
4377   - TEXTURE_COORD_ARRAY_STRIDE = 0x808A
4378   - X2_BYTES = 0x1407
4379   - COLOR_ARRAY_TYPE = 0x8082
4380   - MODELVIEW = 0x1700
4381   - CURRENT_RASTER_TEXTURE_COORDS = 0x0B06
4382   - INDEX_OFFSET = 0x0D13
4383   - STACK_OVERFLOW = 0x0503
4384   - T4F_V4F = 0x2A28
4385   - ENABLE_BIT = 0x00002000
4386   - MAP2_VERTEX_4 = 0x0DB8
4387   - MAP2_COLOR_4 = 0x0DB0
4388   - SPOT_DIRECTION = 0x1204
4389   - CLAMP = 0x2900
4390   - AUTO_NORMAL = 0x0D80
4391   - INDEX_ARRAY_TYPE = 0x8085
4392   - MAP2_VERTEX_3 = 0x0DB7
4393   - QUADS = 0x0007
4394   - X2D = 0x0600
4395   - SPOT_CUTOFF = 0x1206
4396   - MODELVIEW_MATRIX = 0x0BA6
4397   - LIGHT_MODEL_LOCAL_VIEWER = 0x0B51
4398   - MULT = 0x0103
4399   - INTENSITY = 0x8049
4400   - COLOR_MATERIAL_FACE = 0x0B55
4401   - NAME_STACK_DEPTH = 0x0D70
4402   - VERTEX_ARRAY_TYPE = 0x807B
4403   - FEEDBACK_BUFFER_POINTER = 0x0DF0
4404   - INDEX_SHIFT = 0x0D12
4405   - RED_BIAS = 0x0D15
4406   - EDGE_FLAG_ARRAY = 0x8079
4407   - INDEX_CLEAR_VALUE = 0x0C20
4408   - TEXTURE_COORD_ARRAY = 0x8078
4409   - QUAD_STRIP = 0x0008
4410   - CURRENT_RASTER_POSITION = 0x0B07
4411   - INDEX_ARRAY_POINTER = 0x8091
4412   - LIGHT_MODEL_TWO_SIDE = 0x0B52
4413   - TEXTURE_COORD_ARRAY_SIZE = 0x8088
4414   - MAX_PROJECTION_STACK_DEPTH = 0x0D38
4415   - PIXEL_MAP_I_TO_G_SIZE = 0x0CB3
4416   - SELECTION_BUFFER_SIZE = 0x0DF4
4417   - DECAL = 0x2101
4418   - MAP1_NORMAL = 0x0D92
4419   - SHADE_MODEL = 0x0B54
4420   - T2F_N3F_V3F = 0x2A2B
4421   - CLIENT_VERTEX_ARRAY_BIT = 0x00000002
4422   - ALPHA_TEST_REF = 0x0BC2
4423   - CURRENT_RASTER_COLOR = 0x0B04
4424   - AMBIENT_AND_DIFFUSE = 0x1602
4425   - CLIP_PLANE2 = 0x3002
4426   - ALPHA_TEST_FUNC = 0x0BC1
4427   - CLIP_PLANE3 = 0x3003
4428   - T2F_C4F_N3F_V3F = 0x2A2C
4429   - CLIP_PLANE0 = 0x3000
4430   - CLIP_PLANE1 = 0x3001
4431   - CLIP_PLANE4 = 0x3004
4432   - CLIP_PLANE5 = 0x3005
4433   - MAP1_VERTEX_4 = 0x0D98
4434   - POLYGON_STIPPLE = 0x0B42
4435   - MAP1_VERTEX_3 = 0x0D97
4436   - FOG_HINT = 0x0C54
4437   - FOG_COLOR = 0x0B66
4438   - DRAW_PIXEL_TOKEN = 0x0705
4439   - LOAD = 0x0101
4440   - TEXTURE_ENV_MODE = 0x2200
4441   - NORMAL_ARRAY_TYPE = 0x807E
4442   - BITMAP_TOKEN = 0x0704
4443   - ALPHA_BITS = 0x0D55
4444   - ALPHA16 = 0x803E
4445   - CURRENT_RASTER_INDEX = 0x0B05
4446   - ACCUM = 0x0100
4447   - STACK_UNDERFLOW = 0x0504
4448   - ALPHA12 = 0x803D
4449   - PIXEL_MAP_B_TO_B = 0x0C78
4450   - SCISSOR_BIT = 0x00080000
4451   - EXP = 0x0800
4452   - CLIENT_PIXEL_STORE_BIT = 0x00000001
4453   - PIXEL_MAP_I_TO_R_SIZE = 0x0CB2
4454   - X3D_COLOR = 0x0602
4455   - DEPTH_BIAS = 0x0D1F
4456   - TEXTURE_ENV = 0x2300
4457   - MODULATE = 0x2100
4458 4366 ALPHA4 = 0x803B
4459 4367 VIEWPORT_BIT = 0x00000800
4460 4368 EDGE_FLAG = 0x0B43
@@ -4689,21 +4597,101 @@ const (
4689 4597 TEXTURE_BORDER = 0x1005
4690 4598 PIXEL_MAP_I_TO_B = 0x0C74
4691 4599 PIXEL_MAP_I_TO_A = 0x0C75
4692   -)
4693   -// VERSION_1_2_DEPRECATED
4694   -const (
4695   - ALIASED_POINT_SIZE_RANGE = 0x846D
4696   - RESCALE_NORMAL = 0x803A
4697   - LIGHT_MODEL_COLOR_CONTROL = 0x81F8
4698   - SINGLE_COLOR = 0x81F9
4699   - SEPARATE_SPECULAR_COLOR = 0x81FA
4700   -)
4701   -// VERSION_2_0_DEPRECATED
4702   -const (
4703   - MAX_TEXTURE_COORDS = 0x8871
4704   - POINT_SPRITE = 0x8861
4705   - VERTEX_PROGRAM_TWO_SIDE = 0x8643
4706   - COORD_REPLACE = 0x8862
  4600 + LUMINANCE4_ALPHA4 = 0x8043
  4601 + SELECT = 0x1C02
  4602 + LINE_BIT = 0x00000004
  4603 + PIXEL_MAP_I_TO_I = 0x0C70
  4604 + PIXEL_MAP_A_TO_A_SIZE = 0x0CB9
  4605 + NORMAL_ARRAY_POINTER = 0x808F
  4606 + POLYGON_STIPPLE_BIT = 0x00000010
  4607 + LUMINANCE = 0x1909
  4608 + POINT_SMOOTH_HINT = 0x0C51
  4609 + TEXTURE_COORD_ARRAY_POINTER = 0x8092
  4610 + CURRENT_NORMAL = 0x0B02
  4611 + PIXEL_MAP_S_TO_S = 0x0C71
  4612 + POLYGON = 0x0009
  4613 + X3D_COLOR_TEXTURE = 0x0603
  4614 + TEXTURE_COORD_ARRAY_STRIDE = 0x808A
  4615 + X2_BYTES = 0x1407
  4616 + COLOR_ARRAY_TYPE = 0x8082