Archived

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

GekkoCube

dynamic use of vertex buffers' vertex list.

Recommended Posts

GekkoCube    116
this is how i declare my vertex buffer...
LPDIRECT3DVERTEXBUFFER8 m_pVB;
and this is how i declare my list of vertices that will later be copied to the vertex buffer...
CUSTOMVERTEX_TEX1 m_sVertices[30];
I was wondering if this is legal (since i get errors when i try to declare my vertex list as this...
CUSTOMVERTEX_TEX1* m_pVertices;
PS - what is the differencet between the source tag and the code tag?

Share this post


Link to post
Share on other sites
GekkoCube    116
well, whenever i create a dynamic list like that with the exact same size as I would with a static list...nothing appears to be drawn.

i create the list, then fill it, then copy to the VB, then i draw.

i must be doing something wrong i guess. just wondering if there is something i am overlooking.

Share this post


Link to post
Share on other sites