View Full Version : Extension Q
12-11-2003, 03:58 PM
hey everyone i'm sure you get this question a lot, but how can you take advantage of the extensions, I know some are vendor specific, like NVDIA and ATI, but when you download the drivers for your video card that supports the extensions, how can you take advantage of them in your code? Do you have to get an updated header, or is there just a header you download to specify the extensions, and where can you download these headers? Also you have to link to the opengl libraries to compile, so do you have to update these also? Don't laugh, but I have posted these questions recently but I can't find my post,you may call me a dumbass if you like. any info would be appreciated, thanks
12-11-2003, 05:19 PM
Well, you asked for it : you are a dumbass http://www.opengl.org/discussion_boards/ubb/tongue.gif
Basically, yes you need a recent glext.h (and maybe wglext.h or glxext.h), you can get them from the extension registry : http://oss.sgi.com/projects/ogl-sample/registry/
Then, you don't need an updated lib, you just ask at runtime for a function pointer (if the driver has it actually) :
MYwglCreatePbufferARB = (PFNWGLCREATEPBUFFERARBPROC) wglGetProcAddress( "wglCreatePbufferARB" );
I you will find a more precise tutorial on nehe.gamedev.net, lesson 22 : http://nehe.gamedev.net/lesson.asp?index=05
Have fun !
12-12-2003, 08:25 AM
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.