public AssetTextureStrip(String name, Texture2D content, StripOrientation orientation, Point frameSize) { this.name = name; this._texture = content; this._orientation = orientation; _size = frameSize; UpdateRectangleFrames(); _length = rectangleFrames.Length; }
public void setContent(Texture2D newContent, Point newFrameSize, StripOrientation newStripOrientation) { _size = newFrameSize; _texture = newContent; _orientation = newStripOrientation; _center = new Vector2(_size.X, _size.Y) / 2f; UpdateRectangleFrames(); _length = rectangleFrames.Length; }