From c2a2445897af17adb56a32dcf111312763a575d4 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 2 Jul 2018 01:06:39 +0200 Subject: initial commit Signed-off-by: Toni Uhlig --- csgo_wh/include/D9DW_Rectangle.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 csgo_wh/include/D9DW_Rectangle.h (limited to 'csgo_wh/include/D9DW_Rectangle.h') diff --git a/csgo_wh/include/D9DW_Rectangle.h b/csgo_wh/include/D9DW_Rectangle.h new file mode 100755 index 0000000..57dea3e --- /dev/null +++ b/csgo_wh/include/D9DW_Rectangle.h @@ -0,0 +1,35 @@ +#ifndef DDRW_RECTANGLE_H_INCLUDED +#define DDRW_RECTANGLE_H_INCLUDED + +#include +#include +#include +#include "D9DW_Config.h" + + +class D9DW_Rectangle +{ +private: + + ID3DXLine* gLine; + IDirect3DDevice9* pDev; + + inline void clearoutArea(int x, int y, int width, int height, UINT32 rgb_alpha); + +public: + HRESULT Create(IDirect3DDevice9* pDevice) + { + pDev = pDevice; + return D3DXCreateLine(pDev, &gLine); + } + + void Release(void) + { + gLine->Release(); + } + + void Draw(int x , int y, int width, int height, UINT32 rgb_alpha, bool doFill); + +}; + +#endif // DDRW_RECTANGLE_H_INCLUDED -- cgit v1.2.3