X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fbubble-effect%2Fbubble-emitter-impl.cpp;h=1e07c2ff880abe9211c84457c876248dbaf72289;hb=3a2dfe800fe4ec8214f42b28b3851ea8b8ffc72b;hp=d4c46ea8ac411735a2010892b86f1a52565f186b;hpb=8d7a2d639ced5d2eb3ce4321653ad4d8b55b0b95;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/bubble-effect/bubble-emitter-impl.cpp b/dali-toolkit/internal/controls/bubble-effect/bubble-emitter-impl.cpp index d4c46ea..1e07c2f 100644 --- a/dali-toolkit/internal/controls/bubble-effect/bubble-emitter-impl.cpp +++ b/dali-toolkit/internal/controls/bubble-effect/bubble-emitter-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -211,11 +211,11 @@ void BubbleEmitter::OnInitialize() { // Create the root actor, all the meshActor should be its children mBubbleRoot = Actor::New(); - mBubbleRoot.SetSize(mMovementArea); + mBubbleRoot.SetProperty( Actor::Property::SIZE, mMovementArea ); // Prepare the frame buffer to store the color adjusted background texture Vector2 imageSize = Vector2( mMovementArea.width/4.f, mMovementArea.height/4.f ); - mFrameBuffer = FrameBuffer::New( imageSize.x, imageSize.y, 0 ); + mFrameBuffer = FrameBuffer::New( imageSize.x, imageSize.y, FrameBuffer::Attachment::NONE ); mEffectTexture = Texture::New( TextureType::TEXTURE_2D, Pixel::RGBA8888, imageSize.x, imageSize.y ); mFrameBuffer.AttachColorTexture( mEffectTexture ); @@ -238,7 +238,7 @@ void BubbleEmitter::OnInitialize() // Create a cameraActor for the off screen render task. mCameraActor = CameraActor::New(mMovementArea); - mCameraActor.SetParentOrigin(ParentOrigin::CENTER); + mCameraActor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); Stage stage = Stage::GetCurrent(); @@ -258,8 +258,8 @@ void BubbleEmitter::SetBackground( Texture bgTexture, const Vector3& hsvDelta ) //Create RenderTask source actor Actor sourceActor = Actor::New(); - sourceActor.SetSize( mMovementArea ); - sourceActor.SetParentOrigin(ParentOrigin::CENTER); + sourceActor.SetProperty( Actor::Property::SIZE, mMovementArea ); + sourceActor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); sourceActor.RegisterProperty( "uHSVDelta", hsvDelta ); Stage::GetCurrent().Add( sourceActor );