Hi,
I'm sorry if this is a silly question, but I can't get my head around how to pass a reference or pointer to my sf::RenderWindow instance.
I have a VideoManager class which holds a sf::RenderWindow private member variable. How do I write a get function that will give other classes access to this variable? I've tried passing by reference and pointeres in various combinations, but whatever I try brings up the error:
cannot access private member declared in class 'sf::NonCopyable
which I am guessing is something to do with a singleton implementaiton within SFML.
I would be grateful for any pointers, as I feel I'm missing something obvious here...
Thanks,
Wibbs