|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
OpenGL 3.2 Announced TodayHello all,
Due to new extensions related to OpenGL 3.2, there are some changes needed for GLEW to generate sources that will compile. This patch isn't complete or tested support for OpenGL 3.2, just enough to build GLEW from the registry. If anything in this proposed change seems problematic, speak up. - Nigel See also: http://www.khronos.org/news/press/releases/khronos-releases-opengl-3.2-third-major-opengl-release-within-twelve-months/ ---------- Index: auto/src/glew_head.h =================================================================== --- auto/src/glew_head.h (revision 554) +++ auto/src/glew_head.h (working copy) @@ -174,6 +174,8 @@ typedef int64_t GLint64EXT; typedef uint64_t GLuint64EXT; #endif +typedef GLint64EXT GLint64; +typedef GLuint64EXT GLuint64; #define GL_ACCUM 0x0100 #define GL_LOAD 0x0101 Index: auto/bin/parse_spec.pl =================================================================== --- auto/bin/parse_spec.pl (revision 554) +++ auto/bin/parse_spec.pl (working copy) @@ -60,6 +60,12 @@ 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 @@ "ProgramLocalParameter4fARB" => "ARB_vertex_program", "ProgramLocalParameter4fvARB" => "ARB_vertex_program", "ProgramStringARB" => "ARB_vertex_program", + "glXCreateContextAttribsARB" => "GLX_ARB_create_context", + "wglCreateContextAttribsARB" => "WGL_ARB_create_context", ); my %regex = ( Index: auto/core/GL_VERSION_3_2 =================================================================== --- auto/core/GL_VERSION_3_2 (revision 0) +++ auto/core/GL_VERSION_3_2 (revision 0) @@ -0,0 +1,4 @@ +GL_VERSION_3_2 +http://www.opengl.org/registry/doc/glspec32.core.20090803.pdf + typedef struct __GLsync *GLsync + ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ glew-coders mailing list glew-coders@... https://lists.sourceforge.net/lists/listinfo/glew-coders |
|
|
Re: OpenGL 3.2 Announced TodayHello,
Do we have any update on a GLEW for openGL 3.1/3.2? It has been a while since the last release so I'm curious as to what's going on. I would also like to get into development for GLEW, however am unfamiliar with aspects such as the conventions used and at what points we have important platform specific code. Any help here would be greatly appreciated. Many thanks.
|
|
|
Re: OpenGL 3.2 Announced TodayGMScribe <ali_lowe@...> writes:
[snip] > I would also like to get into development for GLEW, however am > unfamiliar with aspects such as the conventions used and at what > points we have important platform specific code. Any help here would > be greatly appreciated. There's not all that much to it. Nigel's patch below is a good start; if you're interested in doing something, I'd suggest fleshing out the auto/core/GL_VERSION_3_2 he's attached / potentially already committed. I think there's a GL_VERSION_3_1 in the repo now, which is also incomplete, so that's something you could look into. If you have specific questions, this is the place to ask. -tom > Nigel Stewart-2 wrote: > > > > Hello all, > > > > Due to new extensions related to OpenGL 3.2, there > > are some changes needed for GLEW to generate sources > > that will compile. This patch isn't complete or tested > > support for OpenGL 3.2, just enough to build GLEW > > from the registry. > > > > If anything in this proposed change seems problematic, > > speak up. > > > > - Nigel > > > > See also: > > http://www.khronos.org/news/press/releases/khronos-releases-opengl-3.2-thir > d-major-opengl-release-within-twelve-months/ > > > > ---------- > > > > Index: auto/src/glew_head.h > > =================================================================== > > --- auto/src/glew_head.h (revision 554) > > +++ auto/src/glew_head.h (working copy) > > @@ -174,6 +174,8 @@ > > typedef int64_t GLint64EXT; > > typedef uint64_t GLuint64EXT; > > #endif > > +typedef GLint64EXT GLint64; > > +typedef GLuint64EXT GLuint64; > > > > #define GL_ACCUM 0x0100 > > #define GL_LOAD 0x0101 > > Index: auto/bin/parse_spec.pl > > =================================================================== > > --- auto/bin/parse_spec.pl (revision 554) > > +++ auto/bin/parse_spec.pl (working copy) > > @@ -60,6 +60,12 @@ > > 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 @@ > > "ProgramLocalParameter4fARB" => "ARB_vertex_program", > > "ProgramLocalParameter4fvARB" => "ARB_vertex_program", > > "ProgramStringARB" => "ARB_vertex_program", > > + "glXCreateContextAttribsARB" => "GLX_ARB_create_context", > > + "wglCreateContextAttribsARB" => "WGL_ARB_create_context", > > ); > > > > my %regex = ( > > Index: auto/core/GL_VERSION_3_2 > > =================================================================== > > --- auto/core/GL_VERSION_3_2 (revision 0) > > +++ auto/core/GL_VERSION_3_2 (revision 0) > > @@ -0,0 +1,4 @@ > > +GL_VERSION_3_2 > > +http://www.opengl.org/registry/doc/glspec32.core.20090803.pdf > > + typedef struct __GLsync *GLsync > > + ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ glew-coders mailing list glew-coders@... https://lists.sourceforge.net/lists/listinfo/glew-coders |
|
|
Re: OpenGL 3.2 Announced Today> There's not all that much to it. Nigel's patch below is a good start; > if you're interested in doing something, I'd suggest fleshing out > the auto/core/GL_VERSION_3_2 he's attached / potentially already > committed. I think there's a GL_VERSION_3_1 in the repo now, which is > also incomplete, so that's something you could look into. I did put the change in just now, but I opted to put the GLsync typedef directly into glew_head.h, rather than add GL_VERSION_3_2 without having actually read and understood the 3.2 spec! :-) As for OpenGL 3.1 and OpenGL 3.2, it's not something that is needed for the projects I'm responsible for at the moment - so I don't expect to be able to spend too many cycles on that directly. My general impression is that GLEW needs to be forked somehow for the purpose of "forward compatible" OpenGL application development, and perhaps we should be generating "glew3.c" and "glew3.h" along side glew.c and glew.h. > If you have specific questions, this is the place to ask. I'm not a long-term GLEW guru, but I'm happy to participate in the discussion and hack around in the perl scripts from time to time... :-) - Nigel >>> Hello all, >>> >>> Due to new extensions related to OpenGL 3.2, there >>> are some changes needed for GLEW to generate sources >>> that will compile. This patch isn't complete or tested >>> support for OpenGL 3.2, just enough to build GLEW >>> from the registry. >>> >>> If anything in this proposed change seems problematic, >>> speak up. >>> >>> - Nigel >>> >>> See also: >>> http://www.khronos.org/news/press/releases/khronos-releases-opengl-3.2-thir >> d-major-opengl-release-within-twelve-months/ >>> ---------- >>> >>> Index: auto/src/glew_head.h >>> =================================================================== >>> --- auto/src/glew_head.h (revision 554) >>> +++ auto/src/glew_head.h (working copy) >>> @@ -174,6 +174,8 @@ >>> typedef int64_t GLint64EXT; >>> typedef uint64_t GLuint64EXT; >>> #endif >>> +typedef GLint64EXT GLint64; >>> +typedef GLuint64EXT GLuint64; >>> >>> #define GL_ACCUM 0x0100 >>> #define GL_LOAD 0x0101 >>> Index: auto/bin/parse_spec.pl >>> =================================================================== >>> --- auto/bin/parse_spec.pl (revision 554) >>> +++ auto/bin/parse_spec.pl (working copy) >>> @@ -60,6 +60,12 @@ >>> 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 @@ >>> "ProgramLocalParameter4fARB" => "ARB_vertex_program", >>> "ProgramLocalParameter4fvARB" => "ARB_vertex_program", >>> "ProgramStringARB" => "ARB_vertex_program", >>> + "glXCreateContextAttribsARB" => "GLX_ARB_create_context", >>> + "wglCreateContextAttribsARB" => "WGL_ARB_create_context", >>> ); >>> >>> my %regex = ( >>> Index: auto/core/GL_VERSION_3_2 >>> =================================================================== >>> --- auto/core/GL_VERSION_3_2 (revision 0) >>> +++ auto/core/GL_VERSION_3_2 (revision 0) >>> @@ -0,0 +1,4 @@ >>> +GL_VERSION_3_2 >>> +http://www.opengl.org/registry/doc/glspec32.core.20090803.pdf >>> + typedef struct __GLsync *GLsync >>> + ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ glew-coders mailing list glew-coders@... https://lists.sourceforge.net/lists/listinfo/glew-coders |
| Free embeddable forum powered by Nabble | Forum Help |