示例#1
0
文件: Mesh.cs 项目: x5f3759df/Citrus
 private void PreDraw()
 {
     UpdateBuffers();
     UpdateInputLayout();
     PlatformRenderer.SetVertexInputLayout(inputLayout);
     PlatformRenderer.SetVertexBuffer(0, vertexBuffer, 0);
     PlatformRenderer.SetIndexBuffer(indexBuffer, 0, IndexFormat.Index16Bits);
 }