SFML community forums

Help => Graphics => Topic started by: orgos on August 27, 2010, 03:26:40 pm

Title: Overloading SetOrigin.
Post 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?
Title: Overloading SetOrigin.
Post by: Laurent on August 27, 2010, 03:29:00 pm
Code: [Select]
void Image::SetOrigin(...)
{
    sf::Sprite::SetOrigin(...);
}