1
Feature requests / Some ideas
« on: May 13, 2008, 01:38:04 pm »
It would be nice if Sprites had separate centers for scale, rotation, and position.
I also don't like it that when you scale a sprite, the rotation center doesn't stay in the center of the sprite.
A function for checking overlaping of sprites would be nice. It should also consider scale and rotation of the sprites.
bool sf::Sprite::Collides(const fs::Sprite &s1, const fs::Sprite &s2);
So if two non-trasparent pixels of the sprites would overlap, the function would return true.
Btw why have Sprites a method called Scale() and another called SetScale()? Do they differ in any way?
I also don't like it that when you scale a sprite, the rotation center doesn't stay in the center of the sprite.
A function for checking overlaping of sprites would be nice. It should also consider scale and rotation of the sprites.
bool sf::Sprite::Collides(const fs::Sprite &s1, const fs::Sprite &s2);
So if two non-trasparent pixels of the sprites would overlap, the function would return true.
Btw why have Sprites a method called Scale() and another called SetScale()? Do they differ in any way?