User:Cakemix/Snippets/D3D/HP

Draws hp of the enemy. void DHP(IDirect3DDevice9* pHP, D3DCOLOR C, int X, int Y, int W, int H) { D3DRECT R = { baseX, Y, X + W, Y + H }; pHP->Clear(1, &R, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, C, 0, 0); }