about vertexbuffer

Started by
0 comments, last by Funkodysse 21 years ago
hello. how do i check how many vertices there are in a vertexbuffer?
Advertisement
IDirect3DVertexBuffer9::GetDesc() fills out a D3DVERTEXBUFFER_DESC structure that contains information about the vertex buffer. One member of this structure is Size, which is the size of the buffer in bytes. Divide that by the size of each vertex, and you have the number of vertices.

"Your superior intellect is no match for our puny weapons!"
"Your superior intellect is no match for our puny weapons!"

This topic is closed to new replies.

Advertisement