00001 // sphere.hxx -- build an ssg sphere object 00002 // 00003 // Pulled straight out of MesaGLU/quadratic.c 00004 // 00005 // Original gluSphere code is Copyright (C) 1999-2000 Brian Paul and 00006 // licensed under the GPL 00007 // 00008 // This library is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU Library General Public 00010 // License as published by the Free Software Foundation; either 00011 // version 2 of the License, or (at your option) any later version. 00012 // 00013 // This library is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 // Library General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU General Public License 00019 // along with this program; if not, write to the Free Software 00020 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00021 // 00022 // $Id: sphere_8hxx_source.html,v 1.3 2010/02/23 22:10:16 curt Exp $ 00023 00024 00025 #include <osg/Node> 00026 00027 // return a sphere object as an ssgBranch (and connect in the 00028 // specified ssgSimpleState 00029 osg::Node* SGMakeSphere(double radius, int slices, int stacks); 00030 00031