-
Notifications
You must be signed in to change notification settings - Fork 1
/
OmniScalerGraphics.h
109 lines (98 loc) · 2.51 KB
/
OmniScalerGraphics.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
////////////////////////////////////////////////////////////////////////////////
// Filename: OmniScalerGraphics.h
////////////////////////////////////////////////////////////////////////////////
#ifndef _GRAPHICSCLASS_H_
#define _GRAPHICSCLASS_H_
//////////////
// INCLUDES //
//////////////
#include "OmniScalerD3D.h"
#include "cameraclass.h"
#include "modelclass.h"
#include "cursormodelclass.h"
#include "textureshaderclass.h"
#include "cursorshaderclass.h"
/////////////
// GLOBALS //
/////////////
const bool FULL_SCREEN = true;
const bool VSYNC_ENABLED = false;
const float SCREEN_DEPTH = 1000.0f;
const float SCREEN_NEAR = 0.1f;
////////////////////////////////////////////////////////////////////////////////
// Class name: OmniScalerGraphics
////////////////////////////////////////////////////////////////////////////////
class OmniScalerGraphics
{
public:
OmniScalerGraphics();
OmniScalerGraphics(const OmniScalerGraphics&);
~OmniScalerGraphics();
bool Initialize(
HWND&, // omniscaler D3D HWND
HWND&, // game HWND
HANDLE&, // Shared surface handle
int&, // screen width
int&, // screen height
int&, // screen refresh rate
int&, // game window width
int&, // game window height
float&, // top offset
float&, // bottom offset
float&, // left offset
float&, // right offset
bool, // linear interpolation filtering
bool, // mouse pointer linear interpolation
bool, // integer scaling
float, // integer scaling scale
bool, // integer scaling overscan
int*, // mouse cursor bitmap data
float, // mouse position remap scale X
float, // mouse position remap scale Y
int, // mouse pointer size
RECT&, // mouse area RECT
bool // Enable custom mouse pointer
);
void Shutdown();
bool UpdateScreen(
bool,
bool,
float,
float,
float,
float,
RECT,
HWND&, // game HWND
int, // screen width
int, // screen height
int, // game window width
int, // game window height
int, // Mouse Pointer size
bool // Enable custom mouse pointer
);
private:
bool Render(
bool,
bool,
float,
float,
float,
float,
RECT,
HWND&, // game HWND
int, // screen width
int, // screen height
int, // game window width
int, // game window height
int, // Mouse Pointer size
bool // Enable custom mouse pointer
);
private:
OmniScalerD3D* m_Direct3D;
CameraClass* m_Camera;
ModelClass* m_Model;
CursorModelClass* m_CursorModel;
TextureShaderClass* m_TextureShader;
CursorShaderClass* m_CursorShader;
};
#endif