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: '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 http://stackoverflow.com/questions/6...-opengl-es-2-0 but I couldn't understand it.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Aug 2006
    Posts
    226
    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.

    Regards
    elFarto

  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
  •