Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 3
0
 private void SetAlphaData(M2AlphaAnimation[] animations)
 {
     mAlphaAnimations = animations;
     Transparencies = new float[animations.Length];
     mAlphaStart = Environment.TickCount;
 }