-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSystemClass.h
More file actions
40 lines (31 loc) · 868 Bytes
/
SystemClass.h
File metadata and controls
40 lines (31 loc) · 868 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
32
33
34
35
36
37
38
39
40
#pragma once
#ifndef SYSTEMCLASS_H
#define SYSTEMCLASS_H
#include <Windows.h>
#include "InputClass.h"
#include "GraphicsClass.h"
class SystemClass {
public:
SystemClass();
~SystemClass() {}
bool Initialize();
void Run();
void Shutdown();
LRESULT CALLBACK MessageHandler( HWND, UINT, WPARAM, LPARAM );
private:
SystemClass( const SystemClass& );
SystemClass& operator=( const SystemClass& );
bool Frame();
void InitializeWindows( int& ScreenWidth, int& ScreenHeight );
void ShutdownWindows();
private:
LPCWSTR m_ApplicationName;
HINSTANCE m_hInstance;
HWND m_hWnd;
InputClass* m_Input;
GraphicsClass* m_Graphics;
bool m_FullScreen;
};
static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
static SystemClass* ApplicationHandle = nullptr;
#endif