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 2 of 2

Thread: Edit a VBO Buffer?

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2003
    Posts
    17

    Edit a VBO Buffer?

    Hi!
    How can I edit a buffer which I saved in a VBO?

    I have to read it (which function?), change it and I guess save it with glBufferDataARB ?

    Thanks for help
    ~Eich

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Aug 2001
    Location
    Italy
    Posts
    628

    Re: Edit a VBO Buffer?

    I think you should not do this but just map the buffer.
    Take a look at MapBufferARB... it should be called like this.

    This will get you a pointer which is the buffer itself, so you don't need to read/modify/write. You modify directly in server memory.

Posting Permissions

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