graphics - How to draw multiple objects using a VBO and a single OpenGL drawelements call? -


I have read that it is possible to attract many objects using a vbo and using a single bid call. I have not found any examples of this. Right now I am making a commentary call which has been drawn per cube which is killing my frame rate, because I am making the whole game out of them. Any help is appreciated, especially the example code.

Yes, just put all your data into a longer VBO then glDrawElements () < / Code> Call, call it at all. Although you probably will not be able to use any GL _ * _ STRIP type for drawing different objects.


Comments