setScale


Description:

[ CCode ( cname = "sfSprite_setScale" ) ]
public void setScale (Vector2f scale)

set the scale factors of the object

This function completely overwrites the previous scale. See the scale function to add a factor based on the previous scale instead. The default scale of a transformable object is (1, 1).

Parameters:

scale

New scale factors

See also:

getScale