#include "Main.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
void | RoutingtoConsole (const char *Label) |
void | SetManagerLink (void) |
void | InitGlExtension (void) |
void | InitManager (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 |
|
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, ExManagerConsole::Init(), ExManagerOutput::Init(), ExManagerInterface::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 25 of file Main.cpp. Referenced by main(). |