Yo,
I made a class called Button.
It inherits from String, but also has an Image and Sprite member.
I assumed if I wanted my RenderWindow to draw the Sprite and then the String,
I needed this in the .hpp file:
protected:
virtual void Render(RenderTarget& Target);
And this in the .cpp file:
void Render(RenderTarget& Target)
{
Target.Draw(sprite);
}
It draws the String, the parent class, but does nothing with the sprite, the member. What is the most appropriate way of doing this?