Archived

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

Wes Henwood

Triangle strip

Recommended Posts

Wes Henwood    122
Can anyone tell me what is wrong with this code: /////////////////////////////// D3DTLVERTEX vertex[4]; vertex[0].color = D3DRGB(1.0f, 1.0f, 1.0f); vertex[1].color = D3DRGB(1.0f, 1.0f, 1.0f); vertex[2].color = D3DRGB(1.0f, 1.0f, 1.0f); vertex[3].color = D3DRGB(1.0f, 1.0f, 1.0f); vertex[0].sx = (float)x; vertex[0].sy = (float)y; vertex[1].sx = (float)x+64.0f; vertex[1].sy = (float)y; vertex[2].sx = (float)x; vertex[2].sy = (float)y+64.0f; vertex[3].sx = (float)x+64.0f; vertex[3].sy = (float)y; lpDevice->DrawPrimitive(D3DPT_TRIANGLESTRIP, D3DFVF_TLVERTEX, vertex, 4,0); ///////////////////////////////// The render state is set to wire frame mode. For some reason the second triangle is not being drawn. Wes Henwood

Share this post


Link to post
Share on other sites