If you've got Visual Studio, the DirectX SDK and some C++ knowledge the attachment is everything you need.
If you want to make wireframe and nofog add this (should be the same for DX8 and 9):
//Globals, but doesn't matter.
bool bFogOn;
bool bWireFrameOn;
//In SetRenderState, check the WinAPI for keys and explanation:
if(GetAsyncKeyState(VK_F1)&1)
{
bFogOn = !bFogOn;
}
if(GetAsyncKeyState(VK_F2)&1)
{
bWireFrameOn = !bWireFrameOn;
}
//In DrawIndexedPrimitive:
if(bFogOn)
{
m_D3Ddev->SetRenderState(D3DRS_FOGENABLE,true); //Or something similar
}
else
{
m_D3Ddev->SetRenderState(D3DRS_FOGENABLE,false);
}
if(bWireFrameOn)
{
m_D3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE); //Z Buffer Off
m_D3Ddev->SetRenderState(D3DRS_FILLMODE, D3DFILL_WIREFRAME); //Wireframe On
}
else
{
m_D3Ddev->SetRenderState(D3DRS_FILLMODE, D3DFILL_SOLID);
m_D3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_TRUE);
}
[Attachment will be posted later, forum uploads don't work atm]
Note: The D3D Starterkit 3.0 is NOT made by TKC. We take NO credit for it.