Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool UpdateVertexBuffer(LPDIRECT3DVERTEXBUFFER9 VertexBuffer, VOID* VertexData, UINT Size)
- {
- VOID* Address;
- CHECK_HR(VertexBuffer->Lock(0, Size, (void**)&Address, 0),"Failed to lock a vertex buffer!");
- memcpy(Address, VertexData, Size);
- CHECK_HR(VertexBuffer->Unlock(),"Failed to unlock a vertex buffer!");
- return false;
- done:
- ShowError(Error);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement