mirror of
https://github.com/kevinporetti/UnrealImGui.git
synced 2025-01-18 16:30:32 +00:00
d4ffe9443f
- Removed explicit PCH. - Fixed includes to compile for all supported engine versions, including non-unity builds. - Configured build.cs to treat ImGui as an engine module and added stricter compilation rules.
35 lines
586 B
C++
35 lines
586 B
C++
// Distributed under the MIT License (MIT) (see accompanying LICENSE file)
|
|
|
|
#pragma once
|
|
|
|
#include <CoreMinimal.h>
|
|
|
|
#include <imgui.h>
|
|
|
|
class FImGuiModuleProperties;
|
|
|
|
// Widget drawing ImGui demo.
|
|
class FImGuiDemo
|
|
{
|
|
public:
|
|
|
|
FImGuiDemo(FImGuiModuleProperties& InProperties)
|
|
: Properties(InProperties)
|
|
{
|
|
}
|
|
|
|
void DrawControls(int32 ContextIndex);
|
|
|
|
private:
|
|
|
|
FImGuiModuleProperties& Properties;
|
|
|
|
ImVec4 ClearColor = ImColor{ 114, 144, 154 };
|
|
|
|
int32 ShowDemoWindowMask = 0;
|
|
int32 ShowAnotherWindowMask = 0;
|
|
|
|
int32 DemoWindowCounter = 0;
|
|
uint32 LastDemoWindowFrameNumber = 0;
|
|
};
|