]>
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::enclose_vertices(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::is_visible(const frustum
& frustum
) const
43 return frustum
.contains(*this);
This page took 0.031637 seconds and 4 git commands to generate.