Exemplo n.º 1
0
 public void DrawLines(Geo.Mesh mesh)
 {
     if (mesh.lineIndicies != null && mesh.verticies.Length > 0)
     {
         device.DrawUserIndexedPrimitives(PrimitiveType.LineList, mesh.verticies, 0, mesh.verticies.Length,
                                          mesh.lineIndicies, 0, mesh.lineIndicies.Length / 2);
     }
 }
Exemplo n.º 2
0
 public void Draw(Geo.Mesh mesh)
 {
     if (mesh.verticies.Length > 0)
     {
         device.DrawUserIndexedPrimitives(PrimitiveType.TriangleList, mesh.verticies, 0, mesh.verticies.Length,
                                          mesh.indicies, 0, mesh.indicies.Length / 3);
     }
 }
Exemplo n.º 3
0
 public void DrawSprite(Geo.Mesh mesh)
 {
     if (mesh.verticies.Length > 0)
     {
         spriteEffect.CurrentTechnique.Passes[0].Apply();
         device.DrawUserIndexedPrimitives(PrimitiveType.TriangleList, mesh.verticies, 0, mesh.verticies.Length,
                                          mesh.indicies, 0, mesh.indicies.Length / 3);
     }
 }