Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: 'glMapBuffer' was not declared in this scope

  1. #1

    'glMapBuffer' was not declared in this scope

    I get the following error when I call glMapBuffer function:
    error: 'glMapBuffer' was not declared in this scope
    I also had a look at this page but I couldn't understand it.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Aug 2006
    What the answer you linked to is saying is that the glMapBuffer function isn't actually defined as a function in the header file by default.

    The normal way to access these methods is to use something like GLEW to load all the extensions for you. GLEW has the glMapBuffer declared as a variable, and calls wglGetProcAddress("glMapBuffer") on Windows, to get the address of that function.

    There is more information over on the wiki about this.


  3. #3
    Thanks elFarto, I did not know Glew library contains the glMapBuffer function string.

Posting Permissions

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