private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            WindowInteropHelper wh = new WindowInteropHelper(this);

            wh.EnsureHandle();
            IntPtr hwnd = wh.Handle;

            KeyboardInput.CreateDevice(hwnd);
            MouseInput.CreateDevice(hwnd);

            WorldEditor.Controls.ObjectWindow w = new Controls.ObjectWindow();
            Window owner = Window.GetWindow(this);

            w.Owner                 = owner;
            w.ShowInTaskbar         = false;
            w.Width                 = 400;
            w.Height                = 500;
            w.WindowStartupLocation = System.Windows.WindowStartupLocation.Manual;
            w.Left  = owner.Width - 400;
            w.Top   = owner.Top + 60;
            w.Title = "Object window";
            w.Show();

            WorldEditor.Controls.CellView w2 = new Controls.CellView();
            w2.Owner                 = owner;
            w2.ShowInTaskbar         = false;
            w2.Width                 = 450;
            w2.Height                = 300;
            w2.WindowStartupLocation = System.Windows.WindowStartupLocation.Manual;
            w2.Left  = owner.Width - 500;
            w2.Top   = owner.Top + 700;
            w2.Title = "Cell view";
            w2.Show();
        }
        protected override void Initialize()
        {
            //GameWorld.Initialize(this.Window, GraphicsDeviceManager.ScreenWidth, GraphicsDeviceManager.ScreenHeight);
            //GameWorld.DeSerializeWorld(@"..\..\Content\export\World\physicsTest.world");

            PlayerInput.Initialize();
            float aspectRatio = (float)GraphicsDeviceManager.ScreenWidth / (float)GraphicsDeviceManager.ScreenHeight;

            Camera.CurrentBehavior = Behavior.Spectator;
            Camera.Perspective((float)Math.PI / 4.0f, aspectRatio, 1.0f, 1000000.0f);
            Camera.Position = new Vector3(0.0f, 10.0f, 0.0f);
            Camera.Velocity = new Vector3(40.0f, 40.0f, 40.0f);


            KeyboardInput.CreateDevice(this.Window);
            MouseInput.CreateDevice(this.Window);
            PrintText.Initialize();
            EffectManager.Initialize();
            SpriteDrawer.Initialize();
            DeferredRenderer.Initialize(GraphicsDeviceManager.ScreenWidth, GraphicsDeviceManager.ScreenHeight);

            SkyDome.Initialize();
            PhysicsEngine.Initialize();
        }