- tet_infoline( " UtcDaliBubbleEmitterEmitBubble " );
-
- Image shapeImage1 = CreateSolidColorImage( application, Color::GREEN, 5, 5 );
- BubbleEmitter emitter = BubbleEmitter::New( Vector2(50.f,50.f),shapeImage1, 200, Vector2( 5.f, 10.f ));
-
- Actor root = emitter.GetRootActor();
- MeshActor bubbleMesh = MeshActor::DownCast( root.GetChildAt( 0 ) );
- ShaderEffect effect = bubbleMesh.GetShaderEffect();
- DALI_TEST_CHECK( effect );
-
- Property::Index propertyIndex0 = effect.GetPropertyIndex( "uPercentage[0]" );
- Property::Index propertyIndex1 = effect.GetPropertyIndex( "uPercentage[1]" );
- float value0, value1;
-
- Animation animation = Animation::New( 0.5f );
- emitter.EmitBubble( animation, Vector2(40.f,40.f), Vector2(-5.f,-5.f), Vector2(30.f,30.f) );
- emitter.EmitBubble( animation, Vector2(10.f,10.f), Vector2(5.f,5.f), Vector2(30.f,30.f) );
- (effect.GetProperty(propertyIndex0)).Get( value0 );
- (effect.GetProperty(propertyIndex1)).Get( value1 );
- DALI_TEST_EQUALS(value0, 0.f, TEST_LOCATION );
- DALI_TEST_EQUALS(value1, 0.f, TEST_LOCATION );
+ tet_infoline(" UtcDaliBubbleEmitterEmitBubble ");
+
+ Texture shapeImage1 = CreateSolidColorTexture(application, Color::GREEN, 5, 5);
+ BubbleEmitter emitter = BubbleEmitter::New(Vector2(50.f, 50.f), shapeImage1, 200, Vector2(5.f, 10.f));
+
+ Actor root = emitter.GetRootActor();
+ Renderer bubbleRenderer = root.GetRendererAt(0);
+ application.GetScene().Add(root);
+ DALI_TEST_CHECK(bubbleRenderer);
+
+ Property::Index propertyIndex0 = bubbleRenderer.GetPropertyIndex("uPercentage[0]");
+ Property::Index propertyIndex1 = bubbleRenderer.GetPropertyIndex("uPercentage[1]");
+ float value0, value1;
+
+ Animation animation = Animation::New(0.5f);
+ emitter.EmitBubble(animation, Vector2(40.f, 40.f), Vector2(-5.f, -5.f), Vector2(30.f, 30.f));
+ emitter.EmitBubble(animation, Vector2(10.f, 10.f), Vector2(5.f, 5.f), Vector2(30.f, 30.f));
+ (bubbleRenderer.GetProperty(propertyIndex0)).Get(value0);
+ (bubbleRenderer.GetProperty(propertyIndex1)).Get(value1);
+ DALI_TEST_EQUALS(value0, 0.f, TEST_LOCATION);
+ DALI_TEST_EQUALS(value1, 0.f, TEST_LOCATION);
+ (bubbleRenderer.GetCurrentProperty(propertyIndex0)).Get(value0);
+ (bubbleRenderer.GetCurrentProperty(propertyIndex0)).Get(value1);
+ DALI_TEST_EQUALS(value0, 0.f, TEST_LOCATION);
+ DALI_TEST_EQUALS(value1, 0.f, TEST_LOCATION);