X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-scene3d%2Fpublic-api%2Fcontrols%2Fscene-view%2Fscene-view.h;h=b1923c303ea5397468a1d89e060e50b86d4b733c;hb=352af592adca3b68694d0d10552f490044005043;hp=cbbe9e032b5914d7ffa50695ab34490d61f67148;hpb=3de943270298245987651685a725178af995032b;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-scene3d/public-api/controls/scene-view/scene-view.h b/dali-scene3d/public-api/controls/scene-view/scene-view.h index cbbe9e0..b1923c3 100644 --- a/dali-scene3d/public-api/controls/scene-view/scene-view.h +++ b/dali-scene3d/public-api/controls/scene-view/scene-view.h @@ -91,7 +91,7 @@ class SceneView; * sceneView.SetProperty(Dali::Actor::Property::SIZE, Vector2(400, 400)); * mWindow.Add(sceneView); * - * Dali::Scene3D::ModelView model = Dali::Scene3D::ModelView::New(...); + * Dali::Scene3D::Model model = Dali::Scene3D::Model::New(...); * sceneView.Add(model); * * CameraActor cameraActor = CameraActor::New(); @@ -195,14 +195,14 @@ public: * * @return Number of cameras those currently the SceneView contains. */ - uint32_t GetCameraCount(); + uint32_t GetCameraCount() const; /** * @brief Retrieves selected CameraActor. * * @return CameraActor currently used in SceneView as a selected CameraActor */ - CameraActor GetSelectedCamera(); + CameraActor GetSelectedCamera() const; /** * @brief Retrieves a CameraActor of the index. @@ -211,7 +211,7 @@ public: * * @return CameraActor of the index */ - CameraActor GetCamera(uint32_t index); + CameraActor GetCamera(uint32_t index) const; /** * @brief Retrieves a CameraActor of the name. @@ -220,7 +220,7 @@ public: * * @return CameraActor that has the name as a Dali::Actor::Property::NAME */ - CameraActor GetCamera(const std::string& name); + CameraActor GetCamera(const std::string& name) const; /** * @brief Makes SceneView use a CameraActor of index as a selected camera. @@ -243,11 +243,29 @@ public: * If SceneView has IBL, IBL of newly added Model is also overridden. * To set indivisual IBL for each Model, the Model's IBL should be set after the SceneView's IBL. * - * @param[in] diffuse cube map that can be used as a diffuse IBL source. - * @param[in] specular cube map that can be used as a specular IBL source. + * @param[in] diffuseUrl cube map that can be used as a diffuse IBL source. + * @param[in] specularUrl cube map that can be used as a specular IBL source. * @param[in] scaleFactor scale factor that controls light source intensity in [0.0f, 1.0f]. Default value is 1.0f. */ - void SetImageBasedLightSource(const std::string& diffuse, const std::string& specular, float scaleFactor = 1.0f); + void SetImageBasedLightSource(const std::string& diffuseUrl, const std::string& specularUrl, float scaleFactor = 1.0f); + + /** + * @brief Sets Scale Factor of Image Based Light Source. + * + * @note If SetImageBasedLightSource() or SetImageBasedLightTexture() method is called after this method, scaleFactor is overriden. + * @note Default value is 1.0f. + * + * @param[in] scaleFactor scale factor that controls light source intensity in [0.0f, 1.0f]. + */ + void SetImageBasedLightScaleFactor(float scaleFactor); + + /** + * @brief Gets Scale Factor of Image Based Light Source. + * Default value is 1.0f. + * + * @return scale factor that controls light source intensity. + */ + float GetImageBasedLightScaleFactor() const; /** * @brief Sets whether to use FBO or not for the SceneView. @@ -267,7 +285,7 @@ public: * * @return bool True if this SceneView uses Framebuffer. */ - bool IsUsingFramebuffer(); + bool IsUsingFramebuffer() const; public: // Not intended for application developers /// @cond internal