void GradientEfekti(int x, int y, int w, int h, D3DCOLOR Start, D3DCOLOR Stop, LPDIRECT3DDEVICE9 pDevice){
static struct D3DVERTEX { float x, y, z, rhw; DWORD color; }
vertices[4] = { { 0, 0, 0, 1.0f, 0 }, { 0, 0, 0, 1.0f, 0 }, { 0, 0, 0, 1.0f, 0 }, { 0, 0, 0, 1.0f, 0 } };
vertices[0].x = x;
vertices[0].y = y;
vertices[0].color = Start;
vertices[1].x = x + w;
vertices[1].y = y;
vertices[1].color = Start;
vertices[2].x = x;
vertices[2].y = y + h;
vertices[2].color = Stop;
vertices[3].x = x + w;
vertices[3].y = y + h;
vertices[3].color = Stop;
pDevice->SetRenderState(D3DRS_ALPHABLENDENABLE, true);
pDevice->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA);
pDevice->SetFVF(D3DFVF_XYZRHW | D3DFVF_DIFFUSE);
pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP, 2, vertices, sizeof(vertices[0]));
}