06 December 2006

OpenGL - Extensions for all the latest features

When a new graphics card (generation) is released they normally have lots of new shiny features. These are added to the OpenGL drivers by the extension mechanism until they are either forgotten about or become part of the standard.

Luckily there are two projects out there to try and make it easier, the OpenGL Extension Wrangler (Glew) and also the GL Easy Extension Library (Glee). These both provide the ability to enumerate and then use the extensions provided. They are also cross-platform which is always a bonus.

It is not the easiest way to maintain code as it requires specialist code depending on the graphics card's capabilities, but if you want to be on the bleeding edge they will allow you to code there. You will also have to be aware that the function names could change if they become part of the main OpenGL library.