Finality Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
Application.h
Go to the documentation of this file.
1
11
#pragma once
12
#include "
Core.h
"
13
#include "
RenderTypes.h
"
14
#include "
Window.h
"
15
#include "
RenderDevice.h
"
16
17
#include <memory>
18
#include "
Game.h
"
19
20
namespace
FINALITY
21
{
22
class
ImGUIRenderer
;
23
33
class
FAPI
Application
34
{
35
public
:
36
Application
();
37
~Application
();
38
39
void
Initialize
(
const
RendererAPI
& api,
const
WindowSpec
& spec, std::unique_ptr<Game> game);
40
void
Update
();
41
void
Shutdown
();
42
43
void
RequestClose
() { m_Running =
false
; }
44
45
static
RendererAPI
GetActiveAPI
() {
return
s_CurrentAPI; }
46
static
Application
&
Get
() {
return
*s_Instance; }
47
48
RenderDevice
&
GetDevice
() {
return
*m_RenderDevice; }
49
Window
&
GetWindow
() {
return
*m_Window; }
50
ImGUIRenderer
*
GetImGUIRenderer
();
51
52
private
:
53
static
RendererAPI
s_CurrentAPI;
54
55
std::unique_ptr<Window> m_Window;
56
std::unique_ptr<RenderDevice> m_RenderDevice;
57
std::unique_ptr<Game> m_CurrentGame;
58
59
std::unique_ptr<ImGUIRenderer> m_ImGUIRenderer;
60
61
bool
m_Running =
false
;
62
static
inline
Application
* s_Instance =
nullptr
;
63
};
64
}
Core.h
FAPI
#define FAPI
Definition
Core.h:22
Game.h
RenderDevice.h
Defines the graphics backend boundary and render submission contract.
RenderTypes.h
Window.h
FINALITY::Application::GetWindow
Window & GetWindow()
Definition
Application.h:49
FINALITY::Application::Initialize
void Initialize(const RendererAPI &api, const WindowSpec &spec, std::unique_ptr< Game > game)
FINALITY::Application::Shutdown
void Shutdown()
FINALITY::Application::RequestClose
void RequestClose()
Definition
Application.h:43
FINALITY::Application::~Application
~Application()
FINALITY::Application::Update
void Update()
FINALITY::Application::GetDevice
RenderDevice & GetDevice()
Definition
Application.h:48
FINALITY::Application::GetActiveAPI
static RendererAPI GetActiveAPI()
Definition
Application.h:45
FINALITY::Application::Application
Application()
FINALITY::Application::Get
static Application & Get()
Definition
Application.h:46
FINALITY::Application::GetImGUIRenderer
ImGUIRenderer * GetImGUIRenderer()
FINALITY::ImGUIRenderer
Definition
ImGUIRenderer.h:16
FINALITY::RenderDevice
Defines the graphics backend boundary and render submission contract.
Definition
RenderDevice.h:68
FINALITY::Window
Definition
Window.h:33
FINALITY
Definition
Asset.h:12
FINALITY::RendererAPI
RendererAPI
Definition
RenderTypes.h:13
FINALITY::WindowSpec
Definition
Window.h:17
FinalityEngine
src
Core
Application.h
Generated by
1.18.0