Пример #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);
Пример #3
0
 static extern FloatRect sfTexture_getTexCoords(IntPtr texture, IntRect rectangle);
Пример #4
0
 static extern IntPtr sfTexture_createFromImage(IntPtr image, ref IntRect area);
Пример #5
0
 static extern IntPtr sfTexture_createFromStream(IntPtr stream, ref IntRect area);
Пример #6
0
 static extern IntPtr sfTexture_createFromFile(string filename, ref IntRect area);