Jump to content
Posted 19 June 2011 - 09:00 AM
Posted 19 June 2011 - 09:22 AM
Posted 19 June 2011 - 11:20 AM
Sorry, I misunderstood what VAO means, I wanted to say Vertex Array.
First of all, VAO is probably not what you are thinking about (look here). It's VA (vertex arrays) without the O.
No, I dont use GL_STREAM_DRAW, instead I use GL_DYNAMIC_DRAW, however it works as it is supposed to. Thank you anyway, I didn't thinked about the fixed size VBO.
What do you mean by changing the size of the buffer every frame? What you should do is using a fixed size VBO (the maximum size you want to support) and then only use a part of it (sending the data with glBufferSubData). How do you create the VBO? Are you using the correct GL_STREAM_DRAW usage flag?
Posted 19 June 2011 - 01:02 PM