1 #ifndef GONG_APP_RUNTIME_HPP_
2 #define GONG_APP_RUNTIME_HPP_
5 #include "HeadlessEnvironment.hpp"
14 class HeadlessApplication;
16 /// Parse and interpret arguemnts, then set up the environment and execute.
21 /// default behaviour: run until user quits, dynamic timesteps
23 /// quit after n frames
25 /// quit after n milliseconds
27 /// quit after n frames, use fixed timestap
29 /// display error message and quit with failure
40 app::Config game = app::Config();
41 HeadlessEnvironment::Config env = HeadlessEnvironment::Config();
46 void Initialize(int argc, const char *const *argv);
51 void ReadArgs(int argc, const char *const *argv);
52 void ReadPreferences();
58 void Run(HeadlessApplication &);