forked from derandark/DungeonViewerAC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Globals.h
51 lines (36 loc) · 837 Bytes
/
Globals.h
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
41
42
43
44
45
46
47
48
49
#pragma once
class Time
{
public:
static void Init();
static void Update();
static double GetTimeElapsed();
static double GetTimeCurrent();
private:
static UINT64 m_iCounterStart;
static UINT64 m_iCounterFrequency;
static double m_fTimeElapsed;
};
class Globals
{
public:
static void Init(HINSTANCE hInstance);
static void Cleanup();
static HINSTANCE GetAppInstance();
static HGLOBAL GetResource(LPCTSTR name, LPCTSTR type);
static void GetScreenDimensions(long *plWidth, long *plHeight);
private:
static HINSTANCE m_hInstance;
};
class GlobalResource
{
public:
GlobalResource(LPCTSTR name, LPCTSTR type);
~GlobalResource();
LPVOID GetData();
DWORD GetSize();
private:
HGLOBAL m_hResource;
LPVOID m_lpData;
DWORD m_dwSize;
};