bu Wallhacktir : ama Stride vermıyorum onlaırda kendın yap kardesm
DWORD dwReEnableZB = D3DZB_TRUE;
pDevice->GetRenderState(D3DRS_ZENABLE, &dwReEnableZB);
pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
pDevice->SetRenderState(D3DRS_ZFUNC, D3DCMP_NEVER);
int Chams; //To turn chams on/off, (by default they will be black)
int Backcolor; //To turn on/off the color sliders for the color behind an object
int Frontcolor; //To turn on/off the color sliders for the color in front an object
LPDIRECT3DTEXTURE9 cFront, cBack; //Declaring our textures
//In DrawIndexedPrimitive
if( Chams ){ //If chams is turned on...
pDevice->SetRenderState( D3DRS_ZENABLE, FALSE );
pDevice->SetTexture( 0, cBack ); //Behind an object set the texture to cBack
pDrawIndexedPrimitive( pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, StartIndex, PrimitiveCount );
pDevice->SetTexture( 0, cFront ); //In front of an object set the texture to cFront
pDevice->SetRenderState( D3DRS_ZENABLE, TRUE );
}
Buda chams?