コード例 #1
0
ファイル: M2BatchRenderer.cs プロジェクト: Linrasis/WoWEditor
 public M2BatchRenderer(M2File model)
 {
     mModel = model;
     mAnimator = ModelFactory.Instance.CreateAnimator(model);
     mAnimator.SetAnimationByIndex(0);
     StaticAnimationThread.Instance.AddAnimator(mAnimator);
 }
コード例 #2
0
ファイル: M2ModelRenderer.cs プロジェクト: Linrasis/WoWEditor
 public M2ModelRenderer(M2File model)
 {
     mModel = model;
     mAnimator = ModelFactory.Instance.CreateAnimator(model);
     mAnimator.SetAnimationByIndex(0);
     mAnimator.Update();
 }
コード例 #3
0
ファイル: ModelFactory.cs プロジェクト: Linrasis/WoWEditor
        public IM2Animator CreateAnimator(M2File file)
        {
            var wodModel = file as WoD.M2File;
            if (wodModel != null)
                return new WoD.M2Animator(wodModel);

            var wotlkModel = file as Wotlk.M2File;
            if (wotlkModel != null)
                return new Wotlk.M2Animator(wotlkModel);

            throw new NotImplementedException("Version not yet implemented for m2 animations");
        }
コード例 #4
0
ファイル: ModelFactory.cs プロジェクト: veserine/Neo
        public IM2Animator CreateAnimator(M2File file)
        {
            var wodModel = file as WoD.M2File;

            if (wodModel != null)
            {
                return(new WoD.M2Animator(wodModel));
            }

            var wotlkModel = file as Wotlk.M2File;

            if (wotlkModel != null)
            {
                return(new Wotlk.M2Animator(wotlkModel));
            }

            throw new NotImplementedException("Version not yet implemented for m2 animations");
        }