Exemple #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);
 }
Exemple #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);
 }
Exemple #3
0
 private void SetTexColorData(M2TexColorAnimation[] animations)
 {
     mTexColorAnimations = animations;
     Colors = new Vector4[animations.Length];
     mTexColorStart = Environment.TickCount;
 }