Archived

This topic is now archived and is closed to further replies.

Newbie00

Directx 8 -> Directx 9

Recommended Posts

How would I do something like that in DirectX 9?
			pD3Device8->CreateStateBlock(D3DSBT_ALL, &old_state);
			pD3Device8->CaptureStateBlock(old_state);			
 			pD3Device8->SetRenderState(D3DRS_FILLMODE, D3DFILL_WIREFRAME);

			HRESULT hResult = pD3Device8->DrawIndexedPrimitive(Type, MinIndex, NumVertices, StartIndex, PrimitiveCount);

			pD3Device8->ApplyStateBlock(old_state);
			pD3Device8->DeleteStateBlock(old_state);
 

Share this post


Link to post
Share on other sites