Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef COVERLAY_H
- #define COVERLAY_H
- #include <Windows.h>
- #include <TlHelp32.h>
- #include "stdafx.h"
- #define OVERLAY_NAME "Overlay"
- class COverlay {
- public:
- bool init();
- void size(int &w, int &h);
- bool initDirectX();
- bool preFrame();
- bool postFrame();
- void DrawLine(float x1, float y1, float x2, float y2, int thickness, int r, int g, int b, int a = 255);
- IDirect3DDevice9* GetDevice();
- HWND h_Target, h_Overlay;
- protected:
- int m_Width, m_Height;
- IDirect3D9* pDirect3D;
- IDirect3DDevice9* pDevice;
- D3DPRESENT_PARAMETERS pPresent;
- ID3DXLine* pLine;
- private:
- static LRESULT CALLBACK WndProc(HWND h, UINT message, WPARAM wPar, LPARAM lPar);
- };
- inline COverlay* Overlay() {
- static COverlay instance;
- return &instance;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement