Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Overloading SetOrigin.  (Read 1415 times)

0 Members and 1 Guest are viewing this topic.

orgos

  • Newbie
  • *
  • Posts: 27
    • View Profile
Overloading SetOrigin.
« 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Overloading SetOrigin.
« Reply #1 on: August 27, 2010, 03:29:00 pm »
Code: [Select]
void Image::SetOrigin(...)
{
    sf::Sprite::SetOrigin(...);
}
Laurent Gomila - SFML developer