public void launch(RenderEngine renderEngine, FileIO.fileType type)
        {
            renderer  = renderEngine;
            this.type = type;
            switch (type)
            {
            case FileIO.fileType.skeletalAnimation:
                control    = renderer.ctrlSA;
                animations = renderer.models.skeletalAnimation;
                break;

            case FileIO.fileType.materialAnimation:
                control    = renderer.ctrlMA;
                animations = renderer.models.materialAnimation;
                break;

            case FileIO.fileType.visibilityAnimation:
                control    = renderer.ctrlVA;
                animations = renderer.models.visibilityAnimation;
                break;
            }

            control.FrameChanged += Control_FrameChanged;
            updateList();
        }
Example #2
0
 public void launch(RenderEngine renderEngine, RenderEngine.animationControl <T> control, List <T> animations, FileIO.fileType type)
 {
     renderer              = renderEngine;
     this.type             = type;
     this.animations       = animations;
     this.control          = control;
     control.FrameChanged += Control_FrameChanged;
     updateList();
 }