public M2File(string fileName) : base(fileName) { Bones = new M2AnimationBone[0]; UvAnimations = new M2UVAnimation[0]; ColorAnimations = new M2TexColorAnimation[0]; Transparencies = new M2AlphaAnimation[0]; GlobalSequences = new uint[0]; Animations = new AnimationEntry[0]; AnimationLookup = new short[0]; mModelName = string.Empty; mFileName = fileName; mDirectoryParts = Path.GetDirectoryName(fileName).Split(Path.DirectorySeparatorChar); }
public M2File(string fileName) { Bones = new M2AnimationBone[0]; UvAnimations = new M2UVAnimation[0]; ColorAnimations = new M2TexColorAnimation[0]; Transparencies = new M2AlphaAnimation[0]; GlobalSequences = new uint[0]; Animations = new AnimationEntry[0]; AnimLookup = new short[0]; mModelName = string.Empty; mFileName = fileName; mRootPath = Path.GetDirectoryName(mFileName); }
private void SetUvData(M2UVAnimation[] animations) { mUvAnimations = animations; UvMatrices = new Matrix[animations.Length]; mUvStart = Environment.TickCount; }