PDA

View Full Version : What's the glew?



V.CAT
09-15-2005, 08:12 AM
I hear about the GLEW from my friend.
I want to know whether I can use it to coding without OpenGL.
Thanks!

Vexator
09-15-2005, 08:45 AM
it's the opengl extension wrapper. it manages all of opengl's extensions for you.

dorbie
09-15-2005, 09:56 AM
It's actually "The OpenGL Extension Wrangler Library".

http://glew.sourceforge.net/

You still need OpenGL, it just makes using advanced features in OpenGL a little bit easier, by providing simple macros to check if the graphics hardware you are running on supports a particular extension, and filling in function pointer stubbs for you to call directly without all the getprocaddress ugliness. Abstracting OpenGL version with core feature support vs non core extension where possible is also a consideration that can otherwise affect entry point names and token definitions and extension checks and occasionally break code if not dealt with.

There are other similar libraries that have the same basic objective, for example GLEE:

http://elf-stone.com/glee.php

Vexator
09-16-2005, 02:59 AM
d'oh i always confuse wrangler and wrapper :p

V.CAT
09-17-2005, 12:12 AM
Oh,Thanks!
I think I have understood some.