Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

Load vertices from VertexBuffer

Started by notehaha Nov 27, 2001 at 11:56 AM 1 replies 200+ views
Original Post
notehaha
notehaha
I stored all of vertices to VertexBuffer as below: g_pVB->Lock(0, sizeof(src_v), (BYTE**)&pVertices, 0 ); memcpy(pVertices, src_v, num_indices_accum * sizeof(D3DVERTEX)); g_pVB->Unlock(); Then, I want to know. How to load this vertices?? I tried this: g_pVB->Lock(0, sizeof(src_v), (BYTE**)&pVertices, D3DLOCK_READONLY ); Then ,I don''t know. What should I do next? Thanks,
VolkerG
VolkerG
I think IDirect3DDevice8::SetStreamSource is what you need (at least if you mean the same as in your other post).
The DirectX documentation is a very good source for information like this. You should have a look at it.
notehaha
notehaha
Thank you very much for your reply.

Topic Locked

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

Sign in to reply to this topic.