GlDrawHeadFunctors.h

Go to the documentation of this file.
00001 /*************** <auto-copyright.pl BEGIN do not edit this line> **************
00002  *
00003  * VR Juggler is (C) Copyright 1998-2005 by Iowa State University
00004  *
00005  * Original Authors:
00006  *   Allen Bierbaum, Christopher Just,
00007  *   Patrick Hartling, Kevin Meinert,
00008  *   Carolina Cruz-Neira, Albert Baker
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Library General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Library General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Library General Public
00021  * License along with this library; if not, write to the
00022  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00023  * Boston, MA 02111-1307, USA.
00024  *
00025  * -----------------------------------------------------------------
00026  * File:          $RCSfile$
00027  * Date modified: $Date: 2006-07-12 17:21:40 -0500 (Wed, 12 Jul 2006) $
00028  * Version:       $Revision: 19032 $
00029  * -----------------------------------------------------------------
00030  *
00031  *************** <auto-copyright.pl END do not edit this line> ***************/
00032 
00033 #ifndef _GL_DRAW_HEAD_FUNCTORS_H_
00034 #define _GL_DRAW_HEAD_FUNCTORS_H_
00035 
00036 #include <vrj/Draw/OGL/Config.h>
00037 
00038 #ifdef VPR_OS_Darwin
00039 #   include <OpenGL/gl.h>
00040 #   include <OpenGL/glu.h>
00041 #else
00042 #   include <GL/gl.h>
00043 #   include <GL/glu.h>
00044 #endif
00045 
00046 #include <vrj/Draw/OGL/GlDrawObjectFunctor.h>
00047 
00048 
00049 namespace vrj
00050 {
00051 
00056 class GlDrawEllipsoidHeadFunctor : public GlDrawObjectFunctor
00057 {
00058 public:
00059    GlDrawEllipsoidHeadFunctor();
00060 
00061    virtual ~GlDrawEllipsoidHeadFunctor();
00062 
00064    virtual void contextInit()
00065    {;}
00066    
00071    virtual void draw(vrj::User* user);
00072 
00073 protected:
00074    void drawSphere(const float radius, const int slices, const int stacks);
00075 
00076    GLUquadricObj* mQuadObj;
00077 };
00078 
00079 } // End of vrj namespace
00080 
00081 
00082 #endif /* _GL_DRAW_HEAD_FUNCTORS_H_ */

Generated on Thu Jan 4 10:56:51 2007 for VR Juggler by  doxygen 1.5.1