Advertisement
Ember

rip

Jan 30th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. // Set up the description of the vertex buffer
  2. vertexBufferDesc.Type = Buffer::Type::VertexBuffer;
  3. vertexBufferDesc.Size = sizeof(Mesh::Vertex3D) * VertexCount;
  4.  
  5. // Set up the description of the index buffer
  6. vertexBufferDesc.Type = Buffer::Type::IndexBuffer;
  7. vertexBufferDesc.Size = sizeof(UShort) * IndexCount;
  8.  
  9. // Now create the vertex buffer
  10. VertexBuffer.Create(vertexBufferDesc, vertexData.data());
  11. IndexBuffer.Create(indexBufferDesc, indexData.data());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement