FS#126 - Add an optional parameter to Sprite::SetImage for automatic adjustment of the subrect
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1202 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
7a8cc0c76a
commit
ac0881f6a0
2 changed files with 10 additions and 5 deletions
|
@ -66,10 +66,11 @@ public :
|
|||
////////////////////////////////////////////////////////////
|
||||
/// Change the image of the sprite
|
||||
///
|
||||
/// \param image : New image
|
||||
/// \param image : New image
|
||||
/// \param adjustToNewSize : If true, the SubRect of the sprite will be adjusted to the size of the new image (false by default)
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
void SetImage(const Image& image);
|
||||
void SetImage(const Image& image, bool adjustToNewSize = false);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Set the sub-rectangle of the sprite inside the source image.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue