Example #1
0
        private void LoadWif(string path)
        {
            var animationVM = new AnimationViewModel();

            WifLoader.LoadInSeparateThread(path, animationVM.CreateReceiver());

            var viewer = new AnimationWindow(animationVM);

            viewer.Show();
        }
        private void OnRenderScript()
        {
            if (HasFilename())
            {
                Save();
            }

            var animationVM = new AnimationViewModel();
            var raytracer   = new Renderer();
            var receiver    = animationVM.CreateReceiver();

            raytracer.Render(this.Source.Text, receiver);

            var viewer = new AnimationWindow(animationVM);

            viewer.Show();
        }