#include <math.h>#include "ExDefine.h"#include "ExMath.h"#include "ExManagerWindow.h"#include "ExManagerConsole.h"#include "ExManagerOutput.h"#include "ExManagerTexture.h"#include "ExManagerCollision.h"#include "ExManagerMenu.h"#include "ExManagerInterface.h"#include "ExManagerMap.h"#include "ExManagerCommand.h"#include "ExManagerParticuleSystem.h"#include "ExManagerGizmo.h"#include "ExManagerLight.h"#include "ExManagerFog.h"#include "ExManagerAnimation.h"#include "ExManagerId.h"#include "ExManagerSound.h"#include "ExManagerSpirit.h"#include "ExManagerInputGLUT.h"#include "ExNihiloNameSpace.h"#include "ExCFile.h"#include "ExCOptions.h"#include "ExManager.h"#include "ExManagerObject.h"#include "ExManagerModele.h"#include "ExManagerCamera.h"#include "ExManagerNetwork.h"#include "ExCModel.h"#include "ExCObject.h"#include "ExManagerFont.h"#include "ExManagerSpecialEffect.h"#include "ExManagerVertexArrays.h"Go to the source code of this file.
|
|
Definition at line 390 of file Main.cpp. References ManagerInputGLUT, and ExManagerInputGLUT::TabletButton(). Referenced by SetGlutCallBack().
00390 {ManagerInputGLUT->TabletButton(button,state,x,y);}
|
|
|
|
|
|
Definition at line 383 of file Main.cpp. References ManagerInputGLUT, and ExManagerInputGLUT::Mouse(). Referenced by SetGlutCallBack().
00383 {ManagerInputGLUT->Mouse(button,state,x,y);}
|
|
|
Definition at line 237 of file Main.cpp. References Guard, and InitGlExtension(). Referenced by InitGlExtension(), and main().
00239 {
00240 Guard(void InitGlExtension(void))
00241
00242 //glMultiTexCoord2fARB = (PFNGLMULTITEXCOORD2FARBPROC) wglGetProcAddress("glMultiTexCoord2fARB");
00243 //glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC) wglGetProcAddress("glActiveTextureARB");
00244 //glClientActiveTextureARB = (PFNGLCLIENTACTIVETEXTUREARBPROC) wglGetProcAddress("glClientActiveTextureARB");
00245 //if(glMultiTexCoord2fARB = NULL) std::cout<<"OpenGl extension missing"<<std::endl;
00246 //if(glActiveTextureARB = NULL) std::cout<<"OpenGl extension missing"<<std::endl;
00247 //if(glClientActiveTextureARB = NULL) std::cout<<"OpenGl extension missing"<<std::endl;
00248
00249 UnGuard
|
|
|
||||||||||||||||
|
Definition at line 378 of file Main.cpp. Referenced by SetGlutCallBack().
00379 {ManagerInputGLUT->Key(key,x,y);}
|
|
||||||||||||||||
|
Definition at line 379 of file Main.cpp. References ExManagerInputGLUT::Key(), and ManagerInputGLUT. Referenced by SetGlutCallBack().
00379 {ManagerInputGLUT->Key(key,x,y);}
|
|
||||||||||||
|
Definition at line 384 of file Main.cpp. References ExManagerInputGLUT::Focus(), and ManagerInputGLUT. Referenced by SetGlutCallBack().
00384 {ManagerInputGLUT->Focus(state);}
|
|
||||||||||||||||||||
|
Definition at line 382 of file Main.cpp. References ExManagerInputGLUT::KeySpeUp(), and ManagerInputGLUT. Referenced by SetGlutCallBack().
00382 {ManagerInputGLUT->KeySpeUp(key,x,y);}
|
|
||||||||||||
|
Definition at line 385 of file Main.cpp. References ManagerInputGLUT, and ExManagerInputGLUT::MouseMotion(). Referenced by SetGlutCallBack().
00385 {ManagerInputGLUT->MouseMotion(x,y);}
|
|
||||||||||||
|
Definition at line 391 of file Main.cpp. References ExManagerOutput::DrawScene(), and ManagerOutPut. Referenced by SetGlutCallBack().
00391 {ManagerOutPut->DrawScene();}
|
|
|
Definition at line 121 of file Main.cpp. References Guard, ManagerConsole, and ExManagerConsole::Write().
00123 {
00124 Guard(void RoutingtoConsole(const char *Label))
00125 ManagerConsole->Write(Label);
00126 UnGuard
|
|
|
Definition at line 290 of file Main.cpp. References display(), Focus(), Guard, ExManagerInterface::Init(), ExManagerOutput::Init(), ExManagerConsole::Init(), ExNihilo::InitBasicObjectList(), ExManagerInputGLUT::IsJoystick(), ExManagerInputGLUT::IsKeyboard(), ExManagerInputGLUT::IsMouse(), ExManagerInputGLUT::IsSpaceBall(), ExManagerInputGLUT::IsTablet(), keyboard(), keyboardup(), ManagerConsole, ManagerInputGLUT, ManagerInterface, ManagerOutPut, MotionFunc(), Mouse(), PassiveMotionFunc(), ExManagerInterface::Reset(), reshape(), SetGlutCallBack(), SpaceballMotionFunc(), SpaceballRotateFunc(), spekeyboard(), spekeyboardup(), TabletButtonFunc(), and TabletMotionFunc(). Referenced by InitManager(), main(), and SetGlutCallBack().
00292 {
00293 Guard(SetGlutCallBack(void))
00294 //------------------------------------------------
00295 //Adressage des Callbacks Keyboard
00296 //------------------------------------------------
00297 if(ManagerInputGLUT->IsKeyboard())
00298 {
00299 glutKeyboardFunc(keyboard);
00300 glutKeyboardUpFunc(keyboardup);
00301 glutSpecialFunc(spekeyboard);
00302 glutSpecialUpFunc(spekeyboardup);
00303 }else
00304 {
00305 glutKeyboardFunc(NULL);
00306 glutKeyboardUpFunc(NULL);
00307 glutSpecialFunc(NULL);
00308 glutSpecialUpFunc(NULL);
00309 }
00310 //------------------------------------------------
00311 //Adressage des Callbacks Mouse
00312 //------------------------------------------------
00313 if(ManagerInputGLUT->IsMouse())
00314 {
00315 glutMouseFunc(Mouse);
00316 glutEntryFunc(Focus);
00317 glutMotionFunc(MotionFunc);
00318 glutPassiveMotionFunc(PassiveMotionFunc);
00319 }
00320 else
00321 {
00322 glutMouseFunc(NULL);
00323 glutEntryFunc(NULL);
00324 glutMotionFunc(NULL);
00325 glutPassiveMotionFunc(NULL);
00326 }
00327 //------------------------------------------------
00328 //Adressage des Callbacks Joystick
00329 //------------------------------------------------
00330 if(ManagerInputGLUT->IsJoystick())
00331 {
00332 }
00333 else
00334 {
00335 }
00336 //------------------------------------------------
00337 //Adressage des Callbacks SpaceBall
00338 //------------------------------------------------
00339 if(ManagerInputGLUT->IsSpaceBall())
00340 {
00341 glutSpaceballMotionFunc(SpaceballMotionFunc);
00342 glutSpaceballRotateFunc(SpaceballRotateFunc);
00343 }
00344 else
00345 {
00346 glutSpaceballRotateFunc(NULL);
00347 glutSpaceballMotionFunc(NULL);
00348 }
00349 //------------------------------------------------
00350 //Adressage des Callbacks Tablet
00351 //------------------------------------------------
00352 if(ManagerInputGLUT->IsTablet())
00353 {
00354 glutTabletMotionFunc(TabletMotionFunc);
00355 glutTabletButtonFunc(TabletButtonFunc);
00356 }
00357 else
00358 {
00359 glutTabletMotionFunc(NULL);
00360 glutTabletButtonFunc(NULL);
00361 }
00362 //------------------------------------------------
00363 //Adressage des Callbacks Affichage
00364 //------------------------------------------------
00365 glutDisplayFunc(display);
00366 glutIdleFunc(display);
00367 glutReshapeFunc(reshape);
00368 //------------------------------------------------
00369 //List affichage
00370 //------------------------------------------------
00371 ManagerConsole->Init();
00372 ExNihilo::InitBasicObjectList();
00373 ManagerOutPut->Init();
00374 ManagerInterface->Reset();
00375 ManagerInterface->Init();
00376 UnGuard
|
|
|
||||||||||||||||
|
Definition at line 386 of file Main.cpp. References ManagerInputGLUT, and ExManagerInputGLUT::MousePassiveMotion(). Referenced by SetGlutCallBack().
00386 {ManagerInputGLUT->MousePassiveMotion(x,y);}
|
|
||||||||||||||||
|
Definition at line 387 of file Main.cpp. References ManagerInputGLUT, and ExManagerInputGLUT::SpaceballMotion(). Referenced by SetGlutCallBack().
00387 {ManagerInputGLUT->SpaceballMotion(x,y,z);}
|
|
||||||||||||||||
|
Definition at line 380 of file Main.cpp. References ExManagerInputGLUT::KeyUp(), and ManagerInputGLUT. Referenced by SetGlutCallBack().
00380 {ManagerInputGLUT->KeyUp(key,x,y);}
|
|
||||||||||||||||
|
Definition at line 381 of file Main.cpp. References ExManagerInputGLUT::KeySpe(), and ManagerInputGLUT. Referenced by SetGlutCallBack().
00381 {ManagerInputGLUT->KeySpe(key,x,y);}
|
|
||||||||||||||||||||
|
Definition at line 389 of file Main.cpp. References ManagerInputGLUT, and ExManagerInputGLUT::TabletMotion(). Referenced by SetGlutCallBack().
00389 {ManagerInputGLUT->TabletMotion(x,y);}
|
|
||||||||||||
|
Definition at line 388 of file Main.cpp. References ManagerInputGLUT, and ExManagerInputGLUT::SpaceballRotate(). Referenced by SetGlutCallBack().
00388 {ManagerInputGLUT->SpaceballRotate(x,y,z);}
|
|
|
Definition at line 117 of file Main.h. Referenced by main(). |
|
|
Definition at line 105 of file Main.h. Referenced by main(), and SetManagerLink(). |
|
|
Definition at line 112 of file Main.h. Referenced by InitManager(), main(), SetManagerLink(), ExManagerOutput::SetManagerModel(), and ExManagerCommand::SetManagerModel(). |
|
|
Definition at line 96 of file Main.h. Referenced by main(), ExManagerOutput::SetManagerFog(), ExManagerEntite::SetManagerId(), ExManagerCommand::SetManagerId(), ExManagerCam::SetManagerId(), and SetManagerLink(). |
|
|
Definition at line 100 of file Main.h. Referenced by InitManager(), main(), ExManagerInputGLUT::SetManagerCommand(), ExManagerOutput::SetManagerConsole(), and SetManagerLink(). |
|
|
Definition at line 93 of file Main.h. Referenced by InitManager(), main(), RoutingtoConsole(), SetGlutCallBack(), SetManagerLink(), ExManagerOutput::SetManagerMenu(), and ExManagerCommand::SetManagerSound(). |
|
|
Definition at line 104 of file Main.h. Referenced by main(), ExManagerOutput::SetManagerAnim(), ExManagerCommand::SetManagerAnim(), and SetManagerLink(). |
|
|
Definition at line 114 of file Main.h. Referenced by InitManager(), main(), and SetManagerLink(). |
|
|
Definition at line 102 of file Main.h. Referenced by InitManager(), main(), ExManagerCommand::SetManagerLight(), SetManagerLink(), and ExManagerOutput::SetManagerParticuleSystem(). |
|
|
Definition at line 107 of file Main.h. Referenced by InitManager(), main(), ExManagerPVS::SetManagerId(), ExManagerObject< ExCSpirit >::SetManagerId(), ExManagerCollision::SetManagerId(), ExManagerAnimation::SetManagerId(), SetManagerLink(), ExManagerCommand::SetManagerMenu(), and ExManagerMap::SetManagerTexture(). |
|
|
Definition at line 106 of file Main.h. Referenced by display(), Focus(), InitManager(), keyboardup(), main(), MotionFunc(), Mouse(), PassiveMotionFunc(), SetGlutCallBack(), SetManagerLink(), SpaceballMotionFunc(), SpaceballRotateFunc(), spekeyboard(), spekeyboardup(), TabletButtonFunc(), and TabletMotionFunc(). |
|
|
Definition at line 98 of file Main.h. Referenced by InitManager(), main(), SetGlutCallBack(), ExManagerCommand::SetManagerConsole(), SetManagerLink(), and ExManagerOutput::SetManagerSpirit(). |
|
|
Definition at line 103 of file Main.h. Referenced by InitManager(), main(), SetManagerLink(), ExManagerOutput::SetManagerNetwork(), and ExManagerCommand::SetManagerParticuleSystem(). |
|
|
Definition at line 99 of file Main.h. Referenced by main(), ExManagerOutput::SetManagerCamera(), ExManagerCommand::SetManagerFog(), and SetManagerLink(). |
|
|
Definition at line 97 of file Main.h. Referenced by InitManager(), main(), ExManagerOutput::SetManagerInterface(), ExManagerCommand::SetManagerInterface(), and SetManagerLink(). |
|
|
Definition at line 111 of file Main.h. Referenced by InitManager(), main(), and SetManagerLink(). |
|
|
Definition at line 113 of file Main.h. Referenced by InitManager(), main(), and SetManagerLink(). |
|
|
Definition at line 94 of file Main.h. Referenced by InitManager(), main(), reshape(), SetGlutCallBack(), and SetManagerLink(). |
|
|
Definition at line 101 of file Main.h. Referenced by InitManager(), main(), ExManagerOutput::SetManagerLight(), SetManagerLink(), and ExManagerCommand::SetManagerTexture(). |
|
|
Definition at line 109 of file Main.h. Referenced by InitManager(), main(), SetManagerLink(), and ExManagerCommand::SetManagerSpirit(). |
|
|
Definition at line 115 of file Main.h. Referenced by main(), and SetManagerLink(). |
|
|
Definition at line 108 of file Main.h. Referenced by InitManager(), main(), SetManagerLink(), and ExManagerOutput::SetManagerMap(). |
|
|
|
Definition at line 116 of file Main.h. Referenced by InitManager(), main(), and SetManagerLink(). |
|
|
Definition at line 92 of file Main.h. Referenced by InitManager(), main(), ExManagerOutput::SetManagerCommand(), ExManagerCommand::SetManagerGizmo(), SetManagerLink(), ExManagerConsole::SetManagerTexture(), and ExCInterface::SetManagerTexture(). |
1.3-rc1