PDA

View Full Version : Locking arrays



pjyelton
05-23-2009, 02:26 PM
I'm trying to optimize my terrain editor by locking arrays, but I can't get the code to work. Every example I see does something similar to this:



PFNGLLOCKARRAYSEXTPROC glLockArraysEXT = NULL;
PFNGLUNLOCKARRAYSEXTPROC glUnlockArraysEXT = NULL;
...
glLockArraysEXT = ( PFNGLLOCKARRAYSEXTPROC ) wglGetProcAddress ( "glLockArraysEXT" );
glUnlockArraysEXT = ( PFNGLUNLOCKARRAYSEXTPROC ) wglGetProcAddress ( "glUnlockArraysEXT" );

But I keep getting the error that both PFNGLLOCKARRAYSEXTPROC and PFNGLUNLOCKARRAYSEXTPROC are unrecognized. I don't see them in either GL.h or GLU.h, anyone know how I can get this to compile?

Thanks!

ZbuffeR
05-24-2009, 03:30 AM
you need glext.h from here : http://www.opengl.org/registry/

pjyelton
05-24-2009, 02:05 PM
Thanks!