I am parsing a 3D file into OpenGL ES on an iOS device and after I get the vertices I can't seem to add them to the GLfloat containing my vertices. At the top of my file I declare this GLFloat:
GLfloat gFileVertices[] = {
-0.686713, 0.346845, 3.725390, -0.000288, -0.000652, -0.000109,
-0.677196, 0.350971, 3.675733, -0.000288, -0.000652, -0.000109,
-0.673889, 0.340921, 3.726985, -0.000288, -0.000652, -0.000109,
-0.677424, 0.337048, 3.775731, -0.000283, -0.000631, -0.000071,
And so on...
}
But how can I put that same data (x,y,z normal.x, normal.y, normal.z) into that array in an instance in which each of those are variables and there are a variable number of rows?