This is a fragment of my code:
typedef float point2[2];
point2 a = {-90, -90};
point2 b = {-90, 90};
point2 c = {90, 90};
point2 d = {90, -90};
glBegin(GL_POLYGON);
glVertex2fv(a);
glVertex2fv(b);
glVertex2fv(c);
glVertex2fv(d);
glEnd();
And this goes really well. But later when I try to write new values into these arrays, like:
a = {-66, -66};
b = {-66, 66};
And here I get an error:
error: assigning to an array from an initializer list
And I understand, that I can't assign values directly to an array after its declaration. But how this should looks like?