Write() public method

public Write ( ) : void
return void
示例#1
0
 public override void Write()
 {
     IndentIn();
     CommaNL();
     if (attributes != null)
     {
         attributes.Write();
     }
     CommaNL();
     Indent();       jsonWriter.Write("\"indices\": " + GlTF_Writer.accessors.IndexOf(indices) + ",\n");
     Indent();       jsonWriter.Write("\"material\": " + materialIndex + ",\n");
     Indent();       jsonWriter.Write("\"mode\": " + primitive + "\n");
     // semantics
     IndentOut();
 }
示例#2
0
 public override void Write()
 {
     IndentIn();
     CommaNL();
     if (attributes != null)
     {
         attributes.Write();
     }
     CommaNL();
     Indent();       jsonWriter.Write("\"indices\": \"" + indices.name + "\",\n");
     Indent();       jsonWriter.Write("\"material\": \"" + materialName + "\",\n");
     Indent();       jsonWriter.Write("\"mode\": " + primitive + "\n");
     // semantics
     IndentOut();
 }