OK. I got my VBO working, printed out cubed and grids i made, everything worked fine. Expect i always had to rebind VBO / EBO ( IBO ) and redo the call to either InterleavedArrayFormat or VertexPointer / ColorPointer. I heard that InterleavedArrayFormat was outdated and therefor went with the pointers, but also heard one more thing: VAO. The solution to my extra-call to the ***Pointer functions. So far everything went perfectly fine.
Generating a VAO, binding the VBO/EBO and doing the ***Pointer calls once, then only having to load the VAO and call DrawElements - or so i thought.
It didnt work, and after some trial and error debugging ( which is a real pain, but the manual is kind of scarce on the VAO subject and the only simple example that implements a VAO is the openGL 3.0 demo ) i found out that if i replace this:
GL.ColorPointer(4, ColorPointerType.UnsignedByte, BlittableValueType.StrideOf(VertexList), IntPtr.Zero);
GL.VertexPointer(3, VertexPointerType.Float, BlittableValueType.StrideOf(VertexList), new IntPtr(sizeof(uint)));
with the thing that i explicitly didnt use because i hear of it to be outdated as said:
GL.InterleavedArrays(InterleavedArrayFormat.C4ubV3f, 0, IntPtr.Zero);
The manual doesnt have much on this, the reference didnt help at all and from a few searches here i didnt find anything on this topic either. I noticed in the openGL 3.0 example EnableVertexAttribArray and VertexAttribPointer are used, but couldnt find any explanation about those two. Copying it into my program with the ( in my eyes correct ) parameters didnt fix anything either.
You can probably guess my question:
Can someone give me an if possible detailed explanation or a link to a tutorial / reference with a lot of explanation about this, maybe a working code snipped about a VAO without InterleavedArrayFormat and some tips on the general subject?
I have read the part in the manual and the http://www.opengl.org/wiki/Vertex_Array_Objects link.
Windows XP professional 32bit
MSVS 2008 professional
In my view unimportant info, but i'll attach it just in case:
2 nvidia 6600GT in SLI
Toledo AMD Athlon X2 64 4800+
The GenVertexArrays gave an EntryPointNotFound exception before, i updated my graphics driver today and now there is no exception anymore. Since it works with InterleavedArrayFormat, this probably is not the cause of the problem any longer.
Thanks in advance,