Add this anywhere u wanna:
This is the endscene or present:
- Spoiler:
- void DrawRect(int x,int y,int h,int w,DWORD Color,LPDIRECT3DDEVICE9 pDevice){
D3DRECT rec;
rec.x1 = x;
rec.x2 = x + w;
rec.y1 = y;
rec.y2 = y + h;
pDevice->Clear(1,&rec,D3DCLEAR_TARGET,Color,0,0);
}
void DrawMouse(DWORD color,LPDIRECT3DDEVICE9 pDevice){
POINT myCursor;
GetCursorPos(&myCursor);
DrawRect(myCursor.x,myCursor.y,30,1,color,pDevice);
DrawRect(myCursor.x+1,myCursor.y,28,1,color,pDevice);
DrawRect(myCursor.x+2,myCursor.y,26,1,color,pDevice);
DrawRect(myCursor.x+3,myCursor.y,24,1,color,pDevice);
DrawRect(myCursor.x+4,myCursor.y,22,1,color,pDevice);
DrawRect(myCursor.x+5,myCursor.y,20,1,color,pDevice);
DrawRect(myCursor.x+6,myCursor.y,18,1,color,pDevice);
DrawRect(myCursor.x,myCursor.y,1,30,color,pDevice);
DrawRect(myCursor.x,myCursor.y+1,1,28,color,pDevice);
DrawRect(myCursor.x,myCursor.y+2,1,26,color,pDevice);
DrawRect(myCursor.x,myCursor.y+3,1,24,color,pDevice);
DrawRect(myCursor.x,myCursor.y+4,1,22,color,pDevice);
DrawRect(myCursor.x,myCursor.y+5,1,20,color,pDevice);
DrawRect(myCursor.x,myCursor.y+6,1,18,color,pDevice);
}
This is the endscene or present:
- Spoiler:
- DrawMouse(Blue,pDevice);