示例#1
0
 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);
 }
示例#2
0
 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);
 }
示例#3
0
 private void SetUvData(M2UVAnimation[] animations)
 {
     mUvAnimations = animations;
     UvMatrices = new Matrix[animations.Length];
     mUvStart = Environment.TickCount;
 }