1
Graphics / Re: mapPixelToCoords
« on: December 21, 2019, 05:36:23 pm »
Tyvm
Not sure i understand the answer but ill dig some more with that in mind
I assume this inheritance is what you describe to me.
https://www.sfml-dev.org/documentation/2.5.1-fr/classsf_1_1RenderWindow.php
To me the tutorial looked like i should create a RenderWindow named window then access it.
But i need to somehow access this function earlier in the chain.
sf::RenderWindow::mapPixelToCoords seems to show the function, would it be correct to just use it like this?
If so, any idea why i fail to understand that tutorial?
I don't see anything there that explains that.
Again tyvm for the help.
Not sure i understand the answer but ill dig some more with that in mind
I assume this inheritance is what you describe to me.
https://www.sfml-dev.org/documentation/2.5.1-fr/classsf_1_1RenderWindow.php
To me the tutorial looked like i should create a RenderWindow named window then access it.
But i need to somehow access this function earlier in the chain.
sf::RenderWindow::mapPixelToCoords seems to show the function, would it be correct to just use it like this?
If so, any idea why i fail to understand that tutorial?
I don't see anything there that explains that.
Again tyvm for the help.