PDA

View Full Version : Implenting glLockArraysEXT() (does not work for me)



B_old
12-19-2002, 04:38 AM
Hello.
I want to use glLockArraysEXT() and I copied all the extension stuff (which I could see) and pasted in my programm, still it says glLockArraysEXT() is a undeclared identifier... How come?
Thanks for any help.

P.S. I don't like to use glext.h, but I have extensions already working without it, so...

KallDrexx
12-19-2002, 05:17 AM
how are you declaring it? without glext.h it should be:

typedef (APIENTRY * PFNGLLOCKARRAYSEXTPROC) (int first, GLsizei count);

PFNGLLOCKARRAYSEXTPROC glLockArraysEXT;

With glext.h you would discard the first line.

-kallDrexx

B_old
12-19-2002, 06:20 AM
Hello.
Oh, i managed to get it right now.
At least it gives me no error.
Is it automatically working then?
(I can see no difference in speed http://www.opengl.org/discussion_boards/ubb/frown.gif)
Thanks for the help.

Deiussum
12-20-2002, 09:20 AM
You also have to use wglGetProcAddress in order to assign the function pointer to the entry point into the drivers.