Finality Engine
Loading...
Searching...
No Matches
ImGUIRenderer.h
Go to the documentation of this file.
1
6#pragma once
7#include <memory>
8#include <Core/RenderDevice.h>
9
10#include <imgui.h>
11
12namespace FINALITY
13{
16 {
17 private:
18 public:
20 : m_Specification(spec), m_Device(device){};
21 virtual ~ImGUIRenderer() = default;
22
23 void InitImGUI();
24 void ShutDown();
25
26 static std::unique_ptr<ImGUIRenderer> Create(RenderDevice* device);
27 virtual void Initialize() = 0;
28 virtual void Update() = 0;
29 virtual void Destroy() = 0;
30
31 WindowSpec GetWindowSpecification() const { return m_Specification; }
32 RenderDevice* GetRenderDevice() const { return m_Device; }
33 private:
34 WindowSpec m_Specification;
35 RenderDevice* m_Device;
36
37 RendererAPI m_ActiveAPI = RendererAPI::NONE;
38 };
39}
Defines the graphics backend boundary and render submission contract.
virtual void Destroy()=0
virtual void Update()=0
virtual void Initialize()=0
RenderDevice * GetRenderDevice() const
WindowSpec GetWindowSpecification() const
static std::unique_ptr< ImGUIRenderer > Create(RenderDevice *device)
ImGUIRenderer(WindowSpec spec, RenderDevice *device)
virtual ~ImGUIRenderer()=default
Defines the graphics backend boundary and render submission contract.