Removed AffectedByLighting APIs from MeshActor 15/36015/1
authorDavid Steele <david.steele@partner.samsung.com>
Fri, 27 Feb 2015 11:07:32 +0000 (11:07 +0000)
committerDavid Steele <david.steele@partner.samsung.com>
Fri, 27 Feb 2015 11:07:32 +0000 (11:07 +0000)
Change-Id: I8e1fb53322a0574c5a85afed1f597b63d900fc55

automated-tests/src/dali/utc-Dali-Material.cpp
dali/internal/event/actor-attachments/mesh-attachment-impl.cpp
dali/internal/event/actor-attachments/mesh-attachment-impl.h
dali/public-api/actors/mesh-actor.cpp
dali/public-api/actors/mesh-actor.h

index bca6587..e07ecdd 100644 (file)
@@ -205,7 +205,6 @@ int UtcDaliMaterialStage01(void)
     {
       MeshActor meshActor = MeshActor::New(mesh);
       meshActor.SetSize(100, 100);
-      meshActor.SetAffectedByLighting(false);
       Stage::GetCurrent().Add(meshActor);
       application.SendNotification();
       application.Render();
@@ -285,7 +284,6 @@ int UtcDaliMaterialStage02(void)
     {
       MeshActor meshActor = MeshActor::New(mesh);
       meshActor.SetSize(100, 100);
-      meshActor.SetAffectedByLighting(false);
       Stage::GetCurrent().Add(meshActor);
       application.SendNotification();
       application.Render();
index e07d65a..a883167 100644 (file)
@@ -50,8 +50,7 @@ MeshAttachmentPtr MeshAttachment::New( Stage& stage, const SceneGraph::Node& par
 
 MeshAttachment::MeshAttachment( Stage& stage )
 : RenderableAttachment( stage ),
-  mSceneObject( NULL ),
-  mAffectedByLighting( true )
+  mSceneObject( NULL )
 {
 }
 
index 135333a..319a3bd 100644 (file)
@@ -226,7 +226,6 @@ private:
   const SceneGraph::MeshAttachment* mSceneObject; ///< Not owned
 
   MeshAndCustomMaterial mMesh;
-  bool                  mAffectedByLighting;
   ConnectorList         mConnectors;
 };
 
index 146b88c..00a1b3a 100644 (file)
@@ -98,15 +98,6 @@ Material MeshActor::GetMaterial() const
   return GetImplementation(*this).GetMaterial();
 }
 
-void MeshActor::SetAffectedByLighting(bool affectedByLighting)
-{
-}
-
-bool MeshActor::IsAffectedByLighting()
-{
-  return false;
-}
-
 void MeshActor::BindBonesToMesh(Actor rootActor)
 {
   Internal::ActorPtr root(&GetImplementation(rootActor));
index d9aecf1..cd88e5b 100644 (file)
@@ -134,28 +134,6 @@ public:
   Material GetMaterial() const;
 
   /**
-   * @brief Set whether this mesh actor should be affected by lights in the scene.
-   *
-   * If it is set to false, then the mesh will be unaffected by
-   * lighting, and will be drawn with flat lighting, applying
-   * the material's diffuse & ambient colors and the actor's color to the
-   * material texture. If it is set to true, and there are no lights in the
-   * scene, the mesh will not be drawn.
-   *
-   * @note This property is not inherited.
-   * @note The default value is true.
-   * @param[in] affectedByLighting Whether the actor should be lit by the scene lighting.
-   */
-  void SetAffectedByLighting(bool affectedByLighting);
-
-  /**
-   * @brief Get the lighting status.
-   *
-   * @return true if the actor is affected by the scene lighting, or false if its evenly lit.
-   */
-  bool IsAffectedByLighting();
-
-  /**
    * @brief Search the actor tree for all named bones in the mesh and connect them.
    *
    * @param[in] rootActor The root actor of the actor tree.