Пример #1
0
 /// <summary>
 ///
 /// </summary>
 public void SetBuffers()
 {
     NodeMesh.VertexBufferId   = Renderer.AddVertexBuffer(NodeMesh.Vertices);
     NodeMesh.NormalBufferId   = Renderer.AddNormalBuffer(NodeMesh.Normals);
     NodeMesh.TexCoordBufferId = Renderer.AddTexCoordBuffer(NodeMesh.TexCoords);
     NodeMesh.IndexBufferId    = Renderer.AddIndexBuffer(NodeMesh.Indices);
     NodeMesh.ColorBufferId    = Renderer.AddColorBuffer(NodeMesh.Colors);
 }