Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

RainGame.h

Go to the documentation of this file.
00001 #ifndef __RAINGAME
00002 #define __RAINGAME
00003 
00004 #include "RainCOMFactory.h"
00005 #include "RainWindowThread.h"
00006 
00007 
00008 #include "RainHooks.h"
00009 
00010 #include "RainGraphics.h"
00011 //#include "RainSound.h"
00012 
00013 
00014 #include "..\..\Graphics\GXCOMDLL\GXCOMDLL.h"//for IGXRenderer
00015 #include "ReignSound.h"//for ISoundPlayer, auto genderated by midl
00016 
00017 
00018 
00019 
00020 
00021 
00022 class CRainGame
00023 {
00024 public:
00025         CRainGame();
00026         ~CRainGame();
00027 
00028 
00029         bool Init(UINT uWindowWidth, UINT uWindowHeight,
00030                                 HINSTANCE hInstance,
00031                                 char* szWindowName);
00032 
00033         void MainLoop();
00034 
00035         void Cleanup();
00036 
00037 private:
00038         bool    Render();
00039         bool    ProcessInput();//returns false on app should exit
00040         bool    InitDlls(UINT uWindowWidth, UINT uWindowHeight, 
00041                                 bool bFullScreen, HWND hWnd);
00042         
00043 
00044 private:
00045         CRainCOMFactory         m_Factory;
00046         CRainWindowThread       m_WindowThread;
00047 
00048         
00049         CRainGraphics           m_Graphics;
00050         ISoundPlayer*           m_pSoundPlayer;
00051 
00052         CRainHooks*                     m_pRainHooks;
00053 
00054 };
00055 
00056 
00057 
00058 
00059 #endif

Generated on Thu May 23 17:51:00 2002 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001