Archived

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

Directx 8 -> Directx 9

This topic is 5019 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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