I am new to game engines. I started reading about html5 browser games recently since turbulenz engine became open sourced.
Its not difficult to grasp the javascript code and the concepts from the samples. I just wanted to know how the vertex buffers and index buffers work in any game engine and how they are useful
I have pasted a very simple example here. When I modify the data in vertexBufferParameters variable, the box gets twisted etc etc. I couldn't understand how the vertex buffers and index buffers affect the rendering of the box.
Any relevant links on understanding these buffers would also be appreciated. Thanks in advance.