I was recently trying to make a 2 dim array for use with glMap2f(OpenGL) and making all its values same as the array float. E.g
typedef float glVertex3fv;
Then, I do:
Then I allocate 2 dim array as 4x4
Grid = new glVertex3fv*;
for (int i=0;i<4;i++)
Grid = new glVertex3fv;
And here I just assign all values of float to Grid[x][y][0,1,2].
When I go to glMap2f and pass it not as &float(starting array value), but as
(float *)&Grid, it draws some buggy things, not the patch I had with float..
Someone help please?