public M2BatchRenderer(M2File model) { mModel = model; mAnimator = ModelFactory.Instance.CreateAnimator(model); mAnimator.SetAnimationByIndex(0); StaticAnimationThread.Instance.AddAnimator(mAnimator); }
public M2ModelRenderer(M2File model) { mModel = model; mAnimator = ModelFactory.Instance.CreateAnimator(model); mAnimator.SetAnimationByIndex(0); mAnimator.Update(); }
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"); }
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"); }