Archived

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

VanVan

How to correct this from DX8 to DX9

Recommended Posts

In DX8 m_pD3DDevice->SetVertexShader(D3DFVF_XYZ); However In DX9 such statement change to HRESULT SetVertexShader(D3DXHANDLE hParameter, LPDIRECT3DVERTEXSHADER9 pVertexShader); So the error has occurred How to correct this?? thx a lot

Share this post


Link to post
Share on other sites
Hehe I struggled with that one yesterday as well. I think the solution is this, instead of SetVertexShader() call SetFVF(FVF_WHATEVER) and it should work. Haven''t tested it yet though, but it compiles

Share this post


Link to post
Share on other sites