Exemple #1
0
    static void Main(string[] args)
    {
        Demos.TestMode = args.Length > 0 && args[0].ToLower() == "-test";

        StereoKitApp.settings.assetsFolder = Program.Root;
        if (!StereoKitApp.Initialize("StereoKit C#", Demos.TestMode ? Runtime.Flatscreen : Runtime.MixedReality, true))
        {
            Environment.Exit(1);
        }
        CommonInit();

        Demos.FindDemos();
        Demos.SetActive(args.Length > 0 ? args[0] : "Geo");
        Demos.Initialize();

        while (StereoKitApp.Step(() =>
        {
            Demos.Update();
            CommonUpdate();
        }))
        {
            ;
        }

        Demos.Shutdown();
        CommonShutdown();

        StereoKitApp.Shutdown();
    }
Exemple #2
0
    /// :End:

    //////////////////////

    static void Main(string[] args)
    {
        Demos.TestMode = args.Length > 0 && args[0].ToLower() == "-test";
        Time.Scale     = Demos.TestMode ? 0 : 1;

        Log.Filter = LogLevel.Diagnostic;
        StereoKitApp.settings.assetsFolder = Program.Root;
        if (!StereoKitApp.Initialize("StereoKit C#", Demos.TestMode ? Runtime.Flatscreen : Runtime.MixedReality, true))
        {
            Environment.Exit(1);
        }

        if (Demos.TestMode)
        {
            Input.HandVisible(Handed.Max, false);
        }

        CommonInit();

        Demos.FindDemos();
        Demos.SetActive(args.Length > 0 ? args[0] : "Lines");
        Demos.Initialize();

        while (StereoKitApp.Step(() =>
        {
            Demos.Update();
            CommonUpdate();
        }))
        {
            ;
        }

        Demos.Shutdown();
        CommonShutdown();

        StereoKitApp.Shutdown();
    }