[ CCode ( cname = "sfSprite_setTexture" ) ]
public void setTexture (Texture texture, bool resetRect = false)
Set the texture of the sprite.
texture |
The texture to set. |
resetRect |
Whether to reset the texture rectangle to the size of the new texture. |