Jump to content
  • Advertisement

Archived

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

GekkoCube

dynamic use of vertex buffers' vertex list.

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

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
Advertisement
sure, that''s legal...you just have to allocate memory for each instance when you use a pointer, and release it when you''re done.

Share this post


Link to post
Share on other sites
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

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!