public Sprite2D(Texture2D texture, Vector2 position) { this.texture = texture; this.width = texture.Width; this.height = texture.Height; this.position = position; this.state = SpriteState.Enabled; }
public Sprite2D(Texture2D texture, int x, int y) { this.texture = texture; this.width = texture.Width; this.height = texture.Height; this.position.X = x; this.position.Y = y; this.state = SpriteState.Enabled; }