Change GetGameWindowSize to return game viewport size.

This commit is contained in:
2023-02-05 20:22:54 -06:00
parent f4da984399
commit 4b9bbfb663
4 changed files with 1 additions and 42 deletions
-18
View File
@@ -457,24 +457,6 @@ Float2 ManagedEditor::GetGameWindowSize()
return Float2::Zero;
}
Float2 ManagedEditor::GetGameWindowViewportSize()
{
if (HasManagedInstance())
{
if (Internal_GetGameWindowSize == nullptr)
{
Internal_GetGameWindowSize = GetClass()->GetMethod("Internal_GetGameWindowViewportSize", 1);
ASSERT(Internal_GetGameWindowSize);
}
Float2 size;
void* params[1];
params[0] = &size;
Internal_GetGameWindowSize->Invoke(GetManagedInstance(), params, nullptr);
return size;
}
return Float2::Zero;
}
bool ManagedEditor::OnAppExit()
{
if (!HasManagedInstance())
-6
View File
@@ -133,12 +133,6 @@ public:
/// <returns>The size.</returns>
Float2 GetGameWindowSize();
/// <summary>
/// Gets the size of the game window viewport output.
/// </summary>
/// <returns>The size.</returns>
Float2 GetGameWindowViewportSize();
/// <summary>
/// Called when application code calls exit. Editor may end play mode or exit normally.
/// </summary>