1
Window / [SOLVED] Accessing the window in other functions
« on: July 14, 2010, 01:11:10 am »
Hi I'm new to SFML and I'm trying to get a basic tile engine working, however when I try to pass a RenderWindow object to my Tile class I get an error: "cannot access private member declared in class 'sf::NonCopyable'".
Is there a way to pass some instance of the window to my class to directly change it? If not is there some way I can pass the window's info to my class so I can draw on it and return it back to the class where it's initialized and update the window with the return value?
If neither of those is possible how can I draw to my window from another class without setting the variable as public and directly calling it?
Thanks for the help,
-dez
Is there a way to pass some instance of the window to my class to directly change it? If not is there some way I can pass the window's info to my class so I can draw on it and return it back to the class where it's initialized and update the window with the return value?
If neither of those is possible how can I draw to my window from another class without setting the variable as public and directly calling it?
Thanks for the help,
-dez