RainFrameListener.h

00001 
00003 //
00004 //              Realistic rain real-time simulation program
00005 //
00006 //              Pierre Rousseau
00007 //
00009 //
00010 //              Main camera, and external events (mouse/keyboard) handling
00011 //
00013 
00014 
00015 
00016 #ifndef __RAIN_FRAME_LISTENER__
00017 #define __RAIN_FRAME_LISTENER__
00018 
00019 #include "CommonRain.h"
00020 #include "RainCloseDropsParticles.h"
00021 #include <ExampleFrameListener.h>
00022 
00023 
00024 
00025 
00030 class RainFrameListener : public ExampleFrameListener
00031 {
00032 private:
00033 
00034     SceneNode *mViewNode, *mCameraNode;
00035     Real timer;
00036     CloseDropsParticles *mRainSystem;
00037 
00038 public:
00039 
00047     RainFrameListener(RenderWindow* win, Camera* cam, SceneNode* ViewNode, SceneNode* CameraNode, CloseDropsParticles *syst);
00048 
00053     bool frameStarted(const FrameEvent& evt);
00054 
00058     bool frameEnded(const FrameEvent& evt);
00059 
00060 protected:
00064     void updateStats(void);
00065 
00069     void displayMessage(String text);
00070 };
00071 
00072 
00073 
00074 
00075 #endif //__RAIN_FRAME_LISTENER__

Generated on Wed May 17 16:55:30 2006 for gametools-rain by  doxygen 1.4.6