Get X and Y offset of sf::View
问题 How can I get the X and Y offset of sf::View, I'm using sf::View as my 2d camera so when I click the mouse I get the mouse X and Y coords of the tile I'm clicking on void LMButtonDown(int mX, int mY) { printf("[%d][%d]\n", mX / TILE_SIZE, mY / TILE_SIZE); } This is great, but once I move the camera sf::View the coords, as expected dont take into account the sf::View offset. I dont see any function to get X or Y in the Documentation so I can take into account for the offset. Any help with this