I'm slowly discovering the world of OpenTK and I can already do all basic operations in the immediate mode. Now I want to learn using VBOs to improve the performance of my application.
I spent several hours searching the internet and the OpenTK website and I think I understand the principles of VBOs. However, I'm still not able to use them.
I understand that I need to initialize the buffers using GL.GenBuffers and GL.BindBuffers, then I need to fill them with data (or update the data) using GL.BufferData and finally I render the image using GL.DrawArrays... However, I'm not able to put it all together and the code examples I've found didn't help me.
Could somebody please give me a simple step-by-step tutorial on using VBOs? For example, if I have an array of floats that defines the vertices of a triangle and another array that defines its normals, how do I save all this data to the buffer? All the overloads of the GL.BufferData function are really confusing for me...