- DEMO_IMAGE_DIR "gallery-medium-1.jpg",
- DEMO_IMAGE_DIR "gallery-medium-2.jpg",
- DEMO_IMAGE_DIR "gallery-medium-3.jpg",
- DEMO_IMAGE_DIR "gallery-medium-4.jpg",
- DEMO_IMAGE_DIR "gallery-medium-5.jpg",
- DEMO_IMAGE_DIR "gallery-medium-6.jpg",
- DEMO_IMAGE_DIR "gallery-medium-7.jpg",
- DEMO_IMAGE_DIR "gallery-medium-8.jpg",
- DEMO_IMAGE_DIR "gallery-medium-9.jpg",
- DEMO_IMAGE_DIR "gallery-medium-10.jpg",
- DEMO_IMAGE_DIR "gallery-medium-11.jpg",
- DEMO_IMAGE_DIR "gallery-medium-12.jpg",
- DEMO_IMAGE_DIR "gallery-medium-13.jpg",
- DEMO_IMAGE_DIR "gallery-medium-14.jpg",
- DEMO_IMAGE_DIR "gallery-medium-15.jpg",
- DEMO_IMAGE_DIR "gallery-medium-16.jpg",
- DEMO_IMAGE_DIR "gallery-medium-17.jpg",
- DEMO_IMAGE_DIR "gallery-medium-18.jpg",
- DEMO_IMAGE_DIR "gallery-medium-19.jpg",
- DEMO_IMAGE_DIR "gallery-medium-20.jpg",
- DEMO_IMAGE_DIR "gallery-medium-21.jpg",
- DEMO_IMAGE_DIR "gallery-medium-22.jpg",
- DEMO_IMAGE_DIR "gallery-medium-23.jpg",
- DEMO_IMAGE_DIR "gallery-medium-24.jpg",
- DEMO_IMAGE_DIR "gallery-medium-25.jpg",
- DEMO_IMAGE_DIR "gallery-medium-26.jpg",
- DEMO_IMAGE_DIR "gallery-medium-27.jpg",
- DEMO_IMAGE_DIR "gallery-medium-28.jpg",
- DEMO_IMAGE_DIR "gallery-medium-29.jpg",
- DEMO_IMAGE_DIR "gallery-medium-30.jpg",
- DEMO_IMAGE_DIR "gallery-medium-31.jpg",
- DEMO_IMAGE_DIR "gallery-medium-32.jpg",
- DEMO_IMAGE_DIR "gallery-medium-33.jpg",
- DEMO_IMAGE_DIR "gallery-medium-34.jpg",
- DEMO_IMAGE_DIR "gallery-medium-35.jpg",
- DEMO_IMAGE_DIR "gallery-medium-36.jpg",
- DEMO_IMAGE_DIR "gallery-medium-37.jpg",
- DEMO_IMAGE_DIR "gallery-medium-38.jpg",
- DEMO_IMAGE_DIR "gallery-medium-39.jpg",
- DEMO_IMAGE_DIR "gallery-medium-40.jpg",
- DEMO_IMAGE_DIR "gallery-medium-41.jpg",
- DEMO_IMAGE_DIR "gallery-medium-42.jpg",
- DEMO_IMAGE_DIR "gallery-medium-43.jpg",
- DEMO_IMAGE_DIR "gallery-medium-44.jpg",
- DEMO_IMAGE_DIR "gallery-medium-45.jpg",
- DEMO_IMAGE_DIR "gallery-medium-46.jpg",
- DEMO_IMAGE_DIR "gallery-medium-47.jpg",
- DEMO_IMAGE_DIR "gallery-medium-48.jpg",
- DEMO_IMAGE_DIR "gallery-medium-49.jpg",
- DEMO_IMAGE_DIR "gallery-medium-50.jpg",
- DEMO_IMAGE_DIR "gallery-medium-51.jpg",
- DEMO_IMAGE_DIR "gallery-medium-52.jpg",
- DEMO_IMAGE_DIR "gallery-medium-53.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-1.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-2.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-3.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-4.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-5.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-6.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-7.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-8.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-9.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-10.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-11.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-12.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-13.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-14.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-15.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-16.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-17.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-18.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-19.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-20.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-21.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-22.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-23.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-24.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-25.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-26.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-27.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-28.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-29.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-30.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-31.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-32.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-33.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-34.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-35.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-36.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-37.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-38.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-39.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-40.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-41.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-42.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-43.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-44.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-45.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-46.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-47.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-48.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-49.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-50.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-51.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-52.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-53.jpg",
- DEMO_IMAGE_DIR "selection-popup-bg.1.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.2.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.3.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.4.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.5.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.6.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.7.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.8.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.9.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.10.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.11.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.12.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.13.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.14.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.15.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.16.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.17.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.18.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.19.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.20.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.21.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.22.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.23.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.24.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.25.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.26.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.27.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.28.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.29.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.30.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.31.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.32.9.png",
- DEMO_IMAGE_DIR "selection-popup-bg.33.9.png",
- DEMO_IMAGE_DIR "button-disabled.9.png",
- DEMO_IMAGE_DIR "button-down.9.png",
- DEMO_IMAGE_DIR "button-down-disabled.9.png",
- DEMO_IMAGE_DIR "button-up-1.9.png",
- DEMO_IMAGE_DIR "button-up-2.9.png",
- DEMO_IMAGE_DIR "button-up-3.9.png",
- DEMO_IMAGE_DIR "button-up-4.9.png",
- DEMO_IMAGE_DIR "button-up-5.9.png",
- DEMO_IMAGE_DIR "button-up-6.9.png",
- DEMO_IMAGE_DIR "button-up-7.9.png",
- DEMO_IMAGE_DIR "button-up-8.9.png",
- DEMO_IMAGE_DIR "button-up-9.9.png",
- DEMO_IMAGE_DIR "button-up-10.9.png",
- DEMO_IMAGE_DIR "button-up-11.9.png",
- DEMO_IMAGE_DIR "button-up-12.9.png",
- DEMO_IMAGE_DIR "button-up-13.9.png",
- DEMO_IMAGE_DIR "button-up-14.9.png",
- DEMO_IMAGE_DIR "button-up-15.9.png",
- DEMO_IMAGE_DIR "button-up-16.9.png",
- DEMO_IMAGE_DIR "button-up-17.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.1.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.2.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.3.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.4.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.5.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.6.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.7.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.8.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.9.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.10.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.11.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.12.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.13.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.14.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.15.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.16.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.17.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.18.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.19.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.20.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.21.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.22.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.23.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.24.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.25.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.26.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.27.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.28.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.29.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.30.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.31.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.32.9.png",
+ DEMO_IMAGE_DIR "selection-popup-bg.33.9.png",
+ DEMO_IMAGE_DIR "button-disabled.9.png",
+ DEMO_IMAGE_DIR "button-down.9.png",
+ DEMO_IMAGE_DIR "button-down-disabled.9.png",
+ DEMO_IMAGE_DIR "button-up-1.9.png",
+ DEMO_IMAGE_DIR "button-up-2.9.png",
+ DEMO_IMAGE_DIR "button-up-3.9.png",
+ DEMO_IMAGE_DIR "button-up-4.9.png",
+ DEMO_IMAGE_DIR "button-up-5.9.png",
+ DEMO_IMAGE_DIR "button-up-6.9.png",
+ DEMO_IMAGE_DIR "button-up-7.9.png",
+ DEMO_IMAGE_DIR "button-up-8.9.png",
+ DEMO_IMAGE_DIR "button-up-9.9.png",
+ DEMO_IMAGE_DIR "button-up-10.9.png",
+ DEMO_IMAGE_DIR "button-up-11.9.png",
+ DEMO_IMAGE_DIR "button-up-12.9.png",
+ DEMO_IMAGE_DIR "button-up-13.9.png",
+ DEMO_IMAGE_DIR "button-up-14.9.png",
+ DEMO_IMAGE_DIR "button-up-15.9.png",
+ DEMO_IMAGE_DIR "button-up-16.9.png",
+ DEMO_IMAGE_DIR "button-up-17.9.png",
-VertexWithTexture gQuadWithTexture[] = {
- { Vector2( -0.5f, -0.5f ), Vector2( 0.0f, 0.0f ) },
- { Vector2( 0.5f, -0.5f ), Vector2( 1.0f, 0.0f ) },
- { Vector2( -0.5f, 0.5f ), Vector2( 0.0f, 1.0f ) },
- { Vector2( 0.5f, 0.5f ), Vector2( 1.0f, 1.0f ) }
-};
-
-const char* VERTEX_SHADER_TEXTURE = DALI_COMPOSE_SHADER(
- attribute mediump vec2 aPosition;\n
- attribute mediump vec2 aTexCoord;\n
- uniform mediump mat4 uMvpMatrix;\n
- uniform mediump vec3 uSize;\n
- varying mediump vec2 vTexCoord;\n
- void main()\n
- {\n
- vec4 position = vec4(aPosition,0.0,1.0)*vec4(uSize,1.0);\n
- gl_Position = uMvpMatrix * position;\n
- vTexCoord = aTexCoord;\n
- }\n
-);
-
-const char* FRAGMENT_SHADER_TEXTURE = DALI_COMPOSE_SHADER(
- uniform lowp vec4 uColor;\n
- uniform sampler2D sTexture;\n
- varying mediump vec2 vTexCoord;\n
-
- void main()\n
- {\n
- gl_FragColor = texture2D( sTexture, vTexCoord ) * uColor;\n
- }\n
-);
-
-bool gUseMesh(false);
-bool gNinePatch(false);
+bool gUseMesh(false);
+bool gNinePatch(false);
- mActor[count].SetProperty( Actor::Property::POSITION, initialPosition );
- mActor[count].SetProperty( Actor::Property::SIZE, Vector3(0.0f,0.0f,0.0f) );
- mActor[count].SetProperty( Actor::Property::ORIENTATION, Quaternion( Radian(0.0f),Vector3::XAXIS) );
- mShow.AnimateTo( Property( mActor[count], Actor::Property::POSITION), Vector3(xpos+mSize.x*0.5f, ypos+mSize.y*0.5f, 0.0f), AlphaFunction::EASE_OUT_BACK, TimePeriod( delay, duration ));
- mShow.AnimateTo( Property( mActor[count], Actor::Property::SIZE), mSize, AlphaFunction::EASE_OUT_BACK, TimePeriod( delay, duration ));
+ mActor[count].SetProperty(Actor::Property::POSITION, initialPosition);
+ mActor[count].SetProperty(Actor::Property::SIZE, Vector3(0.0f, 0.0f, 0.0f));
+ mActor[count].SetProperty(Actor::Property::ORIENTATION, Quaternion(Radian(0.0f), Vector3::XAXIS));
+ mShow.AnimateTo(Property(mActor[count], Actor::Property::POSITION), Vector3(xpos + mSize.x * 0.5f, ypos + mSize.y * 0.5f, 0.0f), AlphaFunction::EASE_OUT_BACK, TimePeriod(delay, duration));
+ mShow.AnimateTo(Property(mActor[count], Actor::Property::SIZE), mSize, AlphaFunction::EASE_OUT_BACK, TimePeriod(delay, duration));
- mImageView[count].SetProperty( Actor::Property::POSITION, initialPosition );
- mImageView[count].SetProperty( Actor::Property::SIZE, Vector3(0.0f,0.0f,0.0f) );
- mImageView[count].SetProperty( Actor::Property::ORIENTATION, Quaternion( Radian(0.0f),Vector3::XAXIS) );
- mShow.AnimateTo( Property( mImageView[count], Actor::Property::POSITION), Vector3(xpos+mSize.x*0.5f, ypos+mSize.y*0.5f, 0.0f), AlphaFunction::EASE_OUT_BACK, TimePeriod( delay, duration ));
- mShow.AnimateTo( Property( mImageView[count], Actor::Property::SIZE), mSize, AlphaFunction::EASE_OUT_BACK, TimePeriod( delay, duration ));
+ mImageView[count].SetProperty(Actor::Property::POSITION, initialPosition);
+ mImageView[count].SetProperty(Actor::Property::SIZE, Vector3(0.0f, 0.0f, 0.0f));
+ mImageView[count].SetProperty(Actor::Property::ORIENTATION, Quaternion(Radian(0.0f), Vector3::XAXIS));
+ mShow.AnimateTo(Property(mImageView[count], Actor::Property::POSITION), Vector3(xpos + mSize.x * 0.5f, ypos + mSize.y * 0.5f, 0.0f), AlphaFunction::EASE_OUT_BACK, TimePeriod(delay, duration));
+ mShow.AnimateTo(Property(mImageView[count], Actor::Property::SIZE), mSize, AlphaFunction::EASE_OUT_BACK, TimePeriod(delay, duration));
- mScroll.AnimateBy( Property( mActor[i], Actor::Property::POSITION), Vector3(-4.0f*stageSize.x,0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(0.0f,3.0f));
- mScroll.AnimateBy( Property( mActor[i], Actor::Property::POSITION), Vector3(-4.0f*stageSize.x,0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(3.0f,3.0f));
- mScroll.AnimateBy( Property( mActor[i], Actor::Property::POSITION), Vector3(-4.0f*stageSize.x,0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(6.0f,2.0f));
- mScroll.AnimateBy( Property( mActor[i], Actor::Property::POSITION), Vector3( 12.0f*stageSize.x,0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(8.0f,2.0f));
+ mScroll.AnimateBy(Property(mActor[i], Actor::Property::POSITION), Vector3(-4.0f * windowSize.x, 0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(0.0f, 3.0f));
+ mScroll.AnimateBy(Property(mActor[i], Actor::Property::POSITION), Vector3(-4.0f * windowSize.x, 0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(3.0f, 3.0f));
+ mScroll.AnimateBy(Property(mActor[i], Actor::Property::POSITION), Vector3(-4.0f * windowSize.x, 0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(6.0f, 2.0f));
+ mScroll.AnimateBy(Property(mActor[i], Actor::Property::POSITION), Vector3(12.0f * windowSize.x, 0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(8.0f, 2.0f));
- mScroll.AnimateBy( Property( mImageView[i], Actor::Property::POSITION), Vector3(-4.0f*stageSize.x,0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(0.0f,3.0f));
- mScroll.AnimateBy( Property( mImageView[i], Actor::Property::POSITION), Vector3(-4.0f*stageSize.x,0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(3.0f,3.0f));
- mScroll.AnimateBy( Property( mImageView[i], Actor::Property::POSITION), Vector3(-4.0f*stageSize.x,0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(6.0f,2.0f));
- mScroll.AnimateBy( Property( mImageView[i], Actor::Property::POSITION), Vector3( 12.0f*stageSize.x,0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(8.0f,2.0f));
+ mScroll.AnimateBy(Property(mImageView[i], Actor::Property::POSITION), Vector3(-4.0f * windowSize.x, 0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(0.0f, 3.0f));
+ mScroll.AnimateBy(Property(mImageView[i], Actor::Property::POSITION), Vector3(-4.0f * windowSize.x, 0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(3.0f, 3.0f));
+ mScroll.AnimateBy(Property(mImageView[i], Actor::Property::POSITION), Vector3(-4.0f * windowSize.x, 0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(6.0f, 2.0f));
+ mScroll.AnimateBy(Property(mImageView[i], Actor::Property::POSITION), Vector3(12.0f * windowSize.x, 0.0f, 0.0f), AlphaFunction::EASE_OUT, TimePeriod(8.0f, 2.0f));