Jump to content
  • Advertisement


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

Wes Henwood

Triangle strip

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

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!