InitialObjectDescriptor {
 objectDescriptorID 1
 audioProfileLevelIndication 255
 visualProfileLevelIndication 254
 sceneProfileLevelIndication 1
 graphicsProfileLevelIndication 1
 ODProfileLevelIndication 1
 esDescr [
  ES_Descriptor {
   ES_ID 1
   decConfigDescr DecoderConfigDescriptor {
    streamType 3
    decSpecificInfo BIFSConfig {
     isCommandStream true
     pixelMetric true
     pixelWidth 300
     pixelHeight 300
    }
   }
  }
 ]
}

DEF ORD OrderedGroup {
 children [
  DEF BACK Background2D {
   backColor 1 1 1
  }
  WorldInfo {
   info ["This shows proto declaration insertion" "through BIFS Extended commands" "GPAC Regression Tests" "$Date: 2007-07-27 09:46:09 $ - $Revision: 1.2 $" "(C) 2002-2004 GPAC Team"]
   title "Proto Insert test"
  }
  DEF TR Transform2D {
   scale 0.5 0.5
   translation -100 0
   children [
    Shape {
     appearance Appearance {
      material DEF MAT Material2D {
       emissiveColor 1 0 0
       filled TRUE
      }
     }
     geometry IndexedFaceSet2D {
      coord DEF COORD Coordinate2D {
       point [-100 0 -50 100 50 100 100 0 50 -100 -50 -100]
      }
     }
    }
   ]
  }
 ]
}


AT 1000 {
 INSERTPROTO [
  PROTO MYPROTO [
   exposedField SFVec2f translation 0 0
  ] {
   Transform2D {
    translation IS translation
    children [
     Shape {
      appearance Appearance {
       material Material2D {
        emissiveColor 1 0 0
        filled TRUE
       }
      }
      geometry Circle {
       radius 20
      }
     }
    ]
   }
  }
 ]
 INSERT AT ORD.children[0] MYPROTO {
  translation 100 0
 }
}

