![]() |
TAPs 0.7.7.3
|
00001 /****************************************************************************** 00002 TAPsOpenGLSolidSphere.hpp 00003 00004 An OpenGL Solid Sphere 00005 00006 SUKITTI PUNAK (10/06/2004) 00007 UPDATE (10/06/2004) 00008 ******************************************************************************/ 00009 #ifndef TAPs_OPENGL_SOLID_SPHERE_HPP 00010 #define TAPs_OPENGL_SOLID_SPHERE_HPP 00011 00012 #include "../OpenGL/TAPsOpenGLSupport.hpp" 00013 00014 BEGIN_NAMESPACE_TAPs 00015 //============================================================================= 00016 class OpenGLSolidSphere : public /*virtual*/ OpenGL::OpenGLSupport { 00017 public: 00018 // FROM <GL/glut.h> 00019 // glutSolidSphere(GLdouble radius, GLint slices, GLint stacks); 00020 OpenGLSolidSphere( GLdouble radius = 1.0, GLint slices = 20, GLint stacks = 20 ); 00021 ~OpenGLSolidSphere(); 00022 00023 virtual void DisplayGL( OpenGL::Enum::DrawMode DM = OpenGL::Enum::POLYGON ); 00024 private: 00025 double m_dRadius; 00026 int m_iSlices; 00027 int m_iStacks; 00028 }; 00029 //============================================================================= 00030 END_NAMESPACE_TAPs 00031 //----------------------------------------------------------------------------- 00032 // Include definition if TAPs_USE_EXPORT is not defined 00033 #if !defined( TAPs_USE_EXPORT ) 00034 #include "TAPsOpenGLSolidSphere.cpp" 00035 #endif 00036 //----------------------------------------------------------------------------- 00037 #endif 00038 //345678901234567890123456789012345678901234567890123456789012345678901234567890 00039 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8