I've read that it is possible to draw multiple objects using a vbo and using single drawelements call. I haven't found any examples of this. Right now I'm making a drawelements call per cube drawn which is killing my frame rate since I'm making the entire game out of them. Any help is appreciated, especially example code.
views:
82answers:
1
+1
A:
Yes, just put all your data into one long VBO and then make the glDrawElements()
call on all of it. Though you probably won't be able to use any of the GL_*_STRIP
types for drawing separate objects.
jay.lee
2010-09-26 11:35:51