31
Graphics / Re: calculating pixels in xy
« on: October 25, 2015, 01:39:52 am »
If you are setting the size of your window on creation then you know it's dimensions. The top left corner is 0,0. The bottom right is window width, window height. You can figure out what you need from there, but just in case you are allowing window resizing you can get the size of the current render area of the window with http://www.sfml-dev.org/documentation/2.3.2/classsf_1_1Window.php#ad2b55a731ba1680fe67292991ef1610e then calculate positions from there.