I think this problem is from my lack of C++ experience, so forgive me if it's silly. I'm creating a Tile class for the usual reasons, and wanted to just extend RectangleShape so that I could keep all the nice things already available and just add extras for my implementation. So I have it defined as:
class Tile : public sf::RectangleShape {
public:
Tile(sf::Vector2f pos, const sf::Color color);
void render(sf::RenderWindow& window);
};
The confusion I'm having is with how to render something like this. With a RectangleShape, you can just call window.draw(rectshape). I was hoping to define it something like
void Tile::render(sf::RenderWindow& window) {
window.draw(this);
}
but alas it doesn't work that way.