X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fmoof%2Fsphere.cc;fp=src%2Fmoof%2Fsphere.cc;h=0000000000000000000000000000000000000000;hb=7ac3aee9efa7f9ce1a966df030b1f76f2b82ef2d;hp=843f918546b376118f0989be15089c12adcb1cc9;hpb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c;p=chaz%2Fyoink diff --git a/src/moof/sphere.cc b/src/moof/sphere.cc deleted file mode 100644 index 843f918..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 moof { - - -void sphere::enclose_vertices(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::is_visible(const frustum& frustum) const -{ - return frustum.contains(*this); -} - - -} // namespace moof -