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

Author Topic: sf::View::getTransform() flagged for internal use?  (Read 3069 times)

0 Members and 1 Guest are viewing this topic.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
sf::View::getTransform() flagged for internal use?
« on: August 28, 2012, 08:48:34 am »
Heya,

is there a specific reason why the getTransform() member of sf::View is flagged for internal use in the documentation? Had someone asking on IRC how to transform a mouse coordinate into sf::View space, and using the view's transform for that seems to be quite natural for me. ;)

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: sf::View::getTransform() flagged for internal use?
« Reply #1 on: August 28, 2012, 09:01:06 am »
Had someone asking on IRC how to transform a mouse coordinate into sf::View space, and using the view's transform for that seems to be quite natural for me. ;)
The function sf::RenderWindow::convertCoords() should already cover that :)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: sf::View::getTransform() flagged for internal use?
« Reply #2 on: August 28, 2012, 09:58:09 am »
Oops. Thanks. :)