Meanz
01-09-2012, 06:00 AM
Well hello there,
I have a VertexBufferObject, and I also have 4 different arrays.
The four different arrays are
Vertices
TexCoords
Normals
Colors
My problem is that I want to store them like this in the vbo.
Vertex
Vertex
Vertex
Vertex
..
TexCoord
TexCoord
TexCoord
TexCoord
..
Normal
Normal
Normal....
You get my drift, I basically want to sort them by type and not like previously taught
VNT, VNT, VNT
Is this even possible, I haven't gotten much useful out of the documentation. Might be me just beeing flimsy.
Because I really don't want to sort them manually into VNT's.
I have a VertexBufferObject, and I also have 4 different arrays.
The four different arrays are
Vertices
TexCoords
Normals
Colors
My problem is that I want to store them like this in the vbo.
Vertex
Vertex
Vertex
Vertex
..
TexCoord
TexCoord
TexCoord
TexCoord
..
Normal
Normal
Normal....
You get my drift, I basically want to sort them by type and not like previously taught
VNT, VNT, VNT
Is this even possible, I haven't gotten much useful out of the documentation. Might be me just beeing flimsy.
Because I really don't want to sort them manually into VNT's.