PDA

View Full Version : Extension Refernce Functions



MatsyV9
02-13-2005, 12:33 PM
Hi... I'm totally new to opengl extensions and I am having a hard time finding a reference for the syntax. I know how to declare them and call them once i have them. I am also aware of how to check if they are supported.

But for example... the function below seems strait forward to me at first.

glGetBufferParameterivARB(target,name,**void)
I want to be able to get the pointer to my buffer so I can use an offset one vertex data is loaded to the card...

I would have though it needed 2 parameters but it takes three. And I'm uncertain on where to find the reference. Does one exist?

-NiCo-
02-14-2005, 01:17 AM
The extension specifications are listed at http://oss.sgi.com/projects/ogl-sample/registry/

Most of them also contain sample code.

#define BUFFER_OFFSET(i) ((char *)NULL + (i))

Nico

02-14-2005, 10:37 AM
Thanks -NiCo-,

With your link and example i was able to easily understand how to use exstensions in general. Again thanks...