PDA

View Full Version : Question about OpenGL 3.0 and 3.1



greg2
04-28-2009, 05:28 AM
Hi,

A lot of features of OpenGL 3 was already available in OpenGL 2 (in core or using extension).

1) Is the new OpenGL 3 Redering context just a way to break compatibility with deprecated functions ?

2) Will all future new OpenGL extension recquires the new rendering context ?

3) If i write a program which use functions available in OpenGL 2 AND OpenGL 3, is there an advantage of using the OpenGL 3 rendering context ? Could it be faster/slower (different drivers ? ) ?

Thanks.

Groovounet
04-28-2009, 07:34 AM
1) Unfortunately no, because of GL_ARB_compatibility

2) Probably, the brand new bindless extensions are the first ones written against OpenGL 3

3) No or not yet at least.

greg2
04-28-2009, 07:48 AM
Ok.

Is there a way to be sure to use only OpenGL 3 functions ?
i can use "Ctrl+Shift+f" for each deprecated functions listed in the OpenGL 3.1 spec but how can i be sure i have not forgotten one of them in my program ?

ZbuffeR
04-28-2009, 11:12 AM
Well, the supposed good way to do that, which is suggested in the spec, would be to use the new headers GL3/gl.h GL3/glext.h, but they are not out yet :-(

http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=256666#Post256666

greg2
04-29-2009, 03:38 AM
Ok. I think i will have to do my own gl.h if i don't want to wait until 2050 :)

Rosario Leonardi
04-29-2009, 07:03 AM
I'm also waiting a openGl 3.x reference page.

http://www.opengl.org/sdk/docs/man/
This one is getting older and older. :(
At oGL3 the presentation (Ago 2008) was on the to-do list.

ZbuffeR
04-30-2009, 01:54 AM
A draft for gl3.h is now available :
http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=256858#Post256858