X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-actor-utils.h;h=8b8859fb2ad9684a1be68b5293e29a0681d8568a;hb=34f7cced1591af6210b1c9d2a9c0b7f9845fb4f1;hp=28953cbbc7467c147df5918837c6b6b1302aa7a3;hpb=d00a250741411c386d988e7ac34525cf94a1918e;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-actor-utils.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-actor-utils.h index 28953cb..8b8859f 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-actor-utils.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-actor-utils.h @@ -2,7 +2,7 @@ #define DALI_TEST_ACTOR_UTILS_H /* - * 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. @@ -26,6 +26,7 @@ namespace Dali class Actor; class Image; +class Texture; /** * @brief Creates a simple renderable-actor with solid colored quad. @@ -50,11 +51,20 @@ Actor CreateRenderableActor( Image texture ); Actor CreateRenderableActor( Image texture, const std::string& vertexShader, const std::string& fragmentShader ); /** - * @brief Retrieves the texture used in a renderable actor (if available). - * @return The texture used by the actor. - * @note Assumes the actor only has one renderer, and that renderer only has one texture. + * @brief Creates a renderable-actor with a texture. + * @param[in] texture Texture to set. + * @return An actor with a renderer. + */ +Actor CreateRenderableActor( Texture texture ); + +/** + * @brief Creates a renderable-actor with a texture and custom shaders. + * @param[in] texture Texture to set. + * @param[in] vertexShader The vertex-shader. + * @param[in] fragmentShader The fragment-shader. + * @return An actor with a renderer. */ -Image GetTexture( Actor actor ); +Actor CreateRenderableActor( Texture texture, const std::string& vertexShader, const std::string& fragmentShader ); } // namespace Dali