Пример #1
0
 public void Read(BinaryReader br)
 {
     ObjName     = new RawString(br);
     NumVertices = br.ReadInt32();
     NumFaces    = br.ReadInt32();
     Transform   = new float[16];
     for (int i = 0; i < 16; i++)
     {
         Transform[i] = br.ReadSingle();
     }
 }
Пример #2
0
 public void Read(BinaryReader br)
 {
     Magic        = br.ReadInt32();
     NumMaterials = br.ReadInt32();
     NumObjects   = br.ReadInt32();
     MatNames     = new RawString[NumMaterials];
     for (int i = 0; i < NumMaterials; i++)
     {
         MatNames[i] = new RawString(br);
     }
     ObjHeaders = new RawObjectHeader[NumObjects];
     for (int i = 0; i < NumObjects; i++)
     {
         ObjHeaders[i] = new RawObjectHeader();
         ObjHeaders[i].Read(br);
     }
 }