From 96a9cfd886395226661eba9dfab583318a017569 Mon Sep 17 00:00:00 2001 From: nigels Date: Wed, 5 Aug 2009 14:11:26 +0000 Subject: [PATCH] Add support for GLint64, GLuint64 and GLsync git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@557 783a27ee-832a-0410-bc00-9f386506c6dd --- auto/bin/parse_spec.pl | 8 ++++++++ auto/src/glew_head.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/auto/bin/parse_spec.pl b/auto/bin/parse_spec.pl index 6f2213e..445bdf3 100755 --- a/auto/bin/parse_spec.pl +++ b/auto/bin/parse_spec.pl @@ -60,6 +60,12 @@ my %typemap = ( charARB => "GLcharARB", handleARB => "GLhandleARB", + # OpenGL 3.2 and GL_ARB_sync + + int64 => "GLint64", + uint64 => "GLuint64", + sync => "GLsync", + # GLX 1.3 defines new types which might not be available at compile time #GLXFBConfig => "void*", @@ -112,6 +118,8 @@ my %fnc_ignore_list = ( "ProgramLocalParameter4fARB" => "ARB_vertex_program", "ProgramLocalParameter4fvARB" => "ARB_vertex_program", "ProgramStringARB" => "ARB_vertex_program", + "glXCreateContextAttribsARB" => "GLX_ARB_create_context", + "wglCreateContextAttribsARB" => "WGL_ARB_create_context", ); my %regex = ( diff --git a/auto/src/glew_head.h b/auto/src/glew_head.h index bfa7c9e..cffa472 100644 --- a/auto/src/glew_head.h +++ b/auto/src/glew_head.h @@ -174,6 +174,9 @@ typedef unsigned long long GLuint64EXT; typedef int64_t GLint64EXT; typedef uint64_t GLuint64EXT; #endif +typedef GLint64EXT GLint64; +typedef GLuint64EXT GLuint64; +typedef struct __GLsync *GLsync; #define GL_ACCUM 0x0100 #define GL_LOAD 0x0101