[dali_1.4.26] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / plugins / dali-script-v8 / docs / content / image-view.js
index 282f684..66f2240 100644 (file)
@@ -27,10 +27,8 @@ dali.stage.add( imageView );
 // vertexShader = "";  // vertex shader   ( optional)
 // fragmentShader = "";  // fragment shader   ( optional)
 // hints =   // shader hints   ( optional)
-//       [ "requiresSelfDepthTest",  // Expects depth testing enabled
-//         "outputIsTransparent",    // Might generate transparent alpha from opaque inputs
-//         "outputIsOpaque",         // Outputs opaque colors even if the inputs are transparent
-//         "modifiesGeometry" ];     // Might change position of vertices, this option disables any culling optimizations
+//       [ "OUTPUT_IS_TRANSPARENT",   // Might generate transparent alpha from opaque inputs
+//         "MODIFIES_GEOMETRY" ];     // Might change position of vertices, this option disables any culling optimizations
   
 var shader = {
     "vertexShader": myVertexShader,
@@ -45,10 +43,10 @@ imageView.size = imageViewSize; // If not set, it will use either the natural im
 dali.stage.add( imageView );
   
 var image = {
-    "rendererType" : "imageRenderer",
-    "imageUrl" : "myImage.jpg",
-    "width" : desiredWidth,   // The desired image width while loading (optional but preferable to set for efficiency)
-    "height" : desiredHeight,   // The desired image height while loading (optional but preferable to set for efficiency)
+    "visualType" : "IMAGE",
+    "url" : "myImage.jpg",
+    "desiredWidth" : desiredWidth,   // The desired image width while loading (optional but preferable to set for efficiency)
+    "desiredHeight" : desiredHeight,   // The desired image height while loading (optional but preferable to set for efficiency)
     "shader" : shader  // Optional
 };