SFML community forums

Help => Graphics => Topic started by: Tank on August 28, 2012, 08:48:34 am

Title: sf::View::getTransform() flagged for internal use?
Post by: Tank 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. ;)
Title: Re: sf::View::getTransform() flagged for internal use?
Post by: Nexus 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() (http://www.sfml-dev.org/documentation/2.0/classsf_1_1RenderTarget.php#ae5e7ba65ef73df2778b29b7fdcdb20ee) should already cover that :)
Title: Re: sf::View::getTransform() flagged for internal use?
Post by: Tank on August 28, 2012, 09:58:09 am
Oops. Thanks. :)