mirror of
				https://github.com/Perlmint/glew-cmake.git
				synced 2025-11-03 22:04:16 +00:00 
			
		
		
		
	Merge https://github.com/nigels-com/glew.git into master HEAD at Thu Aug 6 17:44:21 GMT 2015
This commit is contained in:
		
						commit
						3a53edea04
					
				@ -2,8 +2,9 @@
 | 
			
		||||
 | 
			
		||||
import re
 | 
			
		||||
 | 
			
		||||
section = re.compile('^(Name|Name Strings?|Number|Dependencies|New Procedures and Functions|New Tokens|Additions to .*|Changes to .*|Modifications to .*|Add new Section .*)\s*$')
 | 
			
		||||
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*$')
 | 
			
		||||
token   = re.compile('^\s+(([A-Z0-9][A-Z0-9_x]*):?\s+((?:0x)?[0-9A-F]+)([^\?]*))?\s*$')
 | 
			
		||||
match   = [ 'Name', 'Name String', 'Contact', 'Notice', 'Name Strings', 'Version', 'Number', 'Dependencies', 'New Procedures and Functions', 'New Tokens']
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
 | 
			
		||||
@ -16,17 +17,22 @@ if __name__ == '__main__':
 | 
			
		||||
  for i in args:
 | 
			
		||||
      lines = open(i).readlines()
 | 
			
		||||
      f = open(i,'w')
 | 
			
		||||
 | 
			
		||||
      # Keep track of the current section as we iterate over the input
 | 
			
		||||
      current = ''
 | 
			
		||||
      for j in lines:
 | 
			
		||||
 | 
			
		||||
          # Detect the start of a new section
 | 
			
		||||
          m = section.match(j)
 | 
			
		||||
          if m:
 | 
			
		||||
              current = m.group(1).strip()
 | 
			
		||||
              if current in [ 'Name', 'Name String', 'Name Strings', 'Number', 'Dependencies', 'New Procedures and Functions', 'New Tokens']:
 | 
			
		||||
              if current in match:
 | 
			
		||||
                  print >>f, j,
 | 
			
		||||
              continue
 | 
			
		||||
 | 
			
		||||
          if current=='New Tokens':
 | 
			
		||||
              if token.match(j):
 | 
			
		||||
                  print >>f, j,
 | 
			
		||||
          elif current in [ 'Name', 'Name String', 'Name Strings', 'Number', 'Dependencies', 'New Procedures and Functions']:
 | 
			
		||||
          elif current in match:
 | 
			
		||||
                  print >>f, j,
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -3,6 +3,8 @@ https://www.opengl.org/registry/doc/glspec42.compatibility.20120427.pdf
 | 
			
		||||
 | 
			
		||||
	GL_COPY_READ_BUFFER_BINDING 0x8F36
 | 
			
		||||
	GL_COPY_WRITE_BUFFER_BINDING 0x8F37
 | 
			
		||||
	GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24
 | 
			
		||||
	GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23
 | 
			
		||||
	GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C
 | 
			
		||||
	GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D
 | 
			
		||||
	GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,8 @@
 | 
			
		||||
GL_VERSION_4_5
 | 
			
		||||
https://www.opengl.org/registry/doc/glspec45.compatibility.pdf
 | 
			
		||||
 | 
			
		||||
    GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT 0x00000004
 | 
			
		||||
    GLenum glGetGraphicsResetStatus (void)
 | 
			
		||||
    void glGetnTexImage (GLenum tex, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid *pixels)
 | 
			
		||||
    void glGetnCompressedTexImage (GLenum target, GLint lod, GLsizei bufSize, GLvoid *pixels)
 | 
			
		||||
    void glGetnUniformdv (GLuint program, GLint location, GLsizei bufSize, GLdouble *params)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user