コード例 #1
0
ファイル: Sandstorm.cs プロジェクト: saschaarthur/sandstorm
 public Sandstorm(SandstormEditor editor, SandstormBeamer beamer, Kinect kinectSytem)
 {
     _kinectSystem = kinectSytem;
     _editor = editor;
     _beamer = beamer;
     Mouse.WindowHandle = _editor.Handle;
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: saschaarthur/sandstorm
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            SandstormEditor editor = new SandstormEditor();
            editor.Disposed += new EventHandler(form_Disposed);

            SandstormBeamer beamer = new SandstormBeamer();
            beamer.Disposed += new EventHandler(form_Disposed);

            kinectSystem = new Kinect();

            using (game = new Sandstorm(editor, beamer, kinectSystem))
            {
                game.Run();
            }
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: elektralex/sandstorm
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            SandstormEditor editor = new SandstormEditor();

            editor.Disposed += new EventHandler(form_Disposed);

            SandstormBeamer beamer = new SandstormBeamer();

            beamer.Disposed += new EventHandler(form_Disposed);

            kinectSystem = new SandstormKinectCore();

            using (game = new Sandstorm(editor, beamer, kinectSystem))
            {
                game.Run();
            }
        }
コード例 #4
0
        public Sandstorm(SandstormEditor editor, SandstormBeamer beamer, SandstormKinectCore kinectSystem)
        {
            _kinectSystem = kinectSystem;
            _editor       = editor;
            _beamer       = beamer;
            _editor.TerrainHeightChanged   += _editor_TerrainHeight_Changed;
            _editor.TerrainColorChanged    += _editor_TerrainColor_Changed;
            _editor.TerrainContoursChanged += _editor_TerrainContour_Changed;
            Mouse.WindowHandle              = _editor.Handle;
            graphics = new GraphicsDeviceManager(this);
            graphics.PreparingDeviceSettings += new System.EventHandler <PreparingDeviceSettingsEventArgs>(graphics_PreparingDeviceSettings);
            Content.RootDirectory             = "Content";
            //this.IsFixedTimeStep = false;

            _fpsCounter = new FPSCounter(this);
            Components.Add(_fpsCounter);

            graphics.SynchronizeWithVerticalRetrace = false;
        }