Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Window(200, 200) .. Pixel from Y(0 to 199) and from X(1 to 200)  (Read 2304 times)

0 Members and 1 Guest are viewing this topic.

HeinzK

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • ZwiAner
    • Email
deleted
« Last Edit: December 04, 2019, 08:33:27 am by HeinzK »
The trees, that obstruct the view on the forest, can be allowed to fall! (Die Bäume, die die Sicht auf einen Wald versperren, dürfen gefällt werden!)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Window(200, 200) .. Pixel from Y(0 to 199) and from X(1 to 200)
« Reply #1 on: August 25, 2017, 02:47:30 pm »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Window(200, 200) .. Pixel from Y(0 to 199) and from X(1 to 200)
« Reply #2 on: August 26, 2017, 10:44:17 am »
When dealing with float coordinates and their innaccuracy, == 0 doesn't mean much.
Laurent Gomila - SFML developer

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Window(200, 200) .. Pixel from Y(0 to 199) and from X(1 to 200)
« Reply #3 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!
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*