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

Author Topic: Picking objects with mouse  (Read 2516 times)

0 Members and 1 Guest are viewing this topic.

Akatray

  • Newbie
  • *
  • Posts: 12
    • View Profile
Picking objects with mouse
« on: August 26, 2013, 05:17:24 pm »
How to pick rectangle object when view moves and rotates.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Picking objects with mouse
« Reply #1 on: August 26, 2013, 05:38:18 pm »
Given the minimal question, here goes a minimal answer:

Official view tutorial
window.mapToPixelCoords()
window.mapCoordToPixel()
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Akatray

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Picking objects with mouse
« Reply #2 on: August 26, 2013, 05:57:04 pm »
Thanks. I somewhat overviewed that in tutorial.