Fixed dynamic shapes using meshes.
authorDavid Steele <david.steele@partner.samsung.com>
Thu, 15 May 2014 19:28:33 +0000 (20:28 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 27 May 2014 14:20:54 +0000 (15:20 +0100)
commitbf1068c9ced863a29185fe67315e766eea54c079
treeb0b6d9b87225d9b108d4325d29c7dea0e8b75874
parent3901b4805f9125987f7975196a679d33cf708e0d
Fixed dynamic shapes using meshes.

[problem]      Cloth demos crash
[cause]        DynamicsShape of type mesh is using discardable meshes
[solution]     Need to ensure that the meshes used for dynamics shapes are not
               discardable. Needs a new API to create mesh actors from such a mesh.
               (Don't want to have non-discardable meshes in public API)

New API is:
Cloth cloth = Cloth::New(width, height, numXDivisions, numYDivisions);
DynamicsShape meshShape = DynamicsShape::NewMesh( cloth );
MeshActor clothActor = MeshActor::New( cloth );

Change-Id: I5c89bfd481d6162f8f17e03710c320e8fbb249bf
Signed-off-by: David Steele <david.steele@partner.samsung.com>
22 files changed:
automated-tests/src/dali-unmanaged/utc-Dali-DynamicsBody.cpp
automated-tests/src/dali-unmanaged/utc-Dali-DynamicsShape.cpp
dali/internal/event/dynamics/dynamics-body-config-impl.cpp
dali/internal/event/dynamics/dynamics-mesh-shape-impl.cpp
dali/internal/event/dynamics/dynamics-mesh-shape-impl.h
dali/internal/event/modeling/cloth-impl.cpp [new file with mode: 0644]
dali/internal/event/modeling/cloth-impl.h [new file with mode: 0644]
dali/internal/file.list
dali/internal/update/modeling/scene-graph-mesh.cpp
dali/internal/update/modeling/scene-graph-mesh.h
dali/internal/update/resources/resource-manager.cpp
dali/public-api/dali-core.h
dali/public-api/dynamics/dynamics-shape.cpp
dali/public-api/dynamics/dynamics-shape.h
dali/public-api/file.list
dali/public-api/geometry/cloth.cpp [new file with mode: 0644]
dali/public-api/geometry/cloth.h [new file with mode: 0644]
dali/public-api/geometry/mesh-data.h
dali/public-api/geometry/mesh-factory.cpp [new file with mode: 0644]
dali/public-api/geometry/mesh-factory.h [new file with mode: 0644]
dali/public-api/geometry/mesh.cpp
dali/public-api/geometry/mesh.h