#define DALI_SCENE3D_SCENE_VIEW_H
/*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// INTERNAL INCLUDES
#include <dali-scene3d/public-api/api.h>
+#include <dali-scene3d/public-api/common/environment-map.h>
// EXTERNAL INCLUDES
#include <dali-toolkit/public-api/controls/control.h>
{
public:
/**
- * @brief The skybox types
- * @SINCE_2_2.6
- */
- enum class SkyboxType
- {
- CUBEMAP, ///< Skybox in cubemap
- EQUIRECTANGULAR ///< Skybox in equirectangular projection
- };
-
- /**
* @brief Create an initialized SceneView.
*
* @SINCE_2_1.38
/**
* @brief Sets Skybox for this scene.
- * Skybox texture is asynchronously loaded. When loading is finished, ResourceReady is emitted.
+ * Skybox texture starts to be loaded when SceneView is onScene.
+ * And Skybox texture is asynchronously loaded. When loading is finished, ResourceReady is emitted.
*
* @SINCE_2_2.0
* @param[in] skyboxUrl image url for skybox.
- * @param[in] skyboxType The skybox type (by default it is cubemap).
+ * @note Default SkyboxEnvironmentMapType is Cube Map. Use SetSkyboxEnvironmentMapType method to set type explicitly.
+ */
+ void SetSkybox(const std::string& skyboxUrl);
+
+ /**
+ * @brief Sets Skybox environment map type for this skybox.
+ * If skybox texture already starts to be loaded, when the type is changed, the load request is canceled and re-starts to load with new type.
+ *
+ * @SINCE_2_2.11
+ * @param[in] skyboxEnvironmentMapType The environment type of skybox (by default it is cubemap).
*/
- void SetSkybox(const std::string& skyboxUrl, SkyboxType skyboxType = SkyboxType::CUBEMAP);
+ void SetSkyboxEnvironmentMapType(Scene3D::EnvironmentMapType skyboxEnvironmentMapType);
/**
* @brief Sets Skybox intensity.