Ejemplo n.º 1
0
        static int Main(string [] args)
        {
            Rhino.RhinoDoc doc  = null;
            VrGame         game = new VrGame(ref doc);

            game.Run();
            return(0);
        }
Ejemplo n.º 2
0
        protected override Result RunCommand(RhinoDoc doc, RunMode mode)
        {
            // Launch the "Game"
            // TODO: Launch only if not running.
            SparrowHawkEventListeners.Instance.Enable(true);
            RhinoApp.WriteLine("The {0} command will initialize VR.", EnglishName);
            Thread windowThread = new Thread(() => { VrGame SparrowHawkGame = new VrGame(ref doc); SparrowHawkGame.Run(); });

            windowThread.Start();
            return(Result.Success);
        }