How do I use D3DXVec3Unproject with D3D11?
Posted
by
Miguel P
on Game Development
See other posts from Game Development
or by Miguel P
Published on 2012-10-04T11:20:13Z
Indexed on
2012/10/04
21:54 UTC
Read the original article
Hit count: 288
I'm having a small issue with D3DXVec3Unproject. I'm currently using Direct3D 11 and not 10, and the signature for this function is:
D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV, CONST D3D10_VIEWPORT *pViewport,
CONST D3DXMATRIX *pProjection, CONST D3DXMATRIX *pView, CONST D3DXMATRIX *pWorld
As you may have noticed, it requires a D3D10_VIEWPORT
, and I'm using a Direct3D 11 viewport, D3D11_VIEWPORT
.
Do you have any ideas how I can use D3DXVec3Unproject with Direct3D 11?
© Game Development or respective owner