-
Notifications
You must be signed in to change notification settings - Fork 4
/
Overlay.h
54 lines (29 loc) · 888 Bytes
/
Overlay.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
#pragma once
#include <Windows.h>
#include <d3d9.h>
#include <d3dx9.h>
#include <Dwmapi.h>
#include <TlHelp32.h>
class Overlay {
public:
Overlay();
int ScreenWidth = 1920;
int ScreenHeight = 1080;
LPDIRECT3D9 d3;
LPDIRECT3DDEVICE9 d3dev;
LPD3DXFONT d3Font;
HWND hWindow;
HWND tWindow;
MARGINS margins = { 0, 0, ScreenWidth, ScreenHeight };
ID3DXLine* d3Line;
void InitD3D(HWND hWindow);
void Render();
void SetupWindow();
WPARAM Loop();
void ESP();
void DrawCircle(int X, int Y, int radius, int numSides, DWORD Color);
void FillArea(float x, float y, float width, float height, D3DCOLOR color);
void FillRectangle(double x, double y, double w, double h, D3DCOLOR color);
void DrawBox(float x, float y, float width, float height, D3DCOLOR color);
void DrawString(int x, int y, DWORD color, LPD3DXFONT g_pFont, const char * fmt, ...);
};