TAPs 0.7.7.3
TAPsBaseOpenGLViewManager.cpp
Go to the documentation of this file.
00001 /******************************************************************************
00002 TAPsBaseOpenGLViewManager.cpp
00003 
00004 Declares the pure virtual interface for OpenGL View Manager
00005 
00006 SUKITTI PUNAK   (05/07/2006)
00007 UPDATE          (05/07/2006)
00008 ******************************************************************************/
00009 #include "TAPsBaseOpenGLViewManager.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__OpenGL
00015 //=============================================================================
00016 //-----------------------------------------------------------------------------
00017 // Default Constructor
00018 template <typename T>
00019 BaseOpenGLViewManager<T>::BaseOpenGLViewManager ()
00020 {
00021     //glClearColor( 0.75, 0.75, 0.75, 0.0 );
00022 }
00023 //-----------------------------------------------------------------------------
00024 // Destructor
00025 template <typename T>
00026 BaseOpenGLViewManager<T>::~BaseOpenGLViewManager ()
00027 {}
00028 //=============================================================================
00029 // Get/Set Fns
00030 //-----------------------------------------------------------------------------
00031 template <typename T>
00032 inline void BaseOpenGLViewManager<T>::GLSetClearColor ( const T color[4] )
00033 {
00034     glClearColor( color[0], color[1], color[2], color[3] ); 
00035 }
00036 //-----------------------------------------------------------------------------
00037 template <typename T>
00038 inline void BaseOpenGLViewManager<T>::GLSetClearColor ( T r, T g, T b, T a )
00039 {
00040     glClearColor( r, g, b, a );
00041 }
00042 //-----------------------------------------------------------------------------
00043 //=============================================================================
00044 END_NAMESPACE_TAPs__OpenGL
00045 //-----------------------------------------------------------------------------
00046 //345678901234567890123456789012345678901234567890123456789012345678901234567890
00047 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines