prog.cpp:1:2: error: ‘models’ does not name a type
models.at(i)->DrawSphere(models.at(i)->GetPosition(), 1000);
^
prog.cpp:4:24: error: ‘Vec3’ does not name a type
void DrawSphere(const Vec3& p, float radius)
^
prog.cpp:4:30: error: ISO C++ forbids declaration of ‘p’ with no type [-fpermissive]
void DrawSphere(const Vec3& p, float radius)
^
prog.cpp: In function ‘void DrawSphere(const int&, float)’:
prog.cpp:6:16: error: ‘glPushMatrix’ was not declared in this scope
glPushMatrix();
^
prog.cpp:7:18: error: request for member ‘x’ in ‘p’, which is of non-class type ‘const int’
glTranslatef(p.x, p.y, p.z);
^
prog.cpp:7:23: error: request for member ‘y’ in ‘p’, which is of non-class type ‘const int’
glTranslatef(p.x, p.y, p.z);
^
prog.cpp:7:28: error: request for member ‘z’ in ‘p’, which is of non-class type ‘const int’
glTranslatef(p.x, p.y, p.z);
^
prog.cpp:7:29: error: ‘glTranslatef’ was not declared in this scope
glTranslatef(p.x, p.y, p.z);
^
prog.cpp:9:13: error: ‘m_qobj’ was not declared in this scope
gluSphere(m_qobj, radius, res, res);
^
prog.cpp:9:37: error: ‘gluSphere’ was not declared in this scope
gluSphere(m_qobj, radius, res, res);
^
prog.cpp:10:15: error: ‘glPopMatrix’ was not declared in this scope
glPopMatrix();
^