UnrealImGui/Source/ImGui/Private/ImGuiDemo.h
Sebastian 209a594616 Replaced module properties singleton with instance created as part of module manager:
- Removed ImGui Module Properties singleton interface and released construction constraints.
- Added ImGui Module Properties to ImGui Module Manager.
- Moved ImGui Demo to ImGui Module Manager.
- ImGui Demo and ImGui Module Commands keep reference to ImGui Module Manager that gives them access to properties.
2018-11-25 20:36:55 +00:00

33 lines
563 B
C++

// Distributed under the MIT License (MIT) (see accompanying LICENSE file)
#pragma once
#include <imgui.h>
class FImGuiModuleManager;
// Widget drawing ImGui demo.
class FImGuiDemo
{
public:
FImGuiDemo(FImGuiModuleManager& InModuleManager)
: ModuleManager(InModuleManager)
{
}
void DrawControls(int32 ContextIndex);
private:
FImGuiModuleManager& ModuleManager;
ImVec4 ClearColor = ImColor{ 114, 144, 154 };
int32 ShowDemoWindowMask = 0;
int32 ShowAnotherWindowMask = 0;
int32 DemoWindowCounter = 0;
uint32 LastDemoWindowFrameNumber = 0;
};