I have a base class Panel and various derived classes like PlayerPanel.
Currently the base class holds an sf::Texture* and I assign them from my Interface class like objPlayerPanel.texPanel = &texInterface. I do this many times for each derived panel.
After completing the UI, it seems that all the derived panels will use the same texture file. Originally I thought I might have different files for different panels, but that didn't turn out to be the case.
Should I keep the code as it is, or should I instantiate the base class and let it load the texture?