CHams(Help)
I found this on google.
I know i leeched it. --' but why the creator post it on google?
so i wanna ask real coders
This code can work for Crossfire(with little changings)
Thx for feedback, dont blame on me like "leeecher" , im just learning...
I know i leeched it. --' but why the creator post it on google?

so i wanna ask real coders
This code can work for Crossfire(with little changings)
Code:
DWORD dwOldZEnable = D3DZB_TRUE;
switch(chams1)
{
case 1:
{
if (m_Stride == 44)
{
pDevice->GetRenderState(D3DRS_ZENABLE, &dwOldZEnable);
pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
pDevice->SetRenderState(D3DRS_LIGHTING,TRUE);
pDevice->SetTexture(1, Green);
pDrawIndexedPrimitive(pDevice, pType, nMinIndex, nNumVertices, nStartIndex, nPrimitiveCount);
pDevice->GetRenderState(D3DRS_ZENABLE, &dwOldZEnable);
pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_TRUE);
pDevice->SetRenderState(D3DRS_LIGHTING,FALSE);
pDevice->SetTexture(1, Black);
}
}
break;
}


