Page principale | Liste des namespaces | Hiérarchie des classes | Liste par ordre alphabétique | Liste des composants | Liste des fichiers | Membres des namespaces | Composants | Déclarations

# Main.h

Aller à la documentation de ce fichier.

    00001 /************************************************************************/
    00002 /* Ex Nihlo Engine by Hermanns Christophe                                                               */
    00003 /************************************************************************/
    00004 /* This program is free software; you can redistribute it and/or                */
    00005 /* modify it under the terms of the GNU General Public License                  */
    00006 /* as published by the Free Software Foundation; either version 2               */
    00007 /* of the License, or (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.                                 */
    00012 /*                                                                                                                                              */
    00013 /* See the GNU General Public License for more details.                                 */
    00014 /*                                                                                                                                              */
    00015 /* You should have received a copy of the GNU General Public License    */
    00016 /* along with this program; if not, write to the Free Software                  */
    00017 /* Foundation, Inc., 59 Temple Place - Suite 330,                                               */
    00018 /* Boston, MA  02111-1307, USA.                                                                                 */
    00019 /*                                                                                                                                              */
    00020 /* If you use a important part of this code please send me a mail               */
    00021 /* I just want to see where my code go thks :)                                                  */
    00022 /************************************************************************/
    00023
    00024 /************************************************************************/
    00025 /* Contact                                                              */
    00026 /************************************************************************/
    00027 /* ExNihilo Website :www.ploksoftware.org                               */
    00028 /*                                                                      */
    00029 /* Hermanns Christophe ExNihilo creator and main programmer             */
    00030 /*                                                                      */
    00031 /* Mail             : Data@ploksoftware.org                                                             */
    00032 /* ICQ              : 8030901                                                                                   */
    00033 /* MSN Messenger    : Data_7@hotmail.com                                                                */
    00034 /*                                                                      */
    00035 /*                                                                      */
    00036 /************************************************************************/
    00037
    00038 /************************************************************************/
    00039 /* File Description                                                                                             */
    00040 /************************************************************************/
    00041 /* File Name   :Main.h                                                                                                  */
    00042 /*                                                                                                                                              */
    00043 /* Star Date   :03/15/2002                                                                                              */
    00044 /*                                                                                                                                              */
    00045 /* Last Update :06/20/2003                                              */
    00046 /*                                                                                                                                              */
    00047 /* File Description     :This is the main entry of the progamme                         */
    00048 /*                                              Initialize all manager                                                  */
    00049 /*                                              Create link between manager                                             */
    00050 /*                                              Set the call back function for glut                             */
    00051 /*                                              Lauch the engine                                                                */
    00052 /************************************************************************/
    00053
    00054 #ifndef __MAIN_H__
    00055 #define __MAIN_H__
    00056 //------------------------------------------------------------------------
    00057 //Includes
    00058 //------------------------------------------------------------------------
    00059 #include "ExDefine.h"
    00060 #include "ExNihiloNameSpace.h"
    00061 //------------------------------------------------------------------------
    00062 #include "ExCAction.h"
    00063 //------------------------------------------------------------------------
    00064 #include "Flux/ExCFluxAction.h"
    00065 //------------------------------------------------------------------------
    00066 #include "Manager/ExManager.h"
    00067 #include "Manager/ExManagerWindow.h"
    00068 #include "Manager/ExManagerConsole.h"
    00069 #include "Manager/ExManagerOutput.h"
    00070 #include "Manager/ExManagerMap.h"
    00071 #include "Manager/ExManagerCommand.h"
    00072 #include "Manager/ExManagerCollision.h"
    00073 #include "Manager/ExManagerFog.h"
    00074 #include "Manager/ExManagerId.h"
    00075 #include "Manager/ExManagerInputGLUT.h"
    00076 #include "Manager/ExManagerNetwork.h"
    00077 #include "Manager/ExManagerSpecialEffect.h"
    00078 #include "Manager/ExManagerPVS.h"
    00079 //------------------------------------------------------------------------
    00080 #include "Manager/ManagerObject/ExManagerLoad.h"
    00081 #include "Manager/ManagerObject/ExManagerTexture.h"
    00082 #include "Manager/ManagerObject/ExManagerInterface.h"
    00083 #include "Manager/ManagerObject/ExManagerParticuleSystem.h"
    00084 #include "Manager/ManagerObject/ExManagerGizmo.h"
    00085 #include "Manager/ManagerObject/ExManagerLight.h"
    00086 #include "Manager/ManagerObject/ExManagerAnimation.h"
    00087 #include "Manager/ManagerObject/ExManagerSound.h"
    00088 #include "Manager/ManagerObject/ExManagerSpirit.h"
    00089 #include "Manager/ManagerObject/ExManagerObject.h"
    00090 #include "Manager/ManagerObject/ExManagerModele.h"
    00091 #include "Manager/ManagerObject/ExManagerCamera.h"
    00092 #include "Manager/ManagerObject/ExManagerFont.h"
    00093 #include "Manager/ManagerObject/ExManagerVertexArrays.h"
    00094 #include "Manager/ManagerObject/ExManagerVertexProgram.h"
    00095 #include "Manager/ManagerObject/ExManagerObjectWindow.h"
    00096 #include "Manager/ManagerObject/ExManagerMesh.h"
    00097 #include "Manager/ManagerObject/ExManagerEntity.h"
    00098 //--------------------------------------------------------------------
    00099 //fonctions for glut call back
    00100 //--------------------------------------------------------------------
    00101 void display(void);
    00102 void reshape(int w, int h) ;
    00103 void keyboard(unsigned char key,int x,int y);
    00104 void keyboardup(unsigned char key, int x, int y);
    00105 void spekeyboard(int key,int x,int y);
    00106 void spekeyboardup(int key, int x, int y) ;
    00107 void Mouse(int button, int state, int x, int y);
    00108 void MotionFunc(int x, int y);
    00109 void PassiveMotionFunc(int x, int y);
    00110 void SpaceballMotionFunc(int x, int y, int z);
    00111 void SpaceballRotateFunc(int x, int y, int z);
    00112 void TabletMotionFunc(int x, int y);
    00113 void TabletButtonFunc(int button, int state, int x, int y);
    00114 void Focus(int state);
    00115 void SetGlutCallBack(void);
    00116 void CreateManager(void);
    00117 void SetManagerLink(void);
    00118 void PreInitManager(void);
    00119 void PostInitManager(void);
    00120 void InitFlux(void);
    00121
    00122 //--------------------------------------------------------------------
    00123 // Variables
    00124 //--------------------------------------------------------------------
    00125 ExManagerWindow                         *ManagerWindow;
    00126 ExManagerConsole                        *ManagerConsole;
    00127 ExManagerOutput                         *ManagerOutPut;
    00128 ExManagerTexture                        *ManagerTexture;
    00129 ExManagerCollision                      *ManagerCollision;
    00130 ExManagerInterface                      *ManagerInterface;
    00131 ExManagerMap                            *ManagerMap;
    00132 ExManagerCommand                        *ManagerCommand;
    00133 ExManagerParticuleSystem        *ManagerParticuleSystem;
    00134 ExManagerGizmo                          *ManagerGizmo;
    00135 ExManagerLight                          *ManagerLight;
    00136 ExManagerFog                            *ManagerFog;
    00137 ExManagerAnimation                      *ManagerAnimation;
    00138 ExManagerInputGLUT                      *ManagerInputGLUT;
    00139 ExManagerId                                     *ManagerId;
    00140 ExManagerSpirit                         *ManagerSpirit;
    00141 ExManagerSound                          *ManagerSound;
    00142 ExManagerModel                          *ManagerModele;
    00143 ExManagerCamera                         *ManagerCamera;
    00144 ExManagerNetwork                        *ManagerNetwork;
    00145 ExManagerFont                           *ManagerFont;
    00146 ExManagerSpecialEffect          *ManagerSpecialEffect;
    00147 ExManagerVertexArrays           *ManagerVertexArrays;
    00148 ExManagerVertexProgram          *ManagerVertexProgram;
    00149 ExManagerObjectWindow           *ManagerObjectWindow;
    00150 ExManagerMesh                           *ManagerMesh;
    00151 ExManagerLoad                           *ManagerLoad;
    00152 ExManagerPVS                            *ManagerPVS;
    00153 ExManagerEntity                         *ManagerEntity;
    00154 //--------------------------------------------------------------------
    00155 bool m_FullScreen;
    00156
    00157 ExCFluxAction                           *FluxAction;
    00158 #endif//__MAIN_H__