Skip to main content
gamedev.net
🔒 Locked

Trianglelists - Crazy?

Started by carb 0 replies 350+ views
Original Post
carb
carb
Hey guys, I''m having the weirdest problem rendering a simple quad, using the following line of code: DWORD Sprite::Render() { m_pD3DDevice->SetFVF(SPRITE_D3DFVF_CUSTOMVERTEX); //m_pD3DDevice->SetTexture(0, m_pTexture); m_pD3DDevice->DrawPrimitiveUP(D3DPT_TRIANGLELIST, 2, m_pVertices, sizeof(SPRITE_CUSTOMVERTEX)); return 2; } If I try rendering D3DPT_POINTLIST or LINELIST, I get the predicted results. But TRIANGLELIST just gives me a blank screen ... I purposely block out the texture at the moment just to get a "white" color ... Please tell me I''m missing something oh so very simple ... - Ben
Ben

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.