RenderTarget::convertCoords now takes a Vector2i argument

This commit is contained in:
Laurent Gomila 2012-03-27 17:17:59 +02:00
parent 74f9388f31
commit 859074b3cc
2 changed files with 10 additions and 12 deletions

View file

@ -144,13 +144,12 @@ public :
/// This version uses the current view of the render target.
/// See the other overload to specify a custom view.
///
/// \param x X coordinate of the point to convert, relative to the render target
/// \param y Y coordinate of the point to convert, relative to the render target
/// \param point Point to convert, relative to the render target
///
/// \return The converted point, in "world" units
///
////////////////////////////////////////////////////////////
Vector2f convertCoords(unsigned int x, unsigned int y) const;
Vector2f convertCoords(const Vector2i& point) const;
////////////////////////////////////////////////////////////
/// \brief Convert a point from target coordinates to view coordinates
@ -169,14 +168,13 @@ public :
/// overload of the function to use the current view of the render
/// target.
///
/// \param x X coordinate of the point to convert, relative to the render target
/// \param y Y coordinate of the point to convert, relative to the render target
/// \param view The view to use for converting the point
/// \param point Point to convert, relative to the render target
/// \param view The view to use for converting the point
///
/// \return The converted point, in "world" units
///
////////////////////////////////////////////////////////////
Vector2f convertCoords(unsigned int x, unsigned int y, const View& view) const;
Vector2f convertCoords(const Vector2i& point, const View& view) const;
////////////////////////////////////////////////////////////
/// \brief Draw a drawable object to the render-target