Hi
I'm trying to implement VBOs in my demo, but something is not right in my code as i keep getting messed up Cube, so i'm seeking your help again guys :)
here's the traditional working code
glVertexPointer(3, GL_FLOAT, sizeof(Cube_Vertices), &cube.vertices[0].VBO_Position);
glEnableClientState(GL_VERTEX_ARRAY);
glDrawArrays(GL_QUADS, 0, 24);
and here's the messed up VBO implementation
glGenBuffersARB(1, &VBO_Vertices);
glBindBufferARB(GL_ARRAY_BUFFER_ARB, VBO_Vertices);
glBufferDataARB(GL_ARRAY_BUFFER_ARB, sizeof(Cube_Vertices)*3*sizeof(float), &cube.vertices[0].VBO_Position, GL_STATIC_DRAW_ARB);
glVertexPointer(3, GL_FLOAT, sizeof(Cube_Vertices), BUFFER_OFFSET(0));
glEnableClientState(GL_VERTEX_ARRAY);
glDrawArrays(GL_QUADS, 0, 24);
so what am i doing wrong