- void Hacks::DrawFilledRectangle(int x, int y, int w, int h, D3DCOLOR Color, IDirect3DDevice9 * d3dDevice)
- {
- D3DRECT rct = (x, y, x + w, y + h);
- d3dDevice->Clear(1, &rct, D3DCLEAR_TARGET | D3DCLEAR_TARGET, Color, 0, 0);
- }
- void Hacks::DrawText(LPCSTR TextToDraw, int x, int y, D3DCOLOR Color)
- {
- RECT rct = (x-120, x+120, y+15);
- Font->DrawTextA(NULL, TextToDraw, -1, &rct, DT_NOCLIP, Color);
- }
- D3DRECT function stored in d3d9types.h as:
- typedef struct _D3DRECT {
- LONG x1;
- LONG y1;
- LONG x2;
- LONG y2;
- } D3DRECT;
- RECT function stored in Windef.h as:
- typedef struct tagRECT
- {
- LONG left;
- LONG top;
- LONG right;
- LONG bottom;
- } RECT, *PRECT, NEAR *NPRECT, FAR *LPRECT;