Commit Graph

178 Commits

Author SHA1 Message Date
TheVice
1f833c032f [parse_xml] resolved "TypeError: a bytes-like object is required, not 'str'"
after commit 10f2d76c62 was applied.
2019-03-17 22:48:22 +10:00
TheVice
1b17b0b210 [parse_xml] replaced OptionParser with ArgumentParser according
to depreciation of first one starting from Python version 3.2.
2019-03-17 22:48:22 +10:00
Valentin Sarthou
10f2d76c62 Write files in binary format in parse_xml.py
Issue:
On Windows platforms, when writing files with python in text-mode, LF
characters get converted to CRLF.
This behavior leads to incorrect code generation in the steps following
parse_xml.py

Fix:
Replace file access mode by 'wb' to avoid any platform-dependent behavior
regarding newlines.
2019-03-17 09:03:24 +10:00
Nigel Stewart
565caae5ad Prune auto/core for GLX code generation from XML 2019-02-05 06:37:36 +10:00
Nigel Stewart
dcff76b0d1 Type-mapping isn't needed for parse_xml.py WGL purposes, after all 2019-02-04 07:58:55 +10:00
Nigel Stewart
62b9213b44 Use parse_xml.py for WGL code generation 2019-02-04 07:58:55 +10:00
Nigel Stewart
6f31e134f6 Extend glewinfo to support optional -experimental mode, default to normal mode of operation 2019-02-02 15:03:57 +10:00
TheVice
e304e73230 [filter_gl_ext] removed command that currently not applicable. 2019-02-02 15:03:27 +10:00
Nigel Stewart
103b3d156e Update copyright information for 2019 2019-02-02 14:19:42 +10:00
Nigel Stewart
a8df738667 FreeBSD using #!/usr/bin/env for portability 2019-02-02 09:23:01 +10:00
Nigel Stewart
6d5dabf870 Fix Issue #194 - KHR_context_flush_control enums 2018-10-10 16:38:56 +10:00
Nigel Stewart
14e212406c Fix Issue #195 - need to sort extensions by name, rather than path 2018-10-10 16:12:24 +10:00
Nigel Stewart
be4e0eb102 Using KhronosGroup/OpenGL-Registry git repository for extension specifications 2018-10-10 11:08:45 +10:00
Nigel Stewart
4b40314cc0 Initial OpenGL 4.6 support 2017-07-31 20:24:29 +10:00
Julian Squires
7f510379f6
Fix perl @INC for scripts which include make.pl
In perl 5.26, and some earlier perls that have been proactively
patched (Debian's perl 5.24, for example), '.' was removed from @INC
for security reasons.  For details, see:
  http://blogs.perl.org/users/todd_rinaldo/2016/11/how-removing-from-inc-is-about-to-break-cpan.html
  https://www.masteringperl.org/2017/01/perl-v5-26-removes-from-inc-but-dont-think-youre-safe/
et cetera.

This breaks the generation scripts which source make.pl with
  do 'bin/make.pl'

Although this might be indicative that it's time to refactor these
scripts, I opted for the simplest possible fix for now: restoring '.'
to @INC in each script that depends on make.pl.
2017-03-26 15:44:59 -04:00
Nigel Stewart
cdc3aeacde Filter out GL_NONE enum from GL_EGL_KHR_context_flush_control 2016-10-01 10:20:57 +10:00
Nigel Stewart
55b8951c96 Update documentation for GLEW 2.0.0 release 2016-07-24 10:39:11 +10:00
Nigel Stewart
b3ff4606be Tolerate u or ull suffixes on tokens - GL_INVALID_INDEX, GL_TIMEOUT_IGNORED 2016-07-08 21:55:09 +10:00
Nigel Stewart
3c83effd40 Tolerate lowercase hex digits in enumerants, in addition to 0-9, A-F 2016-06-18 00:09:43 +10:00
Nigel Stewart
8047ef41fa parse_xml.py touch-up for Python 3 (or Python 2) 2016-05-21 07:59:11 +10:00
Nigel Stewart
53df89fe32 Append GLVULKANPROCNV to GL_NV_draw_vulkan_image 2016-04-09 09:56:14 +10:00
Nigel Stewart
15881f0421 EGL fixup for void parameter lists, additional defines 2016-02-06 12:41:17 +10:00
Nigel Stewart
84b733d9bb EGL refinements and fixes 2016-02-06 12:41:15 +10:00
Nigel Stewart
43a9299230 Initial EGL core and extension support with Python egl.xml spec parser 2016-02-06 12:41:11 +10:00
Nigel Stewart
860af9f379 Fix regression with aliased extension detection, in second pass of make_list 2016-01-08 20:48:29 +10:00
Nigel Stewart
a4aa9b2717 Remove MX support due to the complexity of supporting both MX and Core contexts 2015-12-06 12:49:24 +10:00
Nigel Stewart
6cea54733a [CoreSupport] Use 4th line of extension specification to reused extensions
Such as OpenGL 3.0 reusing ARB_vertex_array_object
Implement reused lists for OpenGL 3.0, 3.1 and 3.2 so far
2015-12-06 12:49:21 +10:00
Nigel Stewart
0fcb9a3061 Skip #ifdef block for extensions detected purely from extension string. 2015-12-06 12:49:19 +10:00
Nigel Stewart
41a40b01e9 [CoreSupport] Tab indentation for perl scripts 2015-12-06 12:49:16 +10:00
Nigel Stewart
d33d3b5b0f [CoreSupport] Linux/GLX touch-ups for GL 3.0 + extension detection, GLX. 2015-12-06 12:49:15 +10:00
Nigel Stewart
731b1e6602 [CoreSupport] Represent the extension string(s) as an array of GLboolean - _glewGetExtensionString and _glewGetExtensionEnable
glewinfo output is identical.
TODO core context glGetStringi support.
TODO MX support.
2015-12-06 12:49:11 +10:00
Nigel Stewart
1da7dd6e0a [CoreSupport] Add code generation for sorted array of extension strings, which can index into array of pointers of extension enable flags. 2015-12-06 12:49:10 +10:00
Nigel Stewart
ea763af989 [CoreSupport] Add make_initd.pl code generator for declaring all the _glewInit functions
This allows the initializers to call each other according to the interdependencies.
2015-12-06 12:49:09 +10:00
Nigel Stewart
754e051049 Specification filtering refinement - omit contacts, include contacts and notice 2015-08-06 10:43:12 +10:00
Nigel Stewart
d80fd5514f Specification filtering refinement - no overview or issues sections 2015-08-06 10:33:23 +10:00
Nigel Stewart
fda28dbfb0 [CoreSupport] Tab indentation for perl scripts 2015-06-13 19:44:35 +10:00
Nigel Stewart
0e88d39f4a Leave extraneous #ifdef blocks 2015-06-13 10:18:41 +10:00
Nigel Stewart
9580ab4226 [CoreSupport] Whitespace fixup for make_def_var.pl 2015-06-13 09:59:38 +10:00
Nigel Stewart
06db711223 Merge pull request #19 from omniavinco/master
Sort the enums in a stable manner
2014-10-24 21:05:45 +10:00
Nigel Stewart
d32f4278e2 Tidy-up for .gitattributes and update_ext.sh 2014-10-24 21:03:11 +10:00
Frank Park
a790eb8129 Fixed a bug with shell script and added .gitattributes
Update_ext.sh does not utilize the blacklist correctly with cygwin due
to the argument -name in find is not quoted. Argument *.txt has been
changed to "*.txt" to fix the issue.

Also, it is currently possible for windows users to pull the repo in
CRLF format which destroys the scripts and source files. .gitattributes
were added to prevent this issue.
2014-10-19 01:59:48 -04:00
omniavinco
933e322dd5 Sort the enums in a stable manner 2014-10-16 23:46:52 +09:00
Nigel Stewart
d99211a9d3 Filtering for GL_NV_framebuffer_mixed_samples extension added. 2014-10-06 21:53:58 +10:00
Nigel Stewart
d04fd20cec Touch-up: Sort the enums (tokens) in a stable manner for consistency in include files. 2014-09-27 11:34:59 +10:00
Nigel Stewart
26be54cb1a Fixups for GL_KHR_robustness support. 2014-09-18 20:51:56 +10:00
Nigel Stewart
9b5567b4eb Add initial OpenGL 4.5 support and relevant extensions, version bump to 1.11.0 2014-08-12 00:06:56 +10:00
Nigel Stewart
9c5bc25386 Fixups for specifiation URLs. 2014-08-07 22:33:18 +10:00
Nigel Stewart
3739be33b0 Sort the enums (tokens) in a stable manner for consistency in include files. 2014-07-26 09:26:17 +10:00
Nigel Stewart
a062a5f0d2 Add filter_spec Python script for filtering OpenGL specification files. 2014-07-26 09:25:52 +10:00
Nigel Stewart
4fc4327945 Eliminate the internal use of CONST_CAST, to avoid gcc warnings with -Wcast-qual flag.
https://github.com/nigels-com/glew/issues/5
2014-07-14 17:53:21 +10:00