X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FSphere.cc;fp=src%2FMoof%2FSphere.cc;h=0000000000000000000000000000000000000000;hp=03db01208edaa2cf66c1b9ca307a9a3b3f411c92;hb=831f04d4bc19a390415ac0bbac4331c7a65509bc;hpb=299af4f2047e767e5d79501c26444473bda64c64 diff --git a/src/Moof/Sphere.cc b/src/Moof/Sphere.cc deleted file mode 100644 index 03db012..0000000 --- a/src/Moof/Sphere.cc +++ /dev/null @@ -1,48 +0,0 @@ - -/*] Copyright (c) 2009-2010, Charles McGarvey [************************** -**] All rights reserved. -* -* vi:ts=4 sw=4 tw=75 -* -* Distributable under the terms and conditions of the 2-clause BSD license; -* see the file COPYING for a complete text of the license. -* -**************************************************************************/ - -#include "Frustum.hh" -#include "OpenGL.hh" -#include "Sphere.hh" - - -namespace Mf { - - -void Sphere::encloseVertices(const Vector3 vertices[], unsigned count) -{ - // TODO -} - -void Sphere::draw(Scalar alpha) const -{ - 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 -{ - return frustum.contains(*this); -} - - -} // namespace Mf -