F4MP/tiltedcode/Code/client/Services/ImguiService.h
Jous99 37b16f1547 code upload
codigo original de f4mp y tilted para referencias
2026-01-06 18:45:00 +01:00

33 lines
654 B
C++

#pragma once
#include <imgui/ImGuiDriver.h>
struct RenderSystemD3D9;
struct RenderSystemD3D11;
/**
* @brief Draws the ImGui UI.
*/
struct ImguiService
{
using TCallback = void();
ImguiService();
~ImguiService() noexcept;
TP_NOCOPYMOVE(ImguiService);
void Create(RenderSystemD3D11* apRenderSystem, HWND aHwnd);
void Render() const;
void Reset() const;
LRESULT WndProcHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
void RawInputHandler(RAWINPUT& aRawinput);
entt::sink<entt::sigh<TCallback>> OnDraw;
private:
ImGuiImpl::ImGuiDriver m_imDriver;
entt::sigh<TCallback> m_drawSignal;
};