Move ScreenToGameViewport from Engine to Screen

And make it accessible from the C# side
This commit is contained in:
stefnotch
2021-03-15 20:18:39 +01:00
parent 97ab226d7e
commit fb28cae2b4
5 changed files with 34 additions and 34 deletions

View File

@@ -153,20 +153,6 @@ public:
/// <returns>True if game viewport is focused, otherwise false.</returns>
static bool HasGameViewportFocus();
/// <summary>
/// Converts the screen-space position to the game viewport position.
/// </summary>
/// <param name="screenPos">The screen-space position.</param>
/// <returns>The game viewport position.</returns>
static Vector2 ScreenToGameViewport(const Vector2& screenPos);
/// <summary>
/// Converts the game viewport position to the screen-space position.
/// </summary>
/// <param name="viewportPos">The game viewport position.</param>
/// <returns>The screen-space position.</returns>
static Vector2 GameViewportToScreen(const Vector2& viewportPos);
private:
static void OnPause();