PDA

View Full Version : The OpenGL ARB meeting notes


eSa
14-Jan-2004, 19:59
... available;

http://www.opengl.org/about/arb/notes/meeting_note_2003-09-10.html

http://www.opengl.org/about/arb/notes/meeting_note_2003-12-09.html

This time, twice the fun and mayhem :P

Ostsol
14-Jan-2004, 22:51
The September one is interesting. . . It appears that the ARB is finally realizing that OpenGL isn't being marketted or supported nearly as well as DirectX and that more needs to be done.

Humus
15-Jan-2004, 00:12
Nice to see the super_buffers extension getting close to final, though it's been on the table way long now, a full year if I'm not mistaken.

The ARB_extensions_query extension is almost sad that it's needed. Says something about the general quality (or lack thereof) of today's developers.

nutball
15-Jan-2004, 11:21
The ARB_extensions_query extension is almost sad that it's needed. Says something about the general quality (or lack thereof) of today's developers.

Maybe, or you could interpret as lack of foresight in OpenGL 1.0. Grepping strings hardly makes for attractive code at the best of times.

Rodéric
15-Jan-2004, 12:09
strdup... that's not that hard to use.

Humus
15-Jan-2004, 20:08
Maybe, or you could interpret as lack of foresight in OpenGL 1.0. Grepping strings hardly makes for attractive code at the best of times.

Well, in a way it would be a nicer design to query for specific extensions and having a simple API for enumerating extensions. But still, grepping strings is hardly a complex task, and why the hell do people want to copy the string? Why not just read the provided pointer directly? And even if you desire to copy the string, how hard can it be?

Basic
15-Jan-2004, 23:07
Ingenu:
Are you insane, that would mean you'd need to do a free. Static arays are sooo much better. :wink:

Humus:
With lots of extensions, repeated strstr is an O(N^2) operation, while strdup + repeated strtok is O(N). Not that the speed of that part of the code is any important, but anyway. :D

I personally like the idea: "On Windows could assume non-NULL return from wglGetProcAddress would suffice."
And same principle for other OS, but maybe not with wglGetProcAddress.
To make it possible to query an extension, just add dummy functions with the same name as the extension.
(Or maybe there's something interesting such a function actually could do.)
if( wglGetProcAddress("GL_ARB_fragment_shader") ) {
puts("Cool!, fragment shaders");
}


Still having the string is of course nice if you as a developer want to see if there's any new things to play with in a new driver.
puts(glGetString(GL_EXTENSIONS));