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); } }
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); } }
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); } }