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/glUnmapBuffer question

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2003
    Posts
    22

    glMapBuffer/glUnmapBuffer question

    is it possible to do the following?

    glbindbuffer(..., vertex_array)
    glbufferdata(...,NULL,...)
    void *vamapper = glmapbuffer(...)

    glbindbuffer(..., texture_array)
    glbufferdata(...,NULL,...)
    void *tamapper = glmapbuffer(...)

    ...// copying data into vbo

    glunmapbuffer(...)

  2. #2
    Member Regular Contributor
    Join Date
    Feb 2002
    Location
    Hamburg, Germany
    Posts
    415

    Re: glMapBuffer/glUnmapBuffer question

    don't ask, try it out!

  3. #3
    Junior Member Regular Contributor
    Join Date
    May 2002
    Location
    Portland, OR
    Posts
    223

    Re: glMapBuffer/glUnmapBuffer question

    It is possible. In fact, that's one of the ways you're supposed to use VBOs. You also need to glUnmapBuffer the vertex_array before you can use it for rendering. One thing that concerns me is texture_array. I hope that's any array of texture coordinates and not texture data. VBOs don't support texture data.

Posting Permissions

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