Commit 2ab1c750e3c15a4457ec8b2d0ca690102e18616e
1 parent
1bf65181
Moved TextureSet::SetImage() to separate devel-api module
Change-Id: I801d127df7805fb8df6bbaa28fbfeeee46c898a6
Showing
3 changed files
with
13 additions
and
9 deletions
examples/metaball-explosion/metaball-explosion-example.cpp
| 1 | 1 | /* |
| 2 | - * Copyright (c) 2014 Samsung Electronics Co., Ltd. | |
| 2 | + * Copyright (c) 2016 Samsung Electronics Co., Ltd. | |
| 3 | 3 | * |
| 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | 5 | * you may not use this file except in compliance with the License. |
| ... | ... | @@ -21,6 +21,7 @@ |
| 21 | 21 | |
| 22 | 22 | //Internal includes |
| 23 | 23 | #include <dali/dali.h> |
| 24 | +#include <dali/devel-api/images/texture-set-image.h> | |
| 24 | 25 | #include <dali/devel-api/rendering/renderer.h> |
| 25 | 26 | #include <dali-toolkit/dali-toolkit.h> |
| 26 | 27 | |
| ... | ... | @@ -551,8 +552,8 @@ void MetaballExplosionController::AddRefractionImage() |
| 551 | 552 | |
| 552 | 553 | //Create new texture set |
| 553 | 554 | TextureSet textureSet = TextureSet::New(); |
| 554 | - textureSet.SetImage( 0u, mBackImage ); | |
| 555 | - textureSet.SetImage( 1u, fbo ); | |
| 555 | + TextureSetImage( textureSet, 0u, mBackImage ); | |
| 556 | + TextureSetImage( textureSet, 1u, fbo ); | |
| 556 | 557 | |
| 557 | 558 | //Create geometry |
| 558 | 559 | Geometry metaballGeom = CreateGeometryComposition(); | ... | ... |
examples/metaball-refrac/metaball-refrac-example.cpp
| 1 | 1 | /* |
| 2 | - * Copyright (c) 2014 Samsung Electronics Co., Ltd. | |
| 2 | + * Copyright (c) 2016 Samsung Electronics Co., Ltd. | |
| 3 | 3 | * |
| 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | 5 | * you may not use this file except in compliance with the License. |
| ... | ... | @@ -16,6 +16,7 @@ |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | 18 | #include <dali/dali.h> |
| 19 | +#include <dali/devel-api/images/texture-set-image.h> | |
| 19 | 20 | #include <dali/devel-api/rendering/renderer.h> |
| 20 | 21 | #include <dali-toolkit/dali-toolkit.h> |
| 21 | 22 | |
| ... | ... | @@ -532,15 +533,15 @@ void MetaballRefracController::AddRefractionImage() |
| 532 | 533 | |
| 533 | 534 | //Create new texture set |
| 534 | 535 | mTextureSetRefraction = TextureSet::New(); |
| 535 | - mTextureSetRefraction.SetImage( 0u, mBackImage ); | |
| 536 | - mTextureSetRefraction.SetImage( 1u, mMetaballFBO ); | |
| 536 | + TextureSetImage( mTextureSetRefraction, 0u, mBackImage ); | |
| 537 | + TextureSetImage( mTextureSetRefraction, 1u, mMetaballFBO ); | |
| 537 | 538 | |
| 538 | 539 | //Create normal shader |
| 539 | 540 | mShaderNormal = Shader::New( METABALL_VERTEX_SHADER, FRAG_SHADER ); |
| 540 | 541 | |
| 541 | 542 | //Create new texture set |
| 542 | 543 | mTextureSetNormal = TextureSet::New(); |
| 543 | - mTextureSetNormal.SetImage( 0u, mBackImage ); | |
| 544 | + TextureSetImage( mTextureSetNormal, 0u, mBackImage ); | |
| 544 | 545 | |
| 545 | 546 | //Create actor |
| 546 | 547 | mCompositionActor = Actor::New( ); | ... | ... |
examples/new-window/new-window-example.cpp
| 1 | 1 | /* |
| 2 | - * Copyright (c) 2014 Samsung Electronics Co., Ltd. | |
| 2 | + * Copyright (c) 2016 Samsung Electronics Co., Ltd. | |
| 3 | 3 | * |
| 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | 5 | * you may not use this file except in compliance with the License. |
| ... | ... | @@ -15,6 +15,7 @@ |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | 17 | // EXTERNAL INCLUDES |
| 18 | +#include <dali/devel-api/images/texture-set-image.h> | |
| 18 | 19 | #include <dali/devel-api/rendering/renderer.h> |
| 19 | 20 | #include <dali-toolkit/dali-toolkit.h> |
| 20 | 21 | #include <dali-toolkit/devel-api/controls/bubble-effect/bubble-emitter.h> |
| ... | ... | @@ -329,7 +330,8 @@ void NewWindowController::AddBlendingImageActor( Actor& parentActor ) |
| 329 | 330 | blendActor.SetSize(140, 140); |
| 330 | 331 | parentActor.Add(blendActor); |
| 331 | 332 | |
| 332 | - blendActor.GetRendererAt(0u).GetTextures().SetImage( 1u, fb2 ); | |
| 333 | + TextureSet textureSet = blendActor.GetRendererAt(0u).GetTextures(); | |
| 334 | + TextureSetImage( textureSet, 1u, fb2 ); | |
| 333 | 335 | } |
| 334 | 336 | |
| 335 | 337 | void NewWindowController::AddTextLabel( Actor& parentActor ) | ... | ... |