Question

How can we draw a line between 2 points which are derived at run time? These are two 3 dimensional points in the 3D space. Thanks.

Était-ce utile?

La solution

Well.. Pretty easy.

use D3DPT_LINELIST as the first paramerter in the call to

IDirect3DDevice9::DrawPrimitive();

and the geometry will be rendered as lines.

Best of Luck!

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top