KingMasterS
Gold Üye
- Katılım
- 10 Nis 2020
- Mesajlar
- 233
- Beğeniler
- 76
C++ Projesi olanlar kullanabilir.
C++:
/***Basic Crosshair***/
void CrossHair(LPDIRECT3DDEVICE9 pDevice, D3DCOLOR Colore){
D3DVIEWPORT9 Viewport;
pDevice->GetViewport(&Viewport);
DWORD ScreenX = Viewport.Width / 2;
DWORD ScreenY = Viewport.Height / 2;
D3DRECT rec2 = {ScreenX-9, ScreenY, ScreenX+9, ScreenY+1};
D3DRECT rec3 = {ScreenX, ScreenY-9, ScreenX+1, ScreenY+9};
pDevice->Clear(1, &rec2, D3DCLEAR_TARGET,Colore, 0, 0);
pDevice->Clear(1, &rec3, D3DCLEAR_TARGET,Colore, 0, 0);
}
/***Basic Crosshair***/