Changeset 1670 for code/branches/gui/src/orxonox/Main.cc
- Timestamp:
- Aug 26, 2008, 4:26:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/Main.cc
r1664 r1670 44 44 #include "gamestates/GSRoot.h" 45 45 #include "gamestates/GSGraphics.h" 46 #include "gamestates/GSLevel.h" 46 #include "gamestates/GSStandalone.h" 47 #include "gamestates/GSServer.h" 48 #include "gamestates/GSClient.h" 47 49 #include "gamestates/GSGUI.h" 50 #include "gamestates/GSIO.h" 51 #include "gamestates/GSIOConsole.h" 48 52 49 53 using namespace orxonox; … … 77 81 78 82 79 #ifdef __cplusplus80 extern "C" {81 #endif83 //#ifdef __cplusplus 84 //extern "C" { 85 //#endif 82 86 83 87 int main(int argc, char** argv) … … 122 126 GSRoot root; 123 127 GSGraphics graphics; 124 GSLevel level; 128 GSStandalone standalone; 129 GSServer server; 130 GSClient client; 125 131 GSGUI gui; 132 GSIO io; 133 GSIOConsole ioConsole; 126 134 127 135 root.addChild(&graphics); 128 graphics.addChild(&level); 136 graphics.addChild(&standalone); 137 graphics.addChild(&server); 138 graphics.addChild(&client); 129 139 graphics.addChild(&gui); 130 140 141 root.addChild(&io); 142 io.addChild(&ioConsole); 143 131 144 root.feedCommandLine(argc, argv); 132 root.requestState(" root");133 root.tick(0.0f);134 root.requestState("");145 root.requestState("ioConsole"); 146 while (!root.isGameFinished()) 147 root.tick(0.0f); 135 148 136 149 return 0; 137 150 } 138 151 139 #ifdef __cplusplus140 }141 #endif152 //#ifdef __cplusplus 153 //} 154 //#endif
Note: See TracChangeset
for help on using the changeset viewer.