Back to class index
| VertexBuffer::SetNumVerticesSyntaxvoid VertexBuffer::SetNumVertices(int size, bool preserveOldCpuData=true);Specifies the new vertex count for this vertex buffer. The CPU-side memory of the vertex buffer behaves like the capacity field of std::vector, meaning that if you are reallocating to a smaller size, the buffer is not reallocated, but only the new limit is remembered. Leave a Comment |