Opengl 1.4 Extensions

How can i take advantage of 1.4 extensions in my code? Do I have to download a special library, or does it depend on the type of video card I have? Thanks for any info.

You would have to download recent versions of gl.h, glext.h, as well as wglext.h (under Windows).
Then, if the extension have just some new tokens, you can use them directly :

glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, 4.0 ); // level of anisotropic filtering

If the extension define some new entry points, you have to ask them at runtime :

int initExtensions(void) {
// don’t forget to create a GL context before this !!
wglCreatePbufferARB = (PFNWGLCREATEPBUFFERARBPROC) wglGetProcAddress( “wglCreatePbufferARB” );
if (wglCreatePbufferARB == NULL) exit(-3);

You may have more accurate/precise code on :

EDIT: typos.

[This message has been edited by ZbuffeR (edited 12-08-2003).]