Пример #1
0
 public Sprite2D(Texture2D texture, Vector2 position)
 {
     this.texture  = texture;
     this.width    = texture.Width;
     this.height   = texture.Height;
     this.position = position;
     this.state    = SpriteState.Enabled;
 }
Пример #2
0
 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;
 }