00001 /* 00002 * ExNihilo 3D Engine 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 * 00018 * Please read AUTHORS file !!! 00019 * 00020 * $Id: ExManagerOutput.h,v 1.11 2002/08/01 18:45:56 data Exp $ 00021 * 00022 */ 00023 00024 #ifndef __EXMANAGEROUTPUT_H__ 00025 #define __EXMANAGEROUTPUT_H__ 00026 //-------------------------------- 00027 // File to include 00028 //-------------------------------- 00029 #include "ExDefine.h" 00030 #include "ExMath.h" 00031 #include "ExManagerWindow.h" 00032 #include "ExManagerAnimation.h" 00033 #include "ExManagerCollision.h" 00034 #include "ExManagerPVS.h" 00035 #include "ExManagerFog.h" 00036 #include "ExManagerCam.h" 00037 #include "ExManagerMap.h" 00038 #include "ExManagerCommand.h" 00039 #include "ExManagerConsole.h" 00040 #include "ExManagerMenu.h" 00041 #include "ExManagerInterface.h" 00042 #include "ExPredefinedObject.h" 00043 //-------------------------------- 00044 class ExManagerOutput 00045 { 00046 private: 00047 //-------------------------------- 00048 // Variable 00049 //-------------------------------- 00050 ExManagerPVS *ManagerPVS; 00051 ExManagerCollision *ManagerCollision; 00052 ExManagerFog *ManagerFog; 00053 ExManagerAnimation *ManagerAnim; 00054 ExManagerWindow *ManagerWindow; 00055 ExManagerCam *ManagerCam; 00056 ExManagerCommand *ManagerCommand; 00057 ExManagerInterface *ManagerInterface; 00058 ExManagerMenu *ManagerMenu; 00059 ExManagerConsole *ManagerConsole; 00060 ExManagerMap *ManagerMap; 00061 00062 00063 public: 00064 //-------------------------------- 00065 // Constructor // Destructor 00066 //-------------------------------- 00067 ExManagerOutput(void); 00068 ~ExManagerOutput(void); 00069 //-------------------------------- 00070 // Methode 00071 //-------------------------------- 00072 void Reset(void); 00073 std::ostrstream *Consol; 00074 void (*WriteToConsol)(const char *Label); 00075 00076 inline void SetManagerMap(ExManagerMap *Map){ManagerMap = Map;} 00077 inline void SetManagerPVS(ExManagerPVS * PVS){ManagerPVS = PVS;} 00078 inline void SetManagerCollision(ExManagerCollision *Collision){ManagerCollision = Collision;} 00079 inline void SetManagerFog(ExManagerFog *Fog){ManagerFog = Fog;} 00080 inline void SetManagerAnim(ExManagerAnimation *Anim){ManagerAnim = Anim;} 00081 inline void SetManagerWindow(ExManagerWindow *Window){ManagerWindow = Window;} 00082 inline void SetManagerCam(ExManagerCam *Cam){ManagerCam = Cam;} 00083 inline void SetManagerCommand(ExManagerCommand *Command){ManagerCommand = Command;} 00084 inline void SetManagerInterface(ExManagerInterface * Interface){ManagerInterface=Interface;} 00085 inline void SetManagerConsole(ExManagerConsole * Console){ManagerConsole=Console;} 00086 inline void SetManagerMenu(ExManagerMenu * Menu){ManagerMenu=Menu;} 00087 00088 void DrawScene(void); 00089 void Reshape(int w,int h); 00090 void Init(void); 00091 //-------------------------------- 00092 // Operator 00093 //-------------------------------- 00094 //-------------------------------- 00095 // friends 00096 //-------------------------------- 00097 }; 00098 #endif //__EXMANAGEROUTPUT_H__