X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FMoof%2FSphere.cc;h=5e43e0d42e414a60c7ab394e7ae1804203648322;hb=892da43bf5796e7c5f593a6d0f53bd797a36bd3e;hp=97298323a61efb9590c67ca7b0e84571403485d2;hpb=25aefe01ef7dbdb603c51411e04b0d6a6107684f;p=chaz%2Fyoink diff --git a/src/Moof/Sphere.cc b/src/Moof/Sphere.cc index 9729832..5e43e0d 100644 --- a/src/Moof/Sphere.cc +++ b/src/Moof/Sphere.cc @@ -41,7 +41,17 @@ void Sphere::encloseVertices(const Vector3 vertices[], unsigned count) 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