public M2ModelRenderer(M2File model) { mModel = model; mAnimator = ModelFactory.Instance.CreateAnimator(model); mAnimator.SetAnimationByIndex(0); mAnimator.Update(); }
public M2BatchRenderer(M2File model) { mModel = model; mAnimator = ModelFactory.Instance.CreateAnimator(model); mAnimator.SetAnimationByIndex(0); StaticAnimationThread.Instance.AddAnimator(mAnimator); }
public M2SingleRenderer(M2File model) { mModel = model; if (model.NeedsPerInstanceAnimation) { mAnimationMatrices = new Matrix[model.GetNumberOfBones()]; mAnimator = ModelFactory.Instance.CreateAnimator(model); if (mAnimator.SetAnimation(AnimationType.Stand) == false) { mAnimator.SetAnimationByIndex(0); } } }