GLee 5.21
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.
FeaturesUsage examples
- Core functions up to OpenGL 2.1
- 362 extensions (see extensionList.txt for a complete list)
- Lazy loading for extension functions, so no initialisation code is required
- Forced extension loading, though the GLeeForceLink function.
To use GLee, include GLee.h from your code, then link to the GLee library (e.g. GLee.lib) or add GLee.c to your project.
To check for the ARB_multitexture extension and use it:Note that no initialisation of GLee is required, since this is handled automatically. Optionally you can call GLeeInit() after aquiring an OpenGL context to force GLee initialisation to take place then.
#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 }
Using core functions is similar to using extensions:
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.txt Readme - license and docs GLee 5.21 Latest Version (cross platform source + Windows binary)
Copyright 2007 Ben Woodhouse - http://elf-stone.com

