I have a question about Initalizing things in DirectX, Im not far enough in my program to try it out so I thought I would ask.
Does the order of these two functions matter?
The Book im using does:
g_pDevice->SetRenderState( D3DRS_AMBIENT, D3DCOLOR_XRGB( 200, 200, 200 ) );
g_pDevice->SetRenderState( D3DRS_LIGHTING, TRUE );
g_pDevice->SetTextureStageState( 0, D3DTSS_MAGFILTER, D3DTEXF_LINEAR );
g_pDevice->SetTextureStageState( 0, D3DTSS_MINFILTER, D3DTEXF_LINEAR );
g_pDevice->SetRenderState( D3DRS_EDGEANTIALIAS, TRUE );
and i was wondering if i could do this instead:
g_pDevice->SetRenderState( D3DRS_AMBIENT, D3DCOLOR_XRGB( 200, 200, 200 ) );
g_pDevice->SetRenderState( D3DRS_LIGHTING, TRUE );
g_pDevice->SetRenderState( D3DRS_EDGEANTIALIAS, TRUE );
g_pDevice->SetTextureStageState( 0, D3DTSS_MAGFILTER, D3DTEXF_LINEAR );
g_pDevice->SetTextureStageState( 0, D3DTSS_MINFILTER, D3DTEXF_LINEAR );
Thnx ahead.