Refactored shader effect implementation. 17/24817/3
authorDavid Steele <david.steele@partner.samsung.com>
Tue, 22 Jul 2014 16:05:31 +0000 (17:05 +0100)
committerDavid Steele <david.steele@partner.samsung.com>
Wed, 30 Jul 2014 16:07:11 +0000 (17:07 +0100)
commitdd8db5498c113f2b4208e0e8416e230de989a3a8
tree9af195d84122d94d4ea940558e4e82ae81b277af
parentf2643f26518c26bfc135973a6d33d7ac8d9700fc
Refactored shader effect implementation.

ShaderEffect code was hard to follow, with many methods having the same name
yet performing different functions.

Have refactored the code to use SetProgram() for it's public api, moved and re-wrote
SetPrograms() and SetWrappedProgram() methods from anonymous namespace to private methods
and added a new method called SetProgramImpl() which actually sends the program to the shader
object in the scene graph.

Change-Id: Ic2eaf72a17d337dead1b14746d75f30ffd8ce3f3
Signed-off-by: David Steele <david.steele@partner.samsung.com>
dali/internal/event/effects/shader-effect-impl.cpp
dali/internal/event/effects/shader-effect-impl.h
dali/internal/event/effects/shader-factory.cpp
dali/internal/render/shader-source/custom-mesh-prefix.txt
dali/internal/render/shader-source/mesh-color-no-texture.txt
dali/internal/render/shader-source/mesh.txt