void Sphere::draw(Scalar alpha) const
{
- // TODO
+ GLUquadricObj* sphereObj = gluNewQuadric();
+ gluQuadricDrawStyle(sphereObj, GLU_LINE);
+
+ glPushMatrix();
+
+ glTranslate(point[0], point[1], point[2]);
+ gluSphere(sphereObj, (GLdouble)radius, 16, 16);
+
+ glPopMatrix();
+
+ gluDeleteQuadric(sphereObj);
}
bool Sphere::isVisible(const Frustum& frustum) const