public override void SetWindowSize(Vector2 WindowSize)
        {
            if (DrawCamera != null)
            {
                DrawCamera.SetSize(WindowSize);
            }

            base.SetWindowSize(WindowSize);
        }
        private void SetCamera()
        {
            Camera3DObject o = (Camera3DObject)MyCamera.get();

            if (o != null)
            {
                DrawCamera = o.MyCamera;
                DrawCamera.SetSize(WindowSize);
            }
        }
 public void SetCamera(Camera3D camera, Vector2 WindowSize)
 {
     Render.ViewWidth  = MyView.Width;
     Render.ViewHeight = MyView.Height;
     if (camera != null)
     {
         camera.SetSize(new Vector2(MyView.Width, MyView.Height));
         camera.SetMult(UVMult);
         //camera.SetOffset((WindowSize / 2 - (new Vector2(MyView.X, MyView.Y) + new Vector2(MyView.Width, MyView.Height) / 2)) * UVOffsetMult / WindowSize);
         camera.SetOffset(UVOffset);
     }
 }