if(Fun.wireframe)
{
if(PSizeOfData == 640) // all models
{
pDevice->SetRenderState( D3DRS_FILLMODE, D3DFILL_WIREFRAME );
pDevice->SetTexture(0, texRed);
pDevice->SetTexture(0, texGreen);
}
else{
pDevice->SetRenderState( D3DRS_FILLMODE, D3DFILL_SOLID );
}
}






