Initalization question

Started by
1 comment, last by Sair 22 years, 2 months ago
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.
Advertisement
No according to the DX documentation the order does not matter, and it shouldn''t anyway, because in changes the filter and the other changes a completely different thing so they dont depend on each other.

-------
Happy Coding!
Homepage: www.pcwebvia.f2s.com CVS1.0 will be released soon here.
www.bytamin-c.com
-------Homepage: http://www.pclx.com
Ok, Thanks a lot.

This topic is closed to new replies.

Advertisement