yocto/yocto_gl.cpp
inline void dump(const glTFMeshPrimitive* val, json& js, parse_stack& err) {
      if (!js.is_object()) js = json::object();
      dump((const glTFProperty*)val, js, err);
      dump_attr(val->attributes, "attributes", js, err);
      if (val->indices.is_valid()) dump_attr(val->indices, "indices", js, err);
      if (val->material.is_valid()) dump_attr(val->material, "material", js, err);
      if (val->mode != glTFMeshPrimitiveMode::Triangles)
        dump_attr(val->mode, "mode", js, err);
      if (!val->targets.empty()) dump_attr(val->targets, "targets", js, err);
    }
// Converts a glTFMeshPrimitive object to JSON
Converts a glTFMeshPrimitive object to JSON
Converts a glTFMeshPrimitive object to JSON
inline void dump(const glTFMeshPrimitive* val, json& js, parse_stack& err) {
      if (!js.is_object()) js = json::object();
      dump((const glTFProperty*)val, js, err);
      dump_attr(val->attributes, "attributes", js, err);
      if (val->indices.is_valid()) dump_attr(val->indices, "indices", js, err);
      if (val->material.is_valid()) dump_attr(val->material, "material", js, err);
      if (val->mode != glTFMeshPrimitiveMode::Triangles)
        dump_attr(val->mode, "mode", js, err);
      if (!val->targets.empty()) dump_attr(val->targets, "targets", js, err);
    }
inline void dump ( const glTFMeshPrimitive * val , json & js , parse_stack & err ) { if ( ! js . is_object ( ) ) js = json :: object ( ) ; dump ( ( const glTFProperty * ) val , js , err ) ; dump_attr ( val -> attributes , " " , js , err ) ; if ( val -> indices . is_valid ( ) ) dump_attr ( val -> indices , " " , js , err ) ; if ( val -> material . is_valid ( ) ) dump_attr ( val -> material , " " , js , err ) ; if ( val -> mode != glTFMeshPrimitiveMode :: Triangles ) dump_attr ( val -> mode , " " , js , err ) ; if ( ! val -> targets . empty ( ) ) dump_attr ( val -> targets , " " , js , err ) ; }
Converts a glTFMeshPrimitive object to JSON
Converts a glTFMeshPrimitive object to JSON