Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Locking arrays

  1. #1
    Junior Member Newbie
    Join Date
    May 2009
    Posts
    9

    Locking arrays

    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:

    Code :
    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!

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Locking arrays

    you need glext.h from here : http://www.opengl.org/registry/

  3. #3
    Junior Member Newbie
    Join Date
    May 2009
    Posts
    9

    Re: Locking arrays

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •