I have this structure in c++:
struct Vertex_2 {
GLdouble position[3];
};
I am trying to access the array inside of it like this:
Vertex_2.position[0] = //something;
Vertex_2.position[1] = //something;
....
...
..
when I compile it I get this:
error: expected unqualified-id before ‘.’ token
why is that?