コード例 #1
0
 public EMesh(Prism.Parser.PrismMesh prismMesh, Layer l, Editor e)
     : this(l, e)
 {
     for (int i = 0; i < prismMesh.VertexPosition.Length; i++)
     {
         vertices[i].Position = prismMesh.VertexPosition[i];
     }
 }
コード例 #2
0
        public override void ReadFromBuffer(BinaryReader reader, PrismMap map)
        {
            int meshes = reader.ReadInt32();

            for (int i = 0; i < meshes; i++)
            {
                PrismMesh mesh = new PrismMesh(reader, map);
                Meshes.Add(mesh);
            }
        }
コード例 #3
0
 public void AddMesh(PrismMesh m)
 {
     meshList.Add(m);
 }