Hi guys,
I might be doing this completely the wrong way but I'm trying to access functions contained by a unique_ptr.
Here's what I'm trying to do:
Code:
while(mp_renderManager->getWindow()->close()) {
...
}
Now I'm able to access getWindow() but, I cannot however get to close().
in my RenderWindow class it's as follows:
Code:
std::unique_ptr<sf::RenderWindow> mp_window;
...
const std::unique_ptr<sf::RenderWindow> const { return mp_renderWindow; }
How can I access the functions of sf::RendreWindow when it's wrapped in a unique_ptr?
If this isn't possible, can I do it with a shared_ptr or something?
Thanks.
Jamie.