Functionality class for a 2D scale. More...
Public Member Functions | |
| Scalable (sf::Vector2f scale=sf::Vector2f(1.f, 1.f)) | |
| (Default) Constructor | |
| void | SetScale (sf::Vector2f scale) |
| Sets the object's absolute scale. | |
| void | SetScale (float scaleX, float scaleY) |
| Sets the object's absolute scale. | |
| void | Scale (sf::Vector2f factor) |
| Multiplies the current scale with given factors. | |
| void | Scale (float factorX, float factorY) |
| Multiplies the current scale with given factors. | |
| sf::Vector2f | GetScale () const |
| Returns the object's absolute scale. | |
Functionality class for a 2D scale.
Stores a scale vector and provides methods to access it.