void DrawLine(int x1, int y1, int x2, int y2, int thickness, bool antialias, D3DCOLOR col) {
ID3DXLine* lineL;
D3DXCreateLine(ExternalDevice, &lineL);
D3DXVECTOR2 Line[2];
Line[0] = D3DXVECTOR2(x1, y1);
Line[1] = D3DXVECTOR2(x2, y2);
lineL->SetWidth(thickness);
lineL->SetAntialias(antialias);
lineL->Draw(Line, 2, col);
lineL->Release();
}
void DrawEspBox(int x, int y, int w, int h, int thickness, bool antialias, D3DCOLOR col) {
DrawLine(x, y, x + w, y, thickness, antialias, col);
DrawLine(x, y + h, x + w, y + h, thickness, antialias, col);
DrawLine(x, y, x, y + h, thickness, antialias, col);
DrawLine(x + w, y, x + w, y + h, thickness, antialias, col);
}