Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Set up the description of the vertex buffer
- vertexBufferDesc.Type = Buffer::Type::VertexBuffer;
- vertexBufferDesc.Size = sizeof(Mesh::Vertex3D) * VertexCount;
- // Set up the description of the index buffer
- vertexBufferDesc.Type = Buffer::Type::IndexBuffer;
- vertexBufferDesc.Size = sizeof(UShort) * IndexCount;
- // Now create the vertex buffer
- VertexBuffer.Create(vertexBufferDesc, vertexData.data());
- IndexBuffer.Create(indexBufferDesc, indexData.data());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement