Skip to content

Instantly share code, notes, and snippets.

@mellinoe
Created February 8, 2017 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mellinoe/5a26b75f7d795b2826f8994e7c1e827f to your computer and use it in GitHub Desktop.
Save mellinoe/5a26b75f7d795b2826f8994e7c1e827f to your computer and use it in GitHub Desktop.
VertexBuffer vb = rc.ResourceFactory.CreateVertexBuffer(
Cube.Vertices,
new VertexDescriptor(VertexPositionColor.SizeInBytes, 2),
isDynamic:false);
IndexBuffer ib = rc.ResourceFactory.CreateIndexBuffer(
Cube.Indices,
isDynamic: false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment