SFML community forums
Help => Graphics => Topic started by: orgos on August 27, 2010, 03:26:40 pm
-
Hi
Here another doubt, as I say in my "Getting sprite coords?"
ege::Image inherit from sf::Sprite
I want to overload the SetOrigin method with some like this
SetOrigin(ege::HALIGN x, ege::VALIGN y)
but when I make this, I need to use the SetOrigin of the sf::Sprite (parent class).
What is the better way to make this?
-
void Image::SetOrigin(...)
{
sf::Sprite::SetOrigin(...);
}