#include <math.h>
#include "ExDefine.h"
#include "ExMath.h"
#include "ExManagerWindow.h"
#include "ExManagerConsole.h"
#include "ExManagerOutput.h"
#include "ExManagerTexture.h"
#include "ExManagerPVS.h"
#include "ExManagerCollision.h"
#include "ExManagerEntite.h"
#include "ExManagerCam.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 "ExPredefinedObject.h"
#include "ExCFile.h"
#include "ExCOptions.h"
Go to the source code of this file.
|
Definition at line 360 of file Main.cpp. References ExManagerOutput::DrawScene(), and ManagerOutPut. Referenced by SetGlutCallBack().
00360 {ManagerOutPut->DrawScene();} |
|
|
|
Definition at line 353 of file Main.cpp. References ExManagerInputGLUT::Focus(), and ManagerInputGLUT. Referenced by SetGlutCallBack().
00353 {ManagerInputGLUT->Focus(state);} |
|
Definition at line 226 of file Main.cpp. References Guard, InitGlExtension(), and UnGuard. Referenced by InitGlExtension(), and main().
00227 { 00228 Guard(void InitGlExtension(void)) 00229 char *extList = (char *) glGetString(GL_EXTENSIONS); 00230 00231 //checking for compiled vertex array 00232 if(extList && strstr(extList,"GL_EXT_compiled_vertex_array")) 00233 { 00234 #ifdef UNIX_SRC 00235 00236 #else 00237 glLockArraysEXT = (PFNGLLOCKARRAYSEXTPROC) wglGetProcAddress("glLockArraysEXT"); 00238 glUnlockArraysEXT = (PFNGLUNLOCKARRAYSEXTPROC) wglGetProcAddress("glUnLockArraysEXT"); 00239 #endif 00240 } 00241 00242 UnGuard 00243 } |
|
Definition at line 245 of file Main.cpp. References ExManagerWindow::GlutCallBack, Guard, ExManagerSound::Init(), ExManagerTexture::Init(), ExManagerConsole::Init(), ExManagerCommand::Init(), ExManagerCam::Init(), ExManagerEntite::Init(), ExManagerOutput::Init(), InitManager(), ManagerCam, ManagerCommand, ManagerConsole, ManagerEntite, ManagerOutPut, ManagerSound, ManagerTexture, ManagerWindow, SetGlutCallBack(), and UnGuard. Referenced by InitManager(), and main().
00246 { 00247 Guard(void InitManager(void)) 00248 ManagerWindow->GlutCallBack=&SetGlutCallBack; 00249 ManagerOutPut->Init(); 00250 ManagerEntite->Init(); 00251 ManagerCam->Init(); 00252 ManagerCommand->Init(); 00253 ManagerConsole->Init(); 00254 ManagerTexture->Init(); 00255 ManagerSound->Init(); 00256 00257 UnGuard 00258 } |
|
Definition at line 348 of file Main.cpp. References ExManagerInputGLUT::Key(), and ManagerInputGLUT. Referenced by SetGlutCallBack().
00348 {ManagerInputGLUT->Key(key,x,y);} |
|
Definition at line 349 of file Main.cpp. References ExManagerInputGLUT::KeyUp(), and ManagerInputGLUT. Referenced by SetGlutCallBack().
00349 {ManagerInputGLUT->KeyUp(key,x,y);} |
|
Definition at line 354 of file Main.cpp. References ManagerInputGLUT, and ExManagerInputGLUT::MouseMotion(). Referenced by SetGlutCallBack().
00354 {ManagerInputGLUT->MouseMotion(x,y);} |
|
Definition at line 352 of file Main.cpp. References ManagerInputGLUT, and ExManagerInputGLUT::Mouse(). Referenced by SetGlutCallBack().
00352 {ManagerInputGLUT->Mouse(button,state,x,y);} |
|
Definition at line 355 of file Main.cpp. References ManagerInputGLUT, and ExManagerInputGLUT::MousePassiveMotion(). Referenced by SetGlutCallBack().
00355 {ManagerInputGLUT->MousePassiveMotion(x,y);} |
|
Definition at line 361 of file Main.cpp. References ManagerOutPut, and ExManagerOutput::Reshape(). Referenced by SetGlutCallBack().
00361 {ManagerOutPut->Reshape(w,h);} |
|
Definition at line 89 of file Main.cpp. References Guard, ManagerConsole, UnGuard, and ExManagerConsole::Write(). Referenced by SetManagerLink().
00090 { 00091 Guard(void RoutingtoConsole(const char *Label)) 00092 ManagerConsole->Write(Label); 00093 UnGuard 00094 } |
|
Definition at line 260 of file Main.cpp. References display(), Focus(), ExManagerInterface::init(), ExManagerOutput::Init(), ExManagerConsole::Init(), InitBasicObjectList(), ExManagerInputGLUT::IsJoystick(), ExManagerInputGLUT::IsKeyboard(), ExManagerInputGLUT::IsMouse(), ExManagerInputGLUT::IsSpaceBall(), ExManagerInputGLUT::IsTablet(), keyboard(), keyboardup(), ExManagerEntite::MakeGlListForAll(), ManagerConsole, ManagerEntite, ManagerInputGLUT, ManagerInterface, ManagerOutPut, MotionFunc(), Mouse(), PassiveMotionFunc(), ExManagerInterface::Reset(), reshape(), SpaceballMotionFunc(), SpaceballRotateFunc(), spekeyboard(), spekeyboardup(), TabletButtonFunc(), and TabletMotionFunc(). Referenced by InitManager(), and main().
00261 { 00262 //------------------------------------------------ 00263 //Adressage des Callbacks Keyboard 00264 //------------------------------------------------ 00265 if(ManagerInputGLUT->IsKeyboard()) 00266 { 00267 glutKeyboardFunc(keyboard); 00268 glutKeyboardUpFunc(keyboardup); 00269 glutSpecialFunc(spekeyboard); 00270 glutSpecialUpFunc(spekeyboardup); 00271 }else 00272 { 00273 glutKeyboardFunc(NULL); 00274 glutKeyboardUpFunc(NULL); 00275 glutSpecialFunc(NULL); 00276 glutSpecialUpFunc(NULL); 00277 } 00278 //------------------------------------------------ 00279 //Adressage des Callbacks Mouse 00280 //------------------------------------------------ 00281 if(ManagerInputGLUT->IsMouse()) 00282 { 00283 glutMouseFunc(Mouse); 00284 glutEntryFunc(Focus); 00285 glutMotionFunc(MotionFunc); 00286 glutPassiveMotionFunc(PassiveMotionFunc); 00287 } 00288 else 00289 { 00290 glutMouseFunc(NULL); 00291 glutEntryFunc(NULL); 00292 glutMotionFunc(NULL); 00293 glutPassiveMotionFunc(NULL); 00294 } 00295 //------------------------------------------------ 00296 //Adressage des Callbacks Joystick 00297 //------------------------------------------------ 00298 if(ManagerInputGLUT->IsJoystick()) 00299 { 00300 } 00301 else 00302 { 00303 } 00304 //------------------------------------------------ 00305 //Adressage des Callbacks SpaceBall 00306 //------------------------------------------------ 00307 if(ManagerInputGLUT->IsSpaceBall()) 00308 { 00309 glutSpaceballMotionFunc(SpaceballMotionFunc); 00310 glutSpaceballRotateFunc(SpaceballRotateFunc); 00311 } 00312 else 00313 { 00314 glutSpaceballRotateFunc(NULL); 00315 glutSpaceballMotionFunc(NULL); 00316 } 00317 //------------------------------------------------ 00318 //Adressage des Callbacks Tablet 00319 //------------------------------------------------ 00320 if(ManagerInputGLUT->IsTablet()) 00321 { 00322 glutTabletMotionFunc(TabletMotionFunc); 00323 glutTabletButtonFunc(TabletButtonFunc); 00324 } 00325 else 00326 { 00327 glutTabletMotionFunc(NULL); 00328 glutTabletButtonFunc(NULL); 00329 } 00330 //------------------------------------------------ 00331 //Adressage des Callbacks Affichage 00332 //------------------------------------------------ 00333 glutDisplayFunc(display); 00334 glutIdleFunc(display); 00335 glutReshapeFunc(reshape); 00336 //------------------------------------------------ 00337 //List affichage 00338 //------------------------------------------------ 00339 ManagerConsole->Init(); 00340 ManagerEntite->MakeGlListForAll(); 00341 InitBasicObjectList(); 00342 ManagerOutPut->Init(); 00343 ManagerInterface->Reset(); 00344 ManagerInterface->init(); 00345 00346 } |
|
|
Definition at line 356 of file Main.cpp. References ManagerInputGLUT, and ExManagerInputGLUT::SpaceballMotion(). Referenced by SetGlutCallBack().
00356 {ManagerInputGLUT->SpaceballMotion(x,y,z);} |
|
Definition at line 357 of file Main.cpp. References ManagerInputGLUT, and ExManagerInputGLUT::SpaceballRotate(). Referenced by SetGlutCallBack().
00357 {ManagerInputGLUT->SpaceballRotate(x,y,z);} |
|
Definition at line 350 of file Main.cpp. References ExManagerInputGLUT::KeySpe(), and ManagerInputGLUT. Referenced by SetGlutCallBack().
00350 {ManagerInputGLUT->KeySpe(key,x,y);} |
|
Definition at line 351 of file Main.cpp. References ExManagerInputGLUT::KeySpeUp(), and ManagerInputGLUT. Referenced by SetGlutCallBack().
00351 {ManagerInputGLUT->KeySpeUp(key,x,y);} |
|
Definition at line 359 of file Main.cpp. References ManagerInputGLUT, and ExManagerInputGLUT::TabletButton(). Referenced by SetGlutCallBack().
00359 {ManagerInputGLUT->TabletButton(button,state,x,y);} |
|
Definition at line 358 of file Main.cpp. References ManagerInputGLUT, and ExManagerInputGLUT::TabletMotion(). Referenced by SetGlutCallBack().
00358 {ManagerInputGLUT->TabletMotion(x,y);} |
|
Definition at line 101 of file Main.h. Referenced by main(), and SetManagerLink(). |
|
Definition at line 92 of file Main.h. Referenced by InitManager(), main(), and SetManagerLink(). |
|
Definition at line 90 of file Main.h. Referenced by main(), and SetManagerLink(). |
|
Definition at line 96 of file Main.h. Referenced by InitManager(), main(), and SetManagerLink(). |
|
Definition at line 86 of file Main.h. Referenced by InitManager(), main(), RoutingtoConsole(), SetGlutCallBack(), and SetManagerLink(). |
|
Definition at line 91 of file Main.h. Referenced by InitManager(), main(), SetGlutCallBack(), and SetManagerLink(). |
|
Definition at line 100 of file Main.h. Referenced by main(), and SetManagerLink(). |
|
Definition at line 98 of file Main.h. Referenced by main(), and SetManagerLink(). |
|
Definition at line 103 of file Main.h. Referenced by main(), and SetManagerLink(). |
|
Definition at line 102 of file Main.h. Referenced by Focus(), keyboard(), keyboardup(), main(), MotionFunc(), Mouse(), PassiveMotionFunc(), SetGlutCallBack(), SetManagerLink(), SpaceballMotionFunc(), SpaceballRotateFunc(), spekeyboard(), spekeyboardup(), TabletButtonFunc(), and TabletMotionFunc(). |
|
Definition at line 94 of file Main.h. Referenced by main(), SetGlutCallBack(), and SetManagerLink(). |
|
Definition at line 99 of file Main.h. Referenced by main(), and SetManagerLink(). |
|
Definition at line 95 of file Main.h. Referenced by main(), and SetManagerLink(). |
|
Definition at line 93 of file Main.h. Referenced by main(), and SetManagerLink(). |
|
Definition at line 87 of file Main.h. Referenced by display(), InitManager(), main(), reshape(), SetGlutCallBack(), and SetManagerLink(). |
|
Definition at line 97 of file Main.h. Referenced by main(), and SetManagerLink(). |
|
Definition at line 89 of file Main.h. Referenced by main(), and SetManagerLink(). |
|
Definition at line 105 of file Main.h. Referenced by InitManager(), main(), and SetManagerLink(). |
|
Definition at line 104 of file Main.h. Referenced by main(), and SetManagerLink(). |
|
Definition at line 88 of file Main.h. Referenced by InitManager(), main(), and SetManagerLink(). |
|
Definition at line 85 of file Main.h. Referenced by InitManager(), main(), and SetManagerLink(). |