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