summaryrefslogtreecommitdiff
path: root/csgo_wh/include/D9DW_Rectangle.h
diff options
context:
space:
mode:
Diffstat (limited to 'csgo_wh/include/D9DW_Rectangle.h')
-rwxr-xr-xcsgo_wh/include/D9DW_Rectangle.h35
1 files changed, 35 insertions, 0 deletions
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 <d3d9.h>
+#include <d3dx9.h>
+#include <stdbool.h>
+#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