예제 #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);