Ejemplo n.º 1
0
        public static void Main()
        {
            if (!File.Exists("settings.xml"))
            {
                // settings is not existing, lets save default ones
                Settings.Instance.SaveSettings("settings.xml");

                // we can create gui at this point when it is implemented
            }

            Settings.Instance.LoadSettings("settings.xml");


            int  scrWidth  = Settings.Instance.video.windowWidth;
            int  scrHeight = Settings.Instance.video.windowHeight;
            bool fullScr   = Settings.Instance.video.fullScreen;

            using (OpenTkProjectWindow game = new OpenTkProjectWindow(scrWidth, scrHeight, fullScr))
            {
                game.Run(60);
            }
        }
Ejemplo n.º 2
0
 public static void Main()
 {
     using (OpenTkProjectWindow game = new OpenTkProjectWindow())
     {
         //Utilities.SetWindowTitle(example);
         game.Run(60);
     }
 }