
void DrawRadar( int X, int Y, int Size, IDirect3DDevice9* pDevice )
{
DrawBox( (X+5), (Y+5), (Size-10), (Size-10), D3DCOLOR_ARGB( 255, 0, 0, 0 ), D3DCOLOR_ARGB( 255, 184, 184, 184 ), pDevice );
FillARGB( (X+(Size/2)), (Y+6), 1, (Size-12), D3DCOLOR_ARGB( 255, 0, 255, 0 ), pDevice );
FillARGB( (X+6), (Y+(Size/2)), (Size-12), 1, D3DCOLOR_ARGB( 255, 0, 255, 0 ), pDevice );
}
void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )
{
if( w < 0 )w = 1;
if( h < 0 )h = 1;
if( x < 0 )x = 1;
if( y < 0 )y = 1;
D3DRECT rec = { x, y, x + w, y + h };
pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 );
}
void FillARGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )
{
FillRGB( x, y, w, h, color, pDevice );
}
