X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-scene3d%2Fpublic-api%2Floader%2Fenvironment-definition.h;h=39aa53ac9361f47ccdacbefa7b29a04f92180e46;hb=HEAD;hp=3c4ceeefd76b7450bc7d6b8afded843a38d24ed5;hpb=f13bf919b3cb3103a0301f29c8b096f5c9b6c9bf;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-scene3d/public-api/loader/environment-definition.h b/dali-scene3d/public-api/loader/environment-definition.h index 3c4ceee..99931d7 100644 --- a/dali-scene3d/public-api/loader/environment-definition.h +++ b/dali-scene3d/public-api/loader/environment-definition.h @@ -1,7 +1,7 @@ #ifndef DALI_SCENE3D_LOADER_ENVIRONMENT_DEFINITION_H #define DALI_SCENE3D_LOADER_ENVIRONMENT_DEFINITION_H /* - * Copyright (c) 2023 Samsung Electronics Co., Ltd. + * Copyright (c) 2024 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. @@ -29,16 +29,17 @@ namespace Dali::Scene3D::Loader { /** - * @brief Defines an environment map with either or both of radiance - * and irradiance maps. + * @brief Defines an environment map with either or both of radiance and irradiance maps. + * @SINCE_2_0.7 */ struct DALI_SCENE3D_API EnvironmentDefinition { struct Textures { - Texture mDiffuse; // irradiance - Texture mSpecular; // radiance - Texture mBrdf; // pre-computed brdf + Texture mDiffuse; // irradiance + Texture mSpecular; // radiance + Texture mBrdf; // pre-computed brdf + uint32_t mSpecularMipmapLevels{1u}; bool IsLoaded() const { @@ -66,19 +67,23 @@ struct DALI_SCENE3D_API EnvironmentDefinition /** * @brief Loads raw pixel data for the given diffuse and specular maps. + * @SINCE_2_0.7 + * @return The raw data for the given diffuse and specular maps * @note This can be done on any thread. */ - RawData LoadRaw(const std::string& environmentsPath) const; + RawData LoadRaw(const std::string& environmentsPath); /** - * @brief Creates DALi cubemap Textures from the pixel data in @a raw, then - * returns them in a Textures object. + * @brief Creates DALi cubemap Textures from the pixel data in @a raw, then returns them in a Textures object. + * @SINCE_2_0.7 + * @return DALi cubemap Textures * @note This must only be called from the event thread. */ - Textures Load(RawData&& raw) const; + Textures Load(RawData&& raw); /** * @brief Get default intensity value. + * @SINCE_2_2.1 * @return Default intensity. (1.0f) */ static float GetDefaultIntensity();