├── .gitattributes ├── .gitignore ├── .lgtm.yml ├── .travis.yml ├── LICENSE.txt ├── Makefile ├── README.md ├── auto ├── Makefile ├── bin │ ├── filter_gl_ext.sh │ ├── filter_gles_ext.sh │ ├── filter_spec.py │ ├── make.pl │ ├── make_def_fun.pl │ ├── make_def_var.pl │ ├── make_enable_index.pl │ ├── make_header.pl │ ├── make_html.pl │ ├── make_index.pl │ ├── make_info.pl │ ├── make_info_list.pl │ ├── make_init.pl │ ├── make_initd.pl │ ├── make_list.pl │ ├── make_list2.pl │ ├── make_str.pl │ ├── make_struct_fun.pl │ ├── make_struct_var.pl │ ├── parse_spec.pl │ ├── parse_xml.py │ └── update_ext.sh ├── blacklist ├── core │ └── gl │ │ ├── EGL_EXT_device_base │ │ ├── EGL_KHR_fence_sync │ │ ├── EGL_KHR_image_base │ │ ├── EGL_KHR_lock_surface3 │ │ ├── EGL_VERSION_1_0 │ │ ├── EGL_VERSION_1_1 │ │ ├── EGL_VERSION_1_2 │ │ ├── EGL_VERSION_1_3 │ │ ├── EGL_VERSION_1_4 │ │ ├── EGL_VERSION_1_5 │ │ ├── GLX_ARB_get_proc_address │ │ ├── GLX_ATI_pixel_format_float │ │ ├── GLX_ATI_render_texture │ │ ├── GLX_EXT_scene_marker │ │ ├── GLX_NV_vertex_array_range │ │ ├── GLX_SGIS_color_range │ │ ├── GLX_SGIX_hyperpipe │ │ ├── GLX_SUN_video_resize │ │ ├── GLX_VERSION_1_2 │ │ ├── GLX_VERSION_1_3 │ │ ├── GLX_VERSION_1_4 │ │ ├── GL_APPLE_float_pixels │ │ ├── GL_APPLE_pixel_buffer │ │ ├── GL_APPLE_texture_range │ │ ├── GL_ARB_draw_instanced │ │ ├── GL_ARB_imaging │ │ ├── GL_ARB_instanced_arrays │ │ ├── GL_ARB_internalformat_query2 │ │ ├── GL_ARB_matrix_palette │ │ ├── GL_ARB_multitexture │ │ ├── GL_ARB_robustness │ │ ├── GL_ARB_separate_shader_objects │ │ ├── GL_ARB_vertex_attrib_64bit │ │ ├── GL_ARB_vertex_blend │ │ ├── GL_ATIX_point_sprites │ │ ├── GL_ATIX_texture_env_combine3 │ │ ├── GL_ATIX_texture_env_route │ │ ├── GL_ATIX_vertex_shader_output_point_size │ │ ├── GL_ATI_envmap_bumpmap │ │ ├── GL_ATI_map_object_buffer │ │ ├── GL_ATI_pn_triangles │ │ ├── GL_ATI_separate_stencil │ │ ├── GL_ATI_shader_texture_lod │ │ ├── GL_ATI_texture_compression_3dc │ │ ├── GL_ATI_vertex_streams │ │ ├── GL_EXT_Cg_shader │ │ ├── GL_EXT_bindable_uniform │ │ ├── GL_EXT_debug_marker │ │ ├── GL_EXT_depth_bounds_test │ │ ├── GL_EXT_draw_instanced │ │ ├── GL_EXT_draw_range_elements │ │ ├── GL_EXT_external_buffer │ │ ├── GL_EXT_fog_coord │ │ ├── GL_EXT_framebuffer_sRGB │ │ ├── GL_EXT_geometry_shader4 │ │ ├── GL_EXT_gpu_program_parameters │ │ ├── GL_EXT_gpu_shader4 │ │ ├── GL_EXT_memory_object │ │ ├── GL_EXT_memory_object_fd │ │ ├── GL_EXT_memory_object_win32 │ │ ├── GL_EXT_packed_float │ │ ├── GL_EXT_pixel_buffer_object │ │ ├── GL_EXT_scene_marker │ │ ├── GL_EXT_secondary_color │ │ ├── GL_EXT_semaphore │ │ ├── GL_EXT_semaphore_fd │ │ ├── GL_EXT_semaphore_win32 │ │ ├── GL_EXT_texture_array │ │ ├── GL_EXT_texture_buffer_object │ │ ├── GL_EXT_texture_compression_latc │ │ ├── GL_EXT_texture_compression_rgtc │ │ ├── GL_EXT_texture_cube_map │ │ ├── GL_EXT_texture_edge_clamp │ │ ├── GL_EXT_texture_integer │ │ ├── GL_EXT_texture_rectangle │ │ ├── GL_EXT_texture_shared_exponent │ │ ├── GL_EXT_timer_query │ │ ├── GL_EXT_vertex_shader │ │ ├── GL_KHR_context_flush_control │ │ ├── GL_KTX_buffer_region │ │ ├── GL_NVX_gpu_memory_info │ │ ├── GL_NV_depth_buffer_float │ │ ├── GL_NV_depth_range_unclamped │ │ ├── GL_NV_fragment_program2 │ │ ├── GL_NV_fragment_program4 │ │ ├── GL_NV_fragment_program_option │ │ ├── GL_NV_framebuffer_multisample_coverage │ │ ├── GL_NV_geometry_program4 │ │ ├── GL_NV_geometry_shader4 │ │ ├── GL_NV_gpu_program4 │ │ ├── GL_NV_gpu_program5 │ │ ├── GL_NV_parameter_buffer_object │ │ ├── GL_NV_present_video │ │ ├── GL_NV_sample_locations │ │ ├── GL_NV_tessellation_program5 │ │ ├── GL_NV_transform_feedback │ │ ├── GL_NV_vdpau_interop │ │ ├── GL_NV_vertex_program2_option │ │ ├── GL_NV_vertex_program3 │ │ ├── GL_NV_vertex_program4 │ │ ├── GL_SGIX_shadow │ │ ├── GL_SUN_read_video_pixels │ │ ├── GL_VERSION_1_2 │ │ ├── GL_VERSION_1_2_1 │ │ ├── GL_VERSION_1_3 │ │ ├── GL_VERSION_1_4 │ │ ├── GL_VERSION_1_5 │ │ ├── GL_VERSION_2_0 │ │ ├── GL_VERSION_2_1 │ │ ├── GL_VERSION_3_0 │ │ ├── GL_VERSION_3_1 │ │ ├── GL_VERSION_3_2 │ │ ├── GL_VERSION_3_3 │ │ ├── GL_VERSION_4_0 │ │ ├── GL_VERSION_4_1 │ │ ├── GL_VERSION_4_2 │ │ ├── GL_VERSION_4_3 │ │ ├── GL_VERSION_4_4 │ │ ├── GL_VERSION_4_5 │ │ ├── GL_VERSION_4_6 │ │ ├── GL_WIN_swap_hint │ │ └── WGL_NV_gpu_affinity ├── custom.txt ├── doc │ ├── advanced.html │ ├── basic.html │ ├── build.html │ ├── credits.html │ ├── index.html │ ├── install.html │ └── log.html └── src │ ├── eglew_head.h │ ├── eglew_mid.h │ ├── eglew_tail.h │ ├── footer.html │ ├── glew.rc │ ├── glew_head.c │ ├── glew_head.h │ ├── glew_init_egl.c │ ├── glew_init_gl.c │ ├── glew_init_glx.c │ ├── glew_init_tail.c │ ├── glew_init_wgl.c │ ├── glew_license.h │ ├── glew_str_egl.c │ ├── glew_str_glx.c │ ├── glew_str_head.c │ ├── glew_str_tail.c │ ├── glew_str_wgl.c │ ├── glew_tail.h │ ├── glewinfo.rc │ ├── glewinfo_egl.c │ ├── glewinfo_gl.c │ ├── glewinfo_glx.c │ ├── glewinfo_head.c │ ├── glewinfo_tail.c │ ├── glewinfo_wgl.c │ ├── glxew_head.h │ ├── glxew_mid.h │ ├── glxew_tail.h │ ├── header.html │ ├── khronos_license.h │ ├── mesa_license.h │ ├── visualinfo.rc │ ├── wglew_head.h │ ├── wglew_mid.h │ └── wglew_tail.h ├── build ├── cmake │ ├── CMakeLists.txt │ ├── CopyImportedTargetProperties.cmake │ ├── cmake_uninstall.cmake.in │ ├── glew-config.cmake │ └── testbuild │ │ ├── CMakeLists.txt │ │ └── main.c ├── vc10 │ ├── common.props │ ├── glew.sln │ ├── glew_shared.vcxproj │ ├── glew_static.vcxproj │ ├── glewinfo.vcxproj │ └── visualinfo.vcxproj ├── vc12 │ ├── common.props │ ├── glew.sln │ ├── glew_shared.vcxproj │ ├── glew_static.vcxproj │ ├── glewinfo.vcxproj │ └── visualinfo.vcxproj ├── vc14 │ ├── common.props │ ├── glew.sln │ ├── glew_shared.vcxproj │ ├── glew_static.vcxproj │ ├── glewinfo.vcxproj │ └── visualinfo.vcxproj ├── vc15 │ ├── common.props │ ├── glew.sln │ ├── glew_shared.vcxproj │ ├── glew_static.vcxproj │ ├── glewinfo.vcxproj │ └── visualinfo.vcxproj └── vc6 │ ├── Makefile │ ├── glew.dsw │ ├── glew_shared.dsp │ ├── glew_static.dsp │ ├── glewinfo.dsp │ └── visualinfo.dsp ├── cmake-testbuild.sh ├── config ├── Makefile.cygming ├── Makefile.cygwin ├── Makefile.cygwin-x11 ├── Makefile.darwin ├── Makefile.darwin-arm64 ├── Makefile.darwin-gcc6 ├── Makefile.darwin-ppc ├── Makefile.darwin-universal ├── Makefile.darwin-x86_64 ├── Makefile.fedora-mingw32 ├── Makefile.flatpak-32 ├── Makefile.freebsd ├── Makefile.gnu ├── Makefile.haiku ├── Makefile.irix ├── Makefile.kfreebsd ├── Makefile.linux ├── Makefile.linux-clang ├── Makefile.linux-clang-egl ├── Makefile.linux-egl ├── Makefile.linux-egl-glvnd ├── Makefile.linux-mingw32 ├── Makefile.linux-mingw64 ├── Makefile.linux-osmesa ├── Makefile.mingw ├── Makefile.mingw-win32 ├── Makefile.msys ├── Makefile.msys-win32 ├── Makefile.msys-win64 ├── Makefile.nacl-32 ├── Makefile.nacl-64 ├── Makefile.netbsd ├── Makefile.openbsd ├── Makefile.solaris ├── Makefile.solaris-gcc ├── config.guess └── version ├── doc ├── advanced.html ├── basic.html ├── build.html ├── credits.html ├── github.png ├── glew.css ├── glew.html ├── glew.png ├── glew.txt ├── glxew.html ├── gpl.txt ├── index.html ├── install.html ├── khronos.txt ├── log.html ├── mesa.txt ├── new.png ├── ogl_sm.jpg ├── travis.png └── wglew.html ├── glew.pc.in └── src └── visualinfo.c /.gitattributes: -------------------------------------------------------------------------------- 1 | * text eol=lf 2 | *.png binary 3 | *.pdf binary 4 | build/*/* text eol=crlf 5 | CMakeLists.txt text eol=lf 6 | build/cmake/* text eol=lf 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pc 2 | /src/*.c 3 | /include/GL/*.h 4 | /build/vc6/*.rc 5 | /build/*.rc 6 | /build/*/*.sdf 7 | /build/*/*.suo 8 | /build/*/*.db 9 | /build/*/*.vcxproj.user 10 | /build/*/.vs/ 11 | /build/*/tmp/ 12 | /build/cmake/CMakeFiles/ 13 | /build/cmake/CMakeCache.txt 14 | /build/cmake/cmake_install.cmake 15 | /build/cmake/Makefile 16 | /auto/extensions 17 | /auto/registry 18 | /bin 19 | /lib 20 | /tmp 21 | /out 22 | .DS_Store* 23 | auto/EGL-Registry 24 | auto/OpenGL-Registry 25 | auto/glfixes 26 | -------------------------------------------------------------------------------- /.lgtm.yml: -------------------------------------------------------------------------------- 1 | extraction: 2 | cpp: 3 | prepare: 4 | packages: 5 | - "build-essential" 6 | - "libxmu-dev" 7 | - "libxi-dev" 8 | - "libgl-dev" 9 | index: 10 | build_command: 11 | - "cd auto; make all -j8; cd .." 12 | - "make all -j8" 13 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: cpp 2 | dist: trusty 3 | install: 4 | script: 5 | - make -C auto clobber 6 | - make extensions 7 | - make dist-src 8 | - make clean && SYSTEM=linux make 9 | - make clean && SYSTEM=linux-osmesa make 10 | - make clean && SYSTEM=linux-egl make 11 | - make clean && SYSTEM=linux-clang make 12 | - make clean && SYSTEM=linux-clang-egl make 13 | - pushd build/cmake && git clean -xdf . && cmake -G 'Unix Makefiles' . && make && popd 14 | - pushd build/cmake && git clean -xdf . && cmake -G 'Unix Makefiles' -DGLEW_OSMESA=ON . && make && popd 15 | - pushd build/cmake && git clean -xdf . && cmake -G 'Unix Makefiles' -DGLEW_EGL=ON -DGLEW_X11=OFF . && make && popd 16 | addons: 17 | apt: 18 | packages: 19 | - git 20 | - cmake 21 | - dos2unix 22 | - libosmesa6-dev 23 | - libegl1-mesa-dev 24 | artifacts: 25 | paths: 26 | - $(ls *.zip *.tgz | tr "\n" ":") 27 | - $(find doc -type f | tr "\n" ":") 28 | -------------------------------------------------------------------------------- /auto/bin/filter_gles_ext.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | ## 11 | ## Parameters: 12 | ## 13 | ## $1: Extensions directory 14 | ## $2: Registry directory 15 | ## $3: The black list 16 | 17 | set -e 18 | 19 | # clean up 20 | rm -f $1/*.bak 21 | -------------------------------------------------------------------------------- /auto/bin/filter_spec.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | 3 | import re 4 | 5 | section = re.compile('^(Name|Name Strings?|Contact|Notice|Number|Dependencies|Overview|Issues|IP Status|Status|Version|New Procedures and Functions|New Tokens|Additions to .*|Changes to .*|Modifications to .*|Add new Section .*)\s*$') 6 | token = re.compile('^\s+(([A-Z0-9][A-Z0-9_x]*):?\s+((?:0x)?[0-9A-F]+)([^\?]*))?\s*$') 7 | match = [ 'Name', 'Name String', 'Contact', 'Notice', 'Name Strings', 'Version', 'Number', 'Dependencies', 'New Procedures and Functions', 'New Tokens'] 8 | 9 | if __name__ == '__main__': 10 | 11 | from optparse import OptionParser 12 | import os 13 | 14 | parser = OptionParser('usage: %prog [options] [SOURCES...]') 15 | (options, args) = parser.parse_args() 16 | 17 | for i in args: 18 | lines = open(i).readlines() 19 | f = open(i,'w') 20 | 21 | # Keep track of the current section as we iterate over the input 22 | current = '' 23 | for j in lines: 24 | 25 | # Detect the start of a new section 26 | m = section.match(j) 27 | if m: 28 | current = m.group(1).strip() 29 | if current in match: 30 | print >>f, j, 31 | continue 32 | 33 | if current=='New Tokens': 34 | if token.match(j): 35 | print >>f, j, 36 | elif current in match: 37 | print >>f, j, 38 | 39 | -------------------------------------------------------------------------------- /auto/bin/make_def_fun.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | 11 | use strict; 12 | use warnings; 13 | 14 | use lib '.'; 15 | do 'bin/make.pl'; 16 | 17 | # function pointer declaration 18 | sub make_pfn_decl($%) 19 | { 20 | return "PFN" . (uc $_[0]) . "PROC " . prefixname($_[0]) . " = NULL;"; 21 | } 22 | 23 | my @extlist = (); 24 | my %extensions = (); 25 | 26 | our $type = shift; 27 | 28 | if (@ARGV) 29 | { 30 | @extlist = @ARGV; 31 | 32 | foreach my $ext (sort @extlist) 33 | { 34 | my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext); 35 | output_decls($functions, \&make_pfn_decl); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /auto/bin/make_def_var.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | 11 | use strict; 12 | use warnings; 13 | 14 | use lib '.'; 15 | do 'bin/make.pl'; 16 | 17 | my @extlist = (); 18 | my %extensions = (); 19 | 20 | our $type = shift; 21 | 22 | if (@ARGV) 23 | { 24 | @extlist = @ARGV; 25 | 26 | foreach my $ext (sort @extlist) 27 | { 28 | my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext); 29 | my $extvar = $extname; 30 | $extvar =~ s/GL(X*)_/GL$1EW_/; 31 | print "GLboolean " . prefix_varname($extvar) . " = GL_FALSE;\n"; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /auto/bin/make_enable_index.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | 11 | use strict; 12 | use warnings; 13 | use File::Basename; 14 | 15 | use lib '.'; 16 | do 'bin/make.pl'; 17 | 18 | ## 19 | ## Make Extension-enabled Index 20 | ## 21 | 22 | my @extlist = (); 23 | 24 | if (@ARGV) 25 | { 26 | @extlist = @ARGV; 27 | 28 | print "/* Detected in the extension string or strings */\n"; 29 | print "static GLboolean _glewExtensionString[" . scalar @extlist . "];\n"; 30 | 31 | print "/* Detected via extension string or experimental mode */\n"; 32 | print "static GLboolean* _glewExtensionEnabled[] = {\n";; 33 | 34 | foreach my $ext (sort { basename($a) cmp basename($b) } @extlist) 35 | { 36 | my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = 37 | parse_ext($ext); 38 | 39 | my $extvar = $extname; 40 | $extvar =~ s/GL(X*)_/GL$1EW_/; 41 | 42 | print "#ifdef $extname\n"; 43 | print " &__$extvar,\n"; 44 | print "#endif\n"; 45 | } 46 | 47 | print " NULL\n};\n\n"; 48 | } 49 | -------------------------------------------------------------------------------- /auto/bin/make_header.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | 11 | use strict; 12 | use warnings; 13 | 14 | use lib '.'; 15 | do 'bin/make.pl'; 16 | 17 | # token 18 | sub make_define($$) 19 | { 20 | return "#define $_[0] $_[1]" 21 | } 22 | 23 | # type declaration 24 | sub make_type($$) 25 | { 26 | return "@_;" 27 | } 28 | 29 | # function pointer type declaration 30 | sub make_pfn_type($%) 31 | { 32 | our $api; 33 | return join(' ', "typedef", $_[1]->{rtype}, 34 | "($api * PFN" . (uc $_[0]) . "PROC)", 35 | "(" . $_[1]->{parms} . ")") . ";"; 36 | } 37 | 38 | # function name alias 39 | sub make_pfn_alias($%) 40 | { 41 | our $type; 42 | return join(" ", "#define", $_[0], $type . "EW_GET_FUN(" . prefixname($_[0]) . ")") 43 | } 44 | 45 | my @extlist = (); 46 | my %extensions = (); 47 | 48 | our $api = shift; 49 | our $type = shift; 50 | 51 | if (@ARGV) 52 | { 53 | @extlist = @ARGV; 54 | 55 | foreach my $ext (sort @extlist) 56 | { 57 | my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext); 58 | 59 | make_separator($extname); 60 | print "#ifndef $extname\n#define $extname 1\n"; 61 | output_tokens($tokens, \&make_define); 62 | output_types($types, \&make_type); 63 | output_exacts($exacts, \&make_exact); 64 | output_decls($functions, \&make_pfn_type); 65 | output_decls($functions, \&make_pfn_alias); 66 | 67 | my $extvar = $extname; 68 | $extvar =~ s/GL(X*)_/GL$1EW_/; 69 | 70 | print "\n#define $extvar " . $type . "EW_GET_VAR(" . prefix_varname($extvar) . ")\n"; 71 | print "\n#endif /* $extname */\n\n"; 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /auto/bin/make_html.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | 11 | use strict; 12 | use warnings; 13 | 14 | use lib '.'; 15 | do 'bin/make.pl'; 16 | 17 | #--------------------------------------------------------------------------------------- 18 | 19 | my @extlist = (); 20 | my %extensions = (); 21 | my $group = ""; 22 | my $cur_group = ""; 23 | 24 | if (@ARGV) 25 | { 26 | @extlist = @ARGV; 27 | my $n = 1; 28 | print "\n"; 29 | foreach my $ext (sort @extlist) 30 | { 31 | my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext); 32 | $cur_group = $extname; 33 | $cur_group =~ s/^(?:W?)GL(?:X?)_([A-Z0-9]+?)_.*$/$1/; 34 | $extname =~ s/^(?:W?)GL(?:X?)_(.*)$/$1/; 35 | if ($cur_group ne $group) 36 | { 37 | if ($group ne "") 38 | { 39 | print "\n"; 40 | } 41 | $group = $cur_group; 42 | } 43 | 44 | { 45 | if ($exturl) 46 | { 47 | print "\n"; 48 | } 49 | else 50 | { 51 | print "\n"; 52 | } 53 | $n++; 54 | } 55 | } 56 | print "

$n $extname
$n $extname
\n" 57 | } 58 | -------------------------------------------------------------------------------- /auto/bin/make_index.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | 11 | use strict; 12 | use warnings; 13 | use File::Basename; 14 | 15 | use lib '.'; 16 | do 'bin/make.pl'; 17 | 18 | ## 19 | ## Make Index 20 | ## 21 | ## Output sorted array of extension strings for indexing into extension 22 | ## enable/disable flags. This provides a way to convert an extension string 23 | ## into an integer index. 24 | ## 25 | 26 | my @extlist = (); 27 | 28 | if (@ARGV) 29 | { 30 | @extlist = @ARGV; 31 | 32 | foreach my $ext (sort { basename($a) cmp basename($b) } @extlist) 33 | { 34 | my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = 35 | parse_ext($ext); 36 | 37 | print "#ifdef $extname\n"; 38 | print " \"$extname\",\n"; 39 | print "#endif\n"; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /auto/bin/make_info.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | 11 | use strict; 12 | use warnings; 13 | 14 | use lib '.'; 15 | do 'bin/make.pl'; 16 | 17 | #--------------------------------------------------------------------------------------- 18 | 19 | # function pointer definition 20 | sub make_pfn_info($%) 21 | { 22 | my $name = $_[0]; 23 | return " glewInfoFunc(fi, \"$_[0]\", $name == NULL);"; 24 | } 25 | 26 | #--------------------------------------------------------------------------------------- 27 | 28 | my @extlist = (); 29 | my %extensions = (); 30 | 31 | if (@ARGV) 32 | { 33 | @extlist = @ARGV; 34 | 35 | foreach my $ext (sort @extlist) 36 | { 37 | my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext); 38 | my $extvar = $extname; 39 | $extvar =~ s/GL(X*)_/GL$1EW_/; 40 | my $extpre = $extname; 41 | $extpre =~ s/(GLX|GLW|GL).*/$1/; 42 | $extpre = lc $extpre; 43 | 44 | #make_separator($extname); 45 | print "#ifdef $extname\n\n"; 46 | print "static void _glewInfo_$extname (void)\n{\n"; 47 | 48 | if (! %$functions) 49 | { 50 | print " "; 51 | } 52 | else 53 | { 54 | print " GLboolean fi = "; 55 | } 56 | 57 | if ($extvar =~ /VERSION/) 58 | { 59 | print "glewPrintExt(\"$extname\", $extvar, $extvar, $extvar);\n"; 60 | } 61 | else 62 | { 63 | print "glewPrintExt(\"$extname\", $extvar, $extpre" . 64 | "ewIsSupported(\"$extname\"), $extpre" . 65 | "ewGetExtension(\"$extstring\"));\n"; 66 | } 67 | output_decls($functions, \&make_pfn_info); 68 | print "}\n\n"; 69 | print "#endif /* $extname */\n\n"; 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /auto/bin/make_info_list.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | 11 | use strict; 12 | use warnings; 13 | 14 | use lib '.'; 15 | do 'bin/make.pl'; 16 | 17 | #--------------------------------------------------------------------------------------- 18 | 19 | # function pointer definition 20 | sub make_pfn_def($%) 21 | { 22 | return "PFN" . (uc $_[0]) . "PROC " . prefixname($_[0]) . " = NULL;"; 23 | } 24 | 25 | # function pointer definition 26 | sub make_init_call($%) 27 | { 28 | my $name = prefixname($_[0]); 29 | return " r = r || (" . $name . " = (PFN" . (uc $_[0]) . "PROC)glewGetProcAddress((const GLubyte*)\"" . $name . "\")) == NULL;"; 30 | } 31 | 32 | #--------------------------------------------------------------------------------------- 33 | 34 | my @extlist = (); 35 | my %extensions = (); 36 | 37 | if (@ARGV) 38 | { 39 | @extlist = @ARGV; 40 | 41 | foreach my $ext (sort @extlist) 42 | { 43 | my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext); 44 | 45 | print "#ifdef $extname\n"; 46 | print " _glewInfo_$extname();\n"; 47 | print "#endif /* $extname */\n"; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /auto/bin/make_init.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | 11 | use strict; 12 | use warnings; 13 | 14 | use lib '.'; 15 | do 'bin/make.pl'; 16 | 17 | #------------------------------------------------------------------------------- 18 | 19 | # function pointer definition 20 | sub make_pfn_def_init($%) 21 | { 22 | #my $name = prefixname($_[0]); 23 | return " r = ((" . $_[0] . " = (PFN" . (uc $_[0]) . "PROC)glewGetProcAddress((const GLubyte*)\"" . $_[0] . "\")) == NULL) || r;"; 24 | } 25 | 26 | sub make_reuse_call($%) 27 | { 28 | return " r = _glewInit_" . $_[0] . "() || r;"; 29 | } 30 | 31 | #------------------------------------------------------------------------------- 32 | 33 | my @extlist = (); 34 | my %extensions = (); 35 | 36 | our $type = shift; 37 | 38 | if (@ARGV) 39 | { 40 | @extlist = @ARGV; 41 | 42 | foreach my $ext (sort @extlist) 43 | { 44 | my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = 45 | parse_ext($ext); 46 | 47 | #make_separator($extname); 48 | my $extvar = $extname; 49 | my $extvardef = $extname; 50 | $extvar =~ s/GL(X*)_/GL$1EW_/; 51 | if (keys %$functions or keys @$reuse) 52 | { 53 | print "#ifdef $extname\n\n"; 54 | print "static GLboolean _glewInit_$extname ()\n{\n GLboolean r = GL_FALSE;\n"; 55 | output_reuse($reuse, \&make_reuse_call); 56 | output_decls($functions, \&make_pfn_def_init); 57 | print "\n return r;\n}\n\n"; 58 | print "#endif /* $extname */\n\n"; 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /auto/bin/make_initd.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | 11 | use strict; 12 | use warnings; 13 | 14 | use lib '.'; 15 | do 'bin/make.pl'; 16 | 17 | ## Output declarations for the _glewInit_[extension] functions defined 18 | ## by make_init.pl script. These are necessary for for initializers to 19 | ## call each other, such as a core GL 3 context that depends on certain 20 | ## extensions. 21 | 22 | #------------------------------------------------------------------------------- 23 | 24 | my @extlist = (); 25 | my %extensions = (); 26 | 27 | our $type = shift; 28 | 29 | if (@ARGV) 30 | { 31 | @extlist = @ARGV; 32 | 33 | foreach my $ext (sort @extlist) 34 | { 35 | my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = 36 | parse_ext($ext); 37 | 38 | #print "#ifdef $extname\n\n"; 39 | if (keys %$functions) 40 | { 41 | print "static GLboolean _glewInit_$extname ();\n"; 42 | } 43 | #print "#endif /* $extname */\n\n"; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /auto/bin/make_list.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | 11 | use strict; 12 | use warnings; 13 | 14 | use lib '.'; 15 | do 'bin/make.pl'; 16 | 17 | #--------------------------------------------------------------------------------------- 18 | 19 | # function pointer definition 20 | sub make_init_call($%) 21 | { 22 | my $name = prefixname($_[0]); 23 | return " r = r || (" . $_[0] . " = (PFN" . (uc $_[0]) . "PROC)glewGetProcAddress(\"" . $name . "\")) == NULL;"; 24 | } 25 | 26 | #--------------------------------------------------------------------------------------- 27 | 28 | my @extlist = (); 29 | my %extensions = (); 30 | 31 | if (@ARGV) 32 | { 33 | @extlist = @ARGV; 34 | 35 | foreach my $ext (sort @extlist) 36 | { 37 | my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext); 38 | 39 | my $extvar = $extname; 40 | $extvar =~ s/GL(X*)_/GL$1EW_/; 41 | 42 | my $extpre = $extname; 43 | $extpre =~ s/^(W?E?)GL(X?).*$/\l$1gl\l$2ew/; 44 | 45 | #my $pextvar = prefix_varname($extvar); 46 | 47 | if (length($extstring) && $extstring !~ /^GL_/ || keys %$functions) 48 | { 49 | print "#ifdef $extname\n"; 50 | } 51 | 52 | if (length($extstring) && $extstring !~ /^GL_/) 53 | { 54 | print " " . $extvar . " = _glewSearchExtension(\"$extstring\", extStart, extEnd);\n"; 55 | } 56 | 57 | if (keys %$functions) 58 | { 59 | if ($extname =~ /WGL_.*/) 60 | { 61 | print " if (glewExperimental || " . $extvar . "|| crippled) " . $extvar . "= !_glewInit_$extname();\n"; 62 | } 63 | else 64 | { 65 | print " if (glewExperimental || " . $extvar . ") " . $extvar . " = !_glewInit_$extname();\n"; 66 | } 67 | } 68 | 69 | if (length($extstring) && $extstring !~ /^GL_/ || keys %$functions) 70 | { 71 | print "#endif /* $extname */\n"; 72 | } 73 | } 74 | 75 | } 76 | -------------------------------------------------------------------------------- /auto/bin/make_list2.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | 11 | use strict; 12 | use warnings; 13 | 14 | use lib '.'; 15 | do 'bin/make.pl'; 16 | 17 | #--------------------------------------------------------------------------------------- 18 | # Extensions that depend on others can be enabled once we know 19 | # if the one it depends on, is enabled. 20 | 21 | my @extlist = (); 22 | my %extensions = (); 23 | 24 | if (@ARGV) 25 | { 26 | @extlist = @ARGV; 27 | 28 | foreach my $ext (sort @extlist) 29 | { 30 | my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext); 31 | 32 | if ($extname ne $extstring && length($extstring)) 33 | { 34 | my $extvar = $extname; 35 | $extvar =~ s/GL(X*)_/GL$1EW_/; 36 | 37 | my $parent = $extstring; 38 | $parent =~ s/GL(X*)_/GL$1EW_/; 39 | 40 | print "#ifdef $extname\n"; 41 | print " $extvar = $parent;\n"; 42 | print "#endif /* $extname */\n"; 43 | } 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /auto/bin/make_str.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | 11 | use strict; 12 | use warnings; 13 | 14 | use lib '.'; 15 | do 'bin/make.pl'; 16 | 17 | my @extlist = (); 18 | my %extensions = (); 19 | 20 | if (@ARGV) 21 | { 22 | @extlist = @ARGV; 23 | 24 | my $curexttype = ""; 25 | foreach my $ext (sort @extlist) 26 | { 27 | my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext); 28 | my $exttype = $extname; 29 | $exttype =~ s/(W?E?)GL(X?)_(.*?_)(.*)/$3/; 30 | my $extrem = $extname; 31 | $extrem =~ s/(W?E?)GL(X?)_(.*?_)(.*)/$4/; 32 | my $extvar = $extname; 33 | $extvar =~ s/(W?E?)GL(X?)_/$1GL$2EW_/; 34 | if(!($exttype =~ $curexttype)) 35 | { 36 | if(length($curexttype) > 0) 37 | { 38 | print " }\n"; 39 | } 40 | print " if (_glewStrSame2(&pos, &len, (const GLubyte*)\"$exttype\", " . length($exttype) . "))\n"; 41 | print " {\n"; 42 | $curexttype = $exttype; 43 | } 44 | print "#ifdef $extname\n"; 45 | print " if (_glewStrSame3(&pos, &len, (const GLubyte*)\"$extrem\", ". length($extrem) . "))\n"; 46 | #print " return $extvar;\n"; 47 | print " {\n"; 48 | print " ret = $extvar;\n"; 49 | print " continue;\n"; 50 | print " }\n"; 51 | print "#endif\n"; 52 | } 53 | 54 | print " }\n"; 55 | } 56 | -------------------------------------------------------------------------------- /auto/bin/make_struct_fun.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | 11 | use strict; 12 | use warnings; 13 | 14 | use lib '.'; 15 | do 'bin/make.pl'; 16 | 17 | # function pointer declaration 18 | sub make_pfn_decl($%) 19 | { 20 | our $export; 21 | return $export . " PFN" . (uc $_[0]) . "PROC " . prefixname($_[0]) . ";"; 22 | } 23 | 24 | my @extlist = (); 25 | my %extensions = (); 26 | 27 | our $export = shift; 28 | 29 | if (@ARGV) 30 | { 31 | @extlist = @ARGV; 32 | 33 | foreach my $ext (sort @extlist) 34 | { 35 | my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext); 36 | output_decls($functions, \&make_pfn_decl); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /auto/bin/make_struct_var.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | 11 | use strict; 12 | use warnings; 13 | 14 | use lib '.'; 15 | do 'bin/make.pl'; 16 | 17 | my @extlist = (); 18 | my %extensions = (); 19 | 20 | our $export = shift; 21 | 22 | if (@ARGV) 23 | { 24 | @extlist = @ARGV; 25 | 26 | foreach my $ext (sort @extlist) 27 | { 28 | my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext); 29 | my $extvar = $extname; 30 | $extvar =~ s/GL(X*)_/GL$1EW_/; 31 | print $export . " GLboolean " . prefix_varname($extvar) . ";\n"; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /auto/bin/update_ext.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | ## 3 | ## Copyright (C) 2008-2024, Nigel Stewart 4 | ## Copyright (C) 2002-2008, Marcelo E. Magallon 5 | ## Copyright (C) 2002-2008, Milan Ikits 6 | ## 7 | ## This program is distributed under the terms and conditions of the GNU 8 | ## General Public License Version 2 as published by the Free Software 9 | ## Foundation or, at your option, any later version. 10 | ## 11 | ## Parameters: 12 | ## 13 | ## $1: Extensions directory 14 | ## $2: Registry directory 15 | ## $3: The black list 16 | 17 | set -e 18 | 19 | if [ ! -d $1 ] ; then 20 | mkdir -p $1 21 | 22 | # Parse each of the extensions in the registry 23 | find $2 -name doc -type d -prune -o -name "*.txt" -print | \ 24 | grep -v -f $3 | sort | bin/parse_spec.pl $1 25 | 26 | fi 27 | -------------------------------------------------------------------------------- /auto/blacklist: -------------------------------------------------------------------------------- 1 | EXT/draw_range_elements.txt 2 | EXT/static_vertex_array.txt 3 | EXT/vertex_array_set.alt.txt 4 | EXT/vertex_array_set.txt 5 | EXT/nurbs_tessellator.txt 6 | EXT/object_space_tess.txt 7 | MESA/MESA_sampler_objects.txt 8 | SGI/filter4_parameters.txt 9 | SGIS/SGIS_texture_color_mask.txt 10 | SGIX/SGIX_dmbuffer.txt 11 | SGIX/SGIX_instruments.txt 12 | SGIX/SGIX_video_source.txt 13 | SGIX/SGIX_hyperpipe_group.txt 14 | OES/OES_fixed_point.txt 15 | OES/OES_query_matrix.txt 16 | IMG/IMG_user_clip_plane.txt 17 | NV/NV_query_resource.txt 18 | NV/EGL_NV_coverage_sample.txt 19 | OES/OES_draw_elements_base_vertex.txt 20 | OES/OES_viewport_array.txt 21 | OES/EGL_KHR_fence_sync.txt 22 | EXT/EXT_texenv_op.txt 23 | EXT/EXT_transform_feedback2.txt 24 | EXT/EXT_vertex_array_set.txt 25 | EXT/EXT_separate_shader_objects.gles.txt 26 | IGLOO/IGLOO_swap_triangle_strip_vertex_pointerXXX.txt 27 | IGLOO/IGLOO_viewport_offsetXXX.txt 28 | IGLOO/IGLOO_toggle_color_and_lightXXX.txt 29 | -------------------------------------------------------------------------------- /auto/core/gl/EGL_EXT_device_base: -------------------------------------------------------------------------------- 1 | EGL_EXT_device_base 2 | https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf 3 | EGL_EXT_device_base 4 | 5 | EGL_BAD_DEVICE_EXT 0x322B 6 | EGL_DEVICE_EXT 0x322C 7 | EGL_NO_DEVICE_EXT EGL_CAST(EGLDeviceEXT,0) 8 | -------------------------------------------------------------------------------- /auto/core/gl/EGL_KHR_fence_sync: -------------------------------------------------------------------------------- 1 | EGL_KHR_fence_sync 2 | https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf 3 | EGL_KHR_fence_sync 4 | 5 | EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0 6 | EGL_SYNC_CONDITION_KHR 0x30F8 7 | EGL_SYNC_FENCE_KHR 0x30F9 8 | -------------------------------------------------------------------------------- /auto/core/gl/EGL_KHR_image_base: -------------------------------------------------------------------------------- 1 | EGL_KHR_image_base 2 | https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf 3 | EGL_KHR_image_base 4 | 5 | EGL_IMAGE_PRESERVED_KHR 0x30D2 6 | EGL_NO_IMAGE_KHR EGL_CAST(EGLImageKHR,0) 7 | -------------------------------------------------------------------------------- /auto/core/gl/EGL_KHR_lock_surface3: -------------------------------------------------------------------------------- 1 | EGL_KHR_lock_surface3 2 | https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf 3 | EGL_KHR_lock_surface3 4 | 5 | EGL_READ_SURFACE_BIT_KHR 0x0001 6 | EGL_WRITE_SURFACE_BIT_KHR 0x0002 7 | EGL_LOCK_SURFACE_BIT_KHR 0x0080 8 | EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100 9 | EGL_MATCH_FORMAT_KHR 0x3043 10 | EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0 11 | EGL_FORMAT_RGB_565_KHR 0x30C1 12 | EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2 13 | EGL_FORMAT_RGBA_8888_KHR 0x30C3 14 | EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4 15 | EGL_LOCK_USAGE_HINT_KHR 0x30C5 16 | EGL_BITMAP_POINTER_KHR 0x30C6 17 | EGL_BITMAP_PITCH_KHR 0x30C7 18 | EGL_BITMAP_ORIGIN_KHR 0x30C8 19 | EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9 20 | EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA 21 | EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB 22 | EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC 23 | EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD 24 | EGL_LOWER_LEFT_KHR 0x30CE 25 | EGL_UPPER_LEFT_KHR 0x30CF 26 | EGL_BITMAP_PIXEL_SIZE_KHR 0x3110 27 | EGLBoolean eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR * value) 28 | -------------------------------------------------------------------------------- /auto/core/gl/EGL_VERSION_1_1: -------------------------------------------------------------------------------- 1 | EGL_VERSION_1_1 2 | https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf 3 | 4 | 5 | EGL_CONTEXT_LOST 0x300E 6 | EGL_BIND_TO_TEXTURE_RGB 0x3039 7 | EGL_BIND_TO_TEXTURE_RGBA 0x303A 8 | EGL_MIN_SWAP_INTERVAL 0x303B 9 | EGL_MAX_SWAP_INTERVAL 0x303C 10 | EGL_NO_TEXTURE 0x305C 11 | EGL_TEXTURE_RGB 0x305D 12 | EGL_TEXTURE_RGBA 0x305E 13 | EGL_TEXTURE_2D 0x305F 14 | EGL_TEXTURE_FORMAT 0x3080 15 | EGL_TEXTURE_TARGET 0x3081 16 | EGL_MIPMAP_TEXTURE 0x3082 17 | EGL_MIPMAP_LEVEL 0x3083 18 | EGL_BACK_BUFFER 0x3084 19 | EGLBoolean eglBindTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer) 20 | EGLBoolean eglReleaseTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer) 21 | EGLBoolean eglSurfaceAttrib (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value) 22 | EGLBoolean eglSwapInterval (EGLDisplay dpy, EGLint interval) 23 | -------------------------------------------------------------------------------- /auto/core/gl/EGL_VERSION_1_2: -------------------------------------------------------------------------------- 1 | EGL_VERSION_1_2 2 | https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf 3 | 4 | 5 | EGL_OPENGL_ES_BIT 0x0001 6 | EGL_OPENVG_BIT 0x0002 7 | EGL_LUMINANCE_SIZE 0x303D 8 | EGL_ALPHA_MASK_SIZE 0x303E 9 | EGL_COLOR_BUFFER_TYPE 0x303F 10 | EGL_RENDERABLE_TYPE 0x3040 11 | EGL_SINGLE_BUFFER 0x3085 12 | EGL_RENDER_BUFFER 0x3086 13 | EGL_COLORSPACE 0x3087 14 | EGL_ALPHA_FORMAT 0x3088 15 | EGL_COLORSPACE_sRGB 0x3089 16 | EGL_COLORSPACE_LINEAR 0x308A 17 | EGL_ALPHA_FORMAT_NONPRE 0x308B 18 | EGL_ALPHA_FORMAT_PRE 0x308C 19 | EGL_CLIENT_APIS 0x308D 20 | EGL_RGB_BUFFER 0x308E 21 | EGL_LUMINANCE_BUFFER 0x308F 22 | EGL_HORIZONTAL_RESOLUTION 0x3090 23 | EGL_VERTICAL_RESOLUTION 0x3091 24 | EGL_PIXEL_ASPECT_RATIO 0x3092 25 | EGL_SWAP_BEHAVIOR 0x3093 26 | EGL_BUFFER_PRESERVED 0x3094 27 | EGL_BUFFER_DESTROYED 0x3095 28 | EGL_OPENVG_IMAGE 0x3096 29 | EGL_CONTEXT_CLIENT_TYPE 0x3097 30 | EGL_OPENGL_ES_API 0x30A0 31 | EGL_OPENVG_API 0x30A1 32 | EGL_DISPLAY_SCALING 10000 33 | EGL_UNKNOWN EGL_CAST(EGLint,-1) 34 | EGLBoolean eglBindAPI (EGLenum api) 35 | EGLSurface eglCreatePbufferFromClientBuffer (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint * attrib_list) 36 | EGLenum eglQueryAPI ( void ) 37 | EGLBoolean eglReleaseThread ( void ) 38 | EGLBoolean eglWaitClient ( void ) 39 | -------------------------------------------------------------------------------- /auto/core/gl/EGL_VERSION_1_3: -------------------------------------------------------------------------------- 1 | EGL_VERSION_1_3 2 | https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf 3 | 4 | 5 | EGL_OPENGL_ES2_BIT 0x0004 6 | EGL_VG_COLORSPACE_LINEAR_BIT 0x0020 7 | EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040 8 | EGL_MATCH_NATIVE_PIXMAP 0x3041 9 | EGL_CONFORMANT 0x3042 10 | EGL_VG_COLORSPACE 0x3087 11 | EGL_VG_ALPHA_FORMAT 0x3088 12 | EGL_VG_COLORSPACE_sRGB 0x3089 13 | EGL_VG_COLORSPACE_LINEAR 0x308A 14 | EGL_VG_ALPHA_FORMAT_NONPRE 0x308B 15 | EGL_VG_ALPHA_FORMAT_PRE 0x308C 16 | EGL_CONTEXT_CLIENT_VERSION 0x3098 17 | -------------------------------------------------------------------------------- /auto/core/gl/EGL_VERSION_1_4: -------------------------------------------------------------------------------- 1 | EGL_VERSION_1_4 2 | https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf 3 | 4 | 5 | EGL_OPENGL_BIT 0x0008 6 | EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200 7 | EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400 8 | EGL_MULTISAMPLE_RESOLVE 0x3099 9 | EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A 10 | EGL_MULTISAMPLE_RESOLVE_BOX 0x309B 11 | EGL_OPENGL_API 0x30A2 12 | EGL_DEFAULT_DISPLAY EGL_CAST(EGLNativeDisplayType,0) 13 | EGLContext eglGetCurrentContext ( void ) 14 | -------------------------------------------------------------------------------- /auto/core/gl/EGL_VERSION_1_5: -------------------------------------------------------------------------------- 1 | EGL_VERSION_1_5 2 | https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf 3 | 4 | 5 | EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001 6 | EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002 7 | EGL_OPENGL_ES3_BIT 0x00000040 8 | EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001 9 | EGL_GL_COLORSPACE_SRGB 0x3089 10 | EGL_GL_COLORSPACE_LINEAR 0x308A 11 | EGL_CONTEXT_MAJOR_VERSION 0x3098 12 | EGL_CL_EVENT_HANDLE 0x309C 13 | EGL_GL_COLORSPACE 0x309D 14 | EGL_GL_TEXTURE_2D 0x30B1 15 | EGL_GL_TEXTURE_3D 0x30B2 16 | EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3 17 | EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4 18 | EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5 19 | EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6 20 | EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7 21 | EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8 22 | EGL_GL_RENDERBUFFER 0x30B9 23 | EGL_GL_TEXTURE_LEVEL 0x30BC 24 | EGL_GL_TEXTURE_ZOFFSET 0x30BD 25 | EGL_IMAGE_PRESERVED 0x30D2 26 | EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0 27 | EGL_SYNC_STATUS 0x30F1 28 | EGL_SIGNALED 0x30F2 29 | EGL_UNSIGNALED 0x30F3 30 | EGL_TIMEOUT_EXPIRED 0x30F5 31 | EGL_CONDITION_SATISFIED 0x30F6 32 | EGL_SYNC_TYPE 0x30F7 33 | EGL_SYNC_CONDITION 0x30F8 34 | EGL_SYNC_FENCE 0x30F9 35 | EGL_CONTEXT_MINOR_VERSION 0x30FB 36 | EGL_CONTEXT_OPENGL_PROFILE_MASK 0x30FD 37 | EGL_SYNC_CL_EVENT 0x30FE 38 | EGL_SYNC_CL_EVENT_COMPLETE 0x30FF 39 | EGL_CONTEXT_OPENGL_DEBUG 0x31B0 40 | EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1 41 | EGL_CONTEXT_OPENGL_ROBUST_ACCESS 0x31B2 42 | EGL_CONTEXT_OPENGL_ROBUST_ACCESS 0x31B2 43 | EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD 44 | EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD 45 | EGL_NO_RESET_NOTIFICATION 0x31BE 46 | EGL_LOSE_CONTEXT_ON_RESET 0x31BF 47 | EGL_FOREVER 0xFFFFFFFFFFFFFFFF 48 | EGL_NO_IMAGE EGL_CAST(EGLImage,0) 49 | EGL_NO_SYNC EGL_CAST(EGLSync,0) 50 | EGLint eglClientWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout) 51 | EGLImage eglCreateImage (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib * attrib_list) 52 | EGLSurface eglCreatePlatformPixmapSurface (EGLDisplay dpy, EGLConfig config, void * native_pixmap, const EGLAttrib * attrib_list) 53 | EGLSurface eglCreatePlatformWindowSurface (EGLDisplay dpy, EGLConfig config, void * native_window, const EGLAttrib * attrib_list) 54 | EGLSync eglCreateSync (EGLDisplay dpy, EGLenum type, const EGLAttrib * attrib_list) 55 | EGLBoolean eglDestroyImage (EGLDisplay dpy, EGLImage image) 56 | EGLBoolean eglDestroySync (EGLDisplay dpy, EGLSync sync) 57 | EGLDisplay eglGetPlatformDisplay (EGLenum platform, void * native_display, const EGLAttrib * attrib_list) 58 | EGLBoolean eglGetSyncAttrib (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib * value) 59 | EGLBoolean eglWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags) 60 | -------------------------------------------------------------------------------- /auto/core/gl/GLX_ARB_get_proc_address: -------------------------------------------------------------------------------- 1 | GLX_ARB_get_proc_address 2 | http://oss.sgi.com/projects/ogl-sample/registry/ARB/get_proc_address.txt 3 | GLX_ARB_get_proc_address 4 | 5 | extern void ( * glXGetProcAddressARB (const GLubyte *procName)) (void); 6 | -------------------------------------------------------------------------------- /auto/core/gl/GLX_ATI_pixel_format_float: -------------------------------------------------------------------------------- 1 | GLX_ATI_pixel_format_float 2 | 3 | GLX_ATI_pixel_format_float 4 | 5 | GLX_RGBA_FLOAT_ATI_BIT 0x00000100 6 | -------------------------------------------------------------------------------- /auto/core/gl/GLX_ATI_render_texture: -------------------------------------------------------------------------------- 1 | GLX_ATI_render_texture 2 | 3 | GLX_ATI_render_texture 4 | 5 | GLX_BIND_TO_TEXTURE_RGB_ATI 0x9800 6 | GLX_BIND_TO_TEXTURE_RGBA_ATI 0x9801 7 | GLX_TEXTURE_FORMAT_ATI 0x9802 8 | GLX_TEXTURE_TARGET_ATI 0x9803 9 | GLX_MIPMAP_TEXTURE_ATI 0x9804 10 | GLX_TEXTURE_RGB_ATI 0x9805 11 | GLX_TEXTURE_RGBA_ATI 0x9806 12 | GLX_NO_TEXTURE_ATI 0x9807 13 | GLX_TEXTURE_CUBE_MAP_ATI 0x9808 14 | GLX_TEXTURE_1D_ATI 0x9809 15 | GLX_TEXTURE_2D_ATI 0x980A 16 | GLX_MIPMAP_LEVEL_ATI 0x980B 17 | GLX_CUBE_MAP_FACE_ATI 0x980C 18 | GLX_TEXTURE_CUBE_MAP_POSITIVE_X_ATI 0x980D 19 | GLX_TEXTURE_CUBE_MAP_NEGATIVE_X_ATI 0x980E 20 | GLX_TEXTURE_CUBE_MAP_POSITIVE_Y_ATI 0x980F 21 | GLX_TEXTURE_CUBE_MAP_NEGATIVE_Y_ATI 0x9810 22 | GLX_TEXTURE_CUBE_MAP_POSITIVE_Z_ATI 0x9811 23 | GLX_TEXTURE_CUBE_MAP_NEGATIVE_Z_ATI 0x9812 24 | GLX_FRONT_LEFT_ATI 0x9813 25 | GLX_FRONT_RIGHT_ATI 0x9814 26 | GLX_BACK_LEFT_ATI 0x9815 27 | GLX_BACK_RIGHT_ATI 0x9816 28 | GLX_AUX0_ATI 0x9817 29 | GLX_AUX1_ATI 0x9818 30 | GLX_AUX2_ATI 0x9819 31 | GLX_AUX3_ATI 0x981A 32 | GLX_AUX4_ATI 0x981B 33 | GLX_AUX5_ATI 0x981C 34 | GLX_AUX6_ATI 0x981D 35 | GLX_AUX7_ATI 0x981E 36 | GLX_AUX8_ATI 0x981F 37 | GLX_AUX9_ATI 0x9820 38 | GLX_BIND_TO_TEXTURE_LUMINANCE_ATI 0x9821 39 | GLX_BIND_TO_TEXTURE_INTENSITY_ATI 0x9822 40 | void glXBindTexImageATI (Display *dpy, GLXPbuffer pbuf, int buffer) 41 | void glXReleaseTexImageATI (Display *dpy, GLXPbuffer pbuf, int buffer) 42 | void glXDrawableAttribATI (Display *dpy, GLXDrawable draw, const int *attrib_list) 43 | -------------------------------------------------------------------------------- /auto/core/gl/GLX_EXT_scene_marker: -------------------------------------------------------------------------------- 1 | GLX_EXT_scene_marker 2 | https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_scene_marker.txt 3 | GLX_EXT_scene_marker 4 | 5 | -------------------------------------------------------------------------------- /auto/core/gl/GLX_NV_vertex_array_range: -------------------------------------------------------------------------------- 1 | GLX_NV_vertex_array_range 2 | http://oss.sgi.com/projects/ogl-sample/registry/NV/vertex_array_range.txt 3 | GLX_NV_vertex_array_range 4 | 5 | void * glXAllocateMemoryNV (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority) 6 | void glXFreeMemoryNV (void *pointer) 7 | -------------------------------------------------------------------------------- /auto/core/gl/GLX_SGIS_color_range: -------------------------------------------------------------------------------- 1 | GLX_SGIS_color_range 2 | https://www.khronos.org/registry/OpenGL/extensions/SGIS/GLX_SGIS_color_range.txt 3 | GLX_SGIS_color_range 4 | 5 | -------------------------------------------------------------------------------- /auto/core/gl/GLX_SGIX_hyperpipe: -------------------------------------------------------------------------------- 1 | GLX_SGIX_hyperpipe 2 | http://oss.sgi.com/projects/ogl-sample/registry/SGIX/hyperpipe_group.txt 3 | GLX_SGIX_hyperpipe 4 | 5 | GLX_HYPERPIPE_ID_SGIX 0x8030 6 | GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80 7 | GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001 8 | GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002 9 | GLX_PIPE_RECT_SGIX 0x00000001 10 | GLX_PIPE_RECT_LIMITS_SGIX 0x00000002 11 | GLX_HYPERPIPE_STEREO_SGIX 0x00000003 12 | GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004 13 | GLX_BAD_HYPERPIPE_CONFIG_SGIX 91 14 | GLX_BAD_HYPERPIPE_SGIX 92 15 | typedef struct { char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; int networkId; } GLXHyperpipeNetworkSGIX; 16 | typedef struct { char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; int channel; unsigned int participationType; int timeSlice; } GLXHyperpipeConfigSGIX; 17 | typedef struct { char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; int srcXOrigin; int srcYOrigin; int srcWidth; int srcHeight; int destXOrigin; int destYOrigin; int destWidth; int destHeight; } GLXPipeRect; 18 | typedef struct { char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; int XOrigin; int YOrigin; int maxHeight; int maxWidth; } GLXPipeRectLimits; 19 | GLXHyperpipeNetworkSGIX * glXQueryHyperpipeNetworkSGIX (Display *dpy, int *npipes) 20 | int glXHyperpipeConfigSGIX (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId) 21 | GLXHyperpipeConfigSGIX * glXQueryHyperpipeConfigSGIX (Display *dpy, int hpId, int *npipes) 22 | int glXDestroyHyperpipeConfigSGIX (Display *dpy, int hpId) 23 | int glXBindHyperpipeSGIX (Display *dpy, int hpId) 24 | int glXQueryHyperpipeBestAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList) 25 | int glXHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList) 26 | int glXQueryHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList) 27 | -------------------------------------------------------------------------------- /auto/core/gl/GLX_SUN_video_resize: -------------------------------------------------------------------------------- 1 | GLX_SUN_video_resize 2 | http://wwws.sun.com/software/graphics/opengl/extensions/glx_sun_video_resize.txt 3 | GLX_SUN_video_resize 4 | 5 | GL_VIDEO_RESIZE_COMPENSATION_SUN 0x85CD 6 | GLX_VIDEO_RESIZE_SUN 0x8171 7 | int glXVideoResizeSUN (Display* display, GLXDrawable window, float factor) 8 | int glXGetVideoResizeSUN (Display* display, GLXDrawable window, float* factor) 9 | -------------------------------------------------------------------------------- /auto/core/gl/GLX_VERSION_1_2: -------------------------------------------------------------------------------- 1 | GLX_VERSION_1_2 2 | http://www.opengl.org/documentation/specs/glx/glx1.2.ps 3 | GLX_VERSION_1_2 4 | 5 | Display* glXGetCurrentDisplay (void) 6 | -------------------------------------------------------------------------------- /auto/core/gl/GLX_VERSION_1_4: -------------------------------------------------------------------------------- 1 | GLX_VERSION_1_4 2 | http://www.opengl.org/documentation/specs/glx/glx1.4.pdf 3 | GLX_VERSION_1_4 4 | 5 | GLX_SAMPLE_BUFFERS 100000 6 | GLX_SAMPLES 100001 7 | extern void ( * glXGetProcAddress (const GLubyte *procName)) (void); 8 | -------------------------------------------------------------------------------- /auto/core/gl/GL_APPLE_float_pixels: -------------------------------------------------------------------------------- 1 | GL_APPLE_float_pixels 2 | http://www.opengl.org/registry/specs/APPLE/float_pixels.txt 3 | GL_APPLE_float_pixels 4 | 5 | GL_HALF_APPLE 0x140B 6 | GL_COLOR_FLOAT_APPLE 0x8A0F 7 | GL_RGBA_FLOAT32_APPLE 0x8814 8 | GL_RGB_FLOAT32_APPLE 0x8815 9 | GL_ALPHA_FLOAT32_APPLE 0x8816 10 | GL_INTENSITY_FLOAT32_APPLE 0x8817 11 | GL_LUMINANCE_FLOAT32_APPLE 0x8818 12 | GL_LUMINANCE_ALPHA_FLOAT32_APPLE 0x8819 13 | GL_RGBA_FLOAT16_APPLE 0x881A 14 | GL_RGB_FLOAT16_APPLE 0x881B 15 | GL_ALPHA_FLOAT16_APPLE 0x881C 16 | GL_INTENSITY_FLOAT16_APPLE 0x881D 17 | GL_LUMINANCE_FLOAT16_APPLE 0x881E 18 | GL_LUMINANCE_ALPHA_FLOAT16_APPLE 0x881F 19 | -------------------------------------------------------------------------------- /auto/core/gl/GL_APPLE_pixel_buffer: -------------------------------------------------------------------------------- 1 | GL_APPLE_pixel_buffer 2 | 3 | GL_APPLE_pixel_buffer 4 | 5 | GL_MIN_PBUFFER_VIEWPORT_DIMS_APPLE 0x8A10 6 | -------------------------------------------------------------------------------- /auto/core/gl/GL_APPLE_texture_range: -------------------------------------------------------------------------------- 1 | GL_APPLE_texture_range 2 | http://www.opengl.org/registry/specs/APPLE/texture_range.txt 3 | GL_APPLE_texture_range 4 | 5 | GL_TEXTURE_STORAGE_HINT_APPLE 0x85BC 6 | GL_STORAGE_PRIVATE_APPLE 0x85BD 7 | GL_STORAGE_CACHED_APPLE 0x85BE 8 | GL_STORAGE_SHARED_APPLE 0x85BF 9 | GL_TEXTURE_RANGE_LENGTH_APPLE 0x85B7 10 | GL_TEXTURE_RANGE_POINTER_APPLE 0x85B8 11 | void glTextureRangeAPPLE (GLenum target, GLsizei length, void *pointer) 12 | void glGetTexParameterPointervAPPLE (GLenum target, GLenum pname, void **params) 13 | 14 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ARB_draw_instanced: -------------------------------------------------------------------------------- 1 | GL_ARB_draw_instanced 2 | http://www.opengl.org/registry/specs/ARB/draw_instanced.txt 3 | GL_ARB_draw_instanced 4 | 5 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ARB_instanced_arrays: -------------------------------------------------------------------------------- 1 | GL_ARB_instanced_arrays 2 | http://www.opengl.org/registry/specs/ARB/instanced_arrays.txt 3 | GL_ARB_instanced_arrays 4 | 5 | GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE 6 | void glVertexAttribDivisorARB (GLuint index, GLuint divisor) 7 | void glDrawArraysInstancedARB (GLenum mode, GLint first, GLsizei count, GLsizei primcount) 8 | void glDrawElementsInstancedARB (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount) 9 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ARB_matrix_palette: -------------------------------------------------------------------------------- 1 | GL_ARB_matrix_palette 2 | http://oss.sgi.com/projects/ogl-sample/registry/ARB/matrix_palette.txt 3 | GL_ARB_matrix_palette 4 | 5 | GL_MATRIX_PALETTE_ARB 0x8840 6 | GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841 7 | GL_MAX_PALETTE_MATRICES_ARB 0x8842 8 | GL_CURRENT_PALETTE_MATRIX_ARB 0x8843 9 | GL_MATRIX_INDEX_ARRAY_ARB 0x8844 10 | GL_CURRENT_MATRIX_INDEX_ARB 0x8845 11 | GL_MATRIX_INDEX_ARRAY_SIZE_ARB 0x8846 12 | GL_MATRIX_INDEX_ARRAY_TYPE_ARB 0x8847 13 | GL_MATRIX_INDEX_ARRAY_STRIDE_ARB 0x8848 14 | GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849 15 | void glCurrentPaletteMatrixARB (GLint index) 16 | void glMatrixIndexPointerARB (GLint size, GLenum type, GLsizei stride, void *pointer) 17 | void glMatrixIndexubvARB (GLint size, GLubyte *indices) 18 | void glMatrixIndexusvARB (GLint size, GLushort *indices) 19 | void glMatrixIndexuivARB (GLint size, GLuint *indices) 20 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ARB_multitexture: -------------------------------------------------------------------------------- 1 | GL_ARB_multitexture 2 | http://oss.sgi.com/projects/ogl-sample/registry/ARB/multitexture.txt 3 | GL_ARB_multitexture 4 | 5 | GL_TEXTURE0_ARB 0x84C0 6 | GL_TEXTURE1_ARB 0x84C1 7 | GL_TEXTURE2_ARB 0x84C2 8 | GL_TEXTURE3_ARB 0x84C3 9 | GL_TEXTURE4_ARB 0x84C4 10 | GL_TEXTURE5_ARB 0x84C5 11 | GL_TEXTURE6_ARB 0x84C6 12 | GL_TEXTURE7_ARB 0x84C7 13 | GL_TEXTURE8_ARB 0x84C8 14 | GL_TEXTURE9_ARB 0x84C9 15 | GL_TEXTURE10_ARB 0x84CA 16 | GL_TEXTURE11_ARB 0x84CB 17 | GL_TEXTURE12_ARB 0x84CC 18 | GL_TEXTURE13_ARB 0x84CD 19 | GL_TEXTURE14_ARB 0x84CE 20 | GL_TEXTURE15_ARB 0x84CF 21 | GL_TEXTURE16_ARB 0x84D0 22 | GL_TEXTURE17_ARB 0x84D1 23 | GL_TEXTURE18_ARB 0x84D2 24 | GL_TEXTURE19_ARB 0x84D3 25 | GL_TEXTURE20_ARB 0x84D4 26 | GL_TEXTURE21_ARB 0x84D5 27 | GL_TEXTURE22_ARB 0x84D6 28 | GL_TEXTURE23_ARB 0x84D7 29 | GL_TEXTURE24_ARB 0x84D8 30 | GL_TEXTURE25_ARB 0x84D9 31 | GL_TEXTURE26_ARB 0x84DA 32 | GL_TEXTURE27_ARB 0x84DB 33 | GL_TEXTURE28_ARB 0x84DC 34 | GL_TEXTURE29_ARB 0x84DD 35 | GL_TEXTURE30_ARB 0x84DE 36 | GL_TEXTURE31_ARB 0x84DF 37 | GL_ACTIVE_TEXTURE_ARB 0x84E0 38 | GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1 39 | GL_MAX_TEXTURE_UNITS_ARB 0x84E2 40 | void glActiveTextureARB (GLenum texture) 41 | void glClientActiveTextureARB (GLenum texture) 42 | void glMultiTexCoord1dARB (GLenum target, GLdouble s) 43 | void glMultiTexCoord1dvARB (GLenum target, const GLdouble *v) 44 | void glMultiTexCoord1fARB (GLenum target, GLfloat s) 45 | void glMultiTexCoord1fvARB (GLenum target, const GLfloat *v) 46 | void glMultiTexCoord1iARB (GLenum target, GLint s) 47 | void glMultiTexCoord1ivARB (GLenum target, const GLint *v) 48 | void glMultiTexCoord1sARB (GLenum target, GLshort s) 49 | void glMultiTexCoord1svARB (GLenum target, const GLshort *v) 50 | void glMultiTexCoord2dARB (GLenum target, GLdouble s, GLdouble t) 51 | void glMultiTexCoord2dvARB (GLenum target, const GLdouble *v) 52 | void glMultiTexCoord2fARB (GLenum target, GLfloat s, GLfloat t) 53 | void glMultiTexCoord2fvARB (GLenum target, const GLfloat *v) 54 | void glMultiTexCoord2iARB (GLenum target, GLint s, GLint t) 55 | void glMultiTexCoord2ivARB (GLenum target, const GLint *v) 56 | void glMultiTexCoord2sARB (GLenum target, GLshort s, GLshort t) 57 | void glMultiTexCoord2svARB (GLenum target, const GLshort *v) 58 | void glMultiTexCoord3dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r) 59 | void glMultiTexCoord3dvARB (GLenum target, const GLdouble *v) 60 | void glMultiTexCoord3fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r) 61 | void glMultiTexCoord3fvARB (GLenum target, const GLfloat *v) 62 | void glMultiTexCoord3iARB (GLenum target, GLint s, GLint t, GLint r) 63 | void glMultiTexCoord3ivARB (GLenum target, const GLint *v) 64 | void glMultiTexCoord3sARB (GLenum target, GLshort s, GLshort t, GLshort r) 65 | void glMultiTexCoord3svARB (GLenum target, const GLshort *v) 66 | void glMultiTexCoord4dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q) 67 | void glMultiTexCoord4dvARB (GLenum target, const GLdouble *v) 68 | void glMultiTexCoord4fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q) 69 | void glMultiTexCoord4fvARB (GLenum target, const GLfloat *v) 70 | void glMultiTexCoord4iARB (GLenum target, GLint s, GLint t, GLint r, GLint q) 71 | void glMultiTexCoord4ivARB (GLenum target, const GLint *v) 72 | void glMultiTexCoord4sARB (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q) 73 | void glMultiTexCoord4svARB (GLenum target, const GLshort *v) 74 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ARB_robustness: -------------------------------------------------------------------------------- 1 | GL_ARB_robustness 2 | http://www.opengl.org/registry/specs/ARB/robustness.txt 3 | GL_ARB_robustness 4 | 5 | GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004 6 | GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 7 | GL_GUILTY_CONTEXT_RESET_ARB 0x8253 8 | GL_INNOCENT_CONTEXT_RESET_ARB 0x8254 9 | GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255 10 | GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 11 | GL_NO_RESET_NOTIFICATION_ARB 0x8261 12 | GLenum glGetGraphicsResetStatusARB (void) 13 | void glGetnColorTableARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* table) 14 | void glGetnCompressedTexImageARB (GLenum target, GLint lod, GLsizei bufSize, void* img) 15 | void glGetnConvolutionFilterARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* image) 16 | void glGetnHistogramARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values) 17 | void glGetnMapdvARB (GLenum target, GLenum query, GLsizei bufSize, GLdouble* v) 18 | void glGetnMapfvARB (GLenum target, GLenum query, GLsizei bufSize, GLfloat* v) 19 | void glGetnMapivARB (GLenum target, GLenum query, GLsizei bufSize, GLint* v) 20 | void glGetnMinmaxARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values) 21 | void glGetnPixelMapfvARB (GLenum map, GLsizei bufSize, GLfloat* values) 22 | void glGetnPixelMapuivARB (GLenum map, GLsizei bufSize, GLuint* values) 23 | void glGetnPixelMapusvARB (GLenum map, GLsizei bufSize, GLushort* values) 24 | void glGetnPolygonStippleARB (GLsizei bufSize, GLubyte* pattern) 25 | void glGetnSeparableFilterARB (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void* row, GLsizei columnBufSize, void*column, void*span) 26 | void glGetnTexImageARB (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void* img) 27 | void glGetnUniformdvARB (GLuint program, GLint location, GLsizei bufSize, GLdouble* params) 28 | void glGetnUniformfvARB (GLuint program, GLint location, GLsizei bufSize, GLfloat* params) 29 | void glGetnUniformivARB (GLuint program, GLint location, GLsizei bufSize, GLint* params) 30 | void glGetnUniformuivARB (GLuint program, GLint location, GLsizei bufSize, GLuint* params) 31 | void glReadnPixelsARB (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void* data) 32 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ARB_vertex_attrib_64bit: -------------------------------------------------------------------------------- 1 | GL_ARB_vertex_attrib_64bit 2 | http://www.opengl.org/registry/specs/ARB/vertex_attrib_64bit.txt 3 | GL_ARB_vertex_attrib_64bit 4 | 5 | void glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble* params) 6 | void glVertexAttribL1d (GLuint index, GLdouble x) 7 | void glVertexAttribL1dv (GLuint index, const GLdouble* v) 8 | void glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y) 9 | void glVertexAttribL2dv (GLuint index, const GLdouble* v) 10 | void glVertexAttribL3d (GLuint index, GLdouble x, GLdouble y, GLdouble z) 11 | void glVertexAttribL3dv (GLuint index, const GLdouble* v) 12 | void glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) 13 | void glVertexAttribL4dv (GLuint index, const GLdouble* v) 14 | void glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer) 15 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ARB_vertex_blend: -------------------------------------------------------------------------------- 1 | GL_ARB_vertex_blend 2 | http://oss.sgi.com/projects/ogl-sample/registry/ARB/vertex_blend.txt 3 | GL_ARB_vertex_blend 4 | 5 | GL_MAX_VERTEX_UNITS_ARB 0x86A4 6 | GL_ACTIVE_VERTEX_UNITS_ARB 0x86A5 7 | GL_WEIGHT_SUM_UNITY_ARB 0x86A6 8 | GL_VERTEX_BLEND_ARB 0x86A7 9 | GL_CURRENT_WEIGHT_ARB 0x86A8 10 | GL_WEIGHT_ARRAY_TYPE_ARB 0x86A9 11 | GL_WEIGHT_ARRAY_STRIDE_ARB 0x86AA 12 | GL_WEIGHT_ARRAY_SIZE_ARB 0x86AB 13 | GL_WEIGHT_ARRAY_POINTER_ARB 0x86AC 14 | GL_WEIGHT_ARRAY_ARB 0x86AD 15 | GL_MODELVIEW0_ARB 0x1700 16 | GL_MODELVIEW1_ARB 0x850A 17 | GL_MODELVIEW2_ARB 0x8722 18 | GL_MODELVIEW3_ARB 0x8723 19 | GL_MODELVIEW4_ARB 0x8724 20 | GL_MODELVIEW5_ARB 0x8725 21 | GL_MODELVIEW6_ARB 0x8726 22 | GL_MODELVIEW7_ARB 0x8727 23 | GL_MODELVIEW8_ARB 0x8728 24 | GL_MODELVIEW9_ARB 0x8729 25 | GL_MODELVIEW10_ARB 0x872A 26 | GL_MODELVIEW11_ARB 0x872B 27 | GL_MODELVIEW12_ARB 0x872C 28 | GL_MODELVIEW13_ARB 0x872D 29 | GL_MODELVIEW14_ARB 0x872E 30 | GL_MODELVIEW15_ARB 0x872F 31 | GL_MODELVIEW16_ARB 0x8730 32 | GL_MODELVIEW17_ARB 0x8731 33 | GL_MODELVIEW18_ARB 0x8732 34 | GL_MODELVIEW19_ARB 0x8733 35 | GL_MODELVIEW20_ARB 0x8734 36 | GL_MODELVIEW21_ARB 0x8735 37 | GL_MODELVIEW22_ARB 0x8736 38 | GL_MODELVIEW23_ARB 0x8737 39 | GL_MODELVIEW24_ARB 0x8738 40 | GL_MODELVIEW25_ARB 0x8739 41 | GL_MODELVIEW26_ARB 0x873A 42 | GL_MODELVIEW27_ARB 0x873B 43 | GL_MODELVIEW28_ARB 0x873C 44 | GL_MODELVIEW29_ARB 0x873D 45 | GL_MODELVIEW30_ARB 0x873E 46 | GL_MODELVIEW31_ARB 0x873F 47 | void glWeightbvARB (GLint size, GLbyte *weights) 48 | void glWeightsvARB (GLint size, GLshort *weights) 49 | void glWeightivARB (GLint size, GLint *weights) 50 | void glWeightfvARB (GLint size, GLfloat *weights) 51 | void glWeightdvARB (GLint size, GLdouble *weights) 52 | void glWeightubvARB (GLint size, GLubyte *weights) 53 | void glWeightusvARB (GLint size, GLushort *weights) 54 | void glWeightuivARB (GLint size, GLuint *weights) 55 | void glWeightPointerARB (GLint size, GLenum type, GLsizei stride, void *pointer) 56 | void glVertexBlendARB (GLint count) 57 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ATIX_point_sprites: -------------------------------------------------------------------------------- 1 | GL_ATIX_point_sprites 2 | http://www.ati.com/developer/atiopengl.pdf 3 | GL_ATIX_point_sprites 4 | 5 | GL_TEXTURE_POINT_MODE_ATIX 0x60B0 6 | GL_TEXTURE_POINT_ONE_COORD_ATIX 0x60B1 7 | GL_TEXTURE_POINT_SPRITE_ATIX 0x60B2 8 | GL_POINT_SPRITE_CULL_MODE_ATIX 0x60B3 9 | GL_POINT_SPRITE_CULL_CENTER_ATIX 0x60B4 10 | GL_POINT_SPRITE_CULL_CLIP_ATIX 0x60B5 11 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ATIX_texture_env_combine3: -------------------------------------------------------------------------------- 1 | GL_ATIX_texture_env_combine3 2 | http://www.ati.com/developer/atiopengl.pdf 3 | GL_ATIX_texture_env_combine3 4 | 5 | GL_MODULATE_ADD_ATIX 0x8744 6 | GL_MODULATE_SIGNED_ADD_ATIX 0x8745 7 | GL_MODULATE_SUBTRACT_ATIX 0x8746 8 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ATIX_texture_env_route: -------------------------------------------------------------------------------- 1 | GL_ATIX_texture_env_route 2 | http://www.ati.com/developer/sdk/RadeonSDK/Html/Info/ATIX_texture_env_route.txt 3 | GL_ATIX_texture_env_route 4 | 5 | GL_SECONDARY_COLOR_ATIX 0x8747 6 | GL_TEXTURE_OUTPUT_RGB_ATIX 0x8748 7 | GL_TEXTURE_OUTPUT_ALPHA_ATIX 0x8749 8 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ATIX_vertex_shader_output_point_size: -------------------------------------------------------------------------------- 1 | GL_ATIX_vertex_shader_output_point_size 2 | http://www.ati.com/developer/atiopengl.pdf 3 | GL_ATIX_vertex_shader_output_point_size 4 | 5 | GL_OUTPUT_POINT_SIZE_ATIX 0x610E 6 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ATI_envmap_bumpmap: -------------------------------------------------------------------------------- 1 | GL_ATI_envmap_bumpmap 2 | http://oss.sgi.com/projects/ogl-sample/registry/ATI/envmap_bumpmap.txt 3 | GL_ATI_envmap_bumpmap 4 | 5 | GL_BUMP_ROT_MATRIX_ATI 0x8775 6 | GL_BUMP_ROT_MATRIX_SIZE_ATI 0x8776 7 | GL_BUMP_NUM_TEX_UNITS_ATI 0x8777 8 | GL_BUMP_TEX_UNITS_ATI 0x8778 9 | GL_DUDV_ATI 0x8779 10 | GL_DU8DV8_ATI 0x877A 11 | GL_BUMP_ENVMAP_ATI 0x877B 12 | GL_BUMP_TARGET_ATI 0x877C 13 | void glTexBumpParameterivATI (GLenum pname, GLint *param) 14 | void glTexBumpParameterfvATI (GLenum pname, GLfloat *param) 15 | void glGetTexBumpParameterivATI (GLenum pname, GLint *param) 16 | void glGetTexBumpParameterfvATI (GLenum pname, GLfloat *param) 17 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ATI_map_object_buffer: -------------------------------------------------------------------------------- 1 | GL_ATI_map_object_buffer 2 | http://www.opengl.org/registry/specs/ATI/map_object_buffer.txt 3 | GL_ATI_map_object_buffer 4 | 5 | void * glMapObjectBufferATI (GLuint buffer) 6 | void glUnmapObjectBufferATI (GLuint buffer) 7 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ATI_pn_triangles: -------------------------------------------------------------------------------- 1 | GL_ATI_pn_triangles 2 | http://www.opengl.org/registry/specs/ATI/pn_triangles.txt 3 | GL_ATI_pn_triangles 4 | 5 | GL_PN_TRIANGLES_ATI 0x87F0 6 | GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F1 7 | GL_PN_TRIANGLES_POINT_MODE_ATI 0x87F2 8 | GL_PN_TRIANGLES_NORMAL_MODE_ATI 0x87F3 9 | GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F4 10 | GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI 0x87F5 11 | GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI 0x87F6 12 | GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI 0x87F7 13 | GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI 0x87F8 14 | void glPNTrianglesiATI (GLenum pname, GLint param) 15 | void glPNTrianglesfATI (GLenum pname, GLfloat param) 16 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ATI_separate_stencil: -------------------------------------------------------------------------------- 1 | GL_ATI_separate_stencil 2 | http://www.opengl.org/registry/specs/ATI/separate_stencil.txt 3 | GL_ATI_separate_stencil 4 | 5 | GL_STENCIL_BACK_FUNC_ATI 0x8800 6 | GL_STENCIL_BACK_FAIL_ATI 0x8801 7 | GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802 8 | GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI 0x8803 9 | void glStencilOpSeparateATI (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass) 10 | void glStencilFuncSeparateATI (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask) 11 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ATI_shader_texture_lod: -------------------------------------------------------------------------------- 1 | GL_ATI_shader_texture_lod 2 | 3 | GL_ATI_shader_texture_lod 4 | 5 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ATI_texture_compression_3dc: -------------------------------------------------------------------------------- 1 | GL_ATI_texture_compression_3dc 2 | 3 | GL_ATI_texture_compression_3dc 4 | 5 | GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI 0x8837 6 | -------------------------------------------------------------------------------- /auto/core/gl/GL_ATI_vertex_streams: -------------------------------------------------------------------------------- 1 | GL_ATI_vertex_streams 2 | http://www.opengl.org/registry/specs/ATI/vertex_streams.txt 3 | GL_ATI_vertex_streams 4 | 5 | GL_MAX_VERTEX_STREAMS_ATI 0x876B 6 | GL_VERTEX_SOURCE_ATI 0x876C 7 | GL_VERTEX_STREAM0_ATI 0x876D 8 | GL_VERTEX_STREAM1_ATI 0x876E 9 | GL_VERTEX_STREAM2_ATI 0x876F 10 | GL_VERTEX_STREAM3_ATI 0x8770 11 | GL_VERTEX_STREAM4_ATI 0x8771 12 | GL_VERTEX_STREAM5_ATI 0x8772 13 | GL_VERTEX_STREAM6_ATI 0x8773 14 | GL_VERTEX_STREAM7_ATI 0x8774 15 | void glClientActiveVertexStreamATI (GLenum stream) 16 | void glVertexBlendEnviATI (GLenum pname, GLint param) 17 | void glVertexBlendEnvfATI (GLenum pname, GLfloat param) 18 | void glVertexStream1sATI (GLenum stream, GLshort x) 19 | void glVertexStream1svATI (GLenum stream, const GLshort *coords) 20 | void glVertexStream1iATI (GLenum stream, GLint x) 21 | void glVertexStream1ivATI (GLenum stream, const GLint *coords) 22 | void glVertexStream1fATI (GLenum stream, GLfloat x) 23 | void glVertexStream1fvATI (GLenum stream, const GLfloat *coords) 24 | void glVertexStream1dATI (GLenum stream, GLdouble x) 25 | void glVertexStream1dvATI (GLenum stream, const GLdouble *coords) 26 | void glVertexStream2sATI (GLenum stream, GLshort x, GLshort y) 27 | void glVertexStream2svATI (GLenum stream, const GLshort *coords) 28 | void glVertexStream2iATI (GLenum stream, GLint x, GLint y) 29 | void glVertexStream2ivATI (GLenum stream, const GLint *coords) 30 | void glVertexStream2fATI (GLenum stream, GLfloat x, GLfloat y) 31 | void glVertexStream2fvATI (GLenum stream, const GLfloat *coords) 32 | void glVertexStream2dATI (GLenum stream, GLdouble x, GLdouble y) 33 | void glVertexStream2dvATI (GLenum stream, const GLdouble *coords) 34 | void glVertexStream3sATI (GLenum stream, GLshort x, GLshort y, GLshort z) 35 | void glVertexStream3svATI (GLenum stream, const GLshort *coords) 36 | void glVertexStream3iATI (GLenum stream, GLint x, GLint y, GLint z) 37 | void glVertexStream3ivATI (GLenum stream, const GLint *coords) 38 | void glVertexStream3fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z) 39 | void glVertexStream3fvATI (GLenum stream, const GLfloat *coords) 40 | void glVertexStream3dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z) 41 | void glVertexStream3dvATI (GLenum stream, const GLdouble *coords) 42 | void glVertexStream4sATI (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w) 43 | void glVertexStream4svATI (GLenum stream, const GLshort *coords) 44 | void glVertexStream4iATI (GLenum stream, GLint x, GLint y, GLint z, GLint w) 45 | void glVertexStream4ivATI (GLenum stream, const GLint *coords) 46 | void glVertexStream4fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w) 47 | void glVertexStream4fvATI (GLenum stream, const GLfloat *coords) 48 | void glVertexStream4dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w) 49 | void glVertexStream4dvATI (GLenum stream, const GLdouble *coords) 50 | void glNormalStream3bATI (GLenum stream, GLbyte x, GLbyte y, GLbyte z) 51 | void glNormalStream3bvATI (GLenum stream, const GLbyte *coords) 52 | void glNormalStream3sATI (GLenum stream, GLshort x, GLshort y, GLshort z) 53 | void glNormalStream3svATI (GLenum stream, const GLshort *coords) 54 | void glNormalStream3iATI (GLenum stream, GLint x, GLint y, GLint z) 55 | void glNormalStream3ivATI (GLenum stream, const GLint *coords) 56 | void glNormalStream3fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z) 57 | void glNormalStream3fvATI (GLenum stream, const GLfloat *coords) 58 | void glNormalStream3dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z) 59 | void glNormalStream3dvATI (GLenum stream, const GLdouble *coords) 60 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_Cg_shader: -------------------------------------------------------------------------------- 1 | GL_EXT_Cg_shader 2 | http://download.nvidia.com/developer/GLSL/GLSL%20Release%20Notes%20for%20Release%2060.pdf 3 | GL_EXT_Cg_shader 4 | 5 | GL_CG_VERTEX_SHADER_EXT 0x890E 6 | GL_CG_FRAGMENT_SHADER_EXT 0x890F 7 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_bindable_uniform: -------------------------------------------------------------------------------- 1 | GL_EXT_bindable_uniform 2 | http://developer.download.nvidia.com/opengl/specs/GL_EXT_bindable_uniform.txt 3 | GL_EXT_bindable_uniform 4 | 5 | GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT 0x8DE2 6 | GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT 0x8DE3 7 | GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT 0x8DE4 8 | GL_MAX_BINDABLE_UNIFORM_SIZE_EXT 0x8DED 9 | GL_UNIFORM_BUFFER_BINDING_EXT 0x8DEF 10 | GL_UNIFORM_BUFFER_EXT 0x8DEE 11 | void glUniformBufferEXT (GLuint program, GLint location, GLuint buffer) 12 | GLint glGetUniformBufferSizeEXT (GLuint program, GLint location) 13 | GLintptr glGetUniformOffsetEXT (GLuint program, GLint location) 14 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_debug_marker: -------------------------------------------------------------------------------- 1 | GL_EXT_debug_marker 2 | http://www.khronos.org/registry/gles/extensions/EXT/EXT_debug_marker.txt 3 | GL_EXT_debug_marker 4 | 5 | void glInsertEventMarkerEXT (GLsizei length, const GLchar* marker) 6 | void glPushGroupMarkerEXT (GLsizei length, const GLchar* marker) 7 | void glPopGroupMarkerEXT (void) 8 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_depth_bounds_test: -------------------------------------------------------------------------------- 1 | GL_EXT_depth_bounds_test 2 | http://www.nvidia.com/dev_content/nvopenglspecs/GL_EXT_depth_bounds_test.txt 3 | GL_EXT_depth_bounds_test 4 | 5 | GL_DEPTH_BOUNDS_TEST_EXT 0x8890 6 | GL_DEPTH_BOUNDS_EXT 0x8891 7 | void glDepthBoundsEXT (GLclampd zmin, GLclampd zmax) 8 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_draw_instanced: -------------------------------------------------------------------------------- 1 | GL_EXT_draw_instanced 2 | http://developer.download.nvidia.com/opengl/specs/GL_EXT_draw_instanced.txt 3 | GL_EXT_draw_instanced 4 | 5 | void glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount) 6 | void glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount) 7 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_draw_range_elements: -------------------------------------------------------------------------------- 1 | GL_EXT_draw_range_elements 2 | http://oss.sgi.com/projects/ogl-sample/registry/EXT/draw_range_elements.txt 3 | GL_EXT_draw_range_elements 4 | 5 | GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8 6 | GL_MAX_ELEMENTS_INDICES_EXT 0x80E9 7 | void glDrawRangeElementsEXT (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices) 8 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_external_buffer: -------------------------------------------------------------------------------- 1 | GL_EXT_external_buffer 2 | http://www.opengl.org/registry/specs/EXT/external_buffer.txt 3 | GL_EXT_external_buffer 4 | 5 | void glBufferStorageExternalEXT (GLenum target, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags) 6 | void glNamedBufferStorageExternalEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags) 7 | typedef void* GLeglClientBufferEXT -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_fog_coord: -------------------------------------------------------------------------------- 1 | GL_EXT_fog_coord 2 | http://oss.sgi.com/projects/ogl-sample/registry/EXT/fog_coord.txt 3 | GL_EXT_fog_coord 4 | 5 | GL_FOG_COORDINATE_SOURCE_EXT 0x8450 6 | GL_FOG_COORDINATE_EXT 0x8451 7 | GL_FRAGMENT_DEPTH_EXT 0x8452 8 | GL_CURRENT_FOG_COORDINATE_EXT 0x8453 9 | GL_FOG_COORDINATE_ARRAY_TYPE_EXT 0x8454 10 | GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455 11 | GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456 12 | GL_FOG_COORDINATE_ARRAY_EXT 0x8457 13 | void glFogCoordfEXT (GLfloat coord) 14 | void glFogCoordfvEXT (const GLfloat *coord) 15 | void glFogCoorddEXT (GLdouble coord) 16 | void glFogCoorddvEXT (const GLdouble *coord) 17 | void glFogCoordPointerEXT (GLenum type, GLsizei stride, const void *pointer) 18 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_framebuffer_sRGB: -------------------------------------------------------------------------------- 1 | GL_EXT_framebuffer_sRGB 2 | http://developer.download.nvidia.com/opengl/specs/GL_EXT_framebuffer_sRGB.txt 3 | GL_EXT_framebuffer_sRGB 4 | 5 | GL_FRAMEBUFFER_SRGB_EXT 0x8DB9 6 | GL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x8DBA 7 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_geometry_shader4: -------------------------------------------------------------------------------- 1 | GL_EXT_geometry_shader4 2 | http://developer.download.nvidia.com/opengl/specs/GL_EXT_geometry_shader4.txt 3 | GL_EXT_geometry_shader4 4 | 5 | GL_GEOMETRY_SHADER_EXT 0x8DD9 6 | GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT 0x8DDD 7 | GL_MAX_VERTEX_VARYING_COMPONENTS_EXT 0x8DDE 8 | GL_MAX_VARYING_COMPONENTS_EXT 0x8B4B 9 | GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8DDF 10 | GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT 0x8DE0 11 | GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT 0x8DE1 12 | GL_GEOMETRY_VERTICES_OUT_EXT 0x8DDA 13 | GL_GEOMETRY_INPUT_TYPE_EXT 0x8DDB 14 | GL_GEOMETRY_OUTPUT_TYPE_EXT 0x8DDC 15 | GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT 0x8C29 16 | GL_LINES_ADJACENCY_EXT 0xA 17 | GL_LINE_STRIP_ADJACENCY_EXT 0xB 18 | GL_TRIANGLES_ADJACENCY_EXT 0xC 19 | GL_TRIANGLE_STRIP_ADJACENCY_EXT 0xD 20 | GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7 21 | GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8 22 | GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT 0x8DA9 23 | GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT 0x8CD4 24 | GL_PROGRAM_POINT_SIZE_EXT 0x8642 25 | void glProgramParameteriEXT (GLuint program, GLenum pname, GLint value) 26 | void glFramebufferTextureEXT (GLenum target, GLenum attachment, GLuint texture, GLint level) 27 | void glFramebufferTextureFaceEXT (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face) 28 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_gpu_program_parameters: -------------------------------------------------------------------------------- 1 | GL_EXT_gpu_program_parameters 2 | http://developer.download.nvidia.com/opengl/specs/GL_EXT_gpu_program_parameters.txt 3 | GL_EXT_gpu_program_parameters 4 | 5 | void glProgramEnvParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat* params) 6 | void glProgramLocalParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat* params) 7 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_gpu_shader4: -------------------------------------------------------------------------------- 1 | GL_EXT_gpu_shader4 2 | http://developer.download.nvidia.com/opengl/specs/GL_EXT_gpu_shader4.txt 3 | GL_EXT_gpu_shader4 4 | 5 | GL_SAMPLER_1D_ARRAY_EXT 0x8DC0 6 | GL_SAMPLER_2D_ARRAY_EXT 0x8DC1 7 | GL_SAMPLER_BUFFER_EXT 0x8DC2 8 | GL_SAMPLER_1D_ARRAY_SHADOW_EXT 0x8DC3 9 | GL_SAMPLER_2D_ARRAY_SHADOW_EXT 0x8DC4 10 | GL_SAMPLER_CUBE_SHADOW_EXT 0x8DC5 11 | GL_UNSIGNED_INT_VEC2_EXT 0x8DC6 12 | GL_UNSIGNED_INT_VEC3_EXT 0x8DC7 13 | GL_UNSIGNED_INT_VEC4_EXT 0x8DC8 14 | GL_INT_SAMPLER_1D_EXT 0x8DC9 15 | GL_INT_SAMPLER_2D_EXT 0x8DCA 16 | GL_INT_SAMPLER_3D_EXT 0x8DCB 17 | GL_INT_SAMPLER_CUBE_EXT 0x8DCC 18 | GL_INT_SAMPLER_2D_RECT_EXT 0x8DCD 19 | GL_INT_SAMPLER_1D_ARRAY_EXT 0x8DCE 20 | GL_INT_SAMPLER_2D_ARRAY_EXT 0x8DCF 21 | GL_INT_SAMPLER_BUFFER_EXT 0x8DD0 22 | GL_UNSIGNED_INT_SAMPLER_1D_EXT 0x8DD1 23 | GL_UNSIGNED_INT_SAMPLER_2D_EXT 0x8DD2 24 | GL_UNSIGNED_INT_SAMPLER_3D_EXT 0x8DD3 25 | GL_UNSIGNED_INT_SAMPLER_CUBE_EXT 0x8DD4 26 | GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT 0x8DD5 27 | GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT 0x8DD6 28 | GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT 0x8DD7 29 | GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8DD8 30 | GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT 0x88FD 31 | void glGetUniformuivEXT (GLuint program, GLint location, GLuint *params) 32 | void glBindFragDataLocationEXT (GLuint program, GLuint color, const GLchar *name) 33 | GLint glGetFragDataLocationEXT (GLuint program, const GLchar *name) 34 | void glUniform1uiEXT (GLint location, GLuint v0) 35 | void glUniform2uiEXT (GLint location, GLuint v0, GLuint v1) 36 | void glUniform3uiEXT (GLint location, GLuint v0, GLuint v1, GLuint v2) 37 | void glUniform4uiEXT (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) 38 | void glUniform1uivEXT (GLint location, GLsizei count, const GLuint *value) 39 | void glUniform2uivEXT (GLint location, GLsizei count, const GLuint *value) 40 | void glUniform3uivEXT (GLint location, GLsizei count, const GLuint *value) 41 | void glUniform4uivEXT (GLint location, GLsizei count, const GLuint *value) 42 | void glVertexAttribI1iEXT (GLuint index, GLint x) 43 | void glVertexAttribI2iEXT (GLuint index, GLint x, GLint y) 44 | void glVertexAttribI3iEXT (GLuint index, GLint x, GLint y, GLint z) 45 | void glVertexAttribI4iEXT (GLuint index, GLint x, GLint y, GLint z, GLint w) 46 | void glVertexAttribI1uiEXT (GLuint index, GLuint x) 47 | void glVertexAttribI2uiEXT (GLuint index, GLuint x, GLuint y) 48 | void glVertexAttribI3uiEXT (GLuint index, GLuint x, GLuint y, GLuint z) 49 | void glVertexAttribI4uiEXT (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w) 50 | void glVertexAttribI1ivEXT (GLuint index, const GLint *v) 51 | void glVertexAttribI2ivEXT (GLuint index, const GLint *v) 52 | void glVertexAttribI3ivEXT (GLuint index, const GLint *v) 53 | void glVertexAttribI4ivEXT (GLuint index, const GLint *v) 54 | void glVertexAttribI1uivEXT (GLuint index, const GLuint *v) 55 | void glVertexAttribI2uivEXT (GLuint index, const GLuint *v) 56 | void glVertexAttribI3uivEXT (GLuint index, const GLuint *v) 57 | void glVertexAttribI4uivEXT (GLuint index, const GLuint *v) 58 | void glVertexAttribI4bvEXT (GLuint index, const GLbyte *v) 59 | void glVertexAttribI4svEXT (GLuint index, const GLshort *v) 60 | void glVertexAttribI4ubvEXT (GLuint index, const GLubyte *v) 61 | void glVertexAttribI4usvEXT (GLuint index, const GLushort *v) 62 | void glVertexAttribIPointerEXT (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer) 63 | void glGetVertexAttribIivEXT (GLuint index, GLenum pname, GLint *params) 64 | void glGetVertexAttribIuivEXT (GLuint index, GLenum pname, GLuint *params) 65 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_memory_object: -------------------------------------------------------------------------------- 1 | GL_EXT_memory_object 2 | http://www.opengl.org/registry/specs/EXT/external_objects.txt 3 | GL_EXT_memory_object 4 | 5 | GL_UUID_SIZE_EXT 16 6 | GL_TEXTURE_TILING_EXT 0x9580 7 | GL_DEDICATED_MEMORY_OBJECT_EXT 0x9581 8 | GL_NUM_TILING_TYPES_EXT 0x9582 9 | GL_TILING_TYPES_EXT 0x9583 10 | GL_OPTIMAL_TILING_EXT 0x9584 11 | GL_LINEAR_TILING_EXT 0x9585 12 | GL_NUM_DEVICE_UUIDS_EXT 0x9596 13 | GL_DEVICE_UUID_EXT 0x9597 14 | GL_DRIVER_UUID_EXT 0x9598 15 | GL_PROTECTED_MEMORY_OBJECT_EXT 0x959B 16 | void glBufferStorageMemEXT (GLenum target, GLsizeiptr size, GLuint memory, GLuint64 offset) 17 | void glCreateMemoryObjectsEXT (GLsizei n, GLuint* memoryObjects) 18 | void glDeleteMemoryObjectsEXT (GLsizei n, const GLuint* memoryObjects) 19 | void glGetMemoryObjectParameterivEXT (GLuint memoryObject, GLenum pname, GLint* params) 20 | void glGetUnsignedBytei_vEXT (GLenum target, GLuint index, GLubyte* data) 21 | void glGetUnsignedBytevEXT (GLenum pname, GLubyte* data) 22 | GLboolean glIsMemoryObjectEXT (GLuint memoryObject) 23 | void glMemoryObjectParameterivEXT (GLuint memoryObject, GLenum pname, const GLint* params) 24 | void glNamedBufferStorageMemEXT (GLuint buffer, GLsizeiptr size, GLuint memory, GLuint64 offset) 25 | void glTexStorageMem1DEXT (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLuint memory, GLuint64 offset) 26 | void glTexStorageMem2DEXT (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset) 27 | void glTexStorageMem2DMultisampleEXT (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset) 28 | void glTexStorageMem3DEXT (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset) 29 | void glTexStorageMem3DMultisampleEXT (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset) 30 | void glTextureStorageMem1DEXT (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLuint memory, GLuint64 offset) 31 | void glTextureStorageMem2DEXT (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset) 32 | void glTextureStorageMem2DMultisampleEXT (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset) 33 | void glTextureStorageMem3DEXT (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset) 34 | void glTextureStorageMem3DMultisampleEXT (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset) 35 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_memory_object_fd: -------------------------------------------------------------------------------- 1 | GL_EXT_memory_object_fd 2 | http://www.opengl.org/registry/specs/EXT/external_objects_fd.txt 3 | GL_EXT_memory_object_fd 4 | 5 | GL_HANDLE_TYPE_OPAQUE_FD_EXT 0x9586 6 | void glImportMemoryFdEXT (GLuint memory, GLuint64 size, GLenum handleType, GLint fd) 7 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_memory_object_win32: -------------------------------------------------------------------------------- 1 | GL_EXT_memory_object_win32 2 | http://www.opengl.org/registry/specs/EXT/external_objects_win32.txt 3 | GL_EXT_memory_object_win32 4 | 5 | GL_LUID_SIZE_EXT 8 6 | GL_HANDLE_TYPE_OPAQUE_WIN32_EXT 0x9587 7 | GL_HANDLE_TYPE_OPAQUE_WIN32_KMT_EXT 0x9588 8 | GL_HANDLE_TYPE_D3D12_TILEPOOL_EXT 0x9589 9 | GL_HANDLE_TYPE_D3D12_RESOURCE_EXT 0x958A 10 | GL_HANDLE_TYPE_D3D11_IMAGE_EXT 0x958B 11 | GL_HANDLE_TYPE_D3D11_IMAGE_KMT_EXT 0x958C 12 | GL_HANDLE_TYPE_D3D12_FENCE_EXT 0x9594 13 | GL_D3D12_FENCE_VALUE_EXT 0x9595 14 | GL_DEVICE_LUID_EXT 0x9599 15 | GL_DEVICE_NODE_MASK_EXT 0x959A 16 | void glImportMemoryWin32HandleEXT (GLuint memory, GLuint64 size, GLenum handleType, void *handle) 17 | void glImportMemoryWin32NameEXT (GLuint memory, GLuint64 size, GLenum handleType, const void *name) 18 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_packed_float: -------------------------------------------------------------------------------- 1 | GL_EXT_packed_float 2 | http://developer.download.nvidia.com/opengl/specs/GL_EXT_packed_float.txt 3 | GL_EXT_packed_float 4 | 5 | GL_R11F_G11F_B10F_EXT 0x8C3A 6 | GL_UNSIGNED_INT_10F_11F_11F_REV_EXT 0x8C3B 7 | GL_RGBA_SIGNED_COMPONENTS_EXT 0x8C3C 8 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_pixel_buffer_object: -------------------------------------------------------------------------------- 1 | GL_EXT_pixel_buffer_object 2 | http://www.nvidia.com/dev_content/nvopenglspecs/GL_EXT_pixel_buffer_object.txt 3 | GL_EXT_pixel_buffer_object 4 | 5 | GL_PIXEL_PACK_BUFFER_EXT 0x88EB 6 | GL_PIXEL_UNPACK_BUFFER_EXT 0x88EC 7 | GL_PIXEL_PACK_BUFFER_BINDING_EXT 0x88ED 8 | GL_PIXEL_UNPACK_BUFFER_BINDING_EXT 0x88EF 9 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_scene_marker: -------------------------------------------------------------------------------- 1 | GL_EXT_scene_marker 2 | https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_scene_marker.txt 3 | GL_EXT_scene_marker 4 | 5 | void glBeginSceneEXT (void) 6 | void glEndSceneEXT (void) 7 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_secondary_color: -------------------------------------------------------------------------------- 1 | GL_EXT_secondary_color 2 | http://oss.sgi.com/projects/ogl-sample/registry/EXT/secondary_color.txt 3 | GL_EXT_secondary_color 4 | 5 | GL_COLOR_SUM_EXT 0x8458 6 | GL_CURRENT_SECONDARY_COLOR_EXT 0x8459 7 | GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A 8 | GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B 9 | GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C 10 | GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D 11 | GL_SECONDARY_COLOR_ARRAY_EXT 0x845E 12 | void glSecondaryColor3bEXT (GLbyte red, GLbyte green, GLbyte blue) 13 | void glSecondaryColor3bvEXT (const GLbyte *v) 14 | void glSecondaryColor3dEXT (GLdouble red, GLdouble green, GLdouble blue) 15 | void glSecondaryColor3dvEXT (const GLdouble *v) 16 | void glSecondaryColor3fEXT (GLfloat red, GLfloat green, GLfloat blue) 17 | void glSecondaryColor3fvEXT (const GLfloat *v) 18 | void glSecondaryColor3iEXT (GLint red, GLint green, GLint blue) 19 | void glSecondaryColor3ivEXT (const GLint *v) 20 | void glSecondaryColor3sEXT (GLshort red, GLshort green, GLshort blue) 21 | void glSecondaryColor3svEXT (const GLshort *v) 22 | void glSecondaryColor3ubEXT (GLubyte red, GLubyte green, GLubyte blue) 23 | void glSecondaryColor3ubvEXT (const GLubyte *v) 24 | void glSecondaryColor3uiEXT (GLuint red, GLuint green, GLuint blue) 25 | void glSecondaryColor3uivEXT (const GLuint *v) 26 | void glSecondaryColor3usEXT (GLushort red, GLushort green, GLushort blue) 27 | void glSecondaryColor3usvEXT (const GLushort *v) 28 | void glSecondaryColorPointerEXT (GLint size, GLenum type, GLsizei stride, const void *pointer) 29 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_semaphore: -------------------------------------------------------------------------------- 1 | GL_EXT_semaphore 2 | http://www.opengl.org/registry/specs/EXT/external_objects.txt 3 | GL_EXT_semaphore 4 | 5 | GL_LAYOUT_GENERAL_EXT 0x958D 6 | GL_LAYOUT_COLOR_ATTACHMENT_EXT 0x958E 7 | GL_LAYOUT_DEPTH_STENCIL_ATTACHMENT_EXT 0x958F 8 | GL_LAYOUT_DEPTH_STENCIL_READ_ONLY_EXT 0x9590 9 | GL_LAYOUT_SHADER_READ_ONLY_EXT 0x9591 10 | GL_LAYOUT_TRANSFER_SRC_EXT 0x9592 11 | GL_LAYOUT_TRANSFER_DST_EXT 0x9593 12 | GL_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_EXT 0x9530 13 | GL_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_EXT 0x9531 14 | 15 | void glDeleteSemaphoresEXT (GLsizei n, const GLuint* semaphores) 16 | void glGenSemaphoresEXT (GLsizei n, GLuint* semaphores) 17 | void glGetSemaphoreParameterui64vEXT (GLuint semaphore, GLenum pname, GLuint64* params) 18 | GLboolean glIsSemaphoreEXT (GLuint semaphore) 19 | void glSemaphoreParameterui64vEXT (GLuint semaphore, GLenum pname, const GLuint64* params) 20 | void glSignalSemaphoreEXT (GLuint semaphore, GLuint numBufferBarriers, const GLuint* buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *dstLayouts) 21 | void glWaitSemaphoreEXT (GLuint semaphore, GLuint numBufferBarriers, const GLuint* buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *srcLayouts) 22 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_semaphore_fd: -------------------------------------------------------------------------------- 1 | GL_EXT_semaphore_fd 2 | http://www.opengl.org/registry/specs/EXT/external_objects_fd.txt 3 | GL_EXT_semaphore_fd 4 | 5 | void glImportSemaphoreFdEXT (GLuint semaphore, GLenum handleType, GLint fd) 6 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_semaphore_win32: -------------------------------------------------------------------------------- 1 | GL_EXT_semaphore_win32 2 | http://www.opengl.org/registry/specs/EXT/external_objects_win32.txt 3 | GL_EXT_semaphore_win32 4 | 5 | void glImportSemaphoreWin32HandleEXT (GLuint semaphore, GLenum handleType, void *handle) 6 | void glImportSemaphoreWin32NameEXT (GLuint semaphore, GLenum handleType, const void *name) 7 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_texture_array: -------------------------------------------------------------------------------- 1 | GL_EXT_texture_array 2 | http://developer.download.nvidia.com/opengl/specs/GL_EXT_texture_array.txt 3 | GL_EXT_texture_array 4 | 5 | GL_TEXTURE_1D_ARRAY_EXT 0x8C18 6 | GL_PROXY_TEXTURE_1D_ARRAY_EXT 0x8C19 7 | GL_TEXTURE_2D_ARRAY_EXT 0x8C1A 8 | GL_PROXY_TEXTURE_2D_ARRAY_EXT 0x8C1B 9 | GL_TEXTURE_BINDING_1D_ARRAY_EXT 0x8C1C 10 | GL_TEXTURE_BINDING_2D_ARRAY_EXT 0x8C1D 11 | GL_MAX_ARRAY_TEXTURE_LAYERS_EXT 0x88FF 12 | GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT 0x884E 13 | void glFramebufferTextureLayerEXT (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer) 14 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_texture_buffer_object: -------------------------------------------------------------------------------- 1 | GL_EXT_texture_buffer_object 2 | http://developer.download.nvidia.com/opengl/specs/GL_EXT_texture_buffer_object.txt 3 | GL_EXT_texture_buffer_object 4 | 5 | GL_TEXTURE_BUFFER_EXT 0x8C2A 6 | GL_MAX_TEXTURE_BUFFER_SIZE_EXT 0x8C2B 7 | GL_TEXTURE_BINDING_BUFFER_EXT 0x8C2C 8 | GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT 0x8C2D 9 | GL_TEXTURE_BUFFER_FORMAT_EXT 0x8C2E 10 | void glTexBufferEXT (GLenum target, GLenum internalformat, GLuint buffer) 11 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_texture_compression_latc: -------------------------------------------------------------------------------- 1 | GL_EXT_texture_compression_latc 2 | http://developer.download.nvidia.com/opengl/specs/GL_EXT_texture_compression_latc.txt 3 | GL_EXT_texture_compression_latc 4 | 5 | GL_COMPRESSED_LUMINANCE_LATC1_EXT 0x8C70 6 | GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT 0x8C71 7 | GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT 0x8C72 8 | GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT 0x8C73 9 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_texture_compression_rgtc: -------------------------------------------------------------------------------- 1 | GL_EXT_texture_compression_rgtc 2 | http://developer.download.nvidia.com/opengl/specs/GL_EXT_texture_compression_rgtc.txt 3 | GL_EXT_texture_compression_rgtc 4 | 5 | GL_COMPRESSED_RED_RGTC1_EXT 0x8DBB 6 | GL_COMPRESSED_SIGNED_RED_RGTC1_EXT 0x8DBC 7 | GL_COMPRESSED_RED_GREEN_RGTC2_EXT 0x8DBD 8 | GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT 0x8DBE 9 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_texture_cube_map: -------------------------------------------------------------------------------- 1 | GL_EXT_texture_cube_map 2 | http://www.nvidia.com/dev_content/nvopenglspecs/GL_EXT_texture_cube_map.txt 3 | GL_EXT_texture_cube_map 4 | 5 | GL_NORMAL_MAP_EXT 0x8511 6 | GL_REFLECTION_MAP_EXT 0x8512 7 | GL_TEXTURE_CUBE_MAP_EXT 0x8513 8 | GL_TEXTURE_BINDING_CUBE_MAP_EXT 0x8514 9 | GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515 10 | GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516 11 | GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517 12 | GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518 13 | GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519 14 | GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A 15 | GL_PROXY_TEXTURE_CUBE_MAP_EXT 0x851B 16 | GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT 0x851C 17 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_texture_edge_clamp: -------------------------------------------------------------------------------- 1 | GL_EXT_texture_edge_clamp 2 | http://www.opengl.org/developers/documentation/Version1.2/1.2specs/texture_edge_clamp.txt 3 | GL_EXT_texture_edge_clamp 4 | 5 | GL_CLAMP_TO_EDGE_EXT 0x812F 6 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_texture_integer: -------------------------------------------------------------------------------- 1 | GL_EXT_texture_integer 2 | http://developer.download.nvidia.com/opengl/specs/GL_EXT_texture_integer.txt 3 | GL_EXT_texture_integer 4 | 5 | GL_RGBA32UI_EXT 0x8D70 6 | GL_RGB32UI_EXT 0x8D71 7 | GL_ALPHA32UI_EXT 0x8D72 8 | GL_INTENSITY32UI_EXT 0x8D73 9 | GL_LUMINANCE32UI_EXT 0x8D74 10 | GL_LUMINANCE_ALPHA32UI_EXT 0x8D75 11 | GL_RGBA16UI_EXT 0x8D76 12 | GL_RGB16UI_EXT 0x8D77 13 | GL_ALPHA16UI_EXT 0x8D78 14 | GL_INTENSITY16UI_EXT 0x8D79 15 | GL_LUMINANCE16UI_EXT 0x8D7A 16 | GL_LUMINANCE_ALPHA16UI_EXT 0x8D7B 17 | GL_RGBA8UI_EXT 0x8D7C 18 | GL_RGB8UI_EXT 0x8D7D 19 | GL_ALPHA8UI_EXT 0x8D7E 20 | GL_INTENSITY8UI_EXT 0x8D7F 21 | GL_LUMINANCE8UI_EXT 0x8D80 22 | GL_LUMINANCE_ALPHA8UI_EXT 0x8D81 23 | GL_RGBA32I_EXT 0x8D82 24 | GL_RGB32I_EXT 0x8D83 25 | GL_ALPHA32I_EXT 0x8D84 26 | GL_INTENSITY32I_EXT 0x8D85 27 | GL_LUMINANCE32I_EXT 0x8D86 28 | GL_LUMINANCE_ALPHA32I_EXT 0x8D87 29 | GL_RGBA16I_EXT 0x8D88 30 | GL_RGB16I_EXT 0x8D89 31 | GL_ALPHA16I_EXT 0x8D8A 32 | GL_INTENSITY16I_EXT 0x8D8B 33 | GL_LUMINANCE16I_EXT 0x8D8C 34 | GL_LUMINANCE_ALPHA16I_EXT 0x8D8D 35 | GL_RGBA8I_EXT 0x8D8E 36 | GL_RGB8I_EXT 0x8D8F 37 | GL_ALPHA8I_EXT 0x8D90 38 | GL_INTENSITY8I_EXT 0x8D91 39 | GL_LUMINANCE8I_EXT 0x8D92 40 | GL_LUMINANCE_ALPHA8I_EXT 0x8D93 41 | GL_RED_INTEGER_EXT 0x8D94 42 | GL_GREEN_INTEGER_EXT 0x8D95 43 | GL_BLUE_INTEGER_EXT 0x8D96 44 | GL_ALPHA_INTEGER_EXT 0x8D97 45 | GL_RGB_INTEGER_EXT 0x8D98 46 | GL_RGBA_INTEGER_EXT 0x8D99 47 | GL_BGR_INTEGER_EXT 0x8D9A 48 | GL_BGRA_INTEGER_EXT 0x8D9B 49 | GL_LUMINANCE_INTEGER_EXT 0x8D9C 50 | GL_LUMINANCE_ALPHA_INTEGER_EXT 0x8D9D 51 | GL_RGBA_INTEGER_MODE_EXT 0x8D9E 52 | void glTexParameterIivEXT (GLenum target, GLenum pname, const GLint *params) 53 | void glTexParameterIuivEXT (GLenum target, GLenum pname, const GLuint *params) 54 | void glGetTexParameterIivEXT (GLenum target, GLenum pname, GLint *params) 55 | void glGetTexParameterIuivEXT (GLenum target, GLenum pname, GLuint *params) 56 | void glClearColorIiEXT (GLint red, GLint green, GLint blue, GLint alpha) 57 | void glClearColorIuiEXT (GLuint red, GLuint green, GLuint blue, GLuint alpha) 58 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_texture_rectangle: -------------------------------------------------------------------------------- 1 | GL_EXT_texture_rectangle 2 | http://developer.apple.com/opengl/extensions/ext_texture_rectangle.html 3 | GL_EXT_texture_rectangle 4 | 5 | GL_TEXTURE_RECTANGLE_EXT 0x84F5 6 | GL_TEXTURE_BINDING_RECTANGLE_EXT 0x84F6 7 | GL_PROXY_TEXTURE_RECTANGLE_EXT 0x84F7 8 | GL_MAX_RECTANGLE_TEXTURE_SIZE_EXT 0x84F8 9 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_texture_shared_exponent: -------------------------------------------------------------------------------- 1 | GL_EXT_texture_shared_exponent 2 | http://developer.download.nvidia.com/opengl/specs/GL_EXT_texture_shared_exponent.txt 3 | GL_EXT_texture_shared_exponent 4 | 5 | GL_RGB9_E5_EXT 0x8C3D 6 | GL_UNSIGNED_INT_5_9_9_9_REV_EXT 0x8C3E 7 | GL_TEXTURE_SHARED_SIZE_EXT 0x8C3F 8 | -------------------------------------------------------------------------------- /auto/core/gl/GL_EXT_timer_query: -------------------------------------------------------------------------------- 1 | GL_EXT_timer_query 2 | http://www.nvidia.com/dev_content/nvopenglspecs/GL_EXT_timer_query.txt 3 | GL_EXT_timer_query 4 | 5 | GL_TIME_ELAPSED_EXT 0x88BF 6 | void glGetQueryObjecti64vEXT (GLuint id, GLenum pname, GLint64EXT *params) 7 | void glGetQueryObjectui64vEXT (GLuint id, GLenum pname, GLuint64EXT *params) 8 | -------------------------------------------------------------------------------- /auto/core/gl/GL_KHR_context_flush_control: -------------------------------------------------------------------------------- 1 | GL_KHR_context_flush_control 2 | https://www.khronos.org/registry/OpenGL/extensions/KHR/KHR_context_flush_control.txt 3 | GL_KHR_context_flush_control 4 | 5 | GL_CONTEXT_RELEASE_BEHAVIOR 0x82FB 6 | GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82FC 7 | 8 | -------------------------------------------------------------------------------- /auto/core/gl/GL_KTX_buffer_region: -------------------------------------------------------------------------------- 1 | GL_KTX_buffer_region 2 | 3 | GL_KTX_buffer_region 4 | 5 | GL_KTX_FRONT_REGION 0x0 6 | GL_KTX_BACK_REGION 0x1 7 | GL_KTX_Z_REGION 0x2 8 | GL_KTX_STENCIL_REGION 0x3 9 | GLuint glBufferRegionEnabled (void) 10 | GLuint glNewBufferRegion (GLenum region) 11 | void glDeleteBufferRegion (GLenum region) 12 | void glReadBufferRegion (GLuint region, GLint x, GLint y, GLsizei width, GLsizei height) 13 | void glDrawBufferRegion (GLuint region, GLint x, GLint y, GLsizei width, GLsizei height, GLint xDest, GLint yDest) 14 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NVX_gpu_memory_info: -------------------------------------------------------------------------------- 1 | GL_NVX_gpu_memory_info 2 | http://developer.download.nvidia.com/opengl/specs/GL_NVX_gpu_memory_info.txt 3 | GL_NVX_gpu_memory_info 4 | 5 | GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX 0x9047 6 | GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX 0x9048 7 | GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX 0x9049 8 | GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX 0x904A 9 | GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX 0x904B 10 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_depth_buffer_float: -------------------------------------------------------------------------------- 1 | GL_NV_depth_buffer_float 2 | http://developer.download.nvidia.com/opengl/specs/GL_NV_depth_buffer_float.txt 3 | GL_NV_depth_buffer_float 4 | 5 | GL_DEPTH_COMPONENT32F_NV 0x8DAB 6 | GL_DEPTH32F_STENCIL8_NV 0x8DAC 7 | GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV 0x8DAD 8 | GL_DEPTH_BUFFER_FLOAT_MODE_NV 0x8DAF 9 | void glDepthRangedNV (GLdouble zNear, GLdouble zFar) 10 | void glClearDepthdNV (GLdouble depth) 11 | void glDepthBoundsdNV (GLdouble zmin, GLdouble zmax) 12 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_depth_range_unclamped: -------------------------------------------------------------------------------- 1 | GL_NV_depth_range_unclamped 2 | 3 | GL_NV_depth_range_unclamped 4 | 5 | GL_SAMPLE_COUNT_BITS_NV 0x8864 6 | GL_CURRENT_SAMPLE_COUNT_QUERY_NV 0x8865 7 | GL_QUERY_RESULT_NV 0x8866 8 | GL_QUERY_RESULT_AVAILABLE_NV 0x8867 9 | GL_SAMPLE_COUNT_NV 0x8914 10 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_fragment_program2: -------------------------------------------------------------------------------- 1 | GL_NV_fragment_program2 2 | http://www.nvidia.com/dev_content/nvopenglspecs/GL_NV_fragment_program2.txt 3 | GL_NV_fragment_program2 4 | 5 | GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4 6 | GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88F5 7 | GL_MAX_PROGRAM_IF_DEPTH_NV 0x88F6 8 | GL_MAX_PROGRAM_LOOP_DEPTH_NV 0x88F7 9 | GL_MAX_PROGRAM_LOOP_COUNT_NV 0x88F8 10 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_fragment_program4: -------------------------------------------------------------------------------- 1 | GL_NV_fragment_program4 2 | http://developer.download.nvidia.com/opengl/specs/GL_NV_fragment_program4.txt 3 | GL_NV_gpu_program4 4 | 5 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_fragment_program_option: -------------------------------------------------------------------------------- 1 | GL_NV_fragment_program_option 2 | http://www.nvidia.com/dev_content/nvopenglspecs/GL_NV_fragment_program_option.txt 3 | GL_NV_fragment_program_option 4 | 5 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_framebuffer_multisample_coverage: -------------------------------------------------------------------------------- 1 | GL_NV_framebuffer_multisample_coverage 2 | http://developer.download.nvidia.com/opengl/specs/GL_NV_framebuffer_multisample_coverage.txt 3 | GL_NV_framebuffer_multisample_coverage 4 | 5 | GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB 6 | GL_RENDERBUFFER_COLOR_SAMPLES_NV 0x8E10 7 | GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV 0x8E11 8 | GL_MULTISAMPLE_COVERAGE_MODES_NV 0x8E12 9 | void glRenderbufferStorageMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height) 10 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_geometry_program4: -------------------------------------------------------------------------------- 1 | GL_NV_geometry_program4 2 | http://developer.download.nvidia.com/opengl/specs/GL_NV_geometry_program4.txt 3 | GL_NV_gpu_program4 4 | 5 | GL_GEOMETRY_PROGRAM_NV 0x8C26 6 | GL_MAX_PROGRAM_OUTPUT_VERTICES_NV 0x8C27 7 | GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV 0x8C28 8 | void glProgramVertexLimitNV (GLenum target, GLint limit) 9 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_geometry_shader4: -------------------------------------------------------------------------------- 1 | GL_NV_geometry_shader4 2 | http://developer.download.nvidia.com/opengl/specs/GL_NV_geometry_shader4.txt 3 | GL_NV_geometry_shader4 4 | 5 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_gpu_program4: -------------------------------------------------------------------------------- 1 | GL_NV_gpu_program4 2 | http://developer.download.nvidia.com/opengl/specs/GL_NV_gpu_program4.txt 3 | GL_NV_gpu_program4 4 | 5 | GL_MIN_PROGRAM_TEXEL_OFFSET_NV 0x8904 6 | GL_MAX_PROGRAM_TEXEL_OFFSET_NV 0x8905 7 | GL_PROGRAM_ATTRIB_COMPONENTS_NV 0x8906 8 | GL_PROGRAM_RESULT_COMPONENTS_NV 0x8907 9 | GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV 0x8908 10 | GL_MAX_PROGRAM_RESULT_COMPONENTS_NV 0x8909 11 | GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV 0x8DA5 12 | GL_MAX_PROGRAM_GENERIC_RESULTS_NV 0x8DA6 13 | void glProgramLocalParameterI4iNV (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w) 14 | void glProgramLocalParameterI4ivNV (GLenum target, GLuint index, const GLint *params) 15 | void glProgramLocalParametersI4ivNV (GLenum target, GLuint index, GLsizei count, const GLint *params) 16 | void glProgramLocalParameterI4uiNV (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w) 17 | void glProgramLocalParameterI4uivNV (GLenum target, GLuint index, const GLuint *params) 18 | void glProgramLocalParametersI4uivNV (GLenum target, GLuint index, GLsizei count, const GLuint *params) 19 | void glProgramEnvParameterI4iNV (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w) 20 | void glProgramEnvParameterI4ivNV (GLenum target, GLuint index, const GLint *params) 21 | void glProgramEnvParametersI4ivNV (GLenum target, GLuint index, GLsizei count, const GLint *params) 22 | void glProgramEnvParameterI4uiNV (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w) 23 | void glProgramEnvParameterI4uivNV (GLenum target, GLuint index, const GLuint *params) 24 | void glProgramEnvParametersI4uivNV (GLenum target, GLuint index, GLsizei count, const GLuint *params) 25 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_gpu_program5: -------------------------------------------------------------------------------- 1 | GL_NV_gpu_program5 2 | http://www.opengl.org/registry/specs/NV/gpu_program5.txt 3 | GL_NV_gpu_program5 4 | 5 | GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV 0x8E5A 6 | GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5B 7 | GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5C 8 | GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV 0x8E5D 9 | GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5E 10 | GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5F 11 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_parameter_buffer_object: -------------------------------------------------------------------------------- 1 | GL_NV_parameter_buffer_object 2 | http://developer.download.nvidia.com/opengl/specs/GL_NV_parameter_buffer_object.txt 3 | GL_NV_parameter_buffer_object 4 | 5 | GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV 0x8DA2 6 | GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV 0x8DA3 7 | GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV 0x8DA4 8 | GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV 0x8DA0 9 | GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV 0x8DA1 10 | void glProgramBufferParametersfvNV (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLfloat *params) 11 | void glProgramBufferParametersIivNV (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLint *params) 12 | void glProgramBufferParametersIuivNV (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLuint *params) 13 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_present_video: -------------------------------------------------------------------------------- 1 | GL_NV_present_video 2 | http://www.opengl.org/registry/specs/NV/present_video.txt 3 | GL_NV_present_video 4 | 5 | GL_FRAME_NV 0x8E26 6 | GL_FIELDS_NV 0x8E27 7 | GL_CURRENT_TIME_NV 0x8E28 8 | GL_NUM_FILL_STREAMS_NV 0x8E29 9 | GL_PRESENT_TIME_NV 0x8E2A 10 | GL_PRESENT_DURATION_NV 0x8E2B 11 | void glGetVideoi64vNV (GLuint video_slot, GLenum pname, GLint64EXT* params) 12 | void glGetVideoivNV (GLuint video_slot, GLenum pname, GLint* params) 13 | void glGetVideoui64vNV (GLuint video_slot, GLenum pname, GLuint64EXT* params) 14 | void glGetVideouivNV (GLuint video_slot, GLenum pname, GLuint* params) 15 | void glPresentFrameDualFillNV (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3) 16 | void glPresentFrameKeyedNV (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1) 17 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_sample_locations: -------------------------------------------------------------------------------- 1 | GL_NV_sample_locations 2 | https://www.khronos.org/registry/OpenGL/extensions/NV/NV_sample_locations.txt 3 | GL_NV_sample_locations 4 | 5 | GL_SAMPLE_LOCATION_NV 0x8E50 6 | GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV 0x933D 7 | GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV 0x933E 8 | GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV 0x933F 9 | GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV 0x9340 10 | GL_PROGRAMMABLE_SAMPLE_LOCATION_NV 0x9341 11 | GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV 0x9342 12 | GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV 0x9343 13 | void glFramebufferSampleLocationsfvNV (GLenum target, GLuint start, GLsizei count, const GLfloat* v) 14 | void glNamedFramebufferSampleLocationsfvNV (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat* v) 15 | void glResolveDepthValuesNV (void) 16 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_tessellation_program5: -------------------------------------------------------------------------------- 1 | GL_NV_tessellation_program5 2 | http://www.opengl.org/registry/specs/NV/tessellation_program5.txt 3 | GL_NV_gpu_program5 4 | 5 | GL_MAX_PROGRAM_PATCH_ATTRIBS_NV 0x86D8 6 | GL_TESS_CONTROL_PROGRAM_NV 0x891E 7 | GL_TESS_EVALUATION_PROGRAM_NV 0x891F 8 | GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV 0x8C74 9 | GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV 0x8C75 10 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_transform_feedback: -------------------------------------------------------------------------------- 1 | GL_NV_transform_feedback 2 | http://developer.download.nvidia.com/opengl/specs/GL_NV_transform_feedback.txt 3 | GL_NV_transform_feedback 4 | 5 | GL_BACK_PRIMARY_COLOR_NV 0x8C77 6 | GL_BACK_SECONDARY_COLOR_NV 0x8C78 7 | GL_TEXTURE_COORD_NV 0x8C79 8 | GL_CLIP_DISTANCE_NV 0x8C7A 9 | GL_VERTEX_ID_NV 0x8C7B 10 | GL_PRIMITIVE_ID_NV 0x8C7C 11 | GL_GENERIC_ATTRIB_NV 0x8C7D 12 | GL_TRANSFORM_FEEDBACK_ATTRIBS_NV 0x8C7E 13 | GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV 0x8C7F 14 | GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV 0x8C80 15 | GL_ACTIVE_VARYINGS_NV 0x8C81 16 | GL_ACTIVE_VARYING_MAX_LENGTH_NV 0x8C82 17 | GL_TRANSFORM_FEEDBACK_VARYINGS_NV 0x8C83 18 | GL_TRANSFORM_FEEDBACK_BUFFER_START_NV 0x8C84 19 | GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV 0x8C85 20 | GL_TRANSFORM_FEEDBACK_RECORD_NV 0x8C86 21 | GL_PRIMITIVES_GENERATED_NV 0x8C87 22 | GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV 0x8C88 23 | GL_RASTERIZER_DISCARD_NV 0x8C89 24 | GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV 0x8C8A 25 | GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV 0x8C8B 26 | GL_INTERLEAVED_ATTRIBS_NV 0x8C8C 27 | GL_SEPARATE_ATTRIBS_NV 0x8C8D 28 | GL_TRANSFORM_FEEDBACK_BUFFER_NV 0x8C8E 29 | GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV 0x8C8F 30 | void glBeginTransformFeedbackNV (GLenum primitiveMode) 31 | void glEndTransformFeedbackNV (void) 32 | void glTransformFeedbackAttribsNV (GLuint count, const GLint *attribs, GLenum bufferMode) 33 | void glBindBufferRangeNV (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size) 34 | void glBindBufferOffsetNV (GLenum target, GLuint index, GLuint buffer, GLintptr offset) 35 | void glBindBufferBaseNV (GLenum target, GLuint index, GLuint buffer) 36 | void glTransformFeedbackVaryingsNV (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode) 37 | void glActiveVaryingNV (GLuint program, const GLchar *name) 38 | GLint glGetVaryingLocationNV (GLuint program, const GLchar *name) 39 | void glGetActiveVaryingNV (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name) 40 | void glGetTransformFeedbackVaryingNV (GLuint program, GLuint index, GLint *location) 41 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_vdpau_interop: -------------------------------------------------------------------------------- 1 | GL_NV_vdpau_interop 2 | http://www.opengl.org/registry/specs/NV/vdpau_interop.txt 3 | GL_NV_vdpau_interop 4 | 5 | GL_SURFACE_STATE_NV 0x86EB 6 | GL_SURFACE_REGISTERED_NV 0x86FD 7 | GL_SURFACE_MAPPED_NV 0x8700 8 | GL_WRITE_DISCARD_NV 0x88BE 9 | void glVDPAUFiniNV (void) 10 | void glVDPAUGetSurfaceivNV (GLvdpauSurfaceNV surface, GLenum pname, GLsizei bufSize, GLsizei* length, GLint *values) 11 | void glVDPAUInitNV (const void* vdpDevice, const void*getProcAddress) 12 | void glVDPAUIsSurfaceNV (GLvdpauSurfaceNV surface) 13 | void glVDPAUMapSurfacesNV (GLsizei numSurfaces, const GLvdpauSurfaceNV* surfaces) 14 | GLvdpauSurfaceNV glVDPAURegisterOutputSurfaceNV (const void* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames) 15 | GLvdpauSurfaceNV glVDPAURegisterVideoSurfaceNV (const void* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames) 16 | void glVDPAUSurfaceAccessNV (GLvdpauSurfaceNV surface, GLenum access) 17 | void glVDPAUUnmapSurfacesNV (GLsizei numSurface, const GLvdpauSurfaceNV* surfaces) 18 | void glVDPAUUnregisterSurfaceNV (GLvdpauSurfaceNV surface) 19 | typedef GLintptr GLvdpauSurfaceNV 20 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_vertex_program2_option: -------------------------------------------------------------------------------- 1 | GL_NV_vertex_program2_option 2 | http://www.nvidia.com/dev_content/nvopenglspecs/GL_NV_vertex_program2_option.txt 3 | GL_NV_vertex_program2_option 4 | 5 | GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4 6 | GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88F5 7 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_vertex_program3: -------------------------------------------------------------------------------- 1 | GL_NV_vertex_program3 2 | http://www.nvidia.com/dev_content/nvopenglspecs/GL_NV_vertex_program3.txt 3 | GL_NV_vertex_program3 4 | 5 | MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C 6 | -------------------------------------------------------------------------------- /auto/core/gl/GL_NV_vertex_program4: -------------------------------------------------------------------------------- 1 | GL_NV_vertex_program4 2 | http://developer.download.nvidia.com/opengl/specs/GL_NV_vertex_program4.txt 3 | GL_NV_gpu_program4 4 | 5 | GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV 0x88FD 6 | -------------------------------------------------------------------------------- /auto/core/gl/GL_SGIX_shadow: -------------------------------------------------------------------------------- 1 | GL_SGIX_shadow 2 | http://oss.sgi.com/projects/ogl-sample/registry/SGIX/shadow.txt 3 | GL_SGIX_shadow 4 | 5 | GL_TEXTURE_COMPARE_SGIX 0x819A 6 | GL_TEXTURE_COMPARE_OPERATOR_SGIX 0x819B 7 | GL_TEXTURE_LEQUAL_R_SGIX 0x819C 8 | GL_TEXTURE_GEQUAL_R_SGIX 0x819D 9 | -------------------------------------------------------------------------------- /auto/core/gl/GL_SUN_read_video_pixels: -------------------------------------------------------------------------------- 1 | GL_SUN_read_video_pixels 2 | http://wwws.sun.com/software/graphics/opengl/extensions/gl_sun_read_video_pixels.txt 3 | GL_SUN_read_video_pixels 4 | 5 | void glReadVideoPixelsSUN (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void* pixels) 6 | -------------------------------------------------------------------------------- /auto/core/gl/GL_VERSION_1_2: -------------------------------------------------------------------------------- 1 | GL_VERSION_1_2 2 | http://www.opengl.org/documentation/specs/version1.2/opengl1.2.1.pdf 3 | 4 | 5 | GL_UNSIGNED_BYTE_3_3_2 0x8032 6 | GL_UNSIGNED_SHORT_4_4_4_4 0x8033 7 | GL_UNSIGNED_SHORT_5_5_5_1 0x8034 8 | GL_UNSIGNED_INT_8_8_8_8 0x8035 9 | GL_UNSIGNED_INT_10_10_10_2 0x8036 10 | GL_RESCALE_NORMAL 0x803A 11 | GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 12 | GL_UNSIGNED_SHORT_5_6_5 0x8363 13 | GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 14 | GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 15 | GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 16 | GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 17 | GL_BGR 0x80E0 18 | GL_BGRA 0x80E1 19 | GL_MAX_ELEMENTS_VERTICES 0x80E8 20 | GL_MAX_ELEMENTS_INDICES 0x80E9 21 | GL_CLAMP_TO_EDGE 0x812F 22 | GL_TEXTURE_MIN_LOD 0x813A 23 | GL_TEXTURE_MAX_LOD 0x813B 24 | GL_TEXTURE_BASE_LEVEL 0x813C 25 | GL_TEXTURE_MAX_LEVEL 0x813D 26 | GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8 27 | GL_SINGLE_COLOR 0x81F9 28 | GL_SEPARATE_SPECULAR_COLOR 0x81FA 29 | GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 30 | GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 31 | GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 32 | GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 33 | GL_ALIASED_POINT_SIZE_RANGE 0x846D 34 | GL_ALIASED_LINE_WIDTH_RANGE 0x846E 35 | GL_PACK_SKIP_IMAGES 0x806B 36 | GL_PACK_IMAGE_HEIGHT 0x806C 37 | GL_UNPACK_SKIP_IMAGES 0x806D 38 | GL_UNPACK_IMAGE_HEIGHT 0x806E 39 | GL_TEXTURE_3D 0x806F 40 | GL_PROXY_TEXTURE_3D 0x8070 41 | GL_TEXTURE_DEPTH 0x8071 42 | GL_TEXTURE_WRAP_R 0x8072 43 | GL_MAX_3D_TEXTURE_SIZE 0x8073 44 | GL_TEXTURE_BINDING_3D 0x806A 45 | GL_MAX_ELEMENTS_VERTICES 0x80E8 46 | GL_MAX_ELEMENTS_INDICES 0x80E9 47 | void glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices) 48 | void glTexImage3D (GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels) 49 | void glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels) 50 | void glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) 51 | -------------------------------------------------------------------------------- /auto/core/gl/GL_VERSION_1_2_1: -------------------------------------------------------------------------------- 1 | GL_VERSION_1_2_1 2 | http://www.opengl.org/documentation/specs/version1.2/opengl1.2.1.pdf 3 | 4 | 5 | -------------------------------------------------------------------------------- /auto/core/gl/GL_VERSION_1_5: -------------------------------------------------------------------------------- 1 | GL_VERSION_1_5 2 | http://www.opengl.org/documentation/specs/version1.5/glspec15.pdf 3 | 4 | 5 | GL_BUFFER_SIZE 0x8764 6 | GL_BUFFER_USAGE 0x8765 7 | GL_QUERY_COUNTER_BITS 0x8864 8 | GL_CURRENT_QUERY 0x8865 9 | GL_QUERY_RESULT 0x8866 10 | GL_QUERY_RESULT_AVAILABLE 0x8867 11 | GL_ARRAY_BUFFER 0x8892 12 | GL_ELEMENT_ARRAY_BUFFER 0x8893 13 | GL_ARRAY_BUFFER_BINDING 0x8894 14 | GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 15 | GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896 16 | GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897 17 | GL_COLOR_ARRAY_BUFFER_BINDING 0x8898 18 | GL_INDEX_ARRAY_BUFFER_BINDING 0x8899 19 | GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A 20 | GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B 21 | GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C 22 | GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D 23 | GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E 24 | GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F 25 | GL_READ_ONLY 0x88B8 26 | GL_WRITE_ONLY 0x88B9 27 | GL_READ_WRITE 0x88BA 28 | GL_BUFFER_ACCESS 0x88BB 29 | GL_BUFFER_MAPPED 0x88BC 30 | GL_BUFFER_MAP_POINTER 0x88BD 31 | GL_STREAM_DRAW 0x88E0 32 | GL_STREAM_READ 0x88E1 33 | GL_STREAM_COPY 0x88E2 34 | GL_STATIC_DRAW 0x88E4 35 | GL_STATIC_READ 0x88E5 36 | GL_STATIC_COPY 0x88E6 37 | GL_DYNAMIC_DRAW 0x88E8 38 | GL_DYNAMIC_READ 0x88E9 39 | GL_DYNAMIC_COPY 0x88EA 40 | GL_SAMPLES_PASSED 0x8914 41 | GL_FOG_COORD_SRC GL_FOG_COORDINATE_SOURCE 42 | GL_FOG_COORD GL_FOG_COORDINATE 43 | GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE 44 | GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE 45 | GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE 46 | GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER 47 | GL_FOG_COORD_ARRAY GL_FOG_COORDINATE_ARRAY 48 | GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 49 | GL_SRC0_RGB GL_SOURCE0_RGB 50 | GL_SRC1_RGB GL_SOURCE1_RGB 51 | GL_SRC2_RGB GL_SOURCE2_RGB 52 | GL_SRC0_ALPHA GL_SOURCE0_ALPHA 53 | GL_SRC1_ALPHA GL_SOURCE1_ALPHA 54 | GL_SRC2_ALPHA GL_SOURCE2_ALPHA 55 | void glGenQueries (GLsizei n, GLuint* ids) 56 | void glDeleteQueries (GLsizei n, const GLuint* ids) 57 | GLboolean glIsQuery (GLuint id) 58 | void glBeginQuery (GLenum target, GLuint id) 59 | void glEndQuery (GLenum target) 60 | void glGetQueryiv (GLenum target, GLenum pname, GLint* params) 61 | void glGetQueryObjectiv (GLuint id, GLenum pname, GLint* params) 62 | void glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint* params) 63 | void glBindBuffer (GLenum target, GLuint buffer) 64 | void glDeleteBuffers (GLsizei n, const GLuint* buffers) 65 | void glGenBuffers (GLsizei n, GLuint* buffers) 66 | GLboolean glIsBuffer (GLuint buffer) 67 | void glBufferData (GLenum target, GLsizeiptr size, const void* data, GLenum usage) 68 | void glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void* data) 69 | void glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, void* data) 70 | void* glMapBuffer (GLenum target, GLenum access) 71 | GLboolean glUnmapBuffer (GLenum target) 72 | void glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) 73 | void glGetBufferPointerv (GLenum target, GLenum pname, void** params) 74 | typedef ptrdiff_t GLsizeiptr 75 | typedef ptrdiff_t GLintptr 76 | -------------------------------------------------------------------------------- /auto/core/gl/GL_VERSION_2_1: -------------------------------------------------------------------------------- 1 | GL_VERSION_2_1 2 | http://www.opengl.org/documentation/specs/version2.1/glspec21.pdf 3 | 4 | 5 | GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F 6 | GL_PIXEL_PACK_BUFFER 0x88EB 7 | GL_PIXEL_UNPACK_BUFFER 0x88EC 8 | GL_PIXEL_PACK_BUFFER_BINDING 0x88ED 9 | GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF 10 | GL_FLOAT_MAT2x3 0x8B65 11 | GL_FLOAT_MAT2x4 0x8B66 12 | GL_FLOAT_MAT3x2 0x8B67 13 | GL_FLOAT_MAT3x4 0x8B68 14 | GL_FLOAT_MAT4x2 0x8B69 15 | GL_FLOAT_MAT4x3 0x8B6A 16 | GL_SRGB 0x8C40 17 | GL_SRGB8 0x8C41 18 | GL_SRGB_ALPHA 0x8C42 19 | GL_SRGB8_ALPHA8 0x8C43 20 | GL_SLUMINANCE_ALPHA 0x8C44 21 | GL_SLUMINANCE8_ALPHA8 0x8C45 22 | GL_SLUMINANCE 0x8C46 23 | GL_SLUMINANCE8 0x8C47 24 | GL_COMPRESSED_SRGB 0x8C48 25 | GL_COMPRESSED_SRGB_ALPHA 0x8C49 26 | GL_COMPRESSED_SLUMINANCE 0x8C4A 27 | GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B 28 | void glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) 29 | void glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) 30 | void glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) 31 | void glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) 32 | void glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) 33 | void glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) 34 | -------------------------------------------------------------------------------- /auto/core/gl/GL_VERSION_3_1: -------------------------------------------------------------------------------- 1 | GL_VERSION_3_1 2 | https://www.opengl.org/registry/doc/glspec31.20090528.pdf 3 | 4 | GL_ARB_copy_buffer 5 | GL_SAMPLER_2D_RECT 0x8B63 6 | GL_SAMPLER_2D_RECT_SHADOW 0x8B64 7 | GL_SAMPLER_BUFFER 0x8DC2 8 | GL_INT_SAMPLER_2D_RECT 0x8DCD 9 | GL_INT_SAMPLER_BUFFER 0x8DD0 10 | GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5 11 | GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8 12 | GL_TEXTURE_BUFFER 0x8C2A 13 | GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B 14 | GL_TEXTURE_BINDING_BUFFER 0x8C2C 15 | GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D 16 | GL_TEXTURE_BUFFER_FORMAT 0x8C2E 17 | GL_TEXTURE_RECTANGLE 0x84F5 18 | GL_TEXTURE_BINDING_RECTANGLE 0x84F6 19 | GL_PROXY_TEXTURE_RECTANGLE 0x84F7 20 | GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8 21 | GL_RED_SNORM 0x8F90 22 | GL_RG_SNORM 0x8F91 23 | GL_RGB_SNORM 0x8F92 24 | GL_RGBA_SNORM 0x8F93 25 | GL_R8_SNORM 0x8F94 26 | GL_RG8_SNORM 0x8F95 27 | GL_RGB8_SNORM 0x8F96 28 | GL_RGBA8_SNORM 0x8F97 29 | GL_R16_SNORM 0x8F98 30 | GL_RG16_SNORM 0x8F99 31 | GL_RGB16_SNORM 0x8F9A 32 | GL_RGBA16_SNORM 0x8F9B 33 | GL_SIGNED_NORMALIZED 0x8F9C 34 | GL_PRIMITIVE_RESTART 0x8F9D 35 | GL_PRIMITIVE_RESTART_INDEX 0x8F9E 36 | GL_BUFFER_ACCESS_FLAGS 0x911F 37 | GL_BUFFER_MAP_LENGTH 0x9120 38 | GL_BUFFER_MAP_OFFSET 0x9121 39 | void glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei primcount) 40 | void glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount) 41 | void glTexBuffer (GLenum target, GLenum internalFormat, GLuint buffer) 42 | void glPrimitiveRestartIndex (GLuint buffer) 43 | -------------------------------------------------------------------------------- /auto/core/gl/GL_VERSION_3_2: -------------------------------------------------------------------------------- 1 | GL_VERSION_3_2 2 | https://www.opengl.org/registry/doc/glspec32.compatibility.20091207.pdf 3 | 4 | GL_ARB_draw_elements_base_vertex GL_ARB_provoking_vertex GL_ARB_sync GL_ARB_texture_multisample 5 | GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 6 | GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 7 | GL_LINES_ADJACENCY 0x000A 8 | GL_LINE_STRIP_ADJACENCY 0x000B 9 | GL_TRIANGLES_ADJACENCY 0x000C 10 | GL_TRIANGLE_STRIP_ADJACENCY 0x000D 11 | GL_PROGRAM_POINT_SIZE 0x8642 12 | GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29 13 | GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7 14 | GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8 15 | GL_GEOMETRY_SHADER 0x8DD9 16 | GL_GEOMETRY_VERTICES_OUT 0x8916 17 | GL_GEOMETRY_INPUT_TYPE 0x8917 18 | GL_GEOMETRY_OUTPUT_TYPE 0x8918 19 | GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF 20 | GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0 21 | GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1 22 | GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122 23 | GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123 24 | GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124 25 | GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125 26 | GL_CONTEXT_PROFILE_MASK 0x9126 27 | void glGetInteger64i_v (GLenum pname, GLuint index, GLint64 * data) 28 | void glGetBufferParameteri64v (GLenum target, GLenum value, GLint64 * data) 29 | void glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level) 30 | -------------------------------------------------------------------------------- /auto/core/gl/GL_VERSION_3_3: -------------------------------------------------------------------------------- 1 | GL_VERSION_3_3 2 | https://www.opengl.org/registry/doc/glspec33.compatibility.20100311.pdf 3 | 4 | 5 | GL_RGB10_A2UI 0x906F 6 | GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE 7 | void glVertexAttribDivisor (GLuint index, GLuint divisor) 8 | -------------------------------------------------------------------------------- /auto/core/gl/GL_VERSION_4_0: -------------------------------------------------------------------------------- 1 | GL_VERSION_4_0 2 | https://www.opengl.org/registry/doc/glspec40.compatibility.20100311.pdf 3 | 4 | 5 | GL_SAMPLE_SHADING 0x8C36 6 | GL_MIN_SAMPLE_SHADING_VALUE 0x8C37 7 | GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E 8 | GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F 9 | GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS 0x8F9F 10 | GL_TEXTURE_CUBE_MAP_ARRAY 0x9009 11 | GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A 12 | GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B 13 | GL_SAMPLER_CUBE_MAP_ARRAY 0x900C 14 | GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D 15 | GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E 16 | GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F 17 | void glMinSampleShading (GLclampf value) 18 | void glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha) 19 | void glBlendEquationi (GLuint buf, GLenum mode) 20 | void glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) 21 | void glBlendFunci (GLuint buf, GLenum src, GLenum dst) 22 | -------------------------------------------------------------------------------- /auto/core/gl/GL_VERSION_4_1: -------------------------------------------------------------------------------- 1 | GL_VERSION_4_1 2 | https://www.opengl.org/registry/doc/glspec41.compatibility.20100725.pdf 3 | 4 | -------------------------------------------------------------------------------- /auto/core/gl/GL_VERSION_4_2: -------------------------------------------------------------------------------- 1 | GL_VERSION_4_2 2 | https://www.opengl.org/registry/doc/glspec42.compatibility.20120427.pdf 3 | 4 | 5 | GL_COPY_READ_BUFFER_BINDING 0x8F36 6 | GL_COPY_WRITE_BUFFER_BINDING 0x8F37 7 | GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24 8 | GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23 9 | GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C 10 | GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D 11 | GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E 12 | GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F 13 | 14 | -------------------------------------------------------------------------------- /auto/core/gl/GL_VERSION_4_3: -------------------------------------------------------------------------------- 1 | GL_VERSION_4_3 2 | https://www.opengl.org/registry/doc/glspec43.compatibility.20130214.pdf 3 | 4 | 5 | GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E 6 | GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9 7 | -------------------------------------------------------------------------------- /auto/core/gl/GL_VERSION_4_4: -------------------------------------------------------------------------------- 1 | GL_VERSION_4_4 2 | https://www.opengl.org/registry/doc/glspec44.compatibility.pdf 3 | 4 | 5 | GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5 6 | GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221 7 | GL_TEXTURE_BUFFER_BINDING 0x8C2A 8 | 9 | -------------------------------------------------------------------------------- /auto/core/gl/GL_VERSION_4_5: -------------------------------------------------------------------------------- 1 | GL_VERSION_4_5 2 | https://www.opengl.org/registry/doc/glspec45.compatibility.pdf 3 | 4 | 5 | GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT 0x00000004 6 | GLenum glGetGraphicsResetStatus (void) 7 | void glGetnTexImage (GLenum tex, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid *pixels) 8 | void glGetnCompressedTexImage (GLenum target, GLint lod, GLsizei bufSize, GLvoid *pixels) 9 | void glGetnUniformdv (GLuint program, GLint location, GLsizei bufSize, GLdouble *params) 10 | -------------------------------------------------------------------------------- /auto/core/gl/GL_VERSION_4_6: -------------------------------------------------------------------------------- 1 | GL_VERSION_4_6 2 | https://www.opengl.org/registry/doc/glspec46.compatibility.pdf 3 | 4 | 5 | GL_PARAMETER_BUFFER 0x80EE 6 | GL_PARAMETER_BUFFER_BINDING 0x80EF 7 | GL_VERTICES_SUBMITTED 0x82EE 8 | GL_PRIMITIVES_SUBMITTED 0x82EF 9 | GL_VERTEX_SHADER_INVOCATIONS 0x82F0 10 | GL_TESS_CONTROL_SHADER_PATCHES 0x82F1 11 | GL_TESS_EVALUATION_SHADER_INVOCATIONS 0x82F2 12 | GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED 0x82F3 13 | GL_FRAGMENT_SHADER_INVOCATIONS 0x82F4 14 | GL_COMPUTE_SHADER_INVOCATIONS 0x82F5 15 | GL_CLIPPING_INPUT_PRIMITIVES 0x82F6 16 | GL_CLIPPING_OUTPUT_PRIMITIVES 0x82F7 17 | GL_TRANSFORM_FEEDBACK_OVERFLOW 0x82EC 18 | GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW 0x82ED 19 | GL_POLYGON_OFFSET_CLAMP 0x8E1B 20 | GL_TEXTURE_MAX_ANISOTROPY 0x84FE 21 | GL_MAX_TEXTURE_MAX_ANISOTROPY 0x84FF 22 | GL_SHADER_BINARY_FORMAT_SPIR_V 0x9551 23 | GL_SPIR_V_BINARY 0x9552 24 | GL_CONTEXT_FLAG_NO_ERROR_BIT 0x00000008 25 | GL_SPIR_V_EXTENSIONS 0x9553 26 | GL_NUM_SPIR_V_EXTENSIONS 0x9554 27 | void glMultiDrawArraysIndirectCount (GLenum mode, const GLvoid *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride) 28 | void glMultiDrawElementsIndirectCount (GLenum mode, GLenum type, const GLvoid *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride) 29 | void glSpecializeShader (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue) 30 | -------------------------------------------------------------------------------- /auto/core/gl/GL_WIN_swap_hint: -------------------------------------------------------------------------------- 1 | GL_WIN_swap_hint 2 | http://msdn.microsoft.com/library/default.asp?url=/library/en-us/opengl/glfunc01_16zy.asp 3 | GL_WIN_swap_hint 4 | 5 | void glAddSwapHintRectWIN (GLint x, GLint y, GLsizei width, GLsizei height) 6 | -------------------------------------------------------------------------------- /auto/core/gl/WGL_NV_gpu_affinity: -------------------------------------------------------------------------------- 1 | WGL_NV_gpu_affinity 2 | http://developer.download.nvidia.com/opengl/specs/WGL_nv_gpu_affinity.txt 3 | WGL_NV_gpu_affinity 4 | 5 | WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0 6 | WGL_ERROR_MISSING_AFFINITY_MASK_NV 0x20D1 7 | BOOL wglEnumGpusNV (UINT iGpuIndex, HGPUNV *phGpu) 8 | BOOL wglEnumGpuDevicesNV (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice) 9 | HDC wglCreateAffinityDCNV (const HGPUNV *phGpuList) 10 | BOOL wglEnumGpusFromAffinityDCNV (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu) 11 | BOOL wglDeleteDCNV (HDC hdc) 12 | DECLARE_HANDLE(HGPUNV); 13 | typedef struct _GPU_DEVICE { DWORD cb; CHAR DeviceName[32]; CHAR DeviceString[128]; DWORD Flags; RECT rcVirtualScreen; } GPU_DEVICE, *PGPU_DEVICE; 14 | -------------------------------------------------------------------------------- /auto/custom.txt: -------------------------------------------------------------------------------- 1 | WGL_ARB_extensions_string 2 | WGL_EXT_extensions_string 3 | WGL_ARB_pixel_format 4 | WGL_ARB_pbuffer 5 | WGL_NV_float_buffer 6 | WGL_ATI_pixel_format_float 7 | WGL_ARB_multisample 8 | -------------------------------------------------------------------------------- /auto/doc/build.html: -------------------------------------------------------------------------------- 1 |

Building GLEW

2 | 3 |

Windows

4 | 5 |

A MS Visual Studio project is provided in the build/vc6 directory.

6 |

Pre-built shared and static libraries are also available for download.

7 | 8 |

Makefile

9 | 10 |

For platforms other than MS Windows, the provided Makefile is used.

11 | 12 |

Command-line variables

13 | 14 | 15 | 16 | 18 | 19 | 20 |
SYSTEMautoTarget system to build: darwin, linux, solaris, etc.
For a full list of supported targets: ls config/Makefile.*
17 | config.guess is used to auto detect, as necessary.
GLEW_DEST/usrBase directory for installation.
21 | 22 |

Make targets

23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 |
allBuild everything.
glew.libBuild static and dynamic GLEW libraries.
glew.lib.mxBuild static and dynamic GLEWmx libraries.
glew.binBuild glewinfo and visualinfo utilities.
cleanDelete temporary and built files.
install.allInstall everything.
installInstall GLEW libraries.
install.mxInstall GLEWmx libraries.
install.binInstall glewinfo and visualinfo utilities.
uninstallDelete installed files.
36 | 37 |

Requirements

38 | 39 |
    40 |
  • GNU make
  • 41 |
  • perl
  • 42 |
  • wget
  • 43 |
  • GNU sed
  • 44 |
  • gcc compiler
  • 45 |
  • git
  • 46 |
47 | 48 | Ubuntu:
sudo apt-get install libXmu-dev libXi-dev libgl-dev dos2unix git wget
49 | Fedora:
sudo yum install libXmu-devel libXi-devel libGL-devel dos2unix git wget
50 | -------------------------------------------------------------------------------- /auto/doc/credits.html: -------------------------------------------------------------------------------- 1 |

2 | Author, copyright and licensing information on github.

3 | -------------------------------------------------------------------------------- /auto/src/eglew_head.h: -------------------------------------------------------------------------------- 1 | #ifndef __eglew_h__ 2 | #define __eglew_h__ 3 | #define __EGLEW_H__ 4 | 5 | #ifdef __eglext_h_ 6 | #error eglext.h included before eglew.h 7 | #endif 8 | 9 | #if defined(__egl_h_) 10 | #error egl.h included before eglew.h 11 | #endif 12 | 13 | #define __eglext_h_ 14 | 15 | #define __egl_h_ 16 | 17 | #ifndef EGLAPIENTRY 18 | #define EGLAPIENTRY 19 | #endif 20 | #ifndef EGLAPI 21 | #define EGLAPI extern 22 | #endif 23 | 24 | /* EGL Types */ 25 | #include 26 | 27 | #include 28 | #include 29 | 30 | #ifndef GLEW_INCLUDE 31 | # include 32 | #else 33 | # include GLEW_INCLUDE 34 | #endif 35 | 36 | #ifdef __cplusplus 37 | extern "C" { 38 | #endif 39 | 40 | typedef int32_t EGLint; 41 | 42 | typedef unsigned int EGLBoolean; 43 | typedef void *EGLDisplay; 44 | typedef void *EGLConfig; 45 | typedef void *EGLSurface; 46 | typedef void *EGLContext; 47 | typedef void (*__eglMustCastToProperFunctionPointerType)(void); 48 | 49 | typedef unsigned int EGLenum; 50 | typedef void *EGLClientBuffer; 51 | 52 | typedef void *EGLSync; 53 | typedef intptr_t EGLAttrib; 54 | typedef khronos_utime_nanoseconds_t EGLTime; 55 | typedef void *EGLImage; 56 | 57 | typedef void *EGLSyncKHR; 58 | typedef intptr_t EGLAttribKHR; 59 | typedef void *EGLLabelKHR; 60 | typedef void *EGLObjectKHR; 61 | typedef void (EGLAPIENTRY *EGLDEBUGPROCKHR)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message); 62 | typedef khronos_utime_nanoseconds_t EGLTimeKHR; 63 | typedef void *EGLImageKHR; 64 | typedef void *EGLStreamKHR; 65 | typedef khronos_uint64_t EGLuint64KHR; 66 | typedef int EGLNativeFileDescriptorKHR; 67 | typedef khronos_ssize_t EGLsizeiANDROID; 68 | typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize); 69 | typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize); 70 | typedef void *EGLDeviceEXT; 71 | typedef void *EGLOutputLayerEXT; 72 | typedef void *EGLOutputPortEXT; 73 | typedef void *EGLSyncNV; 74 | typedef khronos_utime_nanoseconds_t EGLTimeNV; 75 | typedef khronos_utime_nanoseconds_t EGLuint64NV; 76 | typedef khronos_stime_nanoseconds_t EGLnsecsANDROID; 77 | 78 | struct EGLClientPixmapHI; 79 | struct AHardwareBuffer; 80 | 81 | /* Wayland types for WL_bind_wayland_display purposes */ 82 | struct wl_buffer; 83 | struct wl_display; 84 | struct wl_resource; 85 | 86 | #define EGL_DONT_CARE ((EGLint)-1) 87 | 88 | #define EGL_NO_CONTEXT ((EGLContext)0) 89 | #define EGL_NO_DISPLAY ((EGLDisplay)0) 90 | #define EGL_NO_IMAGE ((EGLImage)0) 91 | #define EGL_NO_SURFACE ((EGLSurface)0) 92 | #define EGL_NO_SYNC ((EGLSync)0) 93 | 94 | #define EGL_UNKNOWN ((EGLint)-1) 95 | 96 | #define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType)0) 97 | 98 | EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress (const char *procname); 99 | -------------------------------------------------------------------------------- /auto/src/eglew_mid.h: -------------------------------------------------------------------------------- 1 | /* ------------------------------------------------------------------------- */ 2 | 3 | #define EGLEW_FUN_EXPORT GLEW_FUN_EXPORT 4 | #define EGLEW_VAR_EXPORT GLEW_VAR_EXPORT 5 | -------------------------------------------------------------------------------- /auto/src/eglew_tail.h: -------------------------------------------------------------------------------- 1 | /* ------------------------------------------------------------------------ */ 2 | 3 | GLEWAPI GLenum GLEWAPIENTRY eglewInit (EGLDisplay display); 4 | GLEWAPI GLboolean GLEWAPIENTRY eglewIsSupported (const char *name); 5 | 6 | #define EGLEW_GET_VAR(x) (*(const GLboolean*)&x) 7 | #define EGLEW_GET_FUN(x) x 8 | 9 | GLEWAPI GLboolean GLEWAPIENTRY eglewGetExtension (const char *name); 10 | 11 | #ifdef __cplusplus 12 | } 13 | #endif 14 | 15 | #endif /* __eglew_h__ */ 16 | -------------------------------------------------------------------------------- /auto/src/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /auto/src/glew_init_egl.c: -------------------------------------------------------------------------------- 1 | /* ------------------------------------------------------------------------ */ 2 | 3 | GLboolean eglewGetExtension (const char* name) 4 | { 5 | const GLubyte* start; 6 | const GLubyte* end; 7 | 8 | start = (const GLubyte*) eglQueryString(eglGetCurrentDisplay(), EGL_EXTENSIONS); 9 | if (0 == start) return GL_FALSE; 10 | end = start + _glewStrLen(start); 11 | return _glewSearchExtension(name, start, end); 12 | } 13 | 14 | GLenum eglewInit (EGLDisplay display) 15 | { 16 | EGLint major, minor; 17 | const GLubyte* extStart; 18 | const GLubyte* extEnd; 19 | PFNEGLINITIALIZEPROC initialize = NULL; 20 | PFNEGLQUERYSTRINGPROC queryString = NULL; 21 | 22 | /* Load necessary entry points */ 23 | initialize = (PFNEGLINITIALIZEPROC) glewGetProcAddress("eglInitialize"); 24 | queryString = (PFNEGLQUERYSTRINGPROC) glewGetProcAddress("eglQueryString"); 25 | if (!initialize || !queryString) 26 | return 1; 27 | 28 | /* query EGL version */ 29 | if (initialize(display, &major, &minor) != EGL_TRUE) 30 | return 1; 31 | 32 | EGLEW_VERSION_1_5 = ( major > 1 ) || ( major == 1 && minor >= 5 ) ? GL_TRUE : GL_FALSE; 33 | EGLEW_VERSION_1_4 = EGLEW_VERSION_1_5 == GL_TRUE || ( major == 1 && minor >= 4 ) ? GL_TRUE : GL_FALSE; 34 | EGLEW_VERSION_1_3 = EGLEW_VERSION_1_4 == GL_TRUE || ( major == 1 && minor >= 3 ) ? GL_TRUE : GL_FALSE; 35 | EGLEW_VERSION_1_2 = EGLEW_VERSION_1_3 == GL_TRUE || ( major == 1 && minor >= 2 ) ? GL_TRUE : GL_FALSE; 36 | EGLEW_VERSION_1_1 = EGLEW_VERSION_1_2 == GL_TRUE || ( major == 1 && minor >= 1 ) ? GL_TRUE : GL_FALSE; 37 | EGLEW_VERSION_1_0 = EGLEW_VERSION_1_1 == GL_TRUE || ( major == 1 && minor >= 0 ) ? GL_TRUE : GL_FALSE; 38 | 39 | /* query EGL extension string */ 40 | extStart = (const GLubyte*) queryString(display, EGL_EXTENSIONS); 41 | if (extStart == 0) 42 | extStart = (const GLubyte *)""; 43 | extEnd = extStart + _glewStrLen(extStart); 44 | 45 | /* initialize extensions */ 46 | -------------------------------------------------------------------------------- /auto/src/glew_init_glx.c: -------------------------------------------------------------------------------- 1 | /* ------------------------------------------------------------------------ */ 2 | 3 | GLboolean glxewGetExtension (const char* name) 4 | { 5 | const GLubyte* start; 6 | const GLubyte* end; 7 | 8 | if (glXGetCurrentDisplay == NULL) return GL_FALSE; 9 | start = (const GLubyte*)glXGetClientString(glXGetCurrentDisplay(), GLX_EXTENSIONS); 10 | if (0 == start) return GL_FALSE; 11 | end = start + _glewStrLen(start); 12 | return _glewSearchExtension(name, start, end); 13 | } 14 | 15 | GLenum glxewInit () 16 | { 17 | Display* display; 18 | int major, minor; 19 | const GLubyte* extStart; 20 | const GLubyte* extEnd; 21 | /* initialize core GLX 1.2 */ 22 | if (_glewInit_GLX_VERSION_1_2()) return GLEW_ERROR_GLX_VERSION_11_ONLY; 23 | /* check for a display */ 24 | display = glXGetCurrentDisplay(); 25 | if (display == NULL) return GLEW_ERROR_NO_GLX_DISPLAY; 26 | /* initialize flags */ 27 | GLXEW_VERSION_1_0 = GL_TRUE; 28 | GLXEW_VERSION_1_1 = GL_TRUE; 29 | GLXEW_VERSION_1_2 = GL_TRUE; 30 | GLXEW_VERSION_1_3 = GL_TRUE; 31 | GLXEW_VERSION_1_4 = GL_TRUE; 32 | /* query GLX version */ 33 | glXQueryVersion(display, &major, &minor); 34 | if (major == 1 && minor <= 3) 35 | { 36 | switch (minor) 37 | { 38 | case 3: 39 | GLXEW_VERSION_1_4 = GL_FALSE; 40 | break; 41 | case 2: 42 | GLXEW_VERSION_1_4 = GL_FALSE; 43 | GLXEW_VERSION_1_3 = GL_FALSE; 44 | break; 45 | default: 46 | return GLEW_ERROR_GLX_VERSION_11_ONLY; 47 | break; 48 | } 49 | } 50 | /* query GLX extension string */ 51 | extStart = 0; 52 | if (glXGetCurrentDisplay != NULL) 53 | extStart = (const GLubyte*)glXGetClientString(display, GLX_EXTENSIONS); 54 | if (extStart == 0) 55 | extStart = (const GLubyte *)""; 56 | extEnd = extStart + _glewStrLen(extStart); 57 | /* initialize extensions */ 58 | -------------------------------------------------------------------------------- /auto/src/glew_init_tail.c: -------------------------------------------------------------------------------- 1 | /* ------------------------------------------------------------------------ */ 2 | 3 | const GLubyte * GLEWAPIENTRY glewGetErrorString (GLenum error) 4 | { 5 | static const GLubyte* _glewErrorString[] = 6 | { 7 | (const GLubyte*)"No error", 8 | (const GLubyte*)"Missing GL version", 9 | (const GLubyte*)"GL 1.1 and up are not supported", 10 | (const GLubyte*)"GLX 1.2 and up are not supported", 11 | (const GLubyte*)"No GLX display", 12 | (const GLubyte*)"Unknown error" 13 | }; 14 | const size_t max_error = sizeof(_glewErrorString)/sizeof(*_glewErrorString) - 1; 15 | return _glewErrorString[(size_t)error > max_error ? max_error : (size_t)error]; 16 | } 17 | 18 | const GLubyte * GLEWAPIENTRY glewGetString (GLenum name) 19 | { 20 | static const GLubyte* _glewString[] = 21 | { 22 | (const GLubyte*)NULL, 23 | (const GLubyte*)"GLEW_VERSION_STRING", 24 | (const GLubyte*)"GLEW_VERSION_MAJOR_STRING", 25 | (const GLubyte*)"GLEW_VERSION_MINOR_STRING", 26 | (const GLubyte*)"GLEW_VERSION_MICRO_STRING" 27 | }; 28 | const size_t max_string = sizeof(_glewString)/sizeof(*_glewString) - 1; 29 | return _glewString[(size_t)name > max_string ? 0 : (size_t)name]; 30 | } 31 | 32 | /* ------------------------------------------------------------------------ */ 33 | 34 | GLboolean glewExperimental = GL_FALSE; 35 | 36 | GLenum GLEWAPIENTRY glewInit (void) 37 | { 38 | GLenum r; 39 | #if defined(GLEW_EGL) 40 | PFNEGLGETCURRENTDISPLAYPROC getCurrentDisplay = NULL; 41 | #endif 42 | r = glewContextInit(); 43 | if ( r != 0 ) return r; 44 | #if defined(GLEW_EGL) 45 | getCurrentDisplay = (PFNEGLGETCURRENTDISPLAYPROC) glewGetProcAddress("eglGetCurrentDisplay"); 46 | return eglewInit(getCurrentDisplay()); 47 | #elif defined(GLEW_OSMESA) || defined(__ANDROID__) || defined(__native_client__) || defined(__HAIKU__) 48 | return r; 49 | #elif defined(_WIN32) 50 | return wglewInit(); 51 | #elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX) /* _UNIX */ 52 | return glxewInit(); 53 | #else 54 | return r; 55 | #endif /* _WIN32 */ 56 | } 57 | 58 | #if defined(_WIN32) && defined(GLEW_BUILD) && defined(__GNUC__) 59 | /* GCC requires a DLL entry point even without any standard library included. */ 60 | /* Types extracted from windows.h to avoid polluting the rest of the file. */ 61 | int __stdcall DllMainCRTStartup(void* instance, unsigned reason, void* reserved) 62 | { 63 | (void) instance; 64 | (void) reason; 65 | (void) reserved; 66 | return 1; 67 | } 68 | #endif 69 | -------------------------------------------------------------------------------- /auto/src/glew_init_wgl.c: -------------------------------------------------------------------------------- 1 | /* ------------------------------------------------------------------------- */ 2 | 3 | static PFNWGLGETEXTENSIONSSTRINGARBPROC _wglewGetExtensionsStringARB = NULL; 4 | static PFNWGLGETEXTENSIONSSTRINGEXTPROC _wglewGetExtensionsStringEXT = NULL; 5 | 6 | GLboolean GLEWAPIENTRY wglewGetExtension (const char* name) 7 | { 8 | const GLubyte* start; 9 | const GLubyte* end; 10 | if (_wglewGetExtensionsStringARB == NULL) 11 | if (_wglewGetExtensionsStringEXT == NULL) 12 | return GL_FALSE; 13 | else 14 | start = (const GLubyte*)_wglewGetExtensionsStringEXT(); 15 | else 16 | start = (const GLubyte*)_wglewGetExtensionsStringARB(wglGetCurrentDC()); 17 | if (start == 0) 18 | return GL_FALSE; 19 | end = start + _glewStrLen(start); 20 | return _glewSearchExtension(name, start, end); 21 | } 22 | 23 | GLenum GLEWAPIENTRY wglewInit () 24 | { 25 | GLboolean crippled; 26 | const GLubyte* extStart; 27 | const GLubyte* extEnd; 28 | /* find wgl extension string query functions */ 29 | _wglewGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)glewGetProcAddress((const GLubyte*)"wglGetExtensionsStringARB"); 30 | _wglewGetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC)glewGetProcAddress((const GLubyte*)"wglGetExtensionsStringEXT"); 31 | /* query wgl extension string */ 32 | if (_wglewGetExtensionsStringARB == NULL) 33 | if (_wglewGetExtensionsStringEXT == NULL) 34 | extStart = (const GLubyte*)""; 35 | else 36 | extStart = (const GLubyte*)_wglewGetExtensionsStringEXT(); 37 | else 38 | extStart = (const GLubyte*)_wglewGetExtensionsStringARB(wglGetCurrentDC()); 39 | extEnd = extStart + _glewStrLen(extStart); 40 | /* initialize extensions */ 41 | crippled = _wglewGetExtensionsStringARB == NULL && _wglewGetExtensionsStringEXT == NULL; 42 | -------------------------------------------------------------------------------- /auto/src/glew_license.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** The OpenGL Extension Wrangler Library 3 | ** Copyright (C) 2008-2024, Nigel Stewart 4 | ** Copyright (C) 2002-2008, Milan Ikits 5 | ** Copyright (C) 2002-2008, Marcelo E. Magallon 6 | ** Copyright (C) 2002, Lev Povalahev 7 | ** All rights reserved. 8 | ** 9 | ** Redistribution and use in source and binary forms, with or without 10 | ** modification, are permitted provided that the following conditions are met: 11 | ** 12 | ** * Redistributions of source code must retain the above copyright notice, 13 | ** this list of conditions and the following disclaimer. 14 | ** * Redistributions in binary form must reproduce the above copyright notice, 15 | ** this list of conditions and the following disclaimer in the documentation 16 | ** and/or other materials provided with the distribution. 17 | ** * The name of the author may be used to endorse or promote products 18 | ** derived from this software without specific prior written permission. 19 | ** 20 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 | ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 | ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 24 | ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 | ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 | ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 | ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 | ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 | ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 | ** THE POSSIBILITY OF SUCH DAMAGE. 31 | */ 32 | 33 | -------------------------------------------------------------------------------- /auto/src/glew_str_egl.c: -------------------------------------------------------------------------------- 1 | } 2 | ret = (len == 0); 3 | } 4 | return ret; 5 | } 6 | 7 | #elif defined(GLEW_EGL) 8 | 9 | GLboolean eglewIsSupported (const char* name) 10 | { 11 | const GLubyte* pos = (const GLubyte*)name; 12 | GLuint len = _glewStrLen(pos); 13 | GLboolean ret = GL_TRUE; 14 | while (ret && len > 0) 15 | { 16 | if(_glewStrSame1(&pos, &len, (const GLubyte*)"EGL_", 4)) 17 | { 18 | -------------------------------------------------------------------------------- /auto/src/glew_str_glx.c: -------------------------------------------------------------------------------- 1 | } 2 | ret = (len == 0); 3 | } 4 | return ret; 5 | } 6 | 7 | #elif !defined(GLEW_OSMESA) && !defined(GLEW_EGL) && !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && !defined(__APPLE__) || defined(GLEW_APPLE_GLX) 8 | 9 | GLboolean glxewIsSupported (const char* name) 10 | { 11 | const GLubyte* pos = (const GLubyte*)name; 12 | GLuint len = _glewStrLen(pos); 13 | GLboolean ret = GL_TRUE; 14 | while (ret && len > 0) 15 | { 16 | if(_glewStrSame1(&pos, &len, (const GLubyte*)"GLX_", 4)) 17 | { 18 | -------------------------------------------------------------------------------- /auto/src/glew_str_head.c: -------------------------------------------------------------------------------- 1 | GLboolean GLEWAPIENTRY glewIsSupported (const char* name) 2 | { 3 | const GLubyte* pos = (const GLubyte*)name; 4 | GLuint len = _glewStrLen(pos); 5 | GLboolean ret = GL_TRUE; 6 | while (ret && len > 0) 7 | { 8 | if (_glewStrSame1(&pos, &len, (const GLubyte*)"GL_", 3)) 9 | { 10 | -------------------------------------------------------------------------------- /auto/src/glew_str_tail.c: -------------------------------------------------------------------------------- 1 | } 2 | ret = (len == 0); 3 | } 4 | return ret; 5 | } 6 | 7 | #endif /* _WIN32 */ 8 | -------------------------------------------------------------------------------- /auto/src/glew_str_wgl.c: -------------------------------------------------------------------------------- 1 | } 2 | ret = (len == 0); 3 | } 4 | return ret; 5 | } 6 | 7 | #if defined(_WIN32) && !defined(GLEW_EGL) && !defined(GLEW_OSMESA) 8 | 9 | GLboolean GLEWAPIENTRY wglewIsSupported (const char* name) 10 | { 11 | const GLubyte* pos = (const GLubyte*)name; 12 | GLuint len = _glewStrLen(pos); 13 | GLboolean ret = GL_TRUE; 14 | while (ret && len > 0) 15 | { 16 | if (_glewStrSame1(&pos, &len, (const GLubyte*)"WGL_", 4)) 17 | { 18 | -------------------------------------------------------------------------------- /auto/src/glew_tail.h: -------------------------------------------------------------------------------- 1 | /* ------------------------------------------------------------------------- */ 2 | 3 | /* error codes */ 4 | #define GLEW_OK 0 5 | #define GLEW_NO_ERROR 0 6 | #define GLEW_ERROR_NO_GL_VERSION 1 /* missing GL version */ 7 | #define GLEW_ERROR_GL_VERSION_10_ONLY 2 /* Need at least OpenGL 1.1 */ 8 | #define GLEW_ERROR_GLX_VERSION_11_ONLY 3 /* Need at least GLX 1.2 */ 9 | #define GLEW_ERROR_NO_GLX_DISPLAY 4 /* Need GLX display for GLX support */ 10 | 11 | /* string codes */ 12 | #define GLEW_VERSION 1 13 | #define GLEW_VERSION_MAJOR 2 14 | #define GLEW_VERSION_MINOR 3 15 | #define GLEW_VERSION_MICRO 4 16 | 17 | /* ------------------------------------------------------------------------- */ 18 | 19 | /* GLEW version info */ 20 | 21 | /* 22 | VERSION GLEW_VERSION_STRING 23 | VERSION_MAJOR GLEW_VERSION_MAJOR_STRING 24 | VERSION_MINOR GLEW_VERSION_MINOR_STRING 25 | VERSION_MICRO GLEW_VERSION_MICRO_STRING 26 | */ 27 | 28 | /* API */ 29 | GLEWAPI GLenum GLEWAPIENTRY glewInit (void); 30 | GLEWAPI GLenum GLEWAPIENTRY glewContextInit (void); 31 | GLEWAPI GLboolean GLEWAPIENTRY glewIsSupported (const char *name); 32 | #define glewIsExtensionSupported(x) glewIsSupported(x) 33 | 34 | #ifndef GLEW_GET_VAR 35 | #define GLEW_GET_VAR(x) (*(const GLboolean*)&x) 36 | #endif 37 | 38 | #ifndef GLEW_GET_FUN 39 | #define GLEW_GET_FUN(x) x 40 | #endif 41 | 42 | GLEWAPI GLboolean glewExperimental; 43 | GLEWAPI GLboolean GLEWAPIENTRY glewGetExtension (const char *name); 44 | GLEWAPI const GLubyte * GLEWAPIENTRY glewGetErrorString (GLenum error); 45 | GLEWAPI const GLubyte * GLEWAPIENTRY glewGetString (GLenum name); 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | #ifdef GLEW_APIENTRY_DEFINED 52 | #undef GLEW_APIENTRY_DEFINED 53 | #undef APIENTRY 54 | #endif 55 | 56 | #ifdef GLEW_CALLBACK_DEFINED 57 | #undef GLEW_CALLBACK_DEFINED 58 | #undef CALLBACK 59 | #endif 60 | 61 | #ifdef GLEW_WINGDIAPI_DEFINED 62 | #undef GLEW_WINGDIAPI_DEFINED 63 | #undef WINGDIAPI 64 | #endif 65 | 66 | #undef GLAPI 67 | /* #undef GLEWAPI */ 68 | 69 | #endif /* __glew_h__ */ 70 | -------------------------------------------------------------------------------- /auto/src/glewinfo_egl.c: -------------------------------------------------------------------------------- 1 | } 2 | 3 | #elif defined(GLEW_EGL) 4 | 5 | static void eglewInfo () 6 | { 7 | -------------------------------------------------------------------------------- /auto/src/glewinfo_gl.c: -------------------------------------------------------------------------------- 1 | /* ------------------------------------------------------------------------ */ 2 | 3 | static void glewInfo (void) 4 | { 5 | #ifdef GL_VERSION_1_1 6 | _glewInfo_GL_VERSION_1_1(); 7 | #endif /* GL_VERSION_1_1 */ 8 | -------------------------------------------------------------------------------- /auto/src/glewinfo_glx.c: -------------------------------------------------------------------------------- 1 | } 2 | 3 | #elif !defined(GLEW_EGL) && !defined(GLEW_OSMESA) /* _UNIX */ 4 | 5 | static void glxewInfo () 6 | { 7 | -------------------------------------------------------------------------------- /auto/src/glewinfo_head.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #if defined(GLEW_EGL) 6 | #include 7 | #elif defined(GLEW_OSMESA) 8 | #define GLAPI extern 9 | #include 10 | #elif defined(_WIN32) 11 | #include 12 | #elif !defined(__APPLE__) && !defined(__HAIKU__) || defined(GLEW_APPLE_GLX) 13 | #include 14 | #endif 15 | 16 | #if defined(__APPLE__) 17 | #include 18 | #endif 19 | 20 | #ifdef GLEW_REGAL 21 | #include 22 | #endif 23 | 24 | static FILE* f; 25 | 26 | /* Command-line parameters for GL context creation */ 27 | 28 | struct createParams 29 | { 30 | #if defined(GLEW_OSMESA) 31 | #elif defined(GLEW_EGL) 32 | #elif defined(_WIN32) 33 | int pixelformat; 34 | #elif !defined(__APPLE__) && !defined(__HAIKU__) || defined(GLEW_APPLE_GLX) 35 | const char* display; 36 | int visual; 37 | #endif 38 | int major, minor; /* GL context version number */ 39 | 40 | /* https://www.opengl.org/registry/specs/ARB/glx_create_context.txt */ 41 | int profile; /* core = 1, compatibility = 2 */ 42 | int flags; /* debug = 1, forward compatible = 2 */ 43 | 44 | /* GLEW experimental mode */ 45 | int experimental; 46 | }; 47 | 48 | GLboolean glewCreateContext (struct createParams *params); 49 | 50 | GLboolean glewParseArgs (int argc, char** argv, struct createParams *); 51 | 52 | void glewDestroyContext (); 53 | 54 | /* ------------------------------------------------------------------------- */ 55 | 56 | static GLboolean glewPrintExt (const char* name, GLboolean def1, GLboolean def2, GLboolean def3) 57 | { 58 | unsigned int i; 59 | fprintf(f, "\n%s:", name); 60 | for (i=0; i<62-strlen(name); i++) fprintf(f, " "); 61 | fprintf(f, "%s ", def1 ? "OK" : "MISSING"); 62 | if (def1 != def2) 63 | fprintf(f, "[%s] ", def2 ? "OK" : "MISSING"); 64 | if (def1 != def3) 65 | fprintf(f, "[%s]\n", def3 ? "OK" : "MISSING"); 66 | else 67 | fprintf(f, "\n"); 68 | for (i=0; i 20 | #include 21 | #include 22 | 23 | #ifndef GLEW_INCLUDE 24 | # include 25 | #else 26 | # include GLEW_INCLUDE 27 | #endif 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | /* ---------------------------- GLX_VERSION_1_0 --------------------------- */ 34 | 35 | #ifndef GLX_VERSION_1_0 36 | #define GLX_VERSION_1_0 1 37 | 38 | #define GLX_USE_GL 1 39 | #define GLX_BUFFER_SIZE 2 40 | #define GLX_LEVEL 3 41 | #define GLX_RGBA 4 42 | #define GLX_DOUBLEBUFFER 5 43 | #define GLX_STEREO 6 44 | #define GLX_AUX_BUFFERS 7 45 | #define GLX_RED_SIZE 8 46 | #define GLX_GREEN_SIZE 9 47 | #define GLX_BLUE_SIZE 10 48 | #define GLX_ALPHA_SIZE 11 49 | #define GLX_DEPTH_SIZE 12 50 | #define GLX_STENCIL_SIZE 13 51 | #define GLX_ACCUM_RED_SIZE 14 52 | #define GLX_ACCUM_GREEN_SIZE 15 53 | #define GLX_ACCUM_BLUE_SIZE 16 54 | #define GLX_ACCUM_ALPHA_SIZE 17 55 | #define GLX_BAD_SCREEN 1 56 | #define GLX_BAD_ATTRIBUTE 2 57 | #define GLX_NO_EXTENSION 3 58 | #define GLX_BAD_VISUAL 4 59 | #define GLX_BAD_CONTEXT 5 60 | #define GLX_BAD_VALUE 6 61 | #define GLX_BAD_ENUM 7 62 | 63 | typedef XID GLXDrawable; 64 | typedef XID GLXPixmap; 65 | #ifdef __sun 66 | typedef struct __glXContextRec *GLXContext; 67 | #else 68 | typedef struct __GLXcontextRec *GLXContext; 69 | #endif 70 | 71 | typedef unsigned int GLXVideoDeviceNV; 72 | 73 | extern Bool glXQueryExtension (Display *dpy, int *errorBase, int *eventBase); 74 | extern Bool glXQueryVersion (Display *dpy, int *major, int *minor); 75 | extern int glXGetConfig (Display *dpy, XVisualInfo *vis, int attrib, int *value); 76 | extern XVisualInfo* glXChooseVisual (Display *dpy, int screen, int *attribList); 77 | extern GLXPixmap glXCreateGLXPixmap (Display *dpy, XVisualInfo *vis, Pixmap pixmap); 78 | extern void glXDestroyGLXPixmap (Display *dpy, GLXPixmap pix); 79 | extern GLXContext glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct); 80 | extern void glXDestroyContext (Display *dpy, GLXContext ctx); 81 | extern Bool glXIsDirect (Display *dpy, GLXContext ctx); 82 | extern void glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, GLulong mask); 83 | extern Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx); 84 | extern GLXContext glXGetCurrentContext (void); 85 | extern GLXDrawable glXGetCurrentDrawable (void); 86 | extern void glXWaitGL (void); 87 | extern void glXWaitX (void); 88 | extern void glXSwapBuffers (Display *dpy, GLXDrawable drawable); 89 | extern void glXUseXFont (Font font, int first, int count, int listBase); 90 | 91 | #define GLXEW_VERSION_1_0 GLXEW_GET_VAR(__GLXEW_VERSION_1_0) 92 | 93 | #endif /* GLX_VERSION_1_0 */ 94 | 95 | /* ---------------------------- GLX_VERSION_1_1 --------------------------- */ 96 | 97 | #ifndef GLX_VERSION_1_1 98 | #define GLX_VERSION_1_1 99 | 100 | #define GLX_VENDOR 0x1 101 | #define GLX_VERSION 0x2 102 | #define GLX_EXTENSIONS 0x3 103 | 104 | extern const char* glXQueryExtensionsString (Display *dpy, int screen); 105 | extern const char* glXGetClientString (Display *dpy, int name); 106 | extern const char* glXQueryServerString (Display *dpy, int screen, int name); 107 | 108 | #define GLXEW_VERSION_1_1 GLXEW_GET_VAR(__GLXEW_VERSION_1_1) 109 | 110 | #endif /* GLX_VERSION_1_1 */ 111 | 112 | -------------------------------------------------------------------------------- /auto/src/glxew_mid.h: -------------------------------------------------------------------------------- 1 | /* ------------------------------------------------------------------------- */ 2 | 3 | #define GLXEW_FUN_EXPORT GLEW_FUN_EXPORT 4 | #define GLXEW_VAR_EXPORT GLEW_VAR_EXPORT 5 | -------------------------------------------------------------------------------- /auto/src/glxew_tail.h: -------------------------------------------------------------------------------- 1 | /* ------------------------------------------------------------------------ */ 2 | 3 | GLEWAPI GLenum GLEWAPIENTRY glxewInit (); 4 | GLEWAPI GLboolean GLEWAPIENTRY glxewIsSupported (const char *name); 5 | 6 | #ifndef GLXEW_GET_VAR 7 | #define GLXEW_GET_VAR(x) (*(const GLboolean*)&x) 8 | #endif 9 | 10 | #ifndef GLXEW_GET_FUN 11 | #define GLXEW_GET_FUN(x) x 12 | #endif 13 | 14 | GLEWAPI GLboolean GLEWAPIENTRY glxewGetExtension (const char *name); 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | 20 | #endif /* __glxew_h__ */ 21 | -------------------------------------------------------------------------------- /auto/src/khronos_license.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Copyright (c) 2007 The Khronos Group Inc. 3 | ** 4 | ** Permission is hereby granted, free of charge, to any person obtaining a 5 | ** copy of this software and/or associated documentation files (the 6 | ** "Materials"), to deal in the Materials without restriction, including 7 | ** without limitation the rights to use, copy, modify, merge, publish, 8 | ** distribute, sublicense, and/or sell copies of the Materials, and to 9 | ** permit persons to whom the Materials are furnished to do so, subject to 10 | ** the following conditions: 11 | ** 12 | ** The above copyright notice and this permission notice shall be included 13 | ** in all copies or substantial portions of the Materials. 14 | ** 15 | ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 | ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 20 | ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21 | ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 22 | */ 23 | 24 | -------------------------------------------------------------------------------- /auto/src/mesa_license.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Mesa 3-D graphics library 3 | * Version: 7.0 4 | * 5 | * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a 8 | * copy of this software and associated documentation files (the "Software"), 9 | * to deal in the Software without restriction, including without limitation 10 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 11 | * and/or sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 18 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20 | * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 21 | * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 22 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | */ 24 | 25 | -------------------------------------------------------------------------------- /auto/src/wglew_head.h: -------------------------------------------------------------------------------- 1 | #ifndef __wglew_h__ 2 | #define __wglew_h__ 3 | #define __WGLEW_H__ 4 | 5 | #ifdef __wglext_h_ 6 | #error wglext.h included before wglew.h 7 | #endif 8 | 9 | #define __wglext_h_ 10 | 11 | #if !defined(WINAPI) 12 | # ifndef WIN32_LEAN_AND_MEAN 13 | # define WIN32_LEAN_AND_MEAN 1 14 | # endif 15 | #include 16 | # undef WIN32_LEAN_AND_MEAN 17 | #endif 18 | 19 | /* 20 | * GLEW_STATIC needs to be set when using the static version. 21 | * GLEW_BUILD is set when building the DLL version. 22 | */ 23 | #ifdef GLEW_STATIC 24 | # define GLEWAPI extern 25 | #else 26 | # ifdef GLEW_BUILD 27 | # define GLEWAPI extern __declspec(dllexport) 28 | # else 29 | # define GLEWAPI extern __declspec(dllimport) 30 | # endif 31 | #endif 32 | 33 | #ifdef __cplusplus 34 | extern "C" { 35 | #endif 36 | 37 | -------------------------------------------------------------------------------- /auto/src/wglew_mid.h: -------------------------------------------------------------------------------- 1 | /* ------------------------------------------------------------------------- */ 2 | 3 | #define WGLEW_FUN_EXPORT GLEW_FUN_EXPORT 4 | #define WGLEW_VAR_EXPORT GLEW_VAR_EXPORT 5 | -------------------------------------------------------------------------------- /auto/src/wglew_tail.h: -------------------------------------------------------------------------------- 1 | /* ------------------------------------------------------------------------- */ 2 | 3 | GLEWAPI GLenum GLEWAPIENTRY wglewInit (); 4 | GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char *name); 5 | 6 | #ifndef WGLEW_GET_VAR 7 | #define WGLEW_GET_VAR(x) (*(const GLboolean*)&x) 8 | #endif 9 | 10 | #ifndef WGLEW_GET_FUN 11 | #define WGLEW_GET_FUN(x) x 12 | #endif 13 | 14 | GLEWAPI GLboolean GLEWAPIENTRY wglewGetExtension (const char *name); 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | 20 | #undef GLEWAPI 21 | 22 | #endif /* __wglew_h__ */ 23 | -------------------------------------------------------------------------------- /build/cmake/CopyImportedTargetProperties.cmake: -------------------------------------------------------------------------------- 1 | #.rst: 2 | # CopyImportedTargetProperties 3 | # -------------------------- 4 | # 5 | # Copies the `INTERFACE*` and `IMPORTED*` properties from a target 6 | # to another one. 7 | # This function can be used to duplicate an `IMPORTED` or an `ALIAS` library 8 | # with a different name since ``add_library(... ALIAS ...)`` does not work 9 | # for those targets. 10 | # 11 | # :: 12 | # 13 | # copy_imported_target_properties( ) 14 | # 15 | # The function copies all the `INTERFACE*` and `IMPORTED*` target 16 | # properties from `` to ``. 17 | # 18 | # The function uses the `IMPORTED_CONFIGURATIONS` property to determine 19 | # which configuration-dependent properties should be copied 20 | # (`IMPORTED_LOCATION_`, etc...) 21 | # 22 | # Example: 23 | # 24 | # Internally the CMake project of ZLIB builds the ``zlib`` and 25 | # ``zlibstatic`` targets which can be exported in the ``ZLIB::`` namespace 26 | # with the ``install(EXPORT ...)`` command. 27 | # 28 | # The config-module will then create the import libraries ``ZLIB::zlib`` and 29 | # ``ZLIB::zlibstatic``. To use ``ZLIB::zlibstatic`` under the standard 30 | # ``ZLIB::ZLIB`` name we need to create the ``ZLIB::ZLIB`` imported library 31 | # and copy the appropriate properties: 32 | # 33 | # add_library(ZLIB::ZLIB STATIC IMPORTED) 34 | # copy_imported_target_properties(ZLIB::zlibstatic ZLIB::ZLIB) 35 | # 36 | 37 | function(copy_imported_target_properties src_target dest_target) 38 | 39 | set(config_dependent_props 40 | IMPORTED_IMPLIB 41 | IMPORTED_LINK_DEPENDENT_LIBRARIES 42 | IMPORTED_LINK_INTERFACE_LANGUAGES 43 | IMPORTED_LINK_INTERFACE_LIBRARIES 44 | IMPORTED_LINK_INTERFACE_MULTIPLICITY 45 | IMPORTED_LOCATION 46 | IMPORTED_NO_SONAME 47 | IMPORTED_SONAME 48 | ) 49 | 50 | # copy configuration-independent properties 51 | foreach(prop 52 | ${config_dependent_props} 53 | IMPORTED_CONFIGURATIONS 54 | INTERFACE_AUTOUIC_OPTIONS 55 | INTERFACE_COMPILE_DEFINITIONS 56 | INTERFACE_COMPILE_FEATURES 57 | INTERFACE_COMPILE_OPTIONS 58 | INTERFACE_INCLUDE_DIRECTORIES 59 | INTERFACE_LINK_LIBRARIES 60 | INTERFACE_POSITION_INDEPENDENT_CODE 61 | INTERFACE_SOURCES 62 | INTERFACE_SYSTEM_INCLUDE_DIRECTORIES 63 | ) 64 | get_property(is_set TARGET ${src_target} PROPERTY ${prop} SET) 65 | if(is_set) 66 | get_target_property(v ${src_target} ${prop}) 67 | set_target_properties(${dest_target} PROPERTIES ${prop} "${v}") 68 | # message(STATUS "set_target_properties(${dest_target} PROPERTIES ${prop} ${v})") 69 | endif() 70 | endforeach() 71 | 72 | # copy configuration-dependent properties 73 | get_target_property(imported_configs ${src_target} 74 | IMPORTED_CONFIGURATIONS) 75 | 76 | foreach(config ${imported_configs}) 77 | foreach(prop_prefix ${config_dependent_props}) 78 | set(prop ${prop_prefix}_${config}) 79 | get_property(is_set TARGET ${src_target} PROPERTY ${prop} SET) 80 | if(is_set) 81 | get_target_property(v ${src_target} ${prop}) 82 | set_target_properties(${dest_target} 83 | PROPERTIES ${prop} "${v}") 84 | # message(STATUS "set_target_properties(${dest_target} PROPERTIES ${prop} ${v})") 85 | endif() 86 | endforeach() 87 | endforeach() 88 | endfunction() 89 | -------------------------------------------------------------------------------- /build/cmake/cmake_uninstall.cmake.in: -------------------------------------------------------------------------------- 1 | if(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt") 2 | message(FATAL_ERROR "Cannot find install manifest: @CMAKE_BINARY_DIR@/install_manifest.txt") 3 | endif(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt") 4 | 5 | if (NOT DEFINED CMAKE_INSTALL_PREFIX) 6 | set (CMAKE_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@") 7 | endif () 8 | message(${CMAKE_INSTALL_PREFIX}) 9 | 10 | file(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files) 11 | string(REGEX REPLACE "\n" ";" files "${files}") 12 | foreach(file ${files}) 13 | message(STATUS "Uninstalling $ENV{DESTDIR}${file}") 14 | if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}") 15 | exec_program( 16 | "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" 17 | OUTPUT_VARIABLE rm_out 18 | RETURN_VALUE rm_retval 19 | ) 20 | if(NOT "${rm_retval}" STREQUAL 0) 21 | message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}") 22 | endif(NOT "${rm_retval}" STREQUAL 0) 23 | else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}") 24 | message(STATUS "File $ENV{DESTDIR}${file} does not exist.") 25 | endif(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}") 26 | endforeach(file) 27 | -------------------------------------------------------------------------------- /build/cmake/glew-config.cmake: -------------------------------------------------------------------------------- 1 | # This config-module creates the following import libraries: 2 | # 3 | # - GLEW::glew shared lib 4 | # - GLEW::glew_s static lib 5 | # 6 | # Additionally GLEW::GLEW will be created as an 7 | # copy of either the shared (default) or the static libs. 8 | # 9 | # Dependending on the setting of BUILD_SHARED_LIBS at GLEW build time 10 | # either the static or shared versions may not be available. 11 | # 12 | # Set GLEW_USE_STATIC_LIBS to OFF or ON to force using the shared 13 | # or static lib for GLEW::GLEW 14 | # 15 | 16 | include(${CMAKE_CURRENT_LIST_DIR}/glew-targets.cmake) 17 | include(${CMAKE_CURRENT_LIST_DIR}/CopyImportedTargetProperties.cmake) 18 | 19 | # decide which import library (glew/glew_s) 20 | # needs to be copied to GLEW::GLEW 21 | set(_glew_target_postfix "") 22 | set(_glew_target_type SHARED) 23 | if(DEFINED GLEW_USE_STATIC_LIBS) 24 | # if defined, use only static or shared 25 | if(GLEW_USE_STATIC_LIBS) 26 | set(_glew_target_postfix "_s") 27 | endif() 28 | # else use static only if no shared 29 | elseif(NOT TARGET GLEW::glew AND TARGET GLEW::glew_s) 30 | set(_glew_target_postfix "_s") 31 | endif() 32 | if(_glew_target_postfix STREQUAL "") 33 | set(_glew_target_type SHARED) 34 | else() 35 | set(_glew_target_type STATIC) 36 | endif() 37 | 38 | # CMake doesn't allow creating ALIAS lib for an IMPORTED lib 39 | # so create imported ones and copy the properties 40 | foreach(_glew_target glew) 41 | set(_glew_src_target "GLEW::${_glew_target}${_glew_target_postfix}") 42 | string(TOUPPER "GLEW::${_glew_target}" _glew_dest_target) 43 | if(TARGET ${_glew_dest_target}) 44 | get_target_property(_glew_previous_src_target ${_glew_dest_target} 45 | _GLEW_SRC_TARGET) 46 | if(NOT _glew_previous_src_target STREQUAL _glew_src_target) 47 | message(FATAL_ERROR "find_package(GLEW) was called the second time with " 48 | "different GLEW_USE_STATIC_LIBS setting. Previously, " 49 | "`glew-config.cmake` created ${_glew_dest_target} as a copy of " 50 | "${_glew_previous_src_target}. Now it attempted to copy it from " 51 | "${_glew_src_target}. ") 52 | endif() 53 | else() 54 | add_library(${_glew_dest_target} ${_glew_target_type} IMPORTED) 55 | # message(STATUS "add_library(${_glew_dest_target} ${_glew_target_type} IMPORTED)") 56 | copy_imported_target_properties(${_glew_src_target} ${_glew_dest_target}) 57 | set_target_properties(${_glew_dest_target} PROPERTIES 58 | _GLEW_SRC_TARGET ${_glew_src_target}) 59 | endif() 60 | endforeach() 61 | -------------------------------------------------------------------------------- /build/cmake/testbuild/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.16) 2 | project(glew-cmake-test LANGUAGES C) 3 | 4 | find_package(GLEW REQUIRED CONFIG) 5 | find_package(GLEW REQUIRED CONFIG) # call twice to test multiple call 6 | find_package(OpenGL REQUIRED) 7 | 8 | add_executable(cmake-test main.c) 9 | set_target_properties(cmake-test PROPERTIES DEBUG_POSTFIX _d) 10 | target_link_libraries(cmake-test PRIVATE GLEW::GLEW ${OPENGL_LIBRARIES}) 11 | target_include_directories(cmake-test PRIVATE ${OPENGL_INCLUDE_DIR}) 12 | 13 | target_compile_definitions(cmake-test PRIVATE 14 | -DGLEW_CMAKE_TEST_CONFIG=$ 15 | -DGLEW_CMAKE_TEST_TARGET_FILE_NAME=$ 16 | -DGLEW_CMAKE_TEST_TARGET_TYPE=$ 17 | ) 18 | 19 | install(TARGETS cmake-test DESTINATION bin COMPONENT Runtime) 20 | -------------------------------------------------------------------------------- /build/cmake/testbuild/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | #include 5 | 6 | #define S(x) SS(x) 7 | #define SS(x) #x 8 | 9 | int main(int argc, char* argv[]) { 10 | printf("GLEW CMake test, %s build\n", 11 | S(GLEW_CMAKE_TEST_CONFIG)); 12 | printf("-- linked to %s which is %s\n", 13 | S(GLEW_CMAKE_TEST_TARGET_FILE_NAME), 14 | S(GLEW_CMAKE_TEST_TARGET_TYPE)); 15 | const GLubyte* v = glewGetString(GLEW_VERSION); 16 | if(v) { 17 | printf("-- glewGetString(GLEW_VERSION) returns %s\n-- test passed.\n", v); 18 | return EXIT_SUCCESS; 19 | } else { 20 | printf("-- glewGetString(GLEW_VERSION) returns NULL\n-- test failed.\n"); 21 | return EXIT_FAILURE; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /build/vc10/common.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | ../../include 6 | ../../lib 7 | ../../bin 8 | 9 | 10 | 11 | 12 | $(INCLUDE_DIR) 13 | 14 | 15 | 16 | 17 | $(INCLUDE_DIR) 18 | true 19 | 20 | 21 | $(LIB_DIR) 22 | true 23 | 24 | 25 | $(BIN_DIR) 26 | true 27 | 28 | 29 | -------------------------------------------------------------------------------- /build/vc10/glew.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glew_shared", "glew_shared.vcxproj", "{55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}" 5 | EndProject 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glew_static", "glew_static.vcxproj", "{664E6F0D-6784-4760-9565-D54F8EB1EDF4}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glewinfo", "glewinfo.vcxproj", "{8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}" 9 | EndProject 10 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "visualinfo", "visualinfo.vcxproj", "{79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}" 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | Debug|Win32 = Debug|Win32 15 | Debug|x64 = Debug|x64 16 | Release|Win32 = Release|Win32 17 | Release|x64 = Release|x64 18 | EndGlobalSection 19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 20 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Debug|Win32.ActiveCfg = Debug|Win32 21 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Debug|Win32.Build.0 = Debug|Win32 22 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Debug|x64.ActiveCfg = Debug|x64 23 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Debug|x64.Build.0 = Debug|x64 24 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Release|Win32.ActiveCfg = Release|Win32 25 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Release|Win32.Build.0 = Release|Win32 26 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Release|x64.ActiveCfg = Release|x64 27 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Release|x64.Build.0 = Release|x64 28 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Debug|Win32.ActiveCfg = Debug|Win32 29 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Debug|Win32.Build.0 = Debug|Win32 30 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Debug|x64.ActiveCfg = Debug|x64 31 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Debug|x64.Build.0 = Debug|x64 32 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Release|Win32.ActiveCfg = Release|Win32 33 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Release|Win32.Build.0 = Release|Win32 34 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Release|x64.ActiveCfg = Release|x64 35 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Release|x64.Build.0 = Release|x64 36 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Debug|Win32.ActiveCfg = Debug|Win32 37 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Debug|Win32.Build.0 = Debug|Win32 38 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Debug|x64.ActiveCfg = Debug|x64 39 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Debug|x64.Build.0 = Debug|x64 40 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Release|Win32.ActiveCfg = Release|Win32 41 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Release|Win32.Build.0 = Release|Win32 42 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Release|x64.ActiveCfg = Release|x64 43 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Release|x64.Build.0 = Release|x64 44 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Debug|Win32.ActiveCfg = Debug|Win32 45 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Debug|Win32.Build.0 = Debug|Win32 46 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Debug|x64.ActiveCfg = Debug|x64 47 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Debug|x64.Build.0 = Debug|x64 48 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Release|Win32.ActiveCfg = Release|Win32 49 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Release|Win32.Build.0 = Release|Win32 50 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Release|x64.ActiveCfg = Release|x64 51 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Release|x64.Build.0 = Release|x64 52 | EndGlobalSection 53 | GlobalSection(SolutionProperties) = preSolution 54 | HideSolutionNode = FALSE 55 | EndGlobalSection 56 | EndGlobal 57 | -------------------------------------------------------------------------------- /build/vc12/common.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | ..\..\include 6 | ..\..\lib 7 | ..\..\bin 8 | 9 | 10 | 11 | 12 | $(INCLUDE_DIR) 13 | 14 | 15 | 16 | 17 | $(INCLUDE_DIR) 18 | true 19 | 20 | 21 | $(LIB_DIR) 22 | true 23 | 24 | 25 | $(BIN_DIR) 26 | true 27 | 28 | 29 | -------------------------------------------------------------------------------- /build/vc12/glew.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glew_shared", "glew_shared.vcxproj", "{55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}" 5 | EndProject 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glew_static", "glew_static.vcxproj", "{664E6F0D-6784-4760-9565-D54F8EB1EDF4}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glewinfo", "glewinfo.vcxproj", "{8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}" 9 | EndProject 10 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "visualinfo", "visualinfo.vcxproj", "{79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}" 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | Debug|Win32 = Debug|Win32 15 | Debug|x64 = Debug|x64 16 | Release|Win32 = Release|Win32 17 | Release|x64 = Release|x64 18 | EndGlobalSection 19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 20 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Debug|Win32.ActiveCfg = Debug|Win32 21 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Debug|Win32.Build.0 = Debug|Win32 22 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Debug|x64.ActiveCfg = Debug|x64 23 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Debug|x64.Build.0 = Debug|x64 24 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Release|Win32.ActiveCfg = Release|Win32 25 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Release|Win32.Build.0 = Release|Win32 26 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Release|x64.ActiveCfg = Release|x64 27 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Release|x64.Build.0 = Release|x64 28 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Debug|Win32.ActiveCfg = Debug|Win32 29 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Debug|Win32.Build.0 = Debug|Win32 30 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Debug|x64.ActiveCfg = Debug|x64 31 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Debug|x64.Build.0 = Debug|x64 32 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Release|Win32.ActiveCfg = Release|Win32 33 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Release|Win32.Build.0 = Release|Win32 34 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Release|x64.ActiveCfg = Release|x64 35 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Release|x64.Build.0 = Release|x64 36 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Debug|Win32.ActiveCfg = Debug|Win32 37 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Debug|Win32.Build.0 = Debug|Win32 38 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Debug|x64.ActiveCfg = Debug|x64 39 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Debug|x64.Build.0 = Debug|x64 40 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Release|Win32.ActiveCfg = Release|Win32 41 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Release|Win32.Build.0 = Release|Win32 42 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Release|x64.ActiveCfg = Release|x64 43 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Release|x64.Build.0 = Release|x64 44 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Debug|Win32.ActiveCfg = Debug|Win32 45 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Debug|Win32.Build.0 = Debug|Win32 46 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Debug|x64.ActiveCfg = Debug|x64 47 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Debug|x64.Build.0 = Debug|x64 48 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Release|Win32.ActiveCfg = Release|Win32 49 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Release|Win32.Build.0 = Release|Win32 50 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Release|x64.ActiveCfg = Release|x64 51 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Release|x64.Build.0 = Release|x64 52 | EndGlobalSection 53 | GlobalSection(SolutionProperties) = preSolution 54 | HideSolutionNode = FALSE 55 | EndGlobalSection 56 | EndGlobal 57 | -------------------------------------------------------------------------------- /build/vc14/common.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | ..\..\include 6 | ..\..\lib 7 | ..\..\bin 8 | 9 | 10 | 11 | 12 | $(INCLUDE_DIR) 13 | 14 | 15 | 16 | 17 | $(INCLUDE_DIR) 18 | true 19 | 20 | 21 | $(LIB_DIR) 22 | true 23 | 24 | 25 | $(BIN_DIR) 26 | true 27 | 28 | 29 | -------------------------------------------------------------------------------- /build/vc14/glew.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glew_shared", "glew_shared.vcxproj", "{55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}" 5 | EndProject 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glew_static", "glew_static.vcxproj", "{664E6F0D-6784-4760-9565-D54F8EB1EDF4}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glewinfo", "glewinfo.vcxproj", "{8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}" 9 | EndProject 10 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "visualinfo", "visualinfo.vcxproj", "{79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}" 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | Debug|Win32 = Debug|Win32 15 | Debug|x64 = Debug|x64 16 | Release|Win32 = Release|Win32 17 | Release|x64 = Release|x64 18 | EndGlobalSection 19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 20 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Debug|Win32.ActiveCfg = Debug|Win32 21 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Debug|Win32.Build.0 = Debug|Win32 22 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Debug|x64.ActiveCfg = Debug|x64 23 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Debug|x64.Build.0 = Debug|x64 24 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Release|Win32.ActiveCfg = Release|Win32 25 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Release|Win32.Build.0 = Release|Win32 26 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Release|x64.ActiveCfg = Release|x64 27 | {55AE3D72-7DE6-F19F-AEF2-9AE8CA26CF3D}.Release|x64.Build.0 = Release|x64 28 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Debug|Win32.ActiveCfg = Debug|Win32 29 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Debug|Win32.Build.0 = Debug|Win32 30 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Debug|x64.ActiveCfg = Debug|x64 31 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Debug|x64.Build.0 = Debug|x64 32 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Release|Win32.ActiveCfg = Release|Win32 33 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Release|Win32.Build.0 = Release|Win32 34 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Release|x64.ActiveCfg = Release|x64 35 | {664E6F0D-6784-4760-9565-D54F8EB1EDF4}.Release|x64.Build.0 = Release|x64 36 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Debug|Win32.ActiveCfg = Debug|Win32 37 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Debug|Win32.Build.0 = Debug|Win32 38 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Debug|x64.ActiveCfg = Debug|x64 39 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Debug|x64.Build.0 = Debug|x64 40 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Release|Win32.ActiveCfg = Release|Win32 41 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Release|Win32.Build.0 = Release|Win32 42 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Release|x64.ActiveCfg = Release|x64 43 | {8EFB5DCB-C0C4-1670-5938-A0E0F1A1C5EA}.Release|x64.Build.0 = Release|x64 44 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Debug|Win32.ActiveCfg = Debug|Win32 45 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Debug|Win32.Build.0 = Debug|Win32 46 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Debug|x64.ActiveCfg = Debug|x64 47 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Debug|x64.Build.0 = Debug|x64 48 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Release|Win32.ActiveCfg = Release|Win32 49 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Release|Win32.Build.0 = Release|Win32 50 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Release|x64.ActiveCfg = Release|x64 51 | {79AA8443-86F4-649A-0BEB-0CB5E51B7D7E}.Release|x64.Build.0 = Release|x64 52 | EndGlobalSection 53 | GlobalSection(SolutionProperties) = preSolution 54 | HideSolutionNode = FALSE 55 | EndGlobalSection 56 | EndGlobal 57 | -------------------------------------------------------------------------------- /build/vc15/common.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | ..\..\include 6 | ..\..\lib 7 | ..\..\bin 8 | 9 | 10 | 11 | 12 | $(INCLUDE_DIR) 13 | 14 | 15 | 16 | 17 | $(INCLUDE_DIR) 18 | true 19 | 20 | 21 | $(LIB_DIR) 22 | true 23 | 24 | 25 | $(BIN_DIR) 26 | true 27 | 28 | 29 | -------------------------------------------------------------------------------- /build/vc6/Makefile: -------------------------------------------------------------------------------- 1 | MSDEV := msdev 2 | RM := rm -rf 3 | 4 | default: 5 | $(MSDEV) glew.dsw /make \ 6 | "glew_static - Win32 Release" \ 7 | "glew_shared - Win32 Release" \ 8 | "glewinfo - Win32 Release" \ 9 | "visualinfo - Win32 Release" /build 10 | 11 | debug: 12 | $(MSDEV) glew.dsw /make \ 13 | "glew_static - Win32 Debug" \ 14 | "glew_shared - Win32 Debug" \ 15 | "glewinfo - Win32 Debug" \ 16 | "visualinfo - Win32 Debug" /build 17 | 18 | 19 | clean: 20 | $(MSDEV) glew.dsw /make all /clean 21 | $(RM) static shared *.plg *.ncb *.opt 22 | -------------------------------------------------------------------------------- /build/vc6/glew.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "glew_shared"=.\glew_shared.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Project: "glew_static"=.\glew_static.dsp - Package Owner=<4> 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<4> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | Project: "glewinfo"=.\glewinfo.dsp - Package Owner=<4> 31 | 32 | Package=<5> 33 | {{{ 34 | }}} 35 | 36 | Package=<4> 37 | {{{ 38 | Begin Project Dependency 39 | Project_Dep_Name glew_static 40 | End Project Dependency 41 | }}} 42 | 43 | ############################################################################### 44 | 45 | Project: "visualinfo"=.\visualinfo.dsp - Package Owner=<4> 46 | 47 | Package=<5> 48 | {{{ 49 | }}} 50 | 51 | Package=<4> 52 | {{{ 53 | Begin Project Dependency 54 | Project_Dep_Name glew_static 55 | End Project Dependency 56 | }}} 57 | 58 | ############################################################################### 59 | 60 | Global: 61 | 62 | Package=<5> 63 | {{{ 64 | }}} 65 | 66 | Package=<3> 67 | {{{ 68 | }}} 69 | 70 | ############################################################################### 71 | 72 | -------------------------------------------------------------------------------- /cmake-testbuild.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This script tests the CMake build: 4 | # 5 | # - builds the main CMakeLists.txt 6 | # - builds and runs a small test app in a separate build tree so 7 | # the config-module is tested, too 8 | # 9 | # Options (environment variables): 10 | # 11 | # - The variable BUILD_SHARED_LIBS will be forwarded to the CMake project 12 | # that builds and installs the GLEW libraries. Set BUILD_SHARED_LIBS to 13 | # ON or OFF to install only static or shared libs. Leave it unset to 14 | # install both. 15 | # 16 | # Note: BUILD_SHARED_LIBS controls only what to install not what to build. 17 | # 18 | # - GLEW_USE_STATIC_LIBS will be forwarded to the test project that calls 19 | # `find_package` to find GLEW. Set GLEW_USE_STATIC LIBS to ON or OFF force 20 | # finding the shared or static versions of GLEW. Leave it unset to find 21 | # the shared or what is available. 22 | # 23 | # Examples: 24 | # 25 | # Build & install shared + static, find default (shared) 26 | # 27 | # ./cmake-testbuild.sh 28 | # 29 | # Build & install shared + static, find static 30 | # 31 | # GLEW_USE_STATIC_LIBS=ON ./cmake-testbuild.sh 32 | # 33 | # Install static only (still build both) 34 | # 35 | # BUILD_SHARED_LIBS=OFF ./cmake-testbuild.sh 36 | # 37 | 38 | set -ex 39 | 40 | rm -rf out/include 41 | rm -rf out/lib* 42 | rm -rf out/bin 43 | 44 | if [ -n "$BUILD_SHARED_LIBS" ]; then 45 | bsl=-DBUILD_SHARED_LIBS=$BUILD_SHARED_LIBS 46 | else 47 | bsl=-UBUILD_SHARED_LIBS 48 | fi 49 | 50 | if [ -n "$GLEW_USE_STATIC_LIBS" ]; then 51 | gusl=-DGLEW_USE_STATIC_LIBS=$GLEW_USE_STATIC_LIBS 52 | else 53 | gusl=-UGLEW_USE_STATIC_LIBS 54 | fi 55 | 56 | cmake -Hbuild/cmake -Bout/build/glew -DCMAKE_INSTALL_PREFIX=${PWD}/out -DCMAKE_BUILD_TYPE=Debug $bsl 57 | cmake --build out/build/glew --target install --config Debug 58 | cmake out/build/glew -DCMAKE_BUILD_TYPE=Release 59 | cmake --build out/build/glew --target install --config Release --clean-first 60 | 61 | cmake -Hbuild/cmake/testbuild -Bout/build/cmake-testbuild -DCMAKE_INSTALL_PREFIX=${PWD}/out -DCMAKE_PREFIX_PATH=${PWD}/out -DCMAKE_BUILD_TYPE=Debug $gusl 62 | cmake --build out/build/cmake-testbuild --target install --config Debug 63 | 64 | cmake out/build/cmake-testbuild -DCMAKE_BUILD_TYPE=Release 65 | cmake --build out/build/cmake-testbuild --target install --config Release --clean-first 66 | 67 | export LD_LIBRARY_PATH=${PWD}/out/lib:$LD_LIBRARY_PATH 68 | export DYLD_LIBRARY_PATH=${PWD}/out/lib:$DYLD_LIBRARY_PATH 69 | 70 | out/bin/cmake-test_d 71 | out/bin/cmake-test 72 | -------------------------------------------------------------------------------- /config/Makefile.cygming: -------------------------------------------------------------------------------- 1 | NAME = glew32 2 | GLEW_DEST = /usr 3 | BINDIR = /usr/bin 4 | LIBDIR = /usr/lib/mingw 5 | INCDIR = /usr/include/mingw/GL 6 | # use gcc for linking, with ld it does not work 7 | CC := gcc -mno-cygwin 8 | LD := gcc -mno-cygwin 9 | LN := 10 | LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32 11 | LDFLAGS.EXTRA = -L$(LIBDIR) 12 | CFLAGS.EXTRA += -fno-builtin -fno-stack-protector 13 | LDFLAGS.EXTRA += -nostdlib 14 | WARN = -Wall -W 15 | POPT = -O2 16 | BIN.SUFFIX = .exe 17 | LIB.SONAME = lib$(NAME).dll 18 | LIB.DEVLNK = lib$(NAME).dll.a # for mingw this is the dll import lib 19 | LIB.SHARED = $(NAME).dll 20 | LIB.STATIC = lib$(NAME).a # the static lib will be broken 21 | LDFLAGS.SO = -shared -Wl,-soname,$(LIB.SONAME) -Wl,--out-implib,lib/$(LIB.DEVLNK) 22 | -------------------------------------------------------------------------------- /config/Makefile.cygwin: -------------------------------------------------------------------------------- 1 | NAME = GLEW 2 | GLEW_DEST ?= /usr 3 | # use gcc for linking, with ld it does not work 4 | CC := cc 5 | LD := cc 6 | LN := 7 | CFLAGS.EXTRA += -D_WIN32 8 | LDFLAGS.EXTRA = 9 | LIBDIR = $(GLEW_DEST)/lib 10 | LDFLAGS.GL = -lOpenGL32 -mwindows 11 | LDFLAGS.STATIC = -Wl,-Bstatic 12 | LDFLAGS.DYNAMIC = -Wl,-Bdynamic 13 | WARN = -Wall -W 14 | POPT = -O2 15 | BIN.SUFFIX = .exe 16 | LIB.SONAME = cyg$(NAME)-$(GLEW_MAJOR)-$(GLEW_MINOR).dll 17 | LIB.DEVLNK = lib$(NAME).dll.a 18 | LIB.SHARED = cyg$(NAME)-$(GLEW_MAJOR)-$(GLEW_MINOR).dll 19 | LIB.STATIC = lib$(NAME).a 20 | LDFLAGS.SO = -shared -Wl,--out-implib,lib/$(LIB.DEVLNK) 21 | -------------------------------------------------------------------------------- /config/Makefile.cygwin-x11: -------------------------------------------------------------------------------- 1 | NAME = GLEW 2 | GLEW_DEST ?= /usr 3 | # use gcc for linking, with ld it does not work 4 | CC := cc 5 | LD := cc 6 | LN := 7 | LDFLAGS.EXTRA = 8 | LIBDIR = $(GLEW_DEST)/lib 9 | LDFLAGS.GL = -lGL -lX11 10 | LDFLAGS.STATIC = -Wl,-Bstatic 11 | LDFLAGS.DYNAMIC = -Wl,-Bdynamic 12 | WARN = -Wall -W 13 | POPT = -O2 14 | BIN.SUFFIX = .exe 15 | LIB.SONAME = cyg$(NAME)-$(GLEW_MAJOR)-$(GLEW_MINOR).dll 16 | LIB.DEVLNK = lib$(NAME).dll.a 17 | LIB.SHARED = cyg$(NAME)-$(GLEW_MAJOR)-$(GLEW_MINOR).dll 18 | LIB.STATIC = lib$(NAME).a 19 | LDFLAGS.SO = -shared -Wl,--out-implib,lib/$(LIB.DEVLNK) 20 | -------------------------------------------------------------------------------- /config/Makefile.darwin: -------------------------------------------------------------------------------- 1 | GLEW_DEST = /usr/local 2 | NAME = $(GLEW_NAME) 3 | CC = cc 4 | LD = cc 5 | CFLAGS.EXTRA += -dynamic -fno-common 6 | CFLAGS.EXTRA += -pedantic 7 | CFLAGS.EXTRA += -fPIC 8 | LDFLAGS.EXTRA = 9 | ifneq (undefined, $(origin GLEW_APPLE_GLX)) 10 | CFLAGS.EXTRA += -std=c99 11 | CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX' 12 | LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11 13 | else 14 | CFLAGS.EXTRA += -std=c89 15 | GLEW_NO_GLU = -DGLEW_NO_GLU 16 | LDFLAGS.GL = -framework OpenGL 17 | endif 18 | LDFLAGS.STATIC = 19 | LDFLAGS.DYNAMIC = 20 | WARN = -Wall -W 21 | POPT = -Os 22 | BIN.SUFFIX = 23 | LIB.SONAME = lib$(NAME).$(SO_MAJOR).dylib 24 | LIB.DEVLNK = lib$(NAME).dylib 25 | LIB.SHARED = lib$(NAME).$(SO_VERSION).dylib 26 | LIB.STATIC = lib$(NAME).a 27 | LDFLAGS.SO = -dynamiclib -install_name $(GLEW_DEST)/lib/$(LIB.SHARED) -current_version $(SO_VERSION) -compatibility_version $(SO_MAJOR) 28 | -------------------------------------------------------------------------------- /config/Makefile.darwin-arm64: -------------------------------------------------------------------------------- 1 | GLEW_DEST = /usr/local 2 | NAME = $(GLEW_NAME) 3 | CC = cc 4 | LD = cc 5 | CFLAGS.EXTRA += -arch arm64 6 | CFLAGS.EXTRA += -dynamic -fno-common 7 | CFLAGS.EXTRA += -pedantic 8 | CFLAGS.EXTRA += -fPIC 9 | LDFLAGS.EXTRA = -arch arm64 10 | ifneq (undefined, $(origin GLEW_APPLE_GLX)) 11 | CFLAGS.EXTRA += -std=c99 12 | CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX' 13 | LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11 14 | else 15 | CFLAGS.EXTRA += -std=c89 16 | GLEW_NO_GLU = -DGLEW_NO_GLU 17 | LDFLAGS.GL = -framework OpenGL 18 | endif 19 | LDFLAGS.STATIC = 20 | LDFLAGS.DYNAMIC = 21 | WARN = -Wall -W 22 | POPT = -Os 23 | BIN.SUFFIX = 24 | LIB.SONAME = lib$(NAME).$(SO_MAJOR).dylib 25 | LIB.DEVLNK = lib$(NAME).dylib 26 | LIB.SHARED = lib$(NAME).$(SO_VERSION).dylib 27 | LIB.STATIC = lib$(NAME).a 28 | LDFLAGS.SO = -dynamiclib -install_name $(GLEW_DEST)/lib/$(LIB.SHARED) -current_version $(SO_VERSION) -compatibility_version $(SO_MAJOR) 29 | -------------------------------------------------------------------------------- /config/Makefile.darwin-gcc6: -------------------------------------------------------------------------------- 1 | # For building with Brew gcc: 2 | # $ brew install gcc 3 | GLEW_DEST = /usr/local 4 | NAME = $(GLEW_NAME) 5 | CC = gcc-6 6 | LD = gcc-6 7 | CFLAGS.EXTRA += -dynamic -fno-common 8 | CFLAGS.EXTRA += -fPIC 9 | # Lots of warnings with -pedantic 10 | # warning: ISO C forbids conversion of object pointer to function pointer type 11 | #CFLAGS.EXTRA += -pedantic 12 | LDFLAGS.EXTRA = 13 | ifneq (undefined, $(origin GLEW_APPLE_GLX)) 14 | CFLAGS.EXTRA += -std=c99 15 | CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX' 16 | LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11 17 | else 18 | CFLAGS.EXTRA += -std=c89 19 | GLEW_NO_GLU = -DGLEW_NO_GLU 20 | LDFLAGS.GL = -framework OpenGL 21 | endif 22 | LDFLAGS.STATIC = 23 | LDFLAGS.DYNAMIC = 24 | WARN = -Wall -W 25 | POPT = -Os 26 | BIN.SUFFIX = 27 | LIB.SONAME = lib$(NAME).$(SO_MAJOR).dylib 28 | LIB.DEVLNK = lib$(NAME).dylib 29 | LIB.SHARED = lib$(NAME).$(SO_VERSION).dylib 30 | LIB.STATIC = lib$(NAME).a 31 | LDFLAGS.SO = -dynamiclib -install_name $(GLEW_DEST)/lib/$(LIB.SHARED) -current_version $(SO_VERSION) -compatibility_version $(SO_MAJOR) 32 | -------------------------------------------------------------------------------- /config/Makefile.darwin-ppc: -------------------------------------------------------------------------------- 1 | # Note: Mac PPC is obsolete but the configuration 2 | # is here for reference. 3 | GLEW_DEST = /usr/local 4 | NAME = $(GLEW_NAME) 5 | CC = cc 6 | LD = cc 7 | CFLAGS.EXTRA += -arch ppc 8 | CFLAGS.EXTRA += -dynamic -fno-common 9 | CFLAGS.EXTRA += -pedantic 10 | CFLAGS.EXTRA += -fPIC 11 | LDFLAGS.EXTRA = -arch ppc 12 | ifneq (undefined, $(origin GLEW_APPLE_GLX)) 13 | CFLAGS.EXTRA += -std=c99 14 | CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX' 15 | LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11 16 | else 17 | CFLAGS.EXTRA += -std=c89 18 | GLEW_NO_GLU = -DGLEW_NO_GLU 19 | LDFLAGS.GL = -framework OpenGL 20 | endif 21 | LDFLAGS.STATIC = 22 | LDFLAGS.DYNAMIC = 23 | WARN = -Wall -W 24 | POPT = -Os 25 | BIN.SUFFIX = 26 | LIB.SONAME = lib$(NAME).$(SO_MAJOR).dylib 27 | LIB.DEVLNK = lib$(NAME).dylib 28 | LIB.SHARED = lib$(NAME).$(SO_VERSION).dylib 29 | LIB.STATIC = lib$(NAME).a 30 | LDFLAGS.SO = -dynamiclib -install_name $(GLEW_DEST)/lib/$(LIB.SHARED) -current_version $(SO_VERSION) -compatibility_version $(SO_MAJOR) 31 | -------------------------------------------------------------------------------- /config/Makefile.darwin-universal: -------------------------------------------------------------------------------- 1 | # 2 | # Needs to be clang toolchain for universal: -arch x86_64 -arch arm64 3 | # 4 | GLEW_DEST = /usr/local 5 | NAME = $(GLEW_NAME) 6 | CC = cc 7 | LD = cc 8 | AR = 9 | LIBTOOL = libtool -static -o 10 | STRIP = 11 | CFLAGS.EXTRA = -dynamic -fno-common 12 | CFLAGS.EXTRA += -pedantic 13 | CFLAGS.EXTRA += -fPIC 14 | CFLAGS.EXTRA += -arch x86_64 -arch arm64 15 | LDFLAGS.EXTRA = -arch x86_64 -arch arm64 16 | ifneq (undefined, $(origin GLEW_APPLE_GLX)) 17 | CFLAGS.EXTRA += -std=c99 18 | CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX' 19 | LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11 20 | else 21 | CFLAGS.EXTRA += -std=c89 22 | GLEW_NO_GLU = -DGLEW_NO_GLU 23 | LDFLAGS.GL = -framework OpenGL 24 | endif 25 | LDFLAGS.DYNAMIC = 26 | WARN = -Wall -W 27 | POPT = -Os 28 | BIN.SUFFIX = 29 | LIB.SONAME = lib$(NAME).$(SO_MAJOR).dylib 30 | LIB.DEVLNK = lib$(NAME).dylib 31 | LIB.SHARED = lib$(NAME).$(SO_VERSION).dylib 32 | LIB.STATIC = lib$(NAME).a 33 | LDFLAGS.SO = -dynamiclib -install_name $(GLEW_DEST)/lib/$(LIB.SHARED) -current_version $(SO_VERSION) -compatibility_version $(SO_MAJOR) 34 | -------------------------------------------------------------------------------- /config/Makefile.darwin-x86_64: -------------------------------------------------------------------------------- 1 | GLEW_DEST = /usr/local 2 | NAME = $(GLEW_NAME) 3 | CC = cc 4 | LD = cc 5 | CFLAGS.EXTRA += -arch x86_64 6 | CFLAGS.EXTRA += -dynamic -fno-common 7 | CFLAGS.EXTRA += -pedantic 8 | CFLAGS.EXTRA += -fPIC 9 | LDFLAGS.EXTRA = -arch x86_64 10 | ifneq (undefined, $(origin GLEW_APPLE_GLX)) 11 | CFLAGS.EXTRA += -std=c99 12 | CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX' 13 | LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11 14 | else 15 | CFLAGS.EXTRA += -std=c89 16 | GLEW_NO_GLU = -DGLEW_NO_GLU 17 | LDFLAGS.GL = -framework OpenGL 18 | endif 19 | LDFLAGS.STATIC = 20 | LDFLAGS.DYNAMIC = 21 | WARN = -Wall -W 22 | POPT = -Os 23 | BIN.SUFFIX = 24 | LIB.SONAME = lib$(NAME).$(SO_MAJOR).dylib 25 | LIB.DEVLNK = lib$(NAME).dylib 26 | LIB.SHARED = lib$(NAME).$(SO_VERSION).dylib 27 | LIB.STATIC = lib$(NAME).a 28 | LDFLAGS.SO = -dynamiclib -install_name $(GLEW_DEST)/lib/$(LIB.SHARED) -current_version $(SO_VERSION) -compatibility_version $(SO_MAJOR) 29 | -------------------------------------------------------------------------------- /config/Makefile.fedora-mingw32: -------------------------------------------------------------------------------- 1 | # For cross-compiling from Linux to Windows x86 using mingw32 2 | # http://www.mingw.org/ 3 | # 4 | # $ make SYSTEM=fedora-mingw32 5 | 6 | include config/Makefile.linux-mingw32 7 | 8 | CC := i686-pc-mingw32-gcc 9 | LD := i686-pc-mingw32-ld 10 | LDFLAGS.GL += -L/usr/i686-pc-mingw32/sys-root/mingw/lib 11 | CFLAGS.EXTRA += -fno-builtin -fno-stack-protector 12 | LDFLAGS.EXTRA += -nostdlib 13 | -------------------------------------------------------------------------------- /config/Makefile.flatpak-32: -------------------------------------------------------------------------------- 1 | NAME = $(GLEW_NAME) 2 | CC = /usr/lib/sdk/toolchain-i386/bin/i686-unknown-linux-gnu-gcc -m32 -L/lib/i386-linux-gnu 3 | LD = /usr/lib/sdk/toolchain-i386/bin/i686-unknown-linux-gnu-gcc -m32 -L/lib/i386-linux-gnu 4 | LDFLAGS.EXTRA += -m32 5 | LDFLAGS.EXTRA += -L/lib/i386-linux-gnu 6 | LIBDIR = $(GLEW_DEST)/lib32 7 | LDFLAGS.GL = -lGL -lX11 8 | LDFLAGS.STATIC = -Wl,-Bstatic 9 | LDFLAGS.DYNAMIC = -Wl,-Bdynamic 10 | WARN += -Wall -W 11 | WARN += -Wshadow 12 | WARN += -pedantic 13 | POPT = -O2 14 | CFLAGS.EXTRA += -m32 15 | CFLAGS.EXTRA += -fPIC 16 | CFLAGS.EXTRA += -Wcast-qual 17 | CFLAGS.EXTRA += -ansi -pedantic 18 | CFLAGS.EXTRA += -fno-stack-protector 19 | BIN.SUFFIX = 20 | LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) 21 | LIB.DEVLNK = lib$(NAME).so 22 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) 23 | LIB.STATIC = lib$(NAME).a 24 | LDFLAGS.SO = -m32 -shared -Wl,-soname=$(LIB.SONAME) 25 | -------------------------------------------------------------------------------- /config/Makefile.freebsd: -------------------------------------------------------------------------------- 1 | # As of FreeBSD12 X11 is in /usr/local 2 | 3 | NAME = $(GLEW_NAME) 4 | CC = cc 5 | LD = ld 6 | LDFLAGS.EXTRA = -L/usr/local/lib 7 | LDFLAGS.GL = -lGL -lX11 8 | LDFLAGS.STATIC = -Wl,-Bstatic 9 | LDFLAGS.DYNAMIC = -Wl,-Bdynamic 10 | CFLAGS.EXTRA += -I/usr/local/include -fPIC 11 | NAME = GLEW 12 | WARN = -Wall -W 13 | POPT = -O2 14 | BIN.SUFFIX = 15 | LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) 16 | LIB.DEVLNK = lib$(NAME).so 17 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) 18 | LIB.STATIC = lib$(NAME).a 19 | LDFLAGS.SO = -shared -soname $(LIB.SONAME) 20 | -------------------------------------------------------------------------------- /config/Makefile.gnu: -------------------------------------------------------------------------------- 1 | NAME = $(GLEW_NAME) 2 | CC = cc 3 | LD = cc 4 | LDFLAGS.EXTRA = -L/usr/X11R6/lib 5 | LDFLAGS.GL = -lGL -lX11 6 | LDFLAGS.STATIC = -Wl,-Bstatic 7 | LDFLAGS.DYNAMIC = -Wl,-Bdynamic 8 | NAME = GLEW 9 | WARN = -Wall -W 10 | POPT = -O2 11 | CFLAGS.EXTRA += -fPIC 12 | BIN.SUFFIX = 13 | LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) 14 | LIB.DEVLNK = lib$(NAME).so 15 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) 16 | LIB.STATIC = lib$(NAME).a 17 | LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME) 18 | -------------------------------------------------------------------------------- /config/Makefile.haiku: -------------------------------------------------------------------------------- 1 | NAME = $(GLEW_NAME) 2 | CC = cc 3 | LD = cc 4 | 5 | LDFLAGS.GL = -lGL 6 | LDFLAGS.STATIC = -Wl,-Bstatic 7 | LDFLAGS.DYNAMIC = -Wl,-Bdynamic 8 | 9 | NAME = GLEW 10 | WARN = -Wall -W 11 | POPT = -O2 12 | 13 | BIN.SUFFIX = 14 | 15 | LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) 16 | LIB.DEVLNK = lib$(NAME).so 17 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) 18 | LIB.STATIC = lib$(NAME).a 19 | LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME) 20 | 21 | -------------------------------------------------------------------------------- /config/Makefile.irix: -------------------------------------------------------------------------------- 1 | NAME = $(GLEW_NAME) 2 | CC = cc 3 | LD = ld 4 | ABI = -64# -n32 5 | CC += $(ABI) 6 | LD += $(ABI) 7 | LDFLAGS.EXTRA = 8 | LDFLAGS.GL = -lGL -lXext -lX11 9 | NAME = GLEW 10 | WARN = -fullwarn -woff 1110,1498 11 | POPT = -O2 -OPT:Olimit=0 12 | BIN.SUFFIX = 13 | LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) 14 | LIB.DEVLNK = lib$(NAME).so 15 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) 16 | LIB.STATIC = lib$(NAME).a 17 | LDFLAGS.SO = -shared -soname $(LIB.SONAME) 18 | -------------------------------------------------------------------------------- /config/Makefile.kfreebsd: -------------------------------------------------------------------------------- 1 | NAME = $(GLEW_NAME) 2 | CC = cc 3 | LD = cc 4 | LDFLAGS.EXTRA = -L/usr/X11R6/lib 5 | LDFLAGS.GL = -lGL -lX11 6 | LDFLAGS.STATIC = -Wl,-Bstatic 7 | LDFLAGS.DYNAMIC = -Wl,-Bdynamic 8 | NAME = GLEW 9 | WARN = -Wall -W 10 | POPT = -O2 11 | CFLAGS.EXTRA += -fPIC 12 | BIN.SUFFIX = 13 | LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) 14 | LIB.DEVLNK = lib$(NAME).so 15 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) 16 | LIB.STATIC = lib$(NAME).a 17 | LDFLAGS.SO = -shared -Wl,-soname $(LIB.SONAME) 18 | -------------------------------------------------------------------------------- /config/Makefile.linux: -------------------------------------------------------------------------------- 1 | NAME = $(GLEW_NAME) 2 | CC = cc 3 | LD = cc 4 | M_ARCH ?= $(shell uname -m) 5 | ARCH64 = false 6 | ifeq (x86_64,${M_ARCH}) 7 | ARCH64 = true 8 | endif 9 | ifeq (ppc64,${M_ARCH}) 10 | ARCH64 = true 11 | endif 12 | ifeq (e2k,${M_ARCH}) 13 | ARCH64 = true 14 | endif 15 | ifeq (${ARCH64},true) 16 | LDFLAGS.EXTRA = -L/usr/X11R6/lib64 -L/usr/lib64 17 | LIBDIR = $(GLEW_DEST)/lib64 18 | else 19 | LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib 20 | LIBDIR = $(GLEW_DEST)/lib 21 | endif 22 | LDFLAGS.GL = -lGL -lX11 23 | LDFLAGS.STATIC = -Wl,-Bstatic 24 | LDFLAGS.DYNAMIC = -Wl,-Bdynamic 25 | NAME = GLEW 26 | WARN += -Wall -W 27 | WARN += -Wshadow 28 | WARN += -pedantic 29 | POPT = -O2 30 | CFLAGS.EXTRA += -fPIC 31 | CFLAGS.EXTRA += -Wcast-qual 32 | CFLAGS.EXTRA += -ansi -pedantic 33 | CFLAGS.EXTRA += -fno-stack-protector 34 | BIN.SUFFIX = 35 | LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) 36 | LIB.DEVLNK = lib$(NAME).so 37 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) 38 | LIB.STATIC = lib$(NAME).a 39 | LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME) 40 | -------------------------------------------------------------------------------- /config/Makefile.linux-clang: -------------------------------------------------------------------------------- 1 | NAME = $(GLEW_NAME) 2 | CC = clang 3 | LD = clang 4 | M_ARCH ?= $(shell uname -m) 5 | ARCH64 = false 6 | ifeq (x86_64,${M_ARCH}) 7 | ARCH64 = true 8 | endif 9 | ifeq (ppc64,${M_ARCH}) 10 | ARCH64 = true 11 | endif 12 | ifeq (${ARCH64},true) 13 | LDFLAGS.EXTRA = -L/usr/X11R6/lib64 -L/usr/lib64 14 | LIBDIR = $(GLEW_DEST)/lib64 15 | else 16 | LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib 17 | LIBDIR = $(GLEW_DEST)/lib 18 | endif 19 | LDFLAGS.GL = -lGL -lX11 20 | LDFLAGS.STATIC = -Wl,-Bstatic 21 | LDFLAGS.DYNAMIC = -Wl,-Bdynamic 22 | NAME = GLEW 23 | WARN = -Wall -W 24 | POPT = -O2 25 | CFLAGS.EXTRA += -fPIC 26 | CFLAGS.EXTRA += -Wcast-qual 27 | CFLAGS.EXTRA += -std=c89 -pedantic 28 | CFLAGS.EXTRA += -fno-stack-protector 29 | BIN.SUFFIX = 30 | LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) 31 | LIB.DEVLNK = lib$(NAME).so 32 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) 33 | LIB.STATIC = lib$(NAME).a 34 | LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME) 35 | -------------------------------------------------------------------------------- /config/Makefile.linux-clang-egl: -------------------------------------------------------------------------------- 1 | include config/Makefile.linux-clang 2 | 3 | LDFLAGS.GL = -lEGL -lGL 4 | CFLAGS.EXTRA += -DGLEW_EGL 5 | -------------------------------------------------------------------------------- /config/Makefile.linux-egl: -------------------------------------------------------------------------------- 1 | include config/Makefile.linux 2 | 3 | LDFLAGS.GL = -lEGL -lGL 4 | CFLAGS.EXTRA += -DGLEW_EGL 5 | -------------------------------------------------------------------------------- /config/Makefile.linux-egl-glvnd: -------------------------------------------------------------------------------- 1 | include config/Makefile.linux 2 | 3 | LDFLAGS.GL = -lEGL -lOpenGL 4 | CFLAGS.EXTRA += -DGLEW_EGL 5 | GLEW_NO_GLU = -DGLEW_NO_GLU 6 | -------------------------------------------------------------------------------- /config/Makefile.linux-mingw32: -------------------------------------------------------------------------------- 1 | # For cross-compiling from Linux to Windows 32-bit using mingw32 2 | # http://mingw-w64.org/ 3 | # 4 | # Ubuntu/Debian: 5 | # $ sudo apt install mingw-w64 6 | # $ make SYSTEM=linux-mingw32 7 | 8 | NAME := glew32 9 | HOST := i686-w64-mingw32 10 | GLEW_DEST ?= /usr/local/$(HOST) 11 | CC := $(HOST)-gcc 12 | LD := $(HOST)-ld 13 | LN := 14 | STRIP := 15 | LDFLAGS.GL = -L/usr/$(HOST)/lib -lopengl32 -lgdi32 -luser32 -lkernel32 16 | CFLAGS.EXTRA += -fno-builtin -fno-stack-protector -Wno-cast-function-type 17 | WARN = -Wall -W 18 | POPT = -O2 19 | BIN.SUFFIX = .exe 20 | LIB.SONAME = lib$(NAME).dll 21 | LIB.DEVLNK = lib$(NAME).dll.a # for mingw this is the dll import lib 22 | LIB.SHARED = $(NAME).dll 23 | LIB.STATIC = lib$(NAME).a # the static lib will be broken 24 | LDFLAGS.SO = -nostdlib -shared -soname $(LIB.SONAME) --out-implib lib/$(LIB.DEVLNK) 25 | -------------------------------------------------------------------------------- /config/Makefile.linux-mingw64: -------------------------------------------------------------------------------- 1 | # For cross-compiling from Linux to Windows 64-bit using mingw64 2 | # http://mingw-w64.org/ 3 | # 4 | # Ubuntu/Debian: 5 | # $ sudo apt install mingw-w64 6 | # $ make SYSTEM=linux-mingw64 7 | 8 | NAME := glew32 9 | HOST := x86_64-w64-mingw32 10 | GLEW_DEST ?= /usr/local/$(HOST) 11 | CC := $(HOST)-gcc 12 | LD := $(HOST)-ld 13 | LN := 14 | STRIP := 15 | LDFLAGS.GL = -L/usr/$(HOST)/lib -lopengl32 -lgdi32 -luser32 -lkernel32 16 | CFLAGS.EXTRA += -fno-builtin -fno-stack-protector -Wno-cast-function-type 17 | WARN = -Wall -W 18 | POPT = -O2 19 | BIN.SUFFIX = .exe 20 | LIB.SONAME = lib$(NAME).dll 21 | LIB.DEVLNK = lib$(NAME).dll.a # for mingw this is the dll import lib 22 | LIB.SHARED = $(NAME).dll 23 | LIB.STATIC = lib$(NAME).a # the static lib will be broken 24 | LDFLAGS.SO = -nostdlib -shared -soname $(LIB.SONAME) --out-implib lib/$(LIB.DEVLNK) 25 | -------------------------------------------------------------------------------- /config/Makefile.linux-osmesa: -------------------------------------------------------------------------------- 1 | include config/Makefile.linux 2 | 3 | LDFLAGS.GL = -lOSMesa 4 | CFLAGS.EXTRA += -DGLEW_OSMESA 5 | -------------------------------------------------------------------------------- /config/Makefile.mingw: -------------------------------------------------------------------------------- 1 | NAME = glew32 2 | # use gcc for linking, with ld it does not work 3 | CC := gcc -fno-builtin 4 | LD := gcc 5 | LN := 6 | LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32 7 | LDFLAGS.EXTRA = -L/mingw/lib 8 | CFLAGS.EXTRA += -fno-builtin -fno-stack-protector 9 | LDFLAGS.EXTRA += -nostdlib 10 | WARN = -Wall -W 11 | POPT = -O2 12 | BIN.SUFFIX = .exe 13 | LIB.SONAME = lib$(NAME).dll 14 | LIB.DEVLNK = lib$(NAME).dll.a # for mingw this is the dll import lib 15 | LIB.SHARED = $(NAME).dll 16 | LIB.STATIC = lib$(NAME).a # the static lib will be broken 17 | LDFLAGS.SO = -shared -Wl,-soname,$(LIB.SONAME) -Wl,--out-implib,lib/$(LIB.DEVLNK) 18 | -------------------------------------------------------------------------------- /config/Makefile.mingw-win32: -------------------------------------------------------------------------------- 1 | include config/Makefile.mingw 2 | 3 | POPT := -march=i686 -mtune=generic -O2 4 | CFLAGS.EXTRA += -m32 5 | LDFLAGS.EXTRA += -m32 6 | -------------------------------------------------------------------------------- /config/Makefile.msys: -------------------------------------------------------------------------------- 1 | NAME = glew32 2 | # use gcc for linking, with ld it does not work 3 | CC := gcc 4 | LD := gcc 5 | LN := 6 | CFLAGS.EXTRA += -D_WIN32 7 | LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32 8 | LDFLAGS.EXTRA = 9 | CFLAGS.EXTRA += -fno-builtin -fno-stack-protector 10 | LIBDIR = $(GLEW_DEST)/bin 11 | WARN += -Wall -W 12 | WARN += -Wno-cast-function-type 13 | POPT = -O2 14 | BIN.SUFFIX = .exe 15 | LIB.SONAME = lib$(NAME).dll 16 | LIB.DEVLNK = lib$(NAME).dll.a # for mingw this is the dll import lib 17 | LIB.SHARED = $(NAME).dll 18 | LIB.SHARED.DIR = bin 19 | LIB.STATIC = lib$(NAME).a # the static lib will be broken 20 | LDFLAGS.SO = -shared -Wl,-soname,$(LIB.SONAME) -Wl,--out-implib,lib/$(LIB.DEVLNK) 21 | -------------------------------------------------------------------------------- /config/Makefile.msys-win32: -------------------------------------------------------------------------------- 1 | include config/Makefile.msys 2 | 3 | POPT := -march=i686 -mtune=generic -O2 4 | CFLAGS.EXTRA += -m32 5 | LDFLAGS.EXTRA += -m32 6 | -------------------------------------------------------------------------------- /config/Makefile.msys-win64: -------------------------------------------------------------------------------- 1 | include config/Makefile.msys 2 | 3 | POPT := -mtune=generic -O2 4 | CFLAGS.EXTRA += -m64 5 | LDFLAGS.EXTRA += -m64 6 | -------------------------------------------------------------------------------- /config/Makefile.nacl-32: -------------------------------------------------------------------------------- 1 | NAME = $(REGAL_NAME) 2 | 3 | M_PREFIX = i686 4 | M_NAME ?= $(shell uname -s) 5 | ifeq (Linux,${M_NAME}) 6 | M_PREFIX = i686 7 | endif 8 | 9 | CC = $(M_PREFIX)-nacl-gcc 10 | CXX = $(M_PREFIX)-nacl-g++ 11 | LD = $(M_PREFIX)-nacl-ld 12 | STRIP ?= 13 | EXT.DYNAMIC = so 14 | LDFLAGS.EXTRA = 15 | LIBDIR = 16 | CFLAGS.EXTRA += -fPIC 17 | CFLAGS.EXTRA += -m32 18 | LDFLAGS.EXTRA += -melf_nacl 19 | LDFLAGS.GL = 20 | LDFLAGS.GLU = -lRegalGLU 21 | LDFLAGS.GLUT = -lRegalGLUT 22 | LDFLAGS.STATIC = 23 | LDFLAGS.DYNAMIC = -shared 24 | WARN = -Wall -W -Wno-unused-parameter 25 | POPT = -O2 26 | BIN.SUFFIX = 27 | LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) 28 | LIB.DEVLNK = lib$(NAME).so 29 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) 30 | LIB.STATIC = lib$(NAME).a 31 | LDFLAGS.SO = $(LDFLAGS.DYNAMIC) -soname=$(LIB.SONAME) 32 | -------------------------------------------------------------------------------- /config/Makefile.nacl-64: -------------------------------------------------------------------------------- 1 | NAME = $(REGAL_NAME) 2 | 3 | M_PREFIX = i686 4 | M_NAME ?= $(shell uname -s) 5 | ifeq (Linux,${M_NAME}) 6 | M_PREFIX = i686 7 | endif 8 | 9 | CC = $(M_PREFIX)-nacl-gcc 10 | CXX = $(M_PREFIX)-nacl-g++ 11 | LD = $(M_PREFIX)-nacl-ld 12 | STRIP ?= 13 | EXT.DYNAMIC = so 14 | LDFLAGS.EXTRA = 15 | LIBDIR = 16 | CFLAGS.EXTRA += -fPIC 17 | CFLAGS.EXTRA += -m64 18 | LDFLAGS.EXTRA += -melf64_nacl 19 | LDFLAGS.GL = 20 | LDFLAGS.GLU = -lRegalGLU 21 | LDFLAGS.GLUT = -lRegalGLUT 22 | LDFLAGS.STATIC = 23 | LDFLAGS.DYNAMIC = -shared 24 | WARN = -Wall -W -Wno-unused-parameter 25 | POPT = -O2 26 | BIN.SUFFIX = 27 | LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) 28 | LIB.DEVLNK = lib$(NAME).so 29 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) 30 | LIB.STATIC = lib$(NAME).a 31 | LDFLAGS.SO = $(LDFLAGS.DYNAMIC) -soname=$(LIB.SONAME) 32 | -------------------------------------------------------------------------------- /config/Makefile.netbsd: -------------------------------------------------------------------------------- 1 | NAME = $(GLEW_NAME) 2 | CC = cc 3 | LD = ld 4 | LDFLAGS.EXTRA = -L/usr/X11R7/lib -R /usr/X11R7/lib 5 | LDFLAGS.GL = -lGL -lX11 6 | LDFLAGS.STATIC = -Wl,-Bstatic 7 | LDFLAGS.DYNAMIC = -Wl,-Bdynamic 8 | CFLAGS.EXTRA += -I/usr/X11R7/include -fPIC 9 | NAME = GLEW 10 | WARN = -Wall -W 11 | POPT = -O2 12 | BIN.SUFFIX = 13 | LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) 14 | LIB.DEVLNK = lib$(NAME).so 15 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) 16 | LIB.STATIC = lib$(NAME).a 17 | LDFLAGS.SO = -shared -soname $(LIB.SONAME) 18 | -------------------------------------------------------------------------------- /config/Makefile.openbsd: -------------------------------------------------------------------------------- 1 | NAME = $(GLEW_NAME) 2 | CC = cc 3 | LD = ld 4 | LDFLAGS.EXTRA = -L/usr/X11R6/lib 5 | LDFLAGS.GL = -lGLU -lGL -lX11 -lm 6 | LDFLAGS.STATIC = -Wl,-Bstatic 7 | LDFLAGS.DYNAMIC = -Wl,-Bdynamic 8 | CFLAGS.EXTRA += -I/usr/X11R6/include 9 | NAME = GLEW 10 | WARN = -Wall -W 11 | POPT = -O2 12 | BIN.SUFFIX = 13 | LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) 14 | LIB.DEVLNK = lib$(NAME).so 15 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) 16 | LIB.STATIC = lib$(NAME).a 17 | LDFLAGS.SO = -shared -soname $(LIB.SONAME) 18 | -------------------------------------------------------------------------------- /config/Makefile.solaris: -------------------------------------------------------------------------------- 1 | NAME = $(GLEW_NAME) 2 | CC = cc 3 | LD = ld 4 | CFLAGS.EXTRA = -I/usr/openwin/include -Kpic 5 | LDFLAGS.SO = -G 6 | LDFLAGS.EXTRA = -L/usr/openwin/lib 7 | LDFLAGS.GL = -lGL -lX11 8 | NAME = GLEW 9 | BIN.SUFFIX = 10 | POPT = -xO2 11 | LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) 12 | LIB.DEVLNK = lib$(NAME).so 13 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) 14 | LIB.STATIC = lib$(NAME).a 15 | -------------------------------------------------------------------------------- /config/Makefile.solaris-gcc: -------------------------------------------------------------------------------- 1 | NAME = $(GLEW_NAME) 2 | CC = gcc 3 | LD = ld 4 | CFLAGS.EXTRA = -I/usr/openwin/include -fPIC 5 | LDFLAGS.SO = -G 6 | LDFLAGS.EXTRA = -L/usr/openwin/lib 7 | LDFLAGS.GL = -lGL -lX11 8 | NAME = GLEW 9 | BIN.SUFFIX = 10 | POPT = -O2 11 | LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) 12 | LIB.DEVLNK = lib$(NAME).so 13 | LIB.SHARED = lib$(NAME).so.$(SO_VERSION) 14 | LIB.STATIC = lib$(NAME).a 15 | LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME) 16 | -------------------------------------------------------------------------------- /config/version: -------------------------------------------------------------------------------- 1 | GLEW_MAJOR = 2 2 | GLEW_MINOR = 2 3 | GLEW_MICRO = 0 4 | GLEW_VERSION = $(GLEW_MAJOR).$(GLEW_MINOR).$(GLEW_MICRO) 5 | GLEW_NAME = GLEW 6 | SO_MAJOR = $(GLEW_MAJOR).$(GLEW_MINOR) 7 | SO_VERSION = $(GLEW_VERSION) 8 | -------------------------------------------------------------------------------- /doc/github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nigels-com/glew/3da315c23aa80b5727e51f21bbe33823bf4c0511/doc/github.png -------------------------------------------------------------------------------- /doc/glew.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nigels-com/glew/3da315c23aa80b5727e51f21bbe33823bf4c0511/doc/glew.png -------------------------------------------------------------------------------- /doc/glew.txt: -------------------------------------------------------------------------------- 1 | The OpenGL Extension Wrangler Library 2 | Copyright (C) 2008-2016, Nigel Stewart 3 | Copyright (C) 2002-2008, Milan Ikits 4 | Copyright (C) 2002-2008, Marcelo E. Magallon 5 | Copyright (C) 2002, Lev Povalahev 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions are met: 10 | 11 | * Redistributions of source code must retain the above copyright notice, 12 | this list of conditions and the following disclaimer. 13 | * Redistributions in binary form must reproduce the above copyright notice, 14 | this list of conditions and the following disclaimer in the documentation 15 | and/or other materials provided with the distribution. 16 | * The name of the author may be used to endorse or promote products 17 | derived from this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 23 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 29 | THE POSSIBILITY OF SUCH DAMAGE. 30 | -------------------------------------------------------------------------------- /doc/khronos.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2007 The Khronos Group Inc. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a 4 | copy of this software and/or associated documentation files (the 5 | "Materials"), to deal in the Materials without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Materials, and to 8 | permit persons to whom the Materials are furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included 12 | in all copies or substantial portions of the Materials. 13 | 14 | THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 18 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 19 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 20 | MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 21 | -------------------------------------------------------------------------------- /doc/mesa.txt: -------------------------------------------------------------------------------- 1 | Mesa 3-D graphics library 2 | Version: 7.0 3 | 4 | Copyright (C) 1999-2007 Brian Paul All Rights Reserved. 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a 7 | copy of this software and associated documentation files (the "Software"), 8 | to deal in the Software without restriction, including without limitation 9 | the rights to use, copy, modify, merge, publish, distribute, sublicense, 10 | and/or sell copies of the Software, and to permit persons to whom the 11 | Software is furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included 14 | in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /doc/new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nigels-com/glew/3da315c23aa80b5727e51f21bbe33823bf4c0511/doc/new.png -------------------------------------------------------------------------------- /doc/ogl_sm.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nigels-com/glew/3da315c23aa80b5727e51f21bbe33823bf4c0511/doc/ogl_sm.jpg -------------------------------------------------------------------------------- /doc/travis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nigels-com/glew/3da315c23aa80b5727e51f21bbe33823bf4c0511/doc/travis.png -------------------------------------------------------------------------------- /glew.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=${prefix} 3 | libdir=@libdir@ 4 | includedir=${prefix}/include 5 | 6 | Name: glew 7 | Description: The OpenGL Extension Wrangler library 8 | Version: @version@ 9 | Cflags: -I${includedir} @cflags@ 10 | Libs: -L${libdir} -l@libname@ @libgl@ 11 | Requires: @requireslib@ 12 | --------------------------------------------------------------------------------