Outline of a primitive

Started by
0 comments, last by Lord Flashfire 22 years, 4 months ago
I''m using the following code to draw two triangles in DX8: #define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZRHW|D3DFVF_DIFFUSE) FocalDevice->SetStreamSource( 0, VBuffer1, sizeof(CUSTOMVERTEX) ); FocalDevice->SetVertexShader( D3DFVF_CUSTOMVERTEX ); FocalDevice->DrawPrimitive( D3DPT_TRIANGLESTRIP, 0, 2 ); However, this fills the triangles with the colors of the verticies. How do I create just an outline of the triangles? Is there a way to do this without using a linestrip? ---- Herb M. (Lord Flashfire) s3202@attbi.com
----Herb M. (Lord Flashfire)s3202@attbi.com
Advertisement
SetRenderState(D3DRS_FILLMODE, D3DFILL_WIREFRAME)

or SetRenderState(8,3) - I forget the exact constant names

the wires will still use the vertex colours though.

Jack;

<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ | MVP Profile | Developer Journal ]</small>

This topic is closed to new replies.

Advertisement