forked from RyanJGray/AlienIsolation.DevTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenu.h
More file actions
32 lines (24 loc) · 742 Bytes
/
Menu.h
File metadata and controls
32 lines (24 loc) · 742 Bytes
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
#pragma once
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <d3d11.h>
#include <cstdio>
#include <string>
#include <imgui.h>
#include <backends/imgui_impl_win32.h>
#include <backends/imgui_impl_dx11.h>
class Menu
{
public:
Menu();
~Menu();
static LRESULT CALLBACK WndProcHandler(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
static void InitMenu(IDXGISwapChain* pSwapChain);
static bool IsInitialised();
static IDXGISwapChain* GetSwapChain();
static void DrawMenu();
static void ShutdownMenu();
static HRESULT GetDeviceAndContextFromSwapChain(IDXGISwapChain* pSwapChain, ID3D11Device** ppDevice, ID3D11DeviceContext** ppContext);
static bool LoadLevel(std::string name);
static bool LoadLevel(int id);
};