Robbie
11-22-2011, 08:28 AM
I've been working on a maze generator as expressed in my other thread. I've currently got a vertex buffer object and a vertex array object to store the vertices and indices of the maze grid and the lines. Right now I'm only drawing lines.
I'd like to also add some shapes to mark start and end point as well as the solve and backtrack path markers. I figured I could use GL_TRIANGLE_STRIP for those.
My question is, do I need to set up multiple buffer arrays for each different part of my scene? or should I just keep adding vertices and indices and use different draw commands with offsets to the same buffer that encompasses the whole scene?
I'd like to also add some shapes to mark start and end point as well as the solve and backtrack path markers. I figured I could use GL_TRIANGLE_STRIP for those.
My question is, do I need to set up multiple buffer arrays for each different part of my scene? or should I just keep adding vertices and indices and use different draw commands with offsets to the same buffer that encompasses the whole scene?