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

How to use D3DXLine

This topic is 5142 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

It doesn't work.

The code:

D3DXMATRIX matWorld;

D3DXVECTOR3 Lines[2] = { m_Start, m_End };

m_pD3DXLine->DrawTransform(Lines, 2, &matWorld, m_Color);

It seems to draw the line in screen space.

[edited by - johan_swe on November 12, 2003 1:19:44 PM]

Share this post

Link to post
Share on other sites