TAPs 0.7.7.3
STAPsDerivedGLUTCallbackFns.hpp
Go to the documentation of this file.
00001 /******************************************************************************
00002 STAPsDerivedGLUTCallbackFns.hpp
00003 
00004 A derived class from GLUTCallbackFns class for a set of call back functions for 
00005 GLUT and some useful/helper functions for custom GLUT callback fns.
00006 
00007 SUKITTI PUNAK   (09/10/2010)
00008 UPDATE          (09/10/2010)
00009 ******************************************************************************/
00010 #ifndef STAPs_DERIVED_GLUT_CALLBACK_FNS_HPP
00011 #define STAPs_DERIVED_GLUT_CALLBACK_FNS_HPP
00012 
00013 #include <TAPs/OpenGL/STAPsGLUTCallbackFns.hpp>
00014 
00015 //=============================================================================
00016 // ADD GLOBAL ATTRIBUTES AND FNS TO COMMUNICATE WITH MAIN FN HERE
00017 //-----------------------------------------------------------------------------
00018 //-----------------------------------------------------------------------------
00019 //=============================================================================
00020 
00021 BEGIN_NAMESPACE_TAPs__OpenGL
00022 //=============================================================================
00023 class DerivedGLUTCallbackFns : public /*virtual*/ GLUTCallbackFns {
00024 //=============================================================================
00025 public:
00026     //-------------------------------------------------------------------------
00027     // GLUT callback functions
00028     virtual void DisplayFn ();
00029     virtual void ReshapeFn ( int width, int height );
00030     virtual void KeyboardFn ( unsigned char key, int x, int y );
00031     virtual void SpecialFn ( int key, int x, int y );
00032     virtual void MouseFn ( int button, int state, int x, int y );
00033     virtual void MotionFn ( int x, int y );
00034     virtual void IdleFn ();
00035     //-------------------------------------------------------------------------
00036     // Helper/Useful functions
00037     virtual void Initialize ();
00038 //=============================================================================
00039 public:
00040     //-------------------------------------------------------------------------
00041     // Constructor(s) and Destructor
00042     DerivedGLUTCallbackFns ();
00043     virtual ~DerivedGLUTCallbackFns ();
00044     //-------------------------------------------------------------------------
00045 }; // END CLASS DerivedGLUTCallbackFns
00046 //=============================================================================
00047 END_NAMESPACE_TAPs__OpenGL
00048 //-----------------------------------------------------------------------------
00049 // Include definition if TAPs_USE_EXPORT is not defined
00050 #if !defined( TAPs_USE_EXPORT )
00051     #include "STAPsDerivedGLUTCallbackFns.cpp"
00052 #endif
00053 //-----------------------------------------------------------------------------
00054 #endif
00055 //345678901234567890123456789012345678901234567890123456789012345678901234567890
00056 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines