Пример #1
0
        protected override void Update(GameTime gameTime)
        {
            //if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))
            //    Exit();

            GameUtilities.Time = gameTime;

            if (InputEngine.IsKeyHeld(Keys.Escape))
            {
                Exit();
            }

            mainCamera.Update();
            gameObjects.Clear();
            //quadTree.Process(mainCamera.Frustum, ref gameObjects);
            octree.Process(mainCamera.Frustum, ref gameObjects);

            base.Update(gameTime);
        }