nigels-com / glew

The OpenGL Extension Wrangler Library
Other
2.64k stars 617 forks source link

Confused #166

Closed blitz-research closed 6 years ago

blitz-research commented 6 years ago

Hi,

I'm just curious why GL framebuffers aren't implemented in glew as part of opengl 3.0? This is apparently when framebuffers were added to the gl spec.

Glew instead appears to consider framebuffers to still be an extension, ie: GL_ARB_framebuffer_object

Not a huge deal, the API is working, but I'm writing a convertor to implement GL in another language and found this a bit odd and wonder if there's more oddness to come!

Bye, Mark

nigels-com commented 6 years ago

GLEW is extension-centric, rather than version-centric. There would have been a time when a lot of OpenGL 3.0 functionality was available via extensions, even for GPU/driver not fully OpenGL 3.0 compatible.

blitz-research commented 6 years ago

Thanks for the reply.

I guess it's pointless to ask 'is there a header file for opengl3.0' anywhere?

Can I safely assume 3.0 contains the entire glDrawBuffers extension then?

If not, is there anywhere I can find out what is and what is not definitely supported by opengl3.0?

On Tue, Nov 28, 2017 at 11:07 AM, Nigel Stewart notifications@github.com wrote:

GLEW is extension-centric, rather than version-centric. There would have been a time when a lot of OpenGL 3.0 functionality was available via extensions, even for GPU/driver not fully OpenGL 3.0 compatible.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nigels-com/glew/issues/166#issuecomment-347344952, or mute the thread https://github.com/notifications/unsubscribe-auth/ADU3Qnmc2ojpA9SqVwzKHeeldVIvcqHmks5s6zK6gaJpZM4QsM1H .

nigels-com commented 6 years ago

The various OpenGL specs will say which extensions have been incorporated. Such as: glspec30.pdf Appendix N

I think it's more common to check for extension support than the complexity of checking for an extension or the appropriate OpenGL version.