Beispiel #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;
 }
Beispiel #2
0
 static extern void sfSprite_setTextureRect(IntPtr CPointer, IntRect Rect);
Beispiel #3
0
 static extern FloatRect sfTexture_getTexCoords(IntPtr texture, IntRect rectangle);
Beispiel #4
0
 static extern IntPtr sfTexture_createFromImage(IntPtr image, ref IntRect area);
Beispiel #5
0
 static extern IntPtr sfTexture_createFromStream(IntPtr stream, ref IntRect area);
Beispiel #6
0
 static extern IntPtr sfTexture_createFromFile(string filename, ref IntRect area);