-
Notifications
You must be signed in to change notification settings - Fork 21
/
overlay.h
26 lines (24 loc) · 841 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
#pragma once
#include <d3d9.h>
#include <d3dx9.h>
#include <Dwmapi.h>
#include <TlHelp32.h>
//ESP data
extern int s_width;
extern int s_height;
#define CENTERX (GetSystemMetrics(SM_CXSCREEN)/2)-(s_width/2)
#define CENTERY (GetSystemMetrics(SM_CYSCREEN)/2)-(s_height/2)
extern LPDIRECT3D9 d3d; // the pointer to our Direct3D interface
extern LPDIRECT3DDEVICE9 d3ddev;
extern HWND hWnd;
extern HWND twnd;
extern MARGINS margin;
extern LPD3DXFONT pFont;
extern ID3DXLine* d3dLine;
LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
void DrawString(int x, int y, DWORD color, LPD3DXFONT g_pFont, const char *fmt, ...);
void DrawLine(float x, float y, float xx, float yy, D3DCOLOR color);
void DrawBox(float x, float y, float width, float height, D3DCOLOR color);
void initD3D(HWND hWnd);
void render();
//