How can I keep render window in a class? I have this
//simController.h
class simController {
private:
sf::RenderWindow game;
public:
void execute();
void init();
void event();
void exit();
};
and this
//simController.cpp
void simController::init(){
game = sf::RenderWindow(sf::VideoMode(1280, 920), "Sim");
game.setFramerateLimit(0);
};
However, RenderWindows are uncopyable, so I cannot do this. I also cannot declare the window directly inside the class. So how can I store a RenderWindow in a class? it seems impossible.
Thanks