Deleted AzFramework::AtomActiveInterface

This commit is contained in:
Aristo7
2021-05-03 15:40:32 -05:00
parent 71c5df040f
commit 64d980bc03
28 changed files with 26 additions and 283 deletions
+3 -13
View File
@@ -26,7 +26,6 @@
#include <AzFramework/Input/Devices/Gamepad/InputDeviceGamepad.h>
#include <AzFramework/Input/Devices/Touch/InputDeviceTouch.h>
#include <AzFramework/Input/Devices/VirtualKeyboard/InputDeviceVirtualKeyboard.h>
#include <AzFramework/API/AtomActiveInterface.h>
#include <imgui/imgui_internal.h>
#include <sstream>
#include <string>
@@ -380,14 +379,8 @@ void ImGuiManager::Render()
TransformationMatrices backupSceneMatrices;
AZ::u32 backBufferWidth = 0;
AZ::u32 backBufferHeight = 0;
if (AZ::Interface<AzFramework::AtomActiveInterface>::Get())
{
backBufferWidth = m_windowSize.m_width;
backBufferHeight = m_windowSize.m_height;
}
AZ::u32 backBufferWidth = m_windowSize.m_width;
AZ::u32 backBufferHeight = m_windowSize.m_height;
// Find ImGui Render Resolution.
int renderRes[2];
@@ -759,10 +752,7 @@ void ImGuiManager::RenderImGuiBuffers(const ImVec2& scaleRects)
//@rky: Only render the main ImGui if it is visible
if (m_clientMenuBarState != DisplayState::Hidden)
{
if (AZ::Interface<AzFramework::AtomActiveInterface>::Get())
{
OtherActiveImGuiRequestBus::Broadcast(&OtherActiveImGuiRequestBus::Events::RenderImGuiBuffers, *drawData);
}
OtherActiveImGuiRequestBus::Broadcast(&OtherActiveImGuiRequestBus::Events::RenderImGuiBuffers, *drawData);
}
}