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

Author Topic: sf::View Position?  (Read 1236 times)

0 Members and 1 Guest are viewing this topic.

Predator106

  • Newbie
  • *
  • Posts: 43
    • View Profile
sf::View Position?
« on: November 05, 2012, 03:59:13 am »
how can i get the position the view is at? i find it misleading..maybe i'm using it incorrectly, but my view is always centered on the player and so i always move() it. the issue is, after a while of move()ing it, i now need to know where it is so that i can see if my tile map's blocks are visible (so it requires some coordinates conversions..)

ideas?

Predator106

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: sf::View Position?
« Reply #1 on: November 05, 2012, 05:22:49 am »
ah, getCenter() is what i wanted. odd, i couldn't deduce that from the documentation, especially since at one point i call setCenter...