Example #1
0
 /// <summary>
 /// Reads object data from given BinaryReader.
 /// </summary>
 public void Read(BinaryReader br)
 {
     Signature = br.ReadUInt32();
     if (Signature != HMFSignature)
         throw new FileLoadException("Bad signature");
     Mesh = new HeightMap(br);
 }
Example #2
0
 public HMF(HeightMap hm)
 {
     Mesh = hm;
 }