Get Firefox






GLee

GLee 5.21
If you find the GLee library useful, help support its development and hosting costs by making a donation.

GLee (GL Easy Extension library) is a free cross-platform extension loading library for OpenGL. It provides seamless support for OpenGL functions up to version 2.1 and over 360 extensions.

Compatibility
GLee is compatible with Windows, Linux, OS-X and FreeBSD platforms. It is also likely to be compatible with other unix-like systems which use X windows.

New in version 5.21
OpenGL 2.1 support, plus 22 new extensions, including NVidia's GeForce 8 series extensions.

Features
  • Core functions up to OpenGL 2.1
  • 362 extensions
  • Lazy loading for extension functions, so no initialisation code is required
  • Forced extension loading, though the GLeeForceLink function.
Supported Extensions
GLee provides support for almost all OpenGL extensions See extensionList.txt for a complete list. GLee also adds OpenGL core functions up to version 2.0.

Usage examples
To use GLee, include GLee.h, then simply link to GLee.lib or alternatively add GLee.c to your project.

To check for the ARB_multitexture extension and use it:
#include <gl\GLee.h>          // (no need to link to gl.h) 
...
if (GLEE_ARB_multitexture)    //is multitexture support available?
{
  glMultiTexCoord2fARB(...);  //safe to use multitexture
}
else
{
   //fallback
}

Note that no initialisation of GLee is required, since this is handled automatically.

Using core functions is equally simple:
if (GLEE_VERSION_1_2)          //is GL1.2 available?
{
  glBlendColor(...);           // safe to use GL 1.2 core functions        
}


License
GLee is distributed under the modified BSD license. This is relatively simple and unrestrictive compared to other open source licenses. See the readme for the license terms.

Compiler compatibility
GLee is written in pure ANSI C, so any C or C++ compiler should work. You can include the source files in your projects directly or compile them into a library. The Windows static libs support MSVC 7 and 7.1.

The latest version includes both the cross-platform source and MSVC binary libs. This version is recommended for users on all platforms.

readme.txtReadme - license and docs
GLee5_21.zipLatest Version (cross platform source + Windows binary)
GLee-3.03-src.tar.gzSource (Legacy)
GLee-3.03-redist.tar.gzLinux - Redistributable (Legacy)
GLee-3.03-bin.tar.gzLinux - GCC 3.2 Binary (Legacy)
GLee-3.00-D.zipWin32 - Joel Anderson's D port of GLee 3.0 (Legacy)
GLee5_21_ExtensionsXML.zip(extension data in XML format)



All material copyright 2006 Ben Woodhouse.