-
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(...)
-
Member
Regular Contributor
Re: glMapBuffer/glUnmapBuffer question
-
Junior Member
Regular Contributor
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
-
Forum Rules