platform/core/uifw/dali-core.git
9 years ago[dali_1.0.7] Merge branch 'tizen' 11/27111/1 dali_1.0.7
Agnelo Vaz [Thu, 4 Sep 2014 14:12:24 +0000 (15:12 +0100)]
[dali_1.0.7] Merge branch 'tizen'

Change-Id: I3659528487d81781eafb4ff21766349ecda6cf13

9 years agoDALi Version 1.0.7 06/27106/1
Agnelo Vaz [Thu, 4 Sep 2014 13:52:31 +0000 (14:52 +0100)]
DALi Version 1.0.7

Change-Id: I3348f40a7de58d5cb7551447003dc6e90d4da9f8
Signed-off-by: Agnelo Vaz <agnelo.vaz@samsung.com>
9 years agoMerge "fixed the comments in functor delegate to make it clear that it works with...
Adeel Kazmi [Mon, 1 Sep 2014 14:08:33 +0000 (07:08 -0700)]
Merge "fixed the comments in functor delegate to make it clear that it works with any functor" into tizen

9 years agoMerge "Reducing the size of ImageActor" into tizen
Paul Wisbey [Mon, 1 Sep 2014 12:52:39 +0000 (05:52 -0700)]
Merge "Reducing the size of ImageActor" into tizen

9 years agofixed the comments in functor delegate to make it clear that it works with any functor 15/26915/2
Kimmo Hoikka [Mon, 1 Sep 2014 10:09:36 +0000 (11:09 +0100)]
fixed the comments in functor delegate to make it clear that it works with any functor

[Problem]
[Cause]
[Solution]

Change-Id: I41f48acdb14eeac42aab0d1f0cfa91fbb3cc4fc5

9 years agoReducing the size of ImageActor 99/26399/6
Kimmo Hoikka [Thu, 21 Aug 2014 16:15:00 +0000 (17:15 +0100)]
Reducing the size of ImageActor

[Problem] memory consumption
[Cause] unnecessary connectiontracker instance
[Solution] remove it and implement connectiontrackerinterface instead

Before
-----

Dali-demo
ImageActors 55 * 336b = 18.480b
Cube transition
ImageActors 969 * 336b = 325.584b

After
-----
Dali-demo
ImageActors 55 * 296b = 16.280b
Cube transition
ImageActors 969 * 296b = 286.824b

Saving 11% of RAM

Change-Id: Icfbaca952dd066dce8d05695ed5e5e471ca176c9

9 years agoFixed bug when changing stereo base after setting view mode 57/26857/1
Ferran Sole [Fri, 29 Aug 2014 11:44:11 +0000 (12:44 +0100)]
Fixed bug when changing stereo base after setting view mode

[Problem] When setting new stereo base using SetStereoBase() function, camera position was incorrect
[Cause] SetPerspectiveProjection() function modifies the z coordinate of the camera
[Solution] Set the correct position, not only x coordinate, after calling SetPerspectiveProjection() on each camera

Change-Id: Ibbd21dd285c5b0fd38873d5bd1c3a194a8008fb2

9 years agoMerge "Changed Core::Update to add current time and vsync times as parameters. Moved...
Paul Wisbey [Fri, 29 Aug 2014 09:06:25 +0000 (02:06 -0700)]
Merge "Changed Core::Update to add current time and vsync times as parameters. Moved FrameTime class to Adaptor." into tizen

9 years agoReplaces TextArray type definition. 94/26394/6
Victor Cebollada [Wed, 9 Jul 2014 10:10:57 +0000 (11:10 +0100)]
Replaces TextArray type definition.

TextArray is now a Dali::Vector instead a std::vector.

Change-Id: Iafebb20da91c8f557d0b6162bb84901dadb1cd1b
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
9 years agoChanged Core::Update to add current time and vsync times as parameters. 29/26429/3
David Steele [Fri, 22 Aug 2014 09:56:46 +0000 (10:56 +0100)]
Changed Core::Update to add current time and vsync times as parameters.
Moved FrameTime class to Adaptor.

[Problem]  Dali core is trying to second guess what the Vsync monitor is doing
in adaptor.
[Solution] Remove FrameTime from dali-core, and instead pass in the correct
elapsed time and last/next vsync times to Update().

Change-Id: I002dea0c3e126fdb982990776c4ea7966b72758f
Signed-off-by: David Steele <david.steele@partner.samsung.com>
9 years agofix doxygen comments for connection tracker and slot delegate 23/26723/1
Kimmo Hoikka [Thu, 28 Aug 2014 10:31:34 +0000 (11:31 +0100)]
fix doxygen comments for connection tracker and slot delegate

[Problem]
[Cause]
[Solution]

Change-Id: Ic70ab1aa1fa7eb27824d63c258411e88318b220f

9 years agoMerge "Remove unnecessary pure virtual from connection tracker interface" into tizen
Adeel Kazmi [Wed, 27 Aug 2014 17:28:14 +0000 (10:28 -0700)]
Merge "Remove unnecessary pure virtual from connection tracker interface" into tizen

9 years ago[dali_1.0.6] Merge branch 'tizen' 83/26683/1
Nick Holland [Wed, 27 Aug 2014 16:16:27 +0000 (17:16 +0100)]
[dali_1.0.6] Merge branch 'tizen'

Change-Id: I16e1cdf0c497294381bf59e1baa6f2f304c75891

9 years agoDALi Version 1.0.6 76/26676/1 dali_1.0.6
Nick Holland [Wed, 27 Aug 2014 16:04:55 +0000 (17:04 +0100)]
DALi Version 1.0.6

Change-Id: I03d5b97626d1d491fb2ebf644affcb0939ab1671

9 years agoRemove unnecessary pure virtual from connection tracker interface 97/26397/2
Kimmo Hoikka [Thu, 21 Aug 2014 15:46:00 +0000 (16:46 +0100)]
Remove unnecessary pure virtual from connection tracker interface

[Problem] unnecessary method
[Cause] n/a
[Solution] remove it

Change-Id: I82e91a7eb15e1af190332ccfcdbe72932e2f755a

9 years agoChange declaration of generated shaders 14/26314/5
Kevin Butchart [Wed, 20 Aug 2014 11:51:11 +0000 (12:51 +0100)]
Change declaration of generated shaders

Change generation script to create const char* declarations of shaders
This change is because it was unsafe to call c_str() to assign the
members of CustomShaderWrappers since the constructor for std::string
may not have been called yet

Change-Id: Iebd8c170e2c1d21c4fcbb1063bb0eb74b761bba2

9 years agoInstall doxygen when setting up dali_env 00/26400/2
Adeel Kazmi [Thu, 21 Aug 2014 17:34:10 +0000 (18:34 +0100)]
Install doxygen when setting up dali_env

Change-Id: Iadbf8c36df220d4e5a9513dca4a054f3389747b9

9 years agoMerge "Extend Animation duration when an animator exceeds current duration." into...
Adeel Kazmi [Thu, 21 Aug 2014 16:39:56 +0000 (09:39 -0700)]
Merge "Extend Animation duration when an animator exceeds current duration." into tizen

9 years agoExtend Animation duration when an animator exceeds current duration. 75/26375/5
Paul Wisbey [Thu, 21 Aug 2014 09:41:16 +0000 (10:41 +0100)]
Extend Animation duration when an animator exceeds current duration.

[Problem]  Everyone's pet hate with animation.
[Cause]    Duration does not extend when animators are added.
[Solution] Extend Animation duration.

Change-Id: I72f242794601be9e8f1c3a38acd2607fb86115cc

9 years agoDali::Vector - Insert() and Erase() methods added. 28/26028/16
Victor Cebollada [Wed, 13 Aug 2014 16:51:54 +0000 (17:51 +0100)]
Dali::Vector - Insert() and Erase() methods added.

Insert(Iterator, Element) Inserts an element into the vector.
Insert(Iterator, Iterator, Iterator) Inserts a range of elements into the vector.
Erase(Iterator, Iterator) Erases a range of elements from the vector.

Change-Id: Ia68637c025863bdb0d7c998b017b26ce19d22a42
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
9 years agoMerge "DALi Version 1.0.5" into tizen
Adeel Kazmi [Wed, 20 Aug 2014 14:57:14 +0000 (07:57 -0700)]
Merge "DALi Version 1.0.5" into tizen

9 years ago[dali_1.0.5] Merge branch 'tizen' 22/26322/1
Lee Morgan [Wed, 20 Aug 2014 14:03:42 +0000 (15:03 +0100)]
[dali_1.0.5] Merge branch 'tizen'

Change-Id: Ic976823dbbbb50fe0c9aeee3ce6d5d4a890b3527
Signed-off-by: Lee Morgan <Lee.morgan@partner.samsung.com>
9 years agoMerge "Fix the library search path in "dali-core.pc"" into tizen
Adeel Kazmi [Wed, 20 Aug 2014 13:25:28 +0000 (06:25 -0700)]
Merge "Fix the library search path in "dali-core.pc"" into tizen

9 years agoDALi Version 1.0.5 17/26317/1 dali_1.0.5
Lee Morgan [Wed, 20 Aug 2014 12:55:31 +0000 (13:55 +0100)]
DALi Version 1.0.5

Change-Id: I8227ec27c213fd07c029fb849b92428adf8eace0
Signed-off-by: Lee Morgan <Lee.morgan@partner.samsung.com>
9 years agoFix the library search path in "dali-core.pc" 85/26285/2
Manuel Bachmann [Wed, 20 Aug 2014 08:53:06 +0000 (10:53 +0200)]
Fix the library search path in "dali-core.pc"

Depending on the architecture, libraries may be installed
in another directory than "/usr/lib" ("/usr/lib64" e.g.)
Reflect that in the .pc file.

Change-Id: Id4a617ebbeec2a0c678cd60c494e99ec650aecf8
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
9 years agoAlways call RenderTask::UpdateState every frame 16/26216/2
Paul Wisbey [Tue, 19 Aug 2014 09:31:10 +0000 (10:31 +0100)]
Always call RenderTask::UpdateState every frame

[Problem]  Sometimes the RenderTask state is not updated after GL sync,
           this means that Finished signal is not received.
[Cause]    UpdateState is not called if the scene doesn't change.
[Solution] Always call RenderTask::UpdateState every frame.

Change-Id: Icd9dbf0b58c5750f3035115823211d7bb9b7985b

9 years agoMerge "dali_env scripts creates link to libjpegturbo.so.0 automatically" into tizen
Kimmo Hoikka [Mon, 18 Aug 2014 11:12:34 +0000 (04:12 -0700)]
Merge "dali_env scripts creates link to libjpegturbo.so.0 automatically" into tizen

9 years agoMerge "Updated README to use DALi with a fresh version of Ubuntu" into tizen
Kimmo Hoikka [Mon, 18 Aug 2014 11:12:18 +0000 (04:12 -0700)]
Merge "Updated README to use DALi with a fresh version of Ubuntu" into tizen

9 years agoMerge "Ensure unused warnings are not shown with GCC 4.8" into tizen
Adeel Kazmi [Mon, 18 Aug 2014 11:11:41 +0000 (04:11 -0700)]
Merge "Ensure unused warnings are not shown with GCC 4.8" into tizen

9 years agoUpdated README to use DALi with a fresh version of Ubuntu 13/26113/4
Adeel Kazmi [Sat, 16 Aug 2014 00:38:31 +0000 (01:38 +0100)]
Updated README to use DALi with a fresh version of Ubuntu

Change-Id: I45d28dd569f97f5b94bde0ff76abb77f7487c167

9 years agodali_env scripts creates link to libjpegturbo.so.0 automatically 15/26115/2
Adeel Kazmi [Sat, 16 Aug 2014 10:07:07 +0000 (11:07 +0100)]
dali_env scripts creates link to libjpegturbo.so.0 automatically

Change-Id: Ia4a20d14f3cd55b53d046bd8b76b33da38c6accb

9 years agoEnsure unused warnings are not shown with GCC 4.8 12/26112/3
Adeel Kazmi [Fri, 15 Aug 2014 23:16:52 +0000 (00:16 +0100)]
Ensure unused warnings are not shown with GCC 4.8

[Problem]  With GCC 4.8, the define created using this macro is not used and this comes up as an error.
[Solution] The solution is to get the compiler to ignore this particular unused typedef by adding
           the gcc attribute.

Change-Id: I9d85d51c2960dfe90c1b033cc946eee037894028

9 years agoUpdated documentation for stereoscopic rendering 07/26107/1
Ferran Sole [Fri, 15 Aug 2014 14:07:41 +0000 (15:07 +0100)]
Updated documentation for stereoscopic rendering

Change-Id: Ibb489c3e4e9c25748689bb885edeb21817ac634d

9 years agoFixed Test case which incorrectly looks for inherit-shader-effect property 52/26052/1
Adeel Kazmi [Thu, 14 Aug 2014 17:05:59 +0000 (18:05 +0100)]
Fixed Test case which incorrectly looks for inherit-shader-effect property

Change-Id: Id378c2e3acb9d5dded61be7c2c240794bdd518f5

9 years agoTET - Fix compile errors and remove warnings 46/26046/2
Victor Cebollada [Thu, 14 Aug 2014 14:30:46 +0000 (15:30 +0100)]
TET - Fix compile errors and remove warnings

Change-Id: I50cfcef4ce78b6d80ceda935ff44156a30d79dc4
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
9 years agoshader effect removal - cleanup of the API 34/25534/5
Kimmo Hoikka [Wed, 6 Aug 2014 15:13:37 +0000 (16:13 +0100)]
shader effect removal - cleanup of the API

Requires https://review.tizen.org/gerrit/#/c/25535/

[Problem]
[Cause]
[Solution]

Change-Id: I83afd41ddf7ce481a9c72dedf8bf9597f3f4b409

9 years agoMerge "Changed STEREO_HORIZONTAL view mode to work with landscape orientation" into...
Paul Wisbey [Thu, 14 Aug 2014 09:51:10 +0000 (02:51 -0700)]
Merge "Changed STEREO_HORIZONTAL view mode to work with landscape orientation" into tizen

9 years agoMerge "DALi Version 1.0.4" into tizen
Adeel Kazmi [Wed, 13 Aug 2014 15:36:23 +0000 (08:36 -0700)]
Merge "DALi Version 1.0.4" into tizen

9 years ago[dali_1.0.4] Merge branch 'tizen' 88/25988/1
Kingsley Stephens [Wed, 13 Aug 2014 14:20:51 +0000 (15:20 +0100)]
[dali_1.0.4] Merge branch 'tizen'

Change-Id: I238d93e3ff4d608659da36863312992e0cd82f17

9 years agoDALi Version 1.0.4 84/25984/1 dali_1.0.4
Kingsley Stephens [Wed, 13 Aug 2014 14:14:09 +0000 (15:14 +0100)]
DALi Version 1.0.4

Change-Id: I804687a9285c385f78f67db0b5d3b54723181528

9 years agoMerge "removal of shader inheritance, renderable actors now have shaders and there...
Adeel Kazmi [Wed, 13 Aug 2014 12:37:02 +0000 (05:37 -0700)]
Merge "removal of shader inheritance, renderable actors now have shaders and there is a recursive setter" into tizen

9 years agoMerge "Added dali-common.h to header requiring it." into tizen
Adeel Kazmi [Wed, 13 Aug 2014 12:17:14 +0000 (05:17 -0700)]
Merge "Added dali-common.h to header requiring it." into tizen

9 years agoAdded dali-common.h to header requiring it. 80/25980/1
David Steele [Wed, 13 Aug 2014 12:15:04 +0000 (13:15 +0100)]
Added dali-common.h to header requiring it.

Change-Id: I845c6cbfdc9861c607b5fa6a34436e16d7f62002
Signed-off-by: David Steele <david.steele@partner.samsung.com>
9 years agoRemoving deprecated API's 23/25923/3
Lee Morgan [Tue, 12 Aug 2014 12:38:45 +0000 (13:38 +0100)]
Removing deprecated API's

Change-Id: Ic131caa8add676db949996c5fdc3e8a2ea66e33d
Signed-off-by: Lee Morgan <Lee.morgan@partner.samsung.com>
9 years agoremoval of shader inheritance, renderable actors now have shaders and there is a... 15/25415/8
Kimmo Hoikka [Mon, 4 Aug 2014 16:46:10 +0000 (17:46 +0100)]
removal of shader inheritance, renderable actors now have shaders and there is a recursive setter

requires https://review.tizen.org/gerrit/#/c/25510/

[Problem]
[Cause]
[Solution]

Change-Id: I09f525cfe6ba34068ab6c1ae8bd247744eb7d272

9 years agoChanged STEREO_HORIZONTAL view mode to work with landscape orientation 09/25709/5
Ferran Sole [Fri, 8 Aug 2014 13:03:00 +0000 (14:03 +0100)]
Changed STEREO_HORIZONTAL view mode to work with landscape orientation

On Stereo horizontal mode, the left and right images are now rendered to be viewed in landscape mode
preserving aspect ratio. Also fixed bug which caused to incorrectly reuse render list when camera was
different to the one used to update the render list before.

To set STEREO_HORIZONTAL mode, use '--view 1' as a command-line argument.

Change-Id: I7943b31bc6349c2a70244e86b4b0762e6bdb7ea0

9 years agoImplemented the Handle assignment operators properly 97/25697/9
Paul Wisbey [Fri, 8 Aug 2014 11:00:57 +0000 (12:00 +0100)]
Implemented the Handle assignment operators properly

[Problem] Some unsafe handle assignments are allowed by the compiler e.g.
Actor notAnImageActor = Actor::New();
ImageActor notSafeToUse = notAnImageActor;
[Cause] using BaseHandle::operator= is unsafe
[Solution] Implemented the Handle assignment operators properly

Change-Id: I92cf92d1908d4aa0b96b41d57d66d71b7ad76f8b

9 years agoAdding dali_env script 52/25352/8
Francisco Santos [Fri, 1 Aug 2014 12:38:14 +0000 (13:38 +0100)]
Adding dali_env script

This script creates a folder structure to help building and running dali on desktop.
Check README for instructions.

Change-Id: I5520352b114c7305f03f2c286b6d01e197f1269c
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
9 years agoSplit GlAbstraction to prevent double definition of GL constants 44/25144/7
Francisco Santos [Tue, 29 Jul 2014 16:35:04 +0000 (17:35 +0100)]
Split GlAbstraction to prevent double definition of GL constants

Constants defined in gl-abstraction conflict with the ones in gl headers and
this is not allowed in newer versions of the compiler.

Change-Id: Ib689633f297c30cd0beb477190f0c3bd61b8b478
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
9 years ago[dali_1.0.3] Merge branch 'tizen' 18/25618/2
Agnelo Vaz [Thu, 7 Aug 2014 10:03:08 +0000 (11:03 +0100)]
[dali_1.0.3] Merge branch 'tizen'

Change-Id: Ib27ca231ee092c33926b5f009e37d0285a37675b
Signed-off-by: Agnelo Vaz <agnelo.vaz@samsung.com>
9 years agoDALi Version 1.0.3 38/25538/1 dali_1.0.3
Agnelo Vaz [Wed, 6 Aug 2014 18:05:49 +0000 (19:05 +0100)]
DALi Version 1.0.3

Change-Id: I6497a5f0b13740278007d16793ac0432c8ececc8
Signed-off-by: Agnelo Vaz <agnelo.vaz@samsung.com>
9 years agoFixing the text shader default prefix to match actual shader 04/25404/4
Kimmo Hoikka [Mon, 4 Aug 2014 15:18:18 +0000 (16:18 +0100)]
Fixing the text shader default prefix to match actual shader

[Problem]
[Cause]
[Solution]

Change-Id: I119e3d055f66c8951fad9dc411c9f1a6d92be400

9 years agoImage filter bug fix 91/25391/2
Kingsley Stephens [Mon, 4 Aug 2014 10:18:41 +0000 (11:18 +0100)]
Image filter bug fix

[Problem] There was a bug in the image filtering code that was setting default filtering to nearest mode
[Solution] The default will now be linear

Change-Id: Ibdf52b0ffbf55cb3d9885efc03c30579fb04228e

9 years ago[dali_1.0.2] Merge branch 'tizen' 04/25304/1
Adeel Kazmi [Fri, 1 Aug 2014 14:55:50 +0000 (15:55 +0100)]
[dali_1.0.2] Merge branch 'tizen'

Change-Id: Ieb7d236ac692d7a571a3572aa1c2a314412273d3

9 years agoDALi Version 1.0.2 03/25303/1 dali_1.0.2
Adeel Kazmi [Fri, 1 Aug 2014 14:50:12 +0000 (15:50 +0100)]
DALi Version 1.0.2

Change-Id: I249e7f4ca118f2a659ab3c067d7e5592018957af

9 years agoChanged build directory to tizen 88/25288/1
Adeel Kazmi [Fri, 1 Aug 2014 11:05:24 +0000 (12:05 +0100)]
Changed build directory to tizen

Change-Id: I032e2a3628eec75e0d4d2be187d71d118e391e96

9 years agoMerge "Add some constants that show the version of the library" into tizen
Adeel Kazmi [Fri, 1 Aug 2014 10:04:38 +0000 (03:04 -0700)]
Merge "Add some constants that show the version of the library" into tizen

9 years agoMerge "Added new shader hint for modifying geometry" into tizen
Adeel Kazmi [Fri, 1 Aug 2014 09:29:21 +0000 (02:29 -0700)]
Merge "Added new shader hint for modifying geometry" into tizen

9 years agoMerge "Refactored shader effect implementation." into tizen
Adeel Kazmi [Fri, 1 Aug 2014 09:29:11 +0000 (02:29 -0700)]
Merge "Refactored shader effect implementation." into tizen

9 years agoAdded new shader hint for modifying geometry 64/25164/6
David Steele [Tue, 22 Jul 2014 16:05:31 +0000 (17:05 +0100)]
Added new shader hint for modifying geometry

Culling can only be performed when the vertex shader doesn't move
vertices outside the bounding box. Custom shaders can specify whether
they dont change geometry by setting the hint DOESNT_MODIFY_GEOMETRY.
This will turn culling on for the actors that this shader is used
to render.

Further clean up applied.

Change-Id: Ia28ba7bc0f23613316c9b21a536a94e851337bd2
Signed-off-by: David Steele <david.steele@partner.samsung.com>
9 years agoAdd some constants that show the version of the library 72/25172/6
Adeel Kazmi [Wed, 30 Jul 2014 15:41:55 +0000 (16:41 +0100)]
Add some constants that show the version of the library

Change-Id: If92845f47af4d29bdd0fc395b5e49f8772c7d541

9 years agoRefactored shader effect implementation. 17/24817/3
David Steele [Tue, 22 Jul 2014 16:05:31 +0000 (17:05 +0100)]
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>
9 years agoAdded text renderer culling 66/25066/4
David Steele [Wed, 23 Jul 2014 13:17:28 +0000 (14:17 +0100)]
Added text renderer culling

Text renderers can use the same culling algorithm as images;
have moved the 2D OBB culling algorithm to a new file; changed
the interface slightly (to pass a potentially uncentered bounding box)

Change-Id: Ic4379fdc6e7a25f39377bab2c1169697bef0e641
Signed-off-by: David Steele <david.steele@partner.samsung.com>
9 years ago[Font] Removing Error message which is not actually an error but desired behaviour. 35/25035/1
Agnelo Vaz [Fri, 25 Jul 2014 15:57:17 +0000 (16:57 +0100)]
[Font] Removing Error message which is not actually an error but desired behaviour.

Change-Id: I68fd141b7036cb71aa9042104ec2c0169024e2ff
Signed-off-by: Agnelo Vaz <agnelo.vaz@samsung.com>
9 years agoMerge "Ensured text mesh is centered in text actor." into tizen
Paul Wisbey [Fri, 25 Jul 2014 14:54:52 +0000 (07:54 -0700)]
Merge "Ensured text mesh is centered in text actor." into tizen

9 years agoEnsured text mesh is centered in text actor. 26/25026/2
David Steele [Fri, 25 Jul 2014 13:07:40 +0000 (14:07 +0100)]
Ensured text mesh is centered in text actor.

Problem:
The vertices of the text mesh are not centered, but are offset very
slightly. Also, for italicized text, the mesh is not centered at all.

Solution:
When generating the vertices, calculate min/max, then re-adjust the
vertices so that the center of the bounding box is at the origin (zero).

Change-Id: I1d04cd652fd7c7cfaae2e0f667f12f4023ac30fe
Signed-off-by: David Steele <david.steele@partner.samsung.com>
9 years agoTexture image filtering 11/24811/9
Kingsley Stephens [Tue, 22 Jul 2014 13:06:42 +0000 (14:06 +0100)]
Texture image filtering

Add ability to set texture filtering modes per RenderableActor.

Change-Id: I1d0572a27cb75226b095a4cb31b21197539959d7

9 years agoTextActor - New constructor with a parameter object replaces previous constructors. 47/24947/7
Victor Cebollada [Thu, 24 Jul 2014 06:26:34 +0000 (07:26 +0100)]
TextActor - New constructor with a parameter object replaces previous constructors.

The isLeftToRight parameter has been removed.

Text - New constructor with a const char* parameter to allow Text::New( "Hello" ) or TextActor::New( "world." ), ...

This new constructor allows to remove duplicated methods from public API, using std::string or Character as text parameter:
  Font::GetFamilyForText()
  Font::MeasureTextWidth()
  Font::MeasureTextHeight()
  Font::MeasureText()
  Font::AllGlyphsSupported()
  Text::SetText()
  TextActor::SetText()

Duplicated text related internal methods( with std::string, Text and Character parameters ) have been removed in Text, Font and TextActor.

Removed text style deprecated methods.

Change-Id: Ic0c24bcc8825902eceda713c7dbb41cee683be24
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
9 years ago[dali_1.0.1] Merge branch 'tizen' 67/24967/1
Adeel Kazmi [Thu, 24 Jul 2014 12:55:36 +0000 (13:55 +0100)]
[dali_1.0.1] Merge branch 'tizen'

Change-Id: I39d63adc17305ee7feb853820e3c13216021261a

9 years agoDALi Version 1.0.1 62/24962/1 dali_1.0.1
Adeel Kazmi [Thu, 24 Jul 2014 12:46:29 +0000 (13:46 +0100)]
DALi Version 1.0.1

Change-Id: I87d5cf04aa22c83e70503d6f3de1001cc43b4863

9 years agoMerge "Fixed test case to match new stencil hit rules" into tizen
Adeel Kazmi [Wed, 23 Jul 2014 16:19:33 +0000 (09:19 -0700)]
Merge "Fixed test case to match new stencil hit rules" into tizen

9 years agoMerge "Property - Allow the custom property to be INTEGER type" into tizen
Adeel Kazmi [Wed, 23 Jul 2014 16:10:57 +0000 (09:10 -0700)]
Merge "Property - Allow the custom property to be INTEGER type" into tizen

9 years agoFix regression in debug build & test cases 60/24860/1
Kimmo Hoikka [Wed, 23 Jul 2014 13:29:03 +0000 (14:29 +0100)]
Fix regression in debug build & test cases

[Problem] index going out of bounds
[Cause] using wrong method
[Solution] correct algorithm

Change-Id: I2cd31458534fa8886b7ff27e711fe65e161a1b50

9 years agoMerge "Changed Dali::Signal to use Dali::Vector instead of std::vector. Reduces Signa...
Paul Wisbey [Wed, 23 Jul 2014 12:18:55 +0000 (05:18 -0700)]
Merge "Changed Dali::Signal to use Dali::Vector instead of std::vector. Reduces Signal size from 40b to 24b, saving 80bytes for each actor" into tizen

9 years agoFixed test case to match new stencil hit rules 44/24844/1
Adeel Kazmi [Wed, 23 Jul 2014 09:11:40 +0000 (10:11 +0100)]
Fixed test case to match new stencil hit rules

Change-Id: I5b2e818118c8d7b751007cb8a924ff943df245b5

9 years agoFixed test case to match new CameraActor defaults 18/24818/2
Paul Wisbey [Tue, 22 Jul 2014 16:45:04 +0000 (17:45 +0100)]
Fixed test case to match new CameraActor defaults

Change-Id: I314128ca0d27d66045b5e3108973cfdfe50949ba
Signed-off-by: Paul Wisbey <p.wisbey@samsung.com>
9 years agoProperty - Allow the custom property to be INTEGER type 39/24339/9
Xiangyin Ma [Thu, 10 Jul 2014 15:41:22 +0000 (16:41 +0100)]
Property - Allow the custom property to be INTEGER type

Change-Id: Icf3299e6e6429a0ed2b33e045f720f2fae31e073
Signed-off-by: Xiangyin Ma <x1.ma@samsung.com>
9 years agoChanged Dali::Signal to use Dali::Vector instead of std::vector. Reduces Signal size... 08/24808/2
Kimmo Hoikka [Tue, 22 Jul 2014 11:39:04 +0000 (12:39 +0100)]
Changed Dali::Signal to use Dali::Vector instead of std::vector. Reduces Signal size from 40b to 24b, saving 80bytes for each actor

[Problem] unnecessary memory consumption even if no signal connections
[Cause] std::vector has three pointers
[Solution] use Dali::Vector instead

Change-Id: I9d5ee3978936ce3acd5c38464367bfbad4464ac0

9 years agoTextStyle - Merge operation added. 86/24386/5
Victor Cebollada [Fri, 11 Jul 2014 06:29:04 +0000 (07:29 +0100)]
TextStyle - Merge operation added.

It copies from a given text-style all parameters which are not default.
It's useful to merge parameters from different text-styles into one.

Change-Id: I36e8d481225f09fd5736ae4b8da7a3b78879760b
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
9 years agoMerge "Fix ".libs/linker.test: hidden symbol..., final link failed ..., build error...
Taeyoon [Wed, 23 Jul 2014 01:26:25 +0000 (18:26 -0700)]
Merge "Fix ".libs/linker.test: hidden symbol..., final link failed ..., build error"" into tizen

9 years agoImprove the CameraActor defaults 11/24711/7
Paul Wisbey [Fri, 18 Jul 2014 10:35:53 +0000 (11:35 +0100)]
Improve the CameraActor defaults

Default Camera behavior is confusing since FREE_LOOK is more useful,
but it's not the default. When setting this mode, the Camera ends up
looking in the wrong direction i.e. unless manually rotated.

Change-Id: Icb2422c2115b8fab21932f00779047ff478dab1a
Signed-off-by: Paul Wisbey <p.wisbey@samsung.com>
9 years agoAdded README with build commands 84/24784/2
Adeel Kazmi [Mon, 21 Jul 2014 17:29:37 +0000 (18:29 +0100)]
Added README with build commands

Change-Id: I3ce9605821d87c10f0822be345e1ae41ca24092b

9 years agoFix ".libs/linker.test: hidden symbol..., final link failed ..., build error" 64/24764/2
Taeyoon [Mon, 21 Jul 2014 11:56:43 +0000 (20:56 +0900)]
Fix ".libs/linker.test: hidden symbol..., final link failed ..., build error"

When dali-core is built for tizen-2.2.1
(url = http://download.tizen.org/releases/2.2.1/tizen-2.2.1/)
build error is occured.

Change-Id: I2e9dee090a763d7cb5cdb7d93cba2e794b1607e8

9 years ago(Build) Updated spec file to allow building for SMACK enabled targets 23/24723/6
Adeel Kazmi [Fri, 18 Jul 2014 17:05:45 +0000 (18:05 +0100)]
(Build) Updated spec file to allow building for SMACK enabled targets

Use gbs build ... --define "%enable_dali_smack_rules 1"

Change-Id: I25ffacd72e17c92ac1dcd0eb6f6f8859eb625e72

9 years agoCAPI removal 71/24771/3
Adeel Kazmi [Mon, 21 Jul 2014 11:02:12 +0000 (12:02 +0100)]
CAPI removal

Change-Id: Ib30ced6c7f9b7aa55feb4d531bce7f626ec2f83e

9 years agoMerge "(HitTest) Ensure non-renderable actors are hittable even if outside the stenci...
Adeel Kazmi [Thu, 17 Jul 2014 14:29:05 +0000 (07:29 -0700)]
Merge "(HitTest) Ensure non-renderable actors are hittable even if outside the stencil" into tizen

9 years agoMerge "proper fix for the gcc4.8 scope resolution issue" into tizen
Kimmo Hoikka [Thu, 17 Jul 2014 13:10:32 +0000 (06:10 -0700)]
Merge "proper fix for the gcc4.8 scope resolution issue" into tizen

9 years agoMerge "Text - Methods added to find characters and retrieve sub-texts." into tizen
Paul Wisbey [Thu, 17 Jul 2014 10:52:53 +0000 (03:52 -0700)]
Merge "Text - Methods added to find characters and retrieve sub-texts." into tizen

9 years agoproper fix for the gcc4.8 scope resolution issue 30/24630/1
Kimmo Hoikka [Thu, 17 Jul 2014 10:39:06 +0000 (11:39 +0100)]
proper fix for the gcc4.8 scope resolution issue

[Problem]
[Cause]
[Solution]

Change-Id: Ia3563cfb6a5cafefd851311a571217901c64433b

9 years ago(HitTest) Ensure non-renderable actors are hittable even if outside the stencil 81/24581/2
Adeel Kazmi [Wed, 16 Jul 2014 15:54:09 +0000 (16:54 +0100)]
(HitTest) Ensure non-renderable actors are hittable even if outside the stencil

We do not expect to receive a hit outside the stencil area for a rendered actor. However, for
non-renderable actors, we cannot see these anyway and so these should still be hittable even if we
haven't hit the stencil area. This would allow controls like scroll-view to work with stencils
where we only want the stencil to affect the children of scroll-view.

Change-Id: Ic8e9d00a4125c94972ad2cfe298fae65313ad7dd
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
9 years agoMerge "prevent memory corruption by calling erase on unallocated vector" into tizen
Kimmo Hoikka [Wed, 16 Jul 2014 15:25:46 +0000 (08:25 -0700)]
Merge "prevent memory corruption by calling erase on unallocated vector" into tizen

9 years agoremove the defunct and undocumented dynamics debug renderer, to be replaced with... 64/24564/1
Kimmo Hoikka [Wed, 16 Jul 2014 12:18:58 +0000 (13:18 +0100)]
remove the defunct and undocumented dynamics debug renderer, to be replaced with something more reusable in future

[Problem] dead code
[Cause] unmaintained feature
[Solution] remove it

Change-Id: I239f7d8ba0f12e9f113e4bffbf146d198c032ba1

9 years agoprevent memory corruption by calling erase on unallocated vector 61/24561/1
Kimmo Hoikka [Wed, 16 Jul 2014 12:09:56 +0000 (13:09 +0100)]
prevent memory corruption by calling erase on unallocated vector

[Problem] potential memory corruption / crash
[Cause] not checking if vector internal buffer is allocated
[Solution] check

Change-Id: I299b7e6bd12ab8dc70ca3783ec8b823d37ba5b6f

9 years agoText - Methods added to find characters and retrieve sub-texts. 31/24231/8
Victor Cebollada [Mon, 7 Jul 2014 07:12:42 +0000 (08:12 +0100)]
Text - Methods added to find characters and retrieve sub-texts.

The only way to split a text in lines and words is retrieve
character per character and query if it's a white space or
a new line character.
Every time a character is requested, Text creates a Character
object with its implementation.
The Find methods retrieve all the positions of the white
space, new line character or any other character within the
given range saving the creation of all Character objects.

Change-Id: Ie6107edfef5db9eb6d54dd84ec9e662dead8a229
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
9 years ago(Events) Cleaned up documentation 12/24512/3
Adeel Kazmi [Tue, 15 Jul 2014 14:22:34 +0000 (15:22 +0100)]
(Events) Cleaned up documentation

Change-Id: Ied26dfde72b9124c40489f67230235938db634ec
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
9 years agoMerge "(Pan Gesture Prediction Tests) Added tests for pan prediction algorithms"...
Adeel Kazmi [Tue, 15 Jul 2014 13:40:24 +0000 (06:40 -0700)]
Merge "(Pan Gesture Prediction Tests) Added tests for pan prediction algorithms" into tizen

9 years agoMerge "(LightActor) Fixed it reporting an incorrect type for one of its properties...
Adeel Kazmi [Tue, 15 Jul 2014 13:39:35 +0000 (06:39 -0700)]
Merge "(LightActor) Fixed it reporting an incorrect type for one of its properties" into tizen

9 years agoremoved reliance on dali-adaptor 46/24346/3
David Steele [Thu, 10 Jul 2014 17:12:14 +0000 (18:12 +0100)]
removed reliance on dali-adaptor

Changed test cases to use dali-core.h instead of dali.h, which is a dali-adaptor header.

Change-Id: I3ed7c5adb4166f57660f36666fe320fb7395bc9d
Signed-off-by: David Steele <david.steele@partner.samsung.com>
9 years ago(Pan Gesture Prediction Tests) Added tests for pan prediction algorithms 37/24337/3
Julien Heanley [Thu, 10 Jul 2014 15:12:53 +0000 (16:12 +0100)]
(Pan Gesture Prediction Tests) Added tests for pan prediction algorithms

Change-Id: I3e7c47f5198516b4c3e9fe9681db53254ad9149b
Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
9 years ago(LightActor) Fixed it reporting an incorrect type for one of its properties 57/24457/1
Adeel Kazmi [Mon, 7 Jul 2014 16:12:01 +0000 (17:12 +0100)]
(LightActor) Fixed it reporting an incorrect type for one of its properties

The enable property reported that it was a Vector2 and then assert when trying to set it as it's actually expecting a bool.

Change-Id: I92db4dc28816c2e2b618b8d4b5b01b9612eff2ff
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>