예제 #1
0
        public void DrawLines(Gem.Geo.Mesh mesh)
        {
            ApplyChanges();

            if (mesh.lineIndicies == null) mesh.PrepareLineIndicies();

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