X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FSphere.cc;h=5e43e0d42e414a60c7ab394e7ae1804203648322;hp=97298323a61efb9590c67ca7b0e84571403485d2;hb=542e50a284c7f5b144a5c97c17f6d89b2af0175c;hpb=25aefe01ef7dbdb603c51411e04b0d6a6107684f 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