fix posiion rescaling

This commit is contained in:
arthur.jamet
2021-06-16 12:27:40 +02:00
parent 0d63fbab6c
commit 797589a8a0
4 changed files with 11 additions and 16 deletions
+3 -3
View File
@@ -37,10 +37,10 @@ namespace BBM
//! @param newDims the new window's dimensions
void rescaleDrawable(RAY::Drawables::ADrawable2D &drawable, const Vector2f &newDims);
//! @brief rescale the drawables position according to new window dimensions
//! @param drawable the drawable to rescale position of
//! @brief rescale the drawables position according to new window dimensions
//! @param position a reference to position
//! @param newDims the new window's dimensions
void rescaleDrawablePosition(RAY::Drawables::ADrawable2D &drawable, const Vector2f &newDims);
void rescaleDrawablePosition(Vector3f &position, const Vector2f &newWinDims);
void resizeWindow(Vector2f &newDims);