]>
Dogcows Code - chaz/yoink/blob - src/Moof/Sphere.cc
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
10 **************************************************************************/
20 void Sphere::encloseVertices(const Vector3 vertices
[], unsigned count
)
25 void Sphere::draw(Scalar alpha
) const
27 GLUquadricObj
* sphereObj
= gluNewQuadric();
28 gluQuadricDrawStyle(sphereObj
, GLU_LINE
);
32 //glTranslate(point[0], point[1], point[2]);
34 gluSphere(sphereObj
, (GLdouble
)radius
, 16, 16);
38 gluDeleteQuadric(sphereObj
);
41 bool Sphere::isVisible(const Frustum
& frustum
) const
43 return frustum
.contains(*this);
This page took 0.03356 seconds and 4 git commands to generate.