12class SecondScreenPreview
17 void Update(
float deltaTime);
21 void BeginInputRemap();
24 bool IsEnabled()
const {
return mEnabled; }
29 World* mWorld =
nullptr;
30 Image* mColorTarget =
nullptr;
31 Image* mDepthTarget =
nullptr;
32 ImTextureID mImGuiTexId = 0;
33 Scene* mCurrentScene =
nullptr;
36 bool mEnabled =
false;
41 ImVec2 mBottomImageMin = {0, 0};
42 ImVec2 mBottomImageMax = {0, 0};
45 int32_t mSavedMouseX = 0;
46 int32_t mSavedMouseY = 0;
47 uint32_t mSavedVpX = 0;
48 uint32_t mSavedVpY = 0;
49 uint32_t mSavedVpW = 0;
50 uint32_t mSavedVpH = 0;
51 bool mInputRemapActive =
false;
53 static constexpr uint32_t kTopWidth = 400;
54 static constexpr uint32_t kTopHeight = 240;
55 static constexpr uint32_t kBottomWidth = 320;
56 static constexpr uint32_t kBottomHeight = 240;
58 void CreateScreenTargets(ScreenState& screen, uint32_t width, uint32_t height,
const char* debugName);
59 void DestroyScreenTargets(ScreenState& screen);
60 Scene* FindSceneForScreen(uint8_t targetScreen);
61 void UpdateScreen(ScreenState& screen, uint8_t targetScreen,
float deltaTime);
64SecondScreenPreview* GetSecondScreenPreview();
bool Update()
Definition Engine.cpp:710
void Enable(bool enable)
Definition ImGuizmo.cpp:1055