1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-11-24 23:25:37 +01:00
GiantsTools/Sdk/Include/ImGui/Public/IImGuiService.h

24 lines
496 B
C
Raw Normal View History

2021-01-24 00:40:09 +01:00
#pragma once
#include "Core/Public/IGameService.h"
struct IImGuiLayer;
DEFINE_SERVICE("{B2D9DF30-25ED-4312-9DC2-343DAE156182}", IImGuiService)
{
virtual bool PreBeginFrame() = 0;
virtual void BeginFrame() = 0;
virtual void EndFrame() = 0;
virtual void* GetContext() const = 0;
virtual bool HasControlFocus() = 0;
virtual void SetControlFocus(bool focused) = 0;
virtual void RegisterLayer(std::shared_ptr<IImGuiLayer> layer) = 0;
};
void ImGuiServiceCreate();