SFML community forums

Help => Graphics => Topic started by: HeinzK on August 25, 2017, 02:41:52 pm

Title: Window(200, 200) .. Pixel from Y(0 to 199) and from X(1 to 200)
Post by: HeinzK on August 25, 2017, 02:41:52 pm
deleted
Title: Re: Window(200, 200) .. Pixel from Y(0 to 199) and from X(1 to 200)
Post by: eXpl0it3r on August 25, 2017, 02:47:30 pm
See this thread (https://en.sfml-dev.org/forums/index.php?topic=22380.msg157394#msg157394).
Title: Re: Window(200, 200) .. Pixel from Y(0 to 199) and from X(1 to 200)
Post by: Laurent on August 26, 2017, 10:44:17 am
When dealing with float coordinates and their innaccuracy, == 0 doesn't mean much.
Title: Re: Window(200, 200) .. Pixel from Y(0 to 199) and from X(1 to 200)
Post by: Hapax on August 27, 2017, 02:09:49 am
Integers don't help here. Integers are the corners of the pixels. To display a vertex point to display as a pixel, it needs to be in the centre of the pixel, not at its corner.
Make sure you read what eXpl0it3r's links above; it has a diagram and everything!