InitialObjectDescriptor {
 objectDescriptorID 1
 ODProfileLevelIndication 1
 esDescr [
  ES_Descriptor {
   ES_ID 1
   decConfigDescr DecoderConfigDescriptor {
    objectTypeIndication 1
    streamType 3
    bufferSizeDB 177
    decSpecificInfo BIFSConfig {
     nodeIDbits 24
     isCommandStream true
     pixelMetric true
     pixelWidth 400
     pixelHeight 300
    }
   }
  }
 ]
}

OrderedGroup {
 children [
  Background2D {backColor 1 1 1}
  WorldInfo {
   info [
    "This test shows usage of the CacheTexture node. The texture is cached for 3 seconds only."
    "" 
    "GPAC Regression Tests" "$Date: $ - $Revision: $" 
    "(C) 2010-200X GPAC Team"
   ]
   title "CacheTexture Node for testing cache"
  }
  DEF TR Transform2D {
   children [
    Shape {
     appearance Appearance {
      texture CacheTexture {
       objectTypeIndication 108
       image "../auxiliary_files/sky.jpg"
       cacheURL "MyCachedPicture.jpg"
       expirationDate 3
      }
     }
     geometry Rectangle {
      size 160 120
     }
    }
   ]
  }
 ]
}

AT 1000 {
 REPLACE TR.children[0] BY Shape {}
}

AT 2000 {
 REPLACE TR.children[0] BY Shape {
   appearance Appearance {
    texture ImageTexture {
     url "MyCachedPicture.jpg"
    }
   }
   geometry Circle {
    radius 80
   }
  }
 }
}

AT 3000 {
 REPLACE TR.children[0] BY Shape {}
}

AT 4000 {
 REPLACE TR.children[0] BY Shape {
   appearance Appearance {
    texture ImageTexture {
     url "MyCachedPicture.jpg"
    }
   }
   geometry Rectangle {
    size 160 80
   }
  }
 }
}

