Пример #1
0
 ////////////////////////////////////////////////////////////
 /// <summary>
 /// Construct the sprite from a source texture
 /// </summary>
 /// <param name="texture">Source texture to assign to the sprite</param>
 /// <param name="rectangle">Sub-rectangle of the texture to assign to the sprite</param>
 ////////////////////////////////////////////////////////////
 public Sprite(Texture texture, IntRect rectangle) :
     base(sfSprite_create())
 {
     Texture     = texture;
     TextureRect = rectangle;
 }
Пример #2
0
 static extern void sfSprite_setTextureRect(IntPtr CPointer, IntRect Rect);