Example #1
0
 protected Sprite(Texture texture, Vector2 position, Vector2 size)
 {
     Texture = texture;
     Position = position;
     Size = size;
 }
Example #2
0
 public Sprite(string sprite, Vector2 position)
 {
     Texture = new Texture(sprite);
     Position = position;
     Size = Texture.Size;
 }