• Advertisement
Sign in to follow this  

Question about setting up VERTEX struct for vb

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

Hi you know when you are setting up a VERTEX structure for a vertex buffer. eg For one with a fvf = D3DFVF_XYZ|D3DFVF_NORMAL|D3DFVF_TEX1 Would this work?: struct VERTEX { D3DXVECTOR3 point; D3DXVECTOR3 normal; D3DXVECTOR2 textureCoord; }; Thanks

Share this post


Link to post
Share on other sites
Advertisement
Yes it would [smile]

I tend to use that format, as you can then do:


VERTEX v;
v.point = D3DXVECTOR3( 1.0f, 1.0f, 1.0f ); //for example


hth
Jack

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement