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

# Référence du fichier Main.cpp

`#include "Main.h"`

Aller au code source de ce fichier.

## Fonctions
int | main (int argc, char *argv[])
void | InitFlux (void)
void | CreateManager (void)
void | SetManagerLink (void)
void | PreInitManager (void)
void | PostInitManager (void)
void | SetGlutCallBack (void)
void | keyboard (unsigned char key, int x, int y)
void | keyboardup (unsigned char key, int x, int y)
void | spekeyboard (int key, int x, int y)
void | spekeyboardup (int key, int x, int y)
void | Mouse (int button, int state, int x, int y)
void | Focus (int state)
void | MotionFunc (int x, int y)
void | PassiveMotionFunc (int x, int y)
void | SpaceballMotionFunc (int x, int y, int z)
void | SpaceballRotateFunc (int x, int y, int z)
void | TabletMotionFunc (int x, int y)
void | TabletButtonFunc (int button, int state, int x, int y)
void | display (void)
void | reshape (int w, int h)
## Variables
int | fen

## Documentation de la fonction

void CreateManager | ( | void |  | ) |

| Définition à la ligne 106 du fichier Main.cpp. Références CreateManager(), ExManagerInputGLUT::CreateSingleton(), ExManagerWindow::CreateSingleton(), ExManagerOutput::CreateSingleton(), ExManagerCommand::CreateSingleton(), ExManagerId::CreateSingleton(), ExManagerCamera::CreateSingleton(), ExManagerConsole::CreateSingleton(), ExManagerTexture::CreateSingleton(), ExManagerCollision::CreateSingleton(), ExManagerInterface::CreateSingleton(), ExManagerMap::CreateSingleton(), ExManagerParticuleSystem::CreateSingleton(), ExManagerGizmo::CreateSingleton(), ExManagerLight::CreateSingleton(), ExManagerFog::CreateSingleton(), ExManagerAnimation::CreateSingleton(), ExManagerSound::CreateSingleton(), ExManagerSpirit::CreateSingleton(), ExManagerNetwork::CreateSingleton(), ExManagerModel::CreateSingleton(), ExManagerFont::CreateSingleton(), ExManagerSpecialEffect::CreateSingleton(), ExManagerVertexArrays::CreateSingleton(), ExManagerVertexProgram::CreateSingleton(), ExManagerObjectWindow::CreateSingleton(), ExManagerMesh::CreateSingleton(), ExManagerLoad::CreateSingleton(), ExManagerPVS::CreateSingleton(), ExManagerEntity::CreateSingleton(), Guard, ManagerAnimation, ManagerCamera, ManagerCollision, ManagerCommand, ManagerConsole, ManagerEntity, ManagerFog, ManagerFont, ManagerGizmo, ManagerId, ManagerInputGLUT, ManagerInterface, ManagerLight, ManagerLoad, ManagerMap, ManagerMesh, ManagerModele, ManagerNetwork, ManagerObjectWindow, ManagerOutPut, ManagerParticuleSystem, ManagerPVS, ManagerSound, ManagerSpecialEffect, ManagerSpirit, ManagerTexture, ManagerVertexArrays, ManagerVertexProgram, ManagerWindow, et UnGuard. Référencé par CreateManager(), et main().
    00107 {
    00108 Guard(void CreateManager(void))
    00109         //--------------------------------------------------
    00110         //They can be have only one version of each manager
    00111         //--------------------------------------------------
    00112         ManagerInputGLUT                = ExManagerInputGLUT::CreateSingleton();
    00113         ManagerWindow                   = ExManagerWindow::CreateSingleton();
    00114         ManagerOutPut                   = ExManagerOutput::CreateSingleton();
    00115         ManagerCommand                  = ExManagerCommand::CreateSingleton();
    00116         ManagerId                               = ExManagerId::CreateSingleton();
    00117         ManagerCamera                   = ExManagerCamera::CreateSingleton();
    00118         ManagerConsole                  = ExManagerConsole::CreateSingleton();
    00119         ManagerTexture                  = ExManagerTexture::CreateSingleton();
    00120         ManagerCollision                = ExManagerCollision::CreateSingleton();
    00121         ManagerInterface                = ExManagerInterface::CreateSingleton();
    00122         ManagerMap                              = ExManagerMap::CreateSingleton();
    00123         ManagerParticuleSystem  = ExManagerParticuleSystem::CreateSingleton();
    00124         ManagerGizmo                    = ExManagerGizmo::CreateSingleton();
    00125         ManagerLight                    = ExManagerLight::CreateSingleton();
    00126         ManagerFog                              = ExManagerFog::CreateSingleton();
    00127         ManagerAnimation                = ExManagerAnimation::CreateSingleton();
    00128         ManagerSound                    = ExManagerSound::CreateSingleton();
    00129         ManagerSpirit                   = ExManagerSpirit::CreateSingleton();
    00130         ManagerNetwork                  = ExManagerNetwork::CreateSingleton();
    00131         ManagerModele                   = ExManagerModel::CreateSingleton();
    00132         ManagerFont                             = ExManagerFont::CreateSingleton();
    00133         ManagerSpecialEffect    = ExManagerSpecialEffect::CreateSingleton();
    00134         ManagerVertexArrays     = ExManagerVertexArrays::CreateSingleton();
    00135         ManagerVertexProgram    = ExManagerVertexProgram::CreateSingleton();
    00136         ManagerObjectWindow             = ExManagerObjectWindow::CreateSingleton();
    00137         ManagerMesh                         = ExManagerMesh::CreateSingleton();
    00138         ManagerLoad                             = ExManagerLoad::CreateSingleton();
    00139         ManagerPVS                              = ExManagerPVS::CreateSingleton();
    00140         ManagerEntity                   = ExManagerEntity::CreateSingleton();
    00141 UnGuard
    00142 }

void display | ( | void |  | ) |

| Définition à la ligne 496 du fichier Main.cpp. Références ExManagerOutput::DrawScene(), et ManagerOutPut. Référencé par SetGlutCallBack().
    00496 {ManagerOutPut->DrawScene();}

void Focus | ( | int | state | ) |

| Définition à la ligne 489 du fichier Main.cpp. Références ExManagerInputGLUT::Focus(), et ManagerInputGLUT. Référencé par SetGlutCallBack().
    00489 {ManagerInputGLUT->Focus(state);}

void InitFlux | ( | void |  | ) |

| Définition à la ligne 97 du fichier Main.cpp. Références FluxAction, Guard, InitFlux(), et UnGuard. Référencé par InitFlux(), et main().
    00098 {
    00099 Guard(void InitFlux(void))
    00100         Consol = new std::ostrstream;
    00101         FluxAction = new ExCFluxAction;
    00102 UnGuard
    00103 }

void keyboard | ( | unsigned char | key,
|  | int | x,
|  | int | y
| ) |

| Définition à la ligne 484 du fichier Main.cpp. Références ExManagerInputGLUT::Key(), et ManagerInputGLUT. Référencé par SetGlutCallBack().
    00484 {ManagerInputGLUT->Key(key,x,y);}

void keyboardup | ( | unsigned char | key,
|  | int | x,
|  | int | y
| ) |

| Définition à la ligne 485 du fichier Main.cpp. Références ExManagerInputGLUT::KeyUp(), et ManagerInputGLUT. Référencé par SetGlutCallBack().
    00485 {ManagerInputGLUT->KeyUp(key,x,y);}

int main | ( | int | argc,
|  | char * | argv[]
| ) |

| Définition à la ligne 27 du fichier Main.cpp. Références CreateManager(), ExManagerWindow::CreateNewWindow(), Guard, InitFlux(), ExManagerCommand::LoadFile(), m_FullScreen, ManagerCommand, ManagerWindow, PostInitManager(), PreInitManager(), ExManagerWindow::SetFullScreen(), SetGlutCallBack(), SetManagerLink(), et UnGuard.
    00028 {
    00029 Guard(int main(...))
    00030         InitFlux();
    00031         glutInit(&argc,argv);
    00032         //glutInitDisplayMode(GLUT_RGBA|GLUT_SINGLE);
    00033         //glutInitDisplayMode(GLUT_RGB|GLUT_DEPTH|GLUT_DOUBLE);
    00034         //glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA|GLUT_DEPTH|GLUT_ACCUM|GLUT_STENCIL);
    00035         //glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA|GLUT_ALPHA|GLUT_ACCUM);
    00036         //glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA|GLUT_ALPHA|GLUT_STENCIL );
    00037         //glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA|GLUT_DEPTH|GLUT_STENCIL);
    00038         glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA|GLUT_DEPTH);
    00039
    00040         CreateManager();
    00041         SetManagerLink();
    00042
    00043         *Consol<<"****************************************"<<std::endl;
    00044         *Consol<<"*Starting ExNihilo Engine              *"<<std::endl;
    00045         *Consol<<"****************************************"<<std::endl;
    00046         //ManagerWindow->CreateNewWindow (options->getWindowResolutionX(), options->getWindowResolutionY (), 200, 200, argv[0]);
    00047         //ManagerWindow->CreateNewWindow (640,480,argv[0]);
    00048         //Check argument to load
    00049
    00050         try
    00051         {
    00052
    00053                 int x=1024,y=768;
    00054                 for(int i = 1; i < argc; i++)
    00055                 {
    00056                         if(argv[i])
    00057                         {
    00058                                 std::cout<<argv[i]<<std::endl;
    00059
    00060                         }
    00061                 }
    00062                 if(argc>2)
    00063                 {
    00064                         ManagerWindow->CreateNewWindow (atoi(argv[1]),atoi(argv[2]),argv[0]);
    00065                 }else   ManagerWindow->CreateNewWindow (x,y,argv[0]);
    00066
    00067                 if(atoi(argv[3])==1)m_FullScreen=true;
    00068                 else m_FullScreen=false;
    00069
    00070                 ManagerWindow->SetFullScreen(m_FullScreen);
    00071
    00072                 /*ManagerWindow->CreateNewWindow(1024,768,argv[0]);
    00073                 m_FullScreen=false;
    00074                 ManagerWindow->SetFullScreen(m_FullScreen);*/
    00075         }catch (...)
    00076         {
    00077                 std::cout<<"Full screen fail start in window mode"<<std::endl;
    00078         }
    00079         PreInitManager();
    00080         SetGlutCallBack();
    00081         PostInitManager();
    00082
    00083         *Consol<<"****************************************"<<std::endl;
    00084         *Consol<<"*Lauching Engine                       *"<<std::endl;
    00085         *Consol<<"****************************************"<<std::endl;
    00086         //Check argument to load
    00087         for(int i = 1; i < argc; i++) {
    00088                 if(argv[i]) {
    00089                         //std::cout<<argv[i]<<std::endl;
    00090                         ManagerCommand->LoadFile(argv[i]);
    00091                 }
    00092         }
    00093         glutMainLoop();
    00094         return 0;
    00095 UnGuard
    00096 }

void MotionFunc | ( | int | x,
|  | int | y
| ) |

| Définition à la ligne 490 du fichier Main.cpp. Références ManagerInputGLUT, et ExManagerInputGLUT::MouseMotion(). Référencé par SetGlutCallBack().
    00490 {ManagerInputGLUT->MouseMotion(x,y);}

void Mouse | ( | int | button,
|  | int | state,
|  | int | x,
|  | int | y
| ) |

| Définition à la ligne 488 du fichier Main.cpp. Références ManagerInputGLUT, et ExManagerInputGLUT::Mouse(). Référencé par SetGlutCallBack().
    00488 {ManagerInputGLUT->Mouse(button,state,x,y);}

void PassiveMotionFunc | ( | int | x,
|  | int | y
| ) |

| Définition à la ligne 491 du fichier Main.cpp. Références ManagerInputGLUT, et ExManagerInputGLUT::MousePassiveMotion(). Référencé par SetGlutCallBack().
    00491 {ManagerInputGLUT->MousePassiveMotion(x,y);}

void PostInitManager | ( | void |  | ) |

| Définition à la ligne 392 du fichier Main.cpp. Références Guard, ExManagerConsole::Init(), ExManagerOutput::Init(), ExManagerInterface::Init(), ExNihilo::InitBasicObjectList(), ManagerConsole, ManagerInterface, ManagerOutPut, PostInitManager(), ExManagerInterface::Reset(), et UnGuard. Référencé par main(), et PostInitManager().
    00393 {
    00394 Guard(void PostInitManager(void))
    00395         ManagerConsole->Init();
    00396         ExNihilo::InitBasicObjectList();
    00397         ManagerOutPut->Init();
    00398         ManagerInterface->Reset();
    00399         ManagerInterface->Init();
    00400 UnGuard
    00401 }

void PreInitManager | ( | void |  | ) |

| Définition à la ligne 317 du fichier Main.cpp. Références ExManagerWindow::Apply(), ExManagerInputGLUT::CheckInput(), ExManagerInputGLUT::DisplayAviableInput(), ExManagerSound::DisplayAviableInput(), ExManagerWindow::GlutCallBack, Guard, ExManagerInputGLUT::Init(), ExManagerId::Init(), ExManagerVertexArrays::Init(), ExManagerVertexProgram::Init(), ExManagerTexture::Init(), ExManagerSound::Init(), ExManagerInterface::Init(), ExManagerSpirit::Init(), ExManagerMesh::Init(), ExManagerFont::Init(), ExManagerMap::Init(), ExManagerCamera::Init(), ExManagerGizmo::Init(), ExManagerParticuleSystem::Init(), ExManagerLight::Init(), ExManagerModel::Init(), ExManagerObjectWindow::Init(), ExManagerOutput::Init(), ExManagerCommand::Init(), ExManagerConsole::Init(), ExManagerNetwork::Init(), ExManagerFog::Init(), ExManagerAnimation::Init(), ExManagerEntity::Init(), ExManagerLoad::Init(), ExManagerPVS::Init(), m_FullScreen, ManagerAnimation, ManagerCamera, ManagerCommand, ManagerConsole, ManagerEntity, ManagerFog, ManagerFont, ManagerGizmo, ManagerId, ManagerInputGLUT, ManagerInterface, ManagerLight, ManagerLoad, ManagerMap, ManagerMesh, ManagerModele, ManagerNetwork, ManagerObjectWindow, ManagerOutPut, ManagerParticuleSystem, ManagerPVS, ManagerSound, ManagerSpirit, ManagerTexture, ManagerVertexArrays, ManagerVertexProgram, ManagerWindow, PreInitManager(), SetGlutCallBack(), et UnGuard. Référencé par main(), et PreInitManager().
    00318 {
    00319 Guard(void PreInitManager(void))
    00320         //-------------------------------------------------------------------------------
    00321         //Try to init all manager. When a manager fail in his init he return a exception
    00322         //-------------------------------------------------------------------------------
    00323         try{
    00324                 ManagerInputGLUT->Init();
    00325                 ManagerInputGLUT->CheckInput();
    00326                 ManagerInputGLUT->DisplayAviableInput();
    00327         }catch(...){std::cout<<"Unknow error in ManagerInputGLUT Init "<<std::endl;}
    00328         try{ManagerId->Init();}
    00329                 catch(...){std::cout<<"Unknow error in ManagerId Init "<<std::endl;}
    00330         try{ManagerVertexArrays->Init();}
    00331                 catch(...){std::cout<<"Unknow error in ManagerVertexArrays Init "<<std::endl;}
    00332         try{ManagerVertexProgram->Init();}
    00333                 catch(...){std::cout<<"Unknow error in ManagerVertexProgram Init "<<std::endl;}
    00334         try{ManagerTexture->Init();}
    00335                 catch (ExCExpMultitexturing)
    00336                 {
    00337                         std::cout<<"GL_ARB_multitexture is missing unable to launch engine"<<std::endl;
    00338                 }
    00339                 catch(...){std::cout<<"Unknow error in ManagerTexture Init "<<std::endl;}
    00340         try{
    00341                 ManagerSound->Init();
    00342                 ManagerSound->DisplayAviableInput();}
    00343         catch(...){std::cout<<"Unknow error in ManagerSound Init "<<std::endl;}
    00344                 //---------------------
    00345         try{ManagerInterface->Init();}
    00346                 catch(...){std::cout<<"Unknow error in ManagerInterface Init "<<std::endl;}
    00347         try{ManagerSpirit->Init();}
    00348                 catch(...){std::cout<<"Unknow error in ManagerSpirit Init "<<std::endl;}
    00349         try{ManagerMesh->Init();}
    00350                 catch(...){std::cout<<"Unknow error in ManagerMesh Init "<<std::endl;}
    00351         try{ManagerFont->Init();}
    00352                 catch(...){std::cout<<"Unknow error in ManagerFont Init "<<std::endl;}
    00353         try{ManagerMap->Init();}
    00354                 catch(...){std::cout<<"Unknow error in ManagerMap Init "<<std::endl;}
    00355         try{ManagerCamera->Init();}
    00356                 catch(...){std::cout<<"Unknow error in ManagerCamera Init "<<std::endl;}
    00357         try{ManagerGizmo->Init();}
    00358                 catch(...){std::cout<<"Unknow error in ManagerGizmo Init "<<std::endl;}
    00359         try{ManagerParticuleSystem->Init();}
    00360                 catch(...){std::cout<<"Unknow error in ManagerParticuleSystem Init "<<std::endl;}
    00361         try{ManagerLight->Init();}
    00362                 catch(...){std::cout<<"Unknow error in ManagerLight Init "<<std::endl;}
    00363         //---------------------
    00364         try{ManagerWindow->GlutCallBack=&SetGlutCallBack;
    00365                 if(m_FullScreen)ManagerWindow->Apply();}
    00366                 catch(...){std::cout<<"Unknow error in ManagerWindow Init "<<std::endl;}
    00367         try{ManagerModele->Init();}
    00368                 catch(...){std::cout<<"Unknow error in ManagerModele Init "<<std::endl;}
    00369         try{ManagerObjectWindow->Init();}
    00370                 catch(...){std::cout<<"Unknow error in ManagerObjectWindow Init "<<std::endl;}
    00371         try{ManagerOutPut->Init();}
    00372                 catch(...){std::cout<<"Unknow error in ManagerOutPut Init "<<std::endl;}
    00373         try{ManagerCommand->Init();}
    00374                 catch(...){std::cout<<"Unknow error in ManagerCommand Init "<<std::endl;}
    00375         try{ManagerConsole->Init();}
    00376                 catch(...){std::cout<<"Unknow error in ManagerConsole Init "<<std::endl;}
    00377         try{ManagerNetwork->Init();}
    00378                 catch(...){std::cout<<"Unknow error in ManagerNetwork Init "<<std::endl;}
    00379         try{ManagerFog->Init();}
    00380                 catch(...){std::cout<<"Unknow error in ManagerFog Init "<<std::endl;}
    00381         try{ManagerAnimation->Init();}
    00382                 catch(...){std::cout<<"Unknow error in ManagerAnimation Init "<<std::endl;}
    00383         try{ManagerEntity->Init();}
    00384                 catch(...){std::cout<<"Unknow error in ManagerEntity Init "<<std::endl;}
    00385         try{ManagerLoad->Init();}
    00386                 catch(...){std::cout<<"Unknow error in ManagerLoad Init "<<std::endl;}
    00387         try{ManagerPVS->Init();}
    00388                 catch(...){std::cout<<"Unknow error in ManagerPVS Init "<<std::endl;}
    00389 UnGuard
    00390 }

void reshape | ( | int | w,
|  | int | h
| ) |

| Définition à la ligne 497 du fichier Main.cpp. Références ManagerOutPut, et ExManagerOutput::Reshape(). Référencé par SetGlutCallBack().
    00497 {ManagerOutPut->Reshape(w,h);}

void SetGlutCallBack | ( | void |  | ) |

| Définition à la ligne 403 du fichier Main.cpp. Références display(), Focus(), Guard, ExManagerInputGLUT::IsJoystick(), ExManagerInputGLUT::IsKeyboard(), ExManagerInputGLUT::IsMouse(), ExManagerInputGLUT::IsSpaceBall(), ExManagerInputGLUT::IsTablet(), keyboard(), keyboardup(), ManagerInputGLUT, MotionFunc(), Mouse(), PassiveMotionFunc(), reshape(), SetGlutCallBack(), SpaceballMotionFunc(), SpaceballRotateFunc(), spekeyboard(), spekeyboardup(), TabletButtonFunc(), TabletMotionFunc(), et UnGuard. Référencé par main(), PreInitManager(), et SetGlutCallBack().
    00404 {
    00405 Guard(SetGlutCallBack(void))
    00406         //------------------------------------------------
    00407         //Adresse of Callbacks Keyboard
    00408         //------------------------------------------------
    00409         if(ManagerInputGLUT->IsKeyboard())
    00410         {
    00411                 glutKeyboardFunc(keyboard);
    00412                 glutKeyboardUpFunc(keyboardup);
    00413                 glutSpecialFunc(spekeyboard);
    00414                 glutSpecialUpFunc(spekeyboardup);
    00415         }else
    00416         {
    00417                 glutKeyboardFunc(NULL);
    00418                 glutKeyboardUpFunc(NULL);
    00419                 glutSpecialFunc(NULL);
    00420                 glutSpecialUpFunc(NULL);
    00421         }
    00422         //------------------------------------------------
    00423         //Adresse of Callbacks Mouse
    00424         //------------------------------------------------
    00425         if(ManagerInputGLUT->IsMouse())
    00426         {
    00427                 glutMouseFunc(Mouse);
    00428                 glutEntryFunc(Focus);
    00429                 glutMotionFunc(MotionFunc);
    00430                 glutPassiveMotionFunc(PassiveMotionFunc);
    00431         }
    00432         else
    00433         {
    00434                 glutMouseFunc(NULL);
    00435                 glutEntryFunc(NULL);
    00436                 glutMotionFunc(NULL);
    00437                 glutPassiveMotionFunc(NULL);
    00438         }
    00439         //------------------------------------------------
    00440         //Adresse of Callbacks Joystick
    00441         //------------------------------------------------
    00442         if(ManagerInputGLUT->IsJoystick())
    00443         {
    00444         }
    00445         else
    00446         {
    00447         }
    00448         //------------------------------------------------
    00449         //Adresse of Callbacks SpaceBall
    00450         //------------------------------------------------
    00451         if(ManagerInputGLUT->IsSpaceBall())
    00452         {
    00453                 glutSpaceballMotionFunc(SpaceballMotionFunc);
    00454                 glutSpaceballRotateFunc(SpaceballRotateFunc);
    00455         }
    00456         else
    00457         {
    00458                 glutSpaceballRotateFunc(NULL);
    00459                 glutSpaceballMotionFunc(NULL);
    00460         }
    00461         //------------------------------------------------
    00462         //Adresse of Callbacks Tablet
    00463         //------------------------------------------------
    00464         if(ManagerInputGLUT->IsTablet())
    00465         {
    00466                 glutTabletMotionFunc(TabletMotionFunc);
    00467                 glutTabletButtonFunc(TabletButtonFunc);
    00468         }
    00469         else
    00470         {
    00471                 glutTabletMotionFunc(NULL);
    00472                 glutTabletButtonFunc(NULL);
    00473         }
    00474         //------------------------------------------------
    00475         //Adresse of Callbacks render
    00476         //------------------------------------------------
    00477         glutDisplayFunc(display);
    00478         glutIdleFunc(display);
    00479         glutReshapeFunc(reshape);
    00480
    00481 UnGuard
    00482 }

void SetManagerLink | ( | void |  | ) |

| Définition à la ligne 144 du fichier Main.cpp. Références FluxAction, Guard, ManagerAnimation, ManagerCamera, ManagerCollision, ManagerCommand, ManagerConsole, ManagerEntity, ManagerFog, ManagerFont, ManagerGizmo, ManagerId, ManagerInputGLUT, ManagerInterface, ManagerLight, ManagerLoad, ManagerMap, ManagerMesh, ManagerModele, ManagerNetwork, ManagerObjectWindow, ManagerOutPut, ManagerParticuleSystem, ManagerPVS, ManagerSound, ManagerSpecialEffect, ManagerSpirit, ManagerTexture, ManagerVertexArrays, ManagerVertexProgram, ManagerWindow, ExManager::SetFlux(), ExManagerCommand::SetManagerAnim(), ExManagerOutput::SetManagerAnim(), ExManagerLoad::SetManagerAnim(), ExManagerCommand::SetManagerCamera(), ExManagerOutput::SetManagerCamera(), ExManagerAnimation::SetManagerCamera(), ExManagerLoad::SetManagerCamera(), ExManagerPVS::SetManagerCamera(), ExManagerCommand::SetManagerCollision(), ExManagerParticuleSystem::SetManagerCollision(), ExManagerOutput::SetManagerCollision(), ExManagerInputGLUT::SetManagerCommand(), ExManagerOutput::SetManagerCommand(), ExManagerCommand::SetManagerConsole(), ExManagerOutput::SetManagerConsole(), ExManagerLoad::SetManagerConsole(), ExManagerCommand::SetManagerEntity(), ExManagerAnimation::SetManagerEntity(), ExManagerLoad::SetManagerEntity(), ExManagerPVS::SetManagerEntity(), ExManagerCommand::SetManagerFog(), ExManagerMap::SetManagerFog(), ExManagerOutput::SetManagerFog(), ExManagerCommand::SetManagerGizmo(), ExManagerOutput::SetManagerGizmo(), ExManagerAnimation::SetManagerGizmo(), ExManagerLoad::SetManagerGizmo(), ExManagerPVS::SetManagerGizmo(), ExManagerEntity::SetManagerGizmo(), ExManagerCommand::SetManagerId(), ExManagerObject< ExCCamera * >::SetManagerId(), ExManagerObject< ExCTexture >::SetManagerId(), ExManagerCollision::SetManagerId(), ExManagerObject< ExCInterface >::SetManagerId(), ExManagerMap::SetManagerId(), ExManagerObject< ExCGizmo >::SetManagerId(), ExManagerObject< ExCLight >::SetManagerId(), ExManagerObject< ExCAnimation >::SetManagerId(), ExManagerObject< ExCSpirit >::SetManagerId(), ExManagerObject< ExCSound >::SetManagerId(), ExManagerObject< ExCSystemeParticule >::SetManagerId(), ExManagerObject< ExCFont >::SetManagerId(), ExManagerObject< ExCWindow >::SetManagerId(), ExManagerObject< ExCModel * >::SetManagerId(), ExManagerObject< ExCMesh * >::SetManagerId(), ExManagerObject< ExCLoadingAnimation >::SetManagerId(), ExManagerObject< ExCEntity * >::SetManagerId(), ExManagerCommand::SetManagerInterface(), ExManagerOutput::SetManagerInterface(), ExManagerLoad::SetManagerInterface(), ExManagerCommand::SetManagerLight(), ExManagerOutput::SetManagerLight(), ExManagerAnimation::SetManagerLight(), ExManagerLoad::SetManagerLight(), ExManagerPVS::SetManagerLight(), SetManagerLink(), ExManagerCommand::SetManagerLoad(), ExManagerOutput::SetManagerLoad(), ExManagerCommand::SetManagerMap(), ExManagerOutput::SetManagerMap(), ExManagerLoad::SetManagerMap(), ExManagerPVS::SetManagerMap(), ExManagerCommand::SetManagerMesh(), ExManagerLoad::SetManagerMesh(), ExManagerPVS::SetManagerMesh(), ExManagerEntity::SetManagerMesh(), ExManagerCamera::SetManagerModel(), ExManagerCollision::SetManagerModel(), ExManagerCommand::SetManagerModel(), ExManagerOutput::SetManagerModel(), ExManagerAnimation::SetManagerModel(), ExManagerLoad::SetManagerModel(), ExManagerPVS::SetManagerModel(), ExManagerMesh::SetManagerModel(), ExManagerEntity::SetManagerModel(), ExManagerCommand::SetManagerNetwork(), ExManagerOutput::SetManagerNetwork(), ExManagerCommand::SetManagerObjectWindow(), ExManagerOutput::SetManagerObjectWindow(), ExManagerLoad::SetManagerObjectWindow(), ExManagerCommand::SetManagerParticuleSystem(), ExManagerOutput::SetManagerParticuleSystem(), ExManagerAnimation::SetManagerParticuleSystem(), ExManagerLoad::SetManagerParticuleSystem(), ExManagerPVS::SetManagerParticuleSystem(), ExManagerCommand::SetManagerPVS(), ExManagerOutput::SetManagerPVS(), ExManagerCommand::SetManagerSound(), ExManagerLoad::SetManagerSound(), ExManagerCommand::SetManagerSpecialEffect(), ExManagerOutput::SetManagerSpecialEffect(), ExManagerLoad::SetManagerSpecialEffect(), ExManagerCommand::SetManagerSpirit(), ExManagerOutput::SetManagerSpirit(), ExManagerLoad::SetManagerSpirit(), ExManagerModel::SetManagerTexture(), ExManagerCommand::SetManagerTexture(), ExManagerMap::SetManagerTexture(), ExManagerParticuleSystem::SetManagerTexture(), ExManagerInterface::SetManagerTexture(), ExManagerConsole::SetManagerTexture(), ExManagerObjectWindow::SetManagerTexture(), ExManagerLoad::SetManagerTexture(), ExManagerMesh::SetManagerTexture(), ExManagerModel::SetManagerVertexArrays(), ExManagerOutput::SetManagerVertexProgram(), ExManagerLoad::SetManagerVertexProgram(), ExManagerCommand::SetManagerWindow(), ExManagerOutput::SetManagerWindow(), ExManagerConsole::SetManagerWindow(), ExManagerObjectWindow::SetManagerWindow(), et UnGuard. Référencé par main(), et SetManagerLink().
    00145 {
    00146 Guard(void SetManagerLink(void))
    00147         //-------------------------------------------------------------------------------
    00148         //Set consol flux to all manager (after that tehy can write on the engine consol
    00149         //-------------------------------------------------------------------------------
    00150         ManagerWindow->SetFlux(Consol,FluxAction);
    00151         ManagerOutPut->SetFlux(Consol,FluxAction);
    00152         ManagerId->SetFlux(Consol,FluxAction);
    00153         ManagerCommand->SetFlux(Consol,FluxAction);
    00154         ManagerInputGLUT->SetFlux(Consol,FluxAction);
    00155         ManagerCamera->SetFlux(Consol,FluxAction);
    00156         ManagerConsole->SetFlux(Consol,FluxAction);
    00157         ManagerTexture->SetFlux(Consol,FluxAction);
    00158         ManagerCollision->SetFlux(Consol,FluxAction);
    00159         ManagerInterface->SetFlux(Consol,FluxAction);
    00160         ManagerMap->SetFlux(Consol,FluxAction);
    00161     ManagerParticuleSystem->SetFlux(Consol,FluxAction);
    00162         ManagerGizmo->SetFlux(Consol,FluxAction);
    00163         ManagerLight->SetFlux(Consol,FluxAction);
    00164         ManagerFog->SetFlux(Consol,FluxAction);
    00165         ManagerAnimation->SetFlux(Consol,FluxAction);
    00166         ManagerSpirit->SetFlux(Consol,FluxAction);
    00167         ManagerSound->SetFlux(Consol,FluxAction);
    00168         ManagerModele->SetFlux(Consol,FluxAction);
    00169         ManagerFont->SetFlux(Consol,FluxAction);
    00170         ManagerSpecialEffect->SetFlux(Consol,FluxAction);
    00171         ManagerVertexArrays->SetFlux(Consol,FluxAction);
    00172         ManagerVertexProgram->SetFlux(Consol,FluxAction);
    00173         ManagerObjectWindow->SetFlux(Consol,FluxAction);
    00174         ManagerPVS->SetFlux(Consol,FluxAction);
    00175         ManagerLoad->SetFlux(Consol,FluxAction);
    00176         ManagerMesh->SetFlux(Consol,FluxAction);
    00177         ManagerEntity->SetFlux(Consol,FluxAction);
    00178         //----------------------------------------------------------------------------------
    00179         //Set ManagerId All Object Manager need a link to ManagerId . Each object has his id
    00180         //----------------------------------------------------------------------------------
    00181         ManagerCommand->SetManagerId    (ManagerId      );
    00182         ManagerCamera->SetManagerId(ManagerId);
    00183         ManagerTexture->SetManagerId    (ManagerId      );
    00184         ManagerCollision->SetManagerId  (ManagerId      );
    00185         ManagerInterface->SetManagerId  (ManagerId      );
    00186         ManagerMap->SetManagerId        (ManagerId      );
    00187         ManagerGizmo->SetManagerId      (ManagerId      );
    00188         ManagerLight->SetManagerId      (ManagerId      );
    00189         ManagerAnimation->SetManagerId  (ManagerId      );
    00190         ManagerSpirit->SetManagerId     (ManagerId      );
    00191         ManagerSound->SetManagerId      (ManagerId      );
    00192         ManagerParticuleSystem->SetManagerId    (ManagerId      );
    00193         ManagerFont->SetManagerId       (ManagerId      );
    00194         ManagerObjectWindow->SetManagerId(ManagerId);
    00195         ManagerModele->SetManagerId(ManagerId);
    00196         ManagerMesh->SetManagerId(ManagerId);
    00197         ManagerLoad->SetManagerId(ManagerId);
    00198         ManagerEntity->SetManagerId(ManagerId);
    00199         //-----------------------------------------------------------------
    00200         ManagerCamera->SetManagerModel(ManagerModele);
    00201         //------------------------------------------------------------------
    00202         ManagerModele->SetManagerTexture(ManagerTexture);
    00203         ManagerModele->SetManagerVertexArrays(ManagerVertexArrays);
    00204         //------------------------------------------------------------------
    00205         ManagerCollision->SetManagerModel(ManagerModele);
    00206         //------------------------------------------------------------------
    00207         ManagerInputGLUT->SetManagerCommand(ManagerCommand);
    00208         //-----------------------------------------------------------------------
    00209         //To route command the ManagerCommand need a link to this list of manager
    00210         //-----------------------------------------------------------------------
    00211         ManagerCommand->SetManagerAnim(ManagerAnimation);
    00212         ManagerCommand->SetManagerCollision(ManagerCollision);
    00213         ManagerCommand->SetManagerFog(ManagerFog);
    00214         ManagerCommand->SetManagerGizmo(ManagerGizmo);
    00215         ManagerCommand->SetManagerLight(ManagerLight);
    00216         ManagerCommand->SetManagerMap(ManagerMap);
    00217         ManagerCommand->SetManagerParticuleSystem(ManagerParticuleSystem);
    00218         ManagerCommand->SetManagerTexture(ManagerTexture);
    00219         ManagerCommand->SetManagerWindow(ManagerWindow);
    00220         ManagerCommand->SetManagerCamera(ManagerCamera);
    00221         ManagerCommand->SetManagerGizmo(ManagerGizmo);
    00222         ManagerCommand->SetManagerInterface(ManagerInterface);
    00223         ManagerCommand->SetManagerConsole(ManagerConsole);
    00224         ManagerCommand->SetManagerSound(ManagerSound);
    00225         ManagerCommand->SetManagerSpirit(ManagerSpirit);
    00226         ManagerCommand->SetManagerModel(ManagerModele);
    00227         ManagerCommand->SetManagerNetwork(ManagerNetwork);
    00228         ManagerCommand->SetManagerObjectWindow(ManagerObjectWindow);
    00229         ManagerCommand->SetManagerSpecialEffect(ManagerSpecialEffect);
    00230         ManagerCommand->SetManagerLoad(ManagerLoad);
    00231         ManagerCommand->SetManagerPVS(ManagerPVS);
    00232         ManagerCommand->SetManagerMesh(ManagerMesh);
    00233         ManagerCommand->SetManagerEntity(ManagerEntity);
    00234         //------------------------------------------------------------------
    00235         ManagerMap->SetManagerTexture(ManagerTexture);
    00236         ManagerMap->SetManagerFog(ManagerFog);
    00237     //------------------------------------------------------------------
    00238         ManagerParticuleSystem->SetManagerTexture(ManagerTexture);
    00239         ManagerParticuleSystem->SetManagerCollision(ManagerCollision);
    00240         //-------------------------------------------------
    00241         //ManagerOutput need this link to render the scene
    00242         //-------------------------------------------------
    00243         ManagerOutPut->SetManagerWindow(ManagerWindow);
    00244         ManagerOutPut->SetManagerCommand(ManagerCommand);
    00245         ManagerOutPut->SetManagerCamera(ManagerCamera);
    00246         ManagerOutPut->SetManagerAnim(ManagerAnimation);
    00247         ManagerOutPut->SetManagerCollision(ManagerCollision);
    00248         ManagerOutPut->SetManagerFog(ManagerFog);
    00249         ManagerOutPut->SetManagerConsole(ManagerConsole);
    00250         ManagerOutPut->SetManagerInterface(ManagerInterface);
    00251         ManagerOutPut->SetManagerSpirit(ManagerSpirit);
    00252         ManagerOutPut->SetManagerMap(ManagerMap);
    00253         ManagerOutPut->SetManagerModel(ManagerModele);
    00254         ManagerOutPut->SetManagerGizmo(ManagerGizmo);
    00255         ManagerOutPut->SetManagerParticuleSystem(ManagerParticuleSystem);
    00256         ManagerOutPut->SetManagerLight(ManagerLight);
    00257         ManagerOutPut->SetManagerNetwork(ManagerNetwork);
    00258         ManagerOutPut->SetManagerCollision(ManagerCollision);
    00259         ManagerOutPut->SetManagerVertexProgram(ManagerVertexProgram);
    00260         ManagerOutPut->SetManagerObjectWindow(ManagerObjectWindow);
    00261         ManagerOutPut->SetManagerSpecialEffect(ManagerSpecialEffect);
    00262         ManagerOutPut->SetManagerPVS(ManagerPVS);
    00263         ManagerOutPut->SetManagerLoad(ManagerLoad);
    00264         ManagerOutPut->SetManagerLight(ManagerLight);
    00265         //-------------------------------------------------
    00266         ManagerInterface->SetManagerTexture(ManagerTexture);
    00267         //-------------------------------------------------
    00268         ManagerConsole->SetManagerWindow(ManagerWindow);
    00269         ManagerConsole->SetManagerTexture(ManagerTexture);
    00270         //-------------------------------------------------
    00271         ManagerObjectWindow->SetManagerTexture(ManagerTexture);
    00272         ManagerObjectWindow->SetManagerWindow(ManagerWindow);
    00273         //-------------------------------------------------
    00274         ManagerAnimation->SetManagerCamera(ManagerCamera);
    00275         ManagerAnimation->SetManagerGizmo(ManagerGizmo);
    00276         ManagerAnimation->SetManagerLight(ManagerLight);
    00277         ManagerAnimation->SetManagerModel(ManagerModele);
    00278         ManagerAnimation->SetManagerParticuleSystem(ManagerParticuleSystem);
    00279         ManagerAnimation->SetManagerEntity(ManagerEntity);
    00280         //-------------------------------------------------
    00281         ManagerLoad->SetManagerCamera(ManagerCamera);
    00282         ManagerLoad->SetManagerAnim(ManagerAnimation);
    00283         ManagerLoad->SetManagerConsole(ManagerConsole);
    00284         ManagerLoad->SetManagerInterface(ManagerInterface);
    00285         ManagerLoad->SetManagerSpirit(ManagerSpirit);
    00286         ManagerLoad->SetManagerMap(ManagerMap);
    00287         ManagerLoad->SetManagerModel(ManagerModele);
    00288         ManagerLoad->SetManagerGizmo(ManagerGizmo);
    00289         ManagerLoad->SetManagerParticuleSystem(ManagerParticuleSystem);
    00290         ManagerLoad->SetManagerLight(ManagerLight);
    00291         ManagerLoad->SetManagerVertexProgram(ManagerVertexProgram);
    00292         ManagerLoad->SetManagerObjectWindow(ManagerObjectWindow);
    00293         ManagerLoad->SetManagerSpecialEffect(ManagerSpecialEffect);
    00294         ManagerLoad->SetManagerMesh(ManagerMesh);
    00295         ManagerLoad->SetManagerSound(ManagerSound);
    00296         ManagerLoad->SetManagerTexture(ManagerTexture);
    00297         ManagerLoad->SetManagerEntity(ManagerEntity);
    00298         //-------------------------------------------------
    00299         ManagerPVS->SetManagerCamera(ManagerCamera);
    00300         ManagerPVS->SetManagerMap(ManagerMap);
    00301         ManagerPVS->SetManagerModel(ManagerModele);
    00302         ManagerPVS->SetManagerGizmo(ManagerGizmo);
    00303         ManagerPVS->SetManagerParticuleSystem(ManagerParticuleSystem);
    00304         ManagerPVS->SetManagerLight(ManagerLight);
    00305         ManagerPVS->SetManagerMesh(ManagerMesh);
    00306         ManagerPVS->SetManagerEntity(ManagerEntity);
    00307         //-------------------------------------------------
    00308         ManagerMesh->SetManagerTexture(ManagerTexture);
    00309         ManagerMesh->SetManagerModel(ManagerModele);
    00310         //-------------------------------------------------
    00311         ManagerEntity->SetManagerGizmo(ManagerGizmo);
    00312         ManagerEntity->SetManagerMesh(ManagerMesh);
    00313         ManagerEntity->SetManagerModel(ManagerModele);//TO DO remove this one en use only mesh
    00314 UnGuard
    00315 }

void SpaceballMotionFunc | ( | int | x,
|  | int | y,
|  | int | z
| ) |

| Définition à la ligne 492 du fichier Main.cpp. Références ManagerInputGLUT, et ExManagerInputGLUT::SpaceballMotion(). Référencé par SetGlutCallBack().
    00492 {ManagerInputGLUT->SpaceballMotion(x,y,z);}

void SpaceballRotateFunc | ( | int | x,
|  | int | y,
|  | int | z
| ) |

| Définition à la ligne 493 du fichier Main.cpp. Références ManagerInputGLUT, et ExManagerInputGLUT::SpaceballRotate(). Référencé par SetGlutCallBack().
    00493 {ManagerInputGLUT->SpaceballRotate(x,y,z);}

void spekeyboard | ( | int | key,
|  | int | x,
|  | int | y
| ) |

| Définition à la ligne 486 du fichier Main.cpp. Références ExManagerInputGLUT::KeySpe(), et ManagerInputGLUT. Référencé par SetGlutCallBack().
    00486 {ManagerInputGLUT->KeySpe(key,x,y);}

void spekeyboardup | ( | int | key,
|  | int | x,
|  | int | y
| ) |

| Définition à la ligne 487 du fichier Main.cpp. Références ExManagerInputGLUT::KeySpeUp(), et ManagerInputGLUT. Référencé par SetGlutCallBack().
    00487 {ManagerInputGLUT->KeySpeUp(key,x,y);}

void TabletButtonFunc | ( | int | button,
|  | int | state,
|  | int | x,
|  | int | y
| ) |

| Définition à la ligne 495 du fichier Main.cpp. Références ManagerInputGLUT, et ExManagerInputGLUT::TabletButton(). Référencé par SetGlutCallBack().
    00495 {ManagerInputGLUT->TabletButton(button,state,x,y);}

void TabletMotionFunc | ( | int | x,
|  | int | y
| ) |

| Définition à la ligne 494 du fichier Main.cpp. Références ManagerInputGLUT, et ExManagerInputGLUT::TabletMotion(). Référencé par SetGlutCallBack().
    00494 {ManagerInputGLUT->TabletMotion(x,y);}

## Documentation de la variable

int fen

| Définition à la ligne 26 du fichier Main.cpp.