X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FSphere.cc;h=aa2c139166e223cf00db45709cb428210ee4c181;hp=97298323a61efb9590c67ca7b0e84571403485d2;hb=71bd9dbaf1c1e3c55a9f63392a73865d8aeee7d4;hpb=25aefe01ef7dbdb603c51411e04b0d6a6107684f diff --git a/src/Moof/Sphere.cc b/src/Moof/Sphere.cc index 9729832..aa2c139 100644 --- a/src/Moof/Sphere.cc +++ b/src/Moof/Sphere.cc @@ -41,7 +41,18 @@ 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]); + glTranslate(point); + gluSphere(sphereObj, (GLdouble)radius, 16, 16); + + glPopMatrix(); + + gluDeleteQuadric(sphereObj); } bool Sphere::isVisible(const Frustum& frustum) const