View Full Version : ARB extensions
10-09-2000, 03:05 PM
I'm making a demo, and I'm trying to use ARB extensions.
I know how to implement that code, but
what I have to do to complie it?
What sort of trouble are you having? You will probably need to get glext.h, and declare and initialize all relevant function pointers, but beyond that there shouldn't be anything tricky.
10-09-2000, 04:00 PM
Ok, now I have glext.h ...but...
what I have to do, to declare and initialize function pointers?
First, look in the header file for the extension function you want to use. They are declared as a typedef with the name PFN<extensionname>PROC and some parameters. Use this to declare a pointer, and then use wglGetProcAddress to obtain the pointer.
if(glArrayElementEXT == NULL) return; // didn't load the functiopointer...
// if we get here, we have a pointer to use
You can, of course, call the functionpointer whatever you wan...
10-10-2000, 02:02 AM
where do I get glext.h?
And what if there are new extensions coming out?
Is there a place where I can get always the
newest/ updatred glext.h file
10-10-2000, 03:38 AM
look in the faq on this site.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.