TAPs 0.7.7.3
TAPsOpenGLSolidSphere.cpp
Go to the documentation of this file.
00001 /******************************************************************************
00002 TAPsOpenGLSolidSphere.cpp
00003 
00004 An OpenGL Solid Sphere
00005 
00006 SUKITTI PUNAK   (10/06/2004)
00007 UPDATE          (10/06/2004)
00008 ******************************************************************************/
00009 #include "TAPsOpenGLSolidSphere.hpp"
00010 // Using Inclusion Model (i.e. definitions are included in declarations)
00011 //                       (this name.cpp is included in name.hpp)
00012 // Each friend is defined directly inside its declaration.
00013 
00014 BEGIN_NAMESPACE_TAPs
00015 //=============================================================================
00016 //-----------------------------------------------------------------------------
00017 OpenGLSolidSphere::OpenGLSolidSphere( GLdouble radius, GLint slices, GLint stacks )
00018     : m_dRadius( radius ), m_iSlices( slices ), m_iStacks( stacks )
00019 {}
00020 //-----------------------------------------------------------------------------
00021 OpenGLSolidSphere::~OpenGLSolidSphere()
00022 {}
00023 //-----------------------------------------------------------------------------
00024 void OpenGLSolidSphere::DisplayGL( OpenGL::Enum::DrawMode DM )
00025 {
00026     ApplyMaterial();
00027     glutSolidSphere( m_dRadius, m_iSlices, m_iStacks );
00028 }
00029 //-----------------------------------------------------------------------------
00030 //=============================================================================
00031 END_NAMESPACE_TAPs
00032 //345678901234567890123456789012345678901234567890123456789012345678901234567890
00033 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines