Example #1
0
 public FrameSprite3D(Texture2D texture, Vector3 position, Quaternion rotation, Vector3 scale, SpriteSheetDimensions gridDimensions)
     : base(texture, position, rotation, scale)
 {
     this.gridDimensions = gridDimensions;
     currentFrame = new Point(0, 0);
 }
Example #2
0
 public FrameSprite3D(Texture2D texture, Vector3 position, SpriteSheetDimensions gridDimensions)
     : this(texture, position, Quaternion.CreateFromYawPitchRoll(0, 0, 0), Vector3.One, gridDimensions)
 {
 }
Example #3
0
 public AnimationData(Texture2D texture, SpriteSheetDimensions dims, string name)
 {
     this.texture = texture;
     this.dimensions = dims;
     this.name = name;
 }