Hmm for the Solid Square, it would be much easier using FillRGB.
this way you can use same function for xhair as you would for square.
example:
Globals:
Code:int CenterX = GetSystemMetrics( 0 ) / 2;//Gets screen X resolution then cutting it in half to get the center. int CenterY = GetSystemMetrics( 1 ) / 2;//Gets screen Y resolution then cutting it in half to get the center.
Void:
Code:void cBase::FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice ) { D3DRECT rec = { x, y, x + w, y + h }; pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 ); }
Then for the xhair:
Or for the Box (Left Side for Menu):Code:FillRGB(CenterX-15, CenterY, 30, 1,Red,pDevice);FillRGB(CenterX, CenterY-15, 1, 30,Red,pDevice);
Code:FillRGB(20, 200, 150, 400,Red,pDevice);
I wasn't being technical, but a clearly misleading post had been posted (by yourself).
I believe I know more than you. Bloody annoying me << That's just my honest belief right now, not being stuck up or anything.. which might change very soon
The IDIRECT3DDDEVICE::Clear() method clears a specified area of one or more surfaces to a specified color.
Last edited by freedompeace; 01-26-2011 at 04:54 PM. Reason: spelling mistake.
Thanks for sharing this this will go great with my next hack