Changeset 544 for code/branches/FICN
- Timestamp:
- Dec 16, 2007, 6:00:13 PM (17 years ago)
- Location:
- code/branches/FICN/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/main.cc
r534 r544 67 67 #endif 68 68 69 int main(int argc, char **argv) 69 #ifdef __cplusplus 70 extern "C" { 71 #endif 72 73 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 74 #define WIN32_LEAN_AND_MEAN 75 #include "windows.h" 76 INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT) 77 { 78 char *argv[2]; 79 argv[0] = "asdfprogramName"; 80 argv[1] = strCmdLine; 81 int argc = 2; 82 #else 83 int main(int argc, char **argv) 84 { 85 #endif 86 try { 87 SignalHandler::getInstance()->doCatch(argv[0], "orxonox.log"); 88 Orxonox* orx = Orxonox::getSingleton(); 89 #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE 90 orx->init(argc, argv, macBundlePath()); 91 orx->start(); 92 #else 93 orx->init(argc, argv, ""); 94 orx->start(); 95 #endif 96 } 97 catch (Ogre::Exception& e) { 98 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 99 MessageBoxA(NULL, e.getFullDescription().c_str(), 100 "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL); 101 #else 102 std::cerr << "Exception:\n"; 103 std::cerr << e.getFullDescription().c_str() << "\n"; 104 #endif 105 return 1; 106 } 107 return 0; 108 } 109 110 #ifdef __cplusplus 111 } 112 #endif 113 114 115 /*int main(int argc, char **argv) 70 116 { 71 117 try … … 92 138 } 93 139 140 */ -
code/branches/FICN/src/orxonox/particle/ParticleInterface.cc
r535 r544 28 28 #include "ParticleInterface.h" 29 29 #include <Ogre.h> 30 #include <OIS/OIS.h>30 //#include <OIS/OIS.h> 31 31 // #include <CEGUI/CEGUI.h> 32 32 // #include <CEGUIRenderer.h>
Note: See TracChangeset
for help on using the changeset viewer.