forked from taxi2za/Aeternum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGame.hpp
38 lines (30 loc) · 921 Bytes
/
Game.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
//# DO NOT C&P IF U DUNNO HOW TO USE IT
//> he4rtbleed - https://github.com/he4rtbleed/Aeternum
namespace Aeternum
{
class GameVariables
{
public:
explicit GameVariables();
~GameVariables() noexcept = default;
GameVariables(GameVariables const&) = delete;
GameVariables(GameVariables&&) = delete;
GameVariables& operator=(GameVariables const&) = delete;
GameVariables& operator=(GameVariables&&) = delete;
HWND m_GameWindow;
IDXGISwapChain* m_Swapchain;
};
class GameFunctions
{
public:
explicit GameFunctions();
~GameFunctions() noexcept = default;
GameFunctions(GameFunctions const&) = delete;
GameFunctions(GameFunctions&&) = delete;
GameFunctions& operator=(GameFunctions const&) = delete;
GameFunctions& operator=(GameFunctions&&) = delete;
};
inline std::unique_ptr<GameVariables> g_GameVariables;
inline std::unique_ptr<GameFunctions> g_GameFunctions;
}