/*
- * Copyright (c) 2017 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.
// EXTERNAL INCLUDES
#include <sstream>
#include <dali/public-api/animation/constraints.h>
-#include <dali/public-api/common/stage.h>
+#include <dali/devel-api/common/stage.h>
#include <dali/public-api/object/property-map.h>
#include <dali/public-api/render-tasks/render-task-list.h>
#include <dali/public-api/rendering/renderer.h>
// create actor to render input with applied emboss effect
mActorForInput1 = Actor::New();
mActorForInput1.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- mActorForInput1.SetSize(mTargetSize);
+ mActorForInput1.SetProperty( Actor::Property::SIZE, mTargetSize);
Vector2 textureScale( 1.5f/mTargetSize.width, 1.5f/mTargetSize.height);
mActorForInput1.RegisterProperty( TEX_SCALE_UNIFORM_NAME, textureScale );
mActorForInput1.RegisterProperty( COEFFICIENT_UNIFORM_NAME, Vector3( 2.f, -1.f, -1.f ) );
mActorForInput2 = Actor::New();
mActorForInput2.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- mActorForInput2.SetSize(mTargetSize);
+ mActorForInput2.SetProperty( Actor::Property::SIZE, mTargetSize);
mActorForInput2.RegisterProperty( TEX_SCALE_UNIFORM_NAME, textureScale );
mActorForInput2.RegisterProperty( COEFFICIENT_UNIFORM_NAME, Vector3( -1.f, -1.f, 2.f ) );
// set EMBOSS custom shader
mActorForComposite = Actor::New();
mActorForComposite.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- mActorForComposite.SetSize(mTargetSize);
+ mActorForComposite.SetProperty( Actor::Property::SIZE, mTargetSize);
mActorForComposite.SetProperty( Actor::Property::COLOR, Color::BLACK );
mRootActor.Add( mActorForComposite );
mTargetSize = size;
if( mActorForInput1 )
{
- mActorForInput1.SetSize(mTargetSize);
+ mActorForInput1.SetProperty( Actor::Property::SIZE, mTargetSize);
}
if( mActorForInput2 )
{
- mActorForInput2.SetSize(mTargetSize);
+ mActorForInput2.SetProperty( Actor::Property::SIZE, mTargetSize);
}
if( mActorForComposite )
{
- mActorForComposite.SetSize(mTargetSize);
+ mActorForComposite.SetProperty( Actor::Property::SIZE, mTargetSize);
}
}