Change dali-scene-loader to dali-scene3d 54/277854/9
authorseungho <sbsh.baek@samsung.com>
Thu, 14 Jul 2022 03:51:50 +0000 (12:51 +0900)
committerseungho <sbsh.baek@samsung.com>
Mon, 18 Jul 2022 08:33:19 +0000 (17:33 +0900)
Change-Id: Iffdf883fafc2b272326265e0a4b4b121fde7a9cb
Signed-off-by: seungho <sbsh.baek@samsung.com>
129 files changed:
.gitignore
README.md
automated-tests/patch-coverage.pl
automated-tests/src/dali-scene3d-internal/CMakeLists.txt [moved from automated-tests/src/dali-scene-loader-internal/CMakeLists.txt with 97% similarity]
automated-tests/src/dali-scene3d-internal/tct-dali-scene3d-internal-core.cpp [moved from automated-tests/src/dali-scene-loader-internal/tct-dali-scene-loader-internal-core.cpp with 71% similarity]
automated-tests/src/dali-scene3d-internal/utc-Dali-Gltf2Asset.cpp [moved from automated-tests/src/dali-scene-loader-internal/utc-Dali-Gltf2Asset.cpp with 98% similarity]
automated-tests/src/dali-scene3d-internal/utc-Dali-Hash.cpp [moved from automated-tests/src/dali-scene-loader-internal/utc-Dali-Hash.cpp with 94% similarity]
automated-tests/src/dali-scene3d-internal/utc-Dali-JsonReader.cpp [moved from automated-tests/src/dali-scene-loader-internal/utc-Dali-JsonReader.cpp with 97% similarity]
automated-tests/src/dali-scene3d-internal/utc-Dali-JsonUtil.cpp [moved from automated-tests/src/dali-scene-loader-internal/utc-Dali-JsonUtil.cpp with 99% similarity]
automated-tests/src/dali-scene3d/CMakeLists.txt [moved from automated-tests/src/dali-scene-loader/CMakeLists.txt with 97% similarity]
automated-tests/src/dali-scene3d/tct-dali-scene3d-core.cpp [moved from automated-tests/src/dali-scene-loader/tct-dali-scene-loader-core.cpp with 75% similarity]
automated-tests/src/dali-scene3d/utc-Dali-AlphaFunctionHelper.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-AlphaFunctionHelper.cpp with 95% similarity]
automated-tests/src/dali-scene3d/utc-Dali-AnimatedProperty.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-AnimatedProperty.cpp with 93% similarity]
automated-tests/src/dali-scene3d/utc-Dali-AnimationDefinition.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-AnimationDefinition.cpp with 96% similarity]
automated-tests/src/dali-scene3d/utc-Dali-CameraParameters.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-CameraParameters.cpp with 95% similarity]
automated-tests/src/dali-scene3d/utc-Dali-CubeLoader.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-CubeLoader.cpp with 97% similarity]
automated-tests/src/dali-scene3d/utc-Dali-CubeMapLoader.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-CubeMapLoader.cpp with 96% similarity]
automated-tests/src/dali-scene3d/utc-Dali-DliLoader.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-DliLoader.cpp with 98% similarity]
automated-tests/src/dali-scene3d/utc-Dali-EnvironmentDefinition.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-EnvironmentDefinition.cpp with 97% similarity]
automated-tests/src/dali-scene3d/utc-Dali-FacialAnimation.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-FacialAnimation.cpp with 95% similarity]
automated-tests/src/dali-scene3d/utc-Dali-Gltf2Loader.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-Gltf2Loader.cpp with 97% similarity]
automated-tests/src/dali-scene3d/utc-Dali-KtxLoader.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-KtxLoader.cpp with 97% similarity]
automated-tests/src/dali-scene3d/utc-Dali-MatrixStack.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-MatrixStack.cpp with 94% similarity]
automated-tests/src/dali-scene3d/utc-Dali-MeshDefinition.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-MeshDefinition.cpp with 94% similarity]
automated-tests/src/dali-scene3d/utc-Dali-ModelView.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-ModelView.cpp with 99% similarity]
automated-tests/src/dali-scene3d/utc-Dali-NodeDefinition.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-NodeDefinition.cpp with 97% similarity]
automated-tests/src/dali-scene3d/utc-Dali-RendererState.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-RendererState.cpp with 97% similarity]
automated-tests/src/dali-scene3d/utc-Dali-ResourceBundle.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-ResourceBundle.cpp with 93% similarity]
automated-tests/src/dali-scene3d/utc-Dali-SceneDefinition.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-SceneDefinition.cpp with 98% similarity]
automated-tests/src/dali-scene3d/utc-Dali-ShaderDefinition.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-ShaderDefinition.cpp with 93% similarity]
automated-tests/src/dali-scene3d/utc-Dali-ShaderDefinitionFactory.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-ShaderDefinitionFactory.cpp with 97% similarity]
automated-tests/src/dali-scene3d/utc-Dali-StringCallback.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-StringCallback.cpp with 88% similarity]
automated-tests/src/dali-scene3d/utc-Dali-Utils.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-Utils.cpp with 95% similarity]
automated-tests/src/dali-scene3d/utc-Dali-ViewProjection.cpp [moved from automated-tests/src/dali-scene-loader/utc-Dali-ViewProjection.cpp with 95% similarity]
build/tizen/.gitignore
build/tizen/CMakeLists.txt
build/tizen/dali-scene3d/CMakeLists.txt [moved from build/tizen/dali-scene-loader/CMakeLists.txt with 82% similarity]
build/tizen/dali-scene3d/build.sh [moved from build/tizen/dali-scene-loader/build.sh with 100% similarity]
build/tizen/dali-scene3d/dali2-scene3d.pc.in [moved from build/tizen/dali-scene-loader/dali2-scene-loader.pc.in with 51% similarity]
build/tizen/docs-internal/dali-internal.doxy.in
build/tizen/docs/dali.doxy.in
dali-scene-loader/internal/file.list [deleted file]
dali-scene-loader/public-api/file.list [deleted file]
dali-scene3d.manifest [moved from dali-scene-loader.manifest with 100% similarity]
dali-scene3d.manifest-smack [moved from dali-scene-loader.manifest-smack with 100% similarity]
dali-scene3d/README.md [moved from dali-scene-loader/README.md with 99% similarity]
dali-scene3d/internal/controls/model-view/model-view-impl.cpp [moved from dali-scene-loader/internal/controls/model-view/model-view-impl.cpp with 78% similarity]
dali-scene3d/internal/controls/model-view/model-view-impl.h [moved from dali-scene-loader/internal/controls/model-view/model-view-impl.h with 85% similarity]
dali-scene3d/internal/file.list [new file with mode: 0644]
dali-scene3d/internal/graphics/shaders/default-physically-based-shader.frag [moved from dali-scene-loader/internal/graphics/shaders/default-physically-based-shader.frag with 100% similarity]
dali-scene3d/internal/graphics/shaders/default-physically-based-shader.vert [moved from dali-scene-loader/internal/graphics/shaders/default-physically-based-shader.vert with 100% similarity]
dali-scene3d/internal/graphics/shaders/scene3d-joint-debug.frag [moved from dali-scene-loader/internal/graphics/shaders/scene-loader-joint-debug.frag with 100% similarity]
dali-scene3d/internal/graphics/shaders/scene3d-joint-debug.vert [moved from dali-scene-loader/internal/graphics/shaders/scene-loader-joint-debug.vert with 100% similarity]
dali-scene3d/internal/loader/gltf2-asset.cpp [moved from dali-scene-loader/internal/gltf2-asset.cpp with 97% similarity]
dali-scene3d/internal/loader/gltf2-asset.h [moved from dali-scene-loader/internal/gltf2-asset.h with 97% similarity]
dali-scene3d/internal/loader/hash.cpp [moved from dali-scene-loader/internal/hash.cpp with 90% similarity]
dali-scene3d/internal/loader/hash.h [moved from dali-scene-loader/internal/hash.h with 91% similarity]
dali-scene3d/internal/loader/json-reader.cpp [moved from dali-scene-loader/internal/json-reader.cpp with 94% similarity]
dali-scene3d/internal/loader/json-reader.h [moved from dali-scene-loader/internal/json-reader.h with 97% similarity]
dali-scene3d/internal/loader/json-util.cpp [moved from dali-scene-loader/internal/json-util.cpp with 98% similarity]
dali-scene3d/internal/loader/json-util.h [moved from dali-scene-loader/internal/json-util.h with 90% similarity]
dali-scene3d/public-api/api.h [moved from dali-scene-loader/public-api/api.h with 61% similarity]
dali-scene3d/public-api/controls/model-view/model-view.cpp [moved from dali-scene-loader/public-api/controls/model-view/model-view.cpp with 93% similarity]
dali-scene3d/public-api/controls/model-view/model-view.h [moved from dali-scene-loader/public-api/controls/model-view/model-view.h with 96% similarity]
dali-scene3d/public-api/file.list [new file with mode: 0644]
dali-scene3d/public-api/loader/alpha-function-helper.cpp [moved from dali-scene-loader/public-api/alpha-function-helper.cpp with 90% similarity]
dali-scene3d/public-api/loader/alpha-function-helper.h [moved from dali-scene-loader/public-api/alpha-function-helper.h with 63% similarity]
dali-scene3d/public-api/loader/animated-property.cpp [moved from dali-scene-loader/public-api/animated-property.cpp with 85% similarity]
dali-scene3d/public-api/loader/animated-property.h [moved from dali-scene-loader/public-api/animated-property.h with 87% similarity]
dali-scene3d/public-api/loader/animation-definition.cpp [moved from dali-scene-loader/public-api/animation-definition.cpp with 92% similarity]
dali-scene3d/public-api/loader/animation-definition.h [moved from dali-scene-loader/public-api/animation-definition.h with 84% similarity]
dali-scene3d/public-api/loader/blend-shape-details.cpp [moved from dali-scene-loader/public-api/blend-shape-details.cpp with 93% similarity]
dali-scene3d/public-api/loader/blend-shape-details.h [moved from dali-scene-loader/public-api/blend-shape-details.h with 85% similarity]
dali-scene3d/public-api/loader/camera-parameters.cpp [moved from dali-scene-loader/public-api/camera-parameters.cpp with 96% similarity]
dali-scene3d/public-api/loader/camera-parameters.h [moved from dali-scene-loader/public-api/camera-parameters.h with 76% similarity]
dali-scene3d/public-api/loader/cube-data.cpp [moved from dali-scene-loader/public-api/cube-data.cpp with 91% similarity]
dali-scene3d/public-api/loader/cube-data.h [moved from dali-scene-loader/public-api/cube-data.h with 80% similarity]
dali-scene3d/public-api/loader/cube-loader.cpp [moved from dali-scene-loader/public-api/cube-loader.cpp with 97% similarity]
dali-scene3d/public-api/loader/cube-loader.h [moved from dali-scene-loader/public-api/cube-loader.h with 76% similarity]
dali-scene3d/public-api/loader/cube-map-loader.cpp [moved from dali-scene-loader/public-api/cube-map-loader.cpp with 72% similarity]
dali-scene3d/public-api/loader/cube-map-loader.h [moved from dali-scene-loader/public-api/cube-map-loader.h with 75% similarity]
dali-scene3d/public-api/loader/customization.cpp [moved from dali-scene-loader/public-api/customization.cpp with 92% similarity]
dali-scene3d/public-api/loader/customization.h [moved from dali-scene-loader/public-api/customization.h with 86% similarity]
dali-scene3d/public-api/loader/dli-loader.cpp [moved from dali-scene-loader/public-api/dli-loader.cpp with 98% similarity]
dali-scene3d/public-api/loader/dli-loader.h [moved from dali-scene-loader/public-api/dli-loader.h with 88% similarity]
dali-scene3d/public-api/loader/environment-definition.cpp [moved from dali-scene-loader/public-api/environment-definition.cpp with 91% similarity]
dali-scene3d/public-api/loader/environment-definition.h [moved from dali-scene-loader/public-api/environment-definition.h with 85% similarity]
dali-scene3d/public-api/loader/facial-animation-loader.cpp [moved from dali-scene-loader/public-api/facial-animation-loader.cpp with 93% similarity]
dali-scene3d/public-api/loader/facial-animation-loader.h [moved from dali-scene-loader/public-api/facial-animation-loader.h with 67% similarity]
dali-scene3d/public-api/loader/gltf2-loader.cpp [moved from dali-scene-loader/public-api/gltf2-loader.cpp with 98% similarity]
dali-scene3d/public-api/loader/gltf2-loader.h [moved from dali-scene-loader/public-api/gltf2-loader.h with 69% similarity]
dali-scene3d/public-api/loader/index.h [moved from dali-scene-loader/public-api/index.h with 72% similarity]
dali-scene3d/public-api/loader/ktx-loader.cpp [moved from dali-scene-loader/public-api/ktx-loader.cpp with 98% similarity]
dali-scene3d/public-api/loader/ktx-loader.h [moved from dali-scene-loader/public-api/ktx-loader.h with 76% similarity]
dali-scene3d/public-api/loader/light-parameters.h [moved from dali-scene-loader/public-api/light-parameters.h with 71% similarity]
dali-scene3d/public-api/loader/load-result.h [moved from dali-scene-loader/public-api/load-result.h with 74% similarity]
dali-scene3d/public-api/loader/material-definition.cpp [moved from dali-scene-loader/public-api/material-definition.cpp with 98% similarity]
dali-scene3d/public-api/loader/material-definition.h [moved from dali-scene-loader/public-api/material-definition.h with 91% similarity]
dali-scene3d/public-api/loader/matrix-stack.cpp [moved from dali-scene-loader/public-api/matrix-stack.cpp with 82% similarity]
dali-scene3d/public-api/loader/matrix-stack.h [moved from dali-scene-loader/public-api/matrix-stack.h with 77% similarity]
dali-scene3d/public-api/loader/mesh-definition.cpp [moved from dali-scene-loader/public-api/mesh-definition.cpp with 99% similarity]
dali-scene3d/public-api/loader/mesh-definition.h [moved from dali-scene-loader/public-api/mesh-definition.h with 93% similarity]
dali-scene3d/public-api/loader/mesh-geometry.h [moved from dali-scene-loader/public-api/mesh-geometry.h with 77% similarity]
dali-scene3d/public-api/loader/node-definition.cpp [moved from dali-scene-loader/public-api/node-definition.cpp with 96% similarity]
dali-scene3d/public-api/loader/node-definition.h [moved from dali-scene-loader/public-api/node-definition.h with 89% similarity]
dali-scene3d/public-api/loader/parse-renderer-state.cpp [moved from dali-scene-loader/public-api/parse-renderer-state.cpp with 95% similarity]
dali-scene3d/public-api/loader/parse-renderer-state.h [moved from dali-scene-loader/public-api/parse-renderer-state.h with 72% similarity]
dali-scene3d/public-api/loader/renderer-state.cpp [moved from dali-scene-loader/public-api/renderer-state.cpp with 93% similarity]
dali-scene3d/public-api/loader/renderer-state.h [moved from dali-scene-loader/public-api/renderer-state.h with 86% similarity]
dali-scene3d/public-api/loader/resource-bundle.cpp [moved from dali-scene-loader/public-api/resource-bundle.cpp with 95% similarity]
dali-scene3d/public-api/loader/resource-bundle.h [moved from dali-scene-loader/public-api/resource-bundle.h with 81% similarity]
dali-scene3d/public-api/loader/scene-definition.cpp [moved from dali-scene-loader/public-api/scene-definition.cpp with 98% similarity]
dali-scene3d/public-api/loader/scene-definition.h [moved from dali-scene-loader/public-api/scene-definition.h with 95% similarity]
dali-scene3d/public-api/loader/shader-definition-factory.cpp [moved from dali-scene-loader/public-api/shader-definition-factory.cpp with 94% similarity]
dali-scene3d/public-api/loader/shader-definition-factory.h [moved from dali-scene-loader/public-api/shader-definition-factory.h with 76% similarity]
dali-scene3d/public-api/loader/shader-definition.cpp [moved from dali-scene-loader/public-api/shader-definition.cpp with 93% similarity]
dali-scene3d/public-api/loader/shader-definition.h [moved from dali-scene-loader/public-api/shader-definition.h with 86% similarity]
dali-scene3d/public-api/loader/skeleton-definition.h [moved from dali-scene-loader/public-api/skeleton-definition.h with 78% similarity]
dali-scene3d/public-api/loader/skinning-details.cpp [moved from dali-scene-loader/public-api/skinning-details.cpp with 81% similarity]
dali-scene3d/public-api/loader/skinning-details.h [moved from dali-scene-loader/public-api/skinning-details.h with 72% similarity]
dali-scene3d/public-api/loader/string-callback.cpp [moved from dali-scene-loader/public-api/string-callback.cpp with 79% similarity]
dali-scene3d/public-api/loader/string-callback.h [moved from dali-scene-loader/public-api/string-callback.h with 69% similarity]
dali-scene3d/public-api/loader/utils.cpp [moved from dali-scene-loader/public-api/utils.cpp with 95% similarity]
dali-scene3d/public-api/loader/utils.h [moved from dali-scene-loader/public-api/utils.h with 76% similarity]
dali-scene3d/public-api/loader/view-projection.cpp [moved from dali-scene-loader/public-api/view-projection.cpp with 78% similarity]
dali-scene3d/public-api/loader/view-projection.h [moved from dali-scene-loader/public-api/view-projection.h with 82% similarity]
dali-scene3d/third-party/.clang-format [moved from dali-scene-loader/third-party/.clang-format with 100% similarity]
dali-scene3d/third-party/json.h [moved from dali-scene-loader/third-party/json.h with 100% similarity]
packaging/dali-toolkit.spec

index 8fef0e8..e4e5fe8 100644 (file)
@@ -50,5 +50,5 @@ core
 compile_commands.json
 dali-toolkit/internal/graphics/generated/*
 dali-toolkit/internal/graphics/builtin-shader-extern-gen.h
-dali-scene-loader/internal/graphics/generated/*
-dali-scene-loader/internal/graphics/builtin-shader-extern-gen.h
+dali-scene3d/internal/graphics/generated/*
+dali-scene3d/internal/graphics/builtin-shader-extern-gen.h
index e4cfdbc..b744509 100644 (file)
--- a/README.md
+++ b/README.md
@@ -15,7 +15,7 @@
          * Build with the Visual Studio project.
          * Build with CMake.
       * [4. Building for MacOS](#4-building-for-macos)
-   * [DALi Scene Loader](#dali-scene-loader)
+   * [DALi Scene3D](#dali-scene3d)
 
 # Build Instructions
 
@@ -131,6 +131,6 @@ To build, run:
 % make install -j8
 ```
 
-# DALi Scene Loader
+# DALi Scene3D
 
-For information about the DALi Scene Loader library, refer to dali-scene-loader/README.md.
+For information about the DALi Scene3D library, refer to dali-scene3d/README.md.
index 1f836a4..2f8bdb4 100755 (executable)
@@ -985,7 +985,7 @@ sub parse_diff
     $files{$file}->{"patch"} = [@checklines];
     $files{$file}->{"b_lines"} = {%b_lines};
 
-    my %filter = map { $_ => $files{$_} } grep {m!^dali(-toolkit|-scene-loader)?/!} (keys(%files));
+    my %filter = map { $_ => $files{$_} } grep {m!^dali(-toolkit|-scene3d)?/!} (keys(%files));
 
     if($pd_debug)
     {
@@ -1,9 +1,9 @@
-SET(PKG_NAME "dali-scene-loader-internal")
+SET(PKG_NAME "dali-scene3d-internal")
 
 SET(EXEC_NAME "tct-${PKG_NAME}-core")
 SET(RPM_NAME "core-${PKG_NAME}-tests")
 
-SET(CAPI_LIB "dali-scene-loader")
+SET(CAPI_LIB "dali-scene3d")
 
 # List of test case sources (Only these get parsed for test cases)
 SET(TC_SOURCES
@@ -63,7 +63,7 @@ PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
   dali2-core
   dali2-adaptor
   dali2-toolkit
-  dali2-scene-loader
+  dali2-scene3d
 )
 
 ADD_COMPILE_OPTIONS( -O0 -ggdb --coverage -Wall -Werror -DDEBUG_ENABLED)
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/internal/gltf2-asset.h"
+#include "dali-scene3d/internal/loader/gltf2-asset.h"
 #include <dali-test-suite-utils.h>
 #include <string>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 int UtcDaliGltf2AssetComponentIsUnsigned(void)
 {
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/internal/hash.h"
+#include "dali-scene3d/internal/loader/hash.h"
 #include <dali-test-suite-utils.h>
 #include <string>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 int UtcDaliHash(void)
 {
@@ -18,7 +18,7 @@
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/internal/json-reader.h"
+#include "dali-scene3d/internal/loader/json-reader.h"
 #include <dali-test-suite-utils.h>
 #include <string>
 
@@ -18,7 +18,7 @@
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/internal/json-util.h"
+#include "dali-scene3d/internal/loader/json-util.h"
 #include "dali-toolkit/devel-api/builder/json-parser.h"
 #include <dali-test-suite-utils.h>
 #include <string>
@@ -27,7 +27,7 @@
 
 using namespace Dali;
 using namespace Dali::Toolkit;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 namespace
 {
@@ -1,9 +1,9 @@
-SET(PKG_NAME "dali-scene-loader")
+SET(PKG_NAME "dali-scene3d")
 
 SET(EXEC_NAME "tct-${PKG_NAME}-core")
 SET(RPM_NAME "core-${PKG_NAME}-tests")
 
-SET(CAPI_LIB "dali-scene-loader")
+SET(CAPI_LIB "dali-scene3d")
 
 # List of test case sources (Only these get parsed for test cases)
 SET(TC_SOURCES
@@ -82,7 +82,7 @@ PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
   dali2-core
   dali2-adaptor
   dali2-toolkit
-  dali2-scene-loader
+  dali2-scene3d
 )
 
 ADD_COMPILE_OPTIONS( -O0 -ggdb --coverage -Wall -Werror -DDEBUG_ENABLED)
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/alpha-function-helper.h"
+#include "dali-scene3d/public-api/loader/alpha-function-helper.h"
 #include <dali-test-suite-utils.h>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 #define ALPHA_FN_PAIR(x) { #x, AlphaFunction::x }
 
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/animated-property.h"
+#include "dali-scene3d/public-api/loader/animated-property.h"
 #include <dali-test-suite-utils.h>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 int UtcDaliAnimatedPropertyGetPropertyType(void)
 {
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/animation-definition.h"
+#include "dali-scene3d/public-api/loader/animation-definition.h"
 #include <dali-test-suite-utils.h>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 int UtcDaliAnimationDefinitionStopForModification(void)
 {
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/camera-parameters.h"
+#include "dali-scene3d/public-api/loader/camera-parameters.h"
 #include <dali-test-suite-utils.h>
 #include <string_view>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 int UtcDaliCameraParameters(void)
 {
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/cube-loader.h"
+#include "dali-scene3d/public-api/loader/cube-loader.h"
 #include <dali-test-suite-utils.h>
 #include <string_view>
 
 #include <fstream>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 int UtcDaliCubeLoaderFailNonexistent(void)
 {
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/cube-map-loader.h"
+#include "dali-scene3d/public-api/loader/cube-map-loader.h"
 #include <dali-test-suite-utils.h>
 #include <string_view>
 
 #include <fstream>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 int UtcDaliCubeMapLoaderFailNonexistent(void)
 {
 
 #include <dali-test-suite-utils.h>
 #include <string_view>
-#include "dali-scene-loader/internal/json-util.h"
-#include "dali-scene-loader/public-api/dli-loader.h"
-#include "dali-scene-loader/public-api/load-result.h"
-#include "dali-scene-loader/public-api/resource-bundle.h"
-#include "dali-scene-loader/public-api/scene-definition.h"
+#include "dali-scene3d/internal/loader/json-util.h"
+#include "dali-scene3d/public-api/loader/dli-loader.h"
+#include "dali-scene3d/public-api/loader/load-result.h"
+#include "dali-scene3d/public-api/loader/resource-bundle.h"
+#include "dali-scene3d/public-api/loader/scene-definition.h"
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 namespace
 {
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/environment-definition.h"
+#include "dali-scene3d/public-api/loader/environment-definition.h"
 #include <dali-test-suite-utils.h>
 #include <string_view>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 int UtcDaliEnvironmentDefinitionLoadRawDefault(void)
 {
  */
 
 #include <dali-test-suite-utils.h>
-#include <dali-scene-loader/public-api/animation-definition.h>
-#include <dali-scene-loader/public-api/facial-animation-loader.h>
+#include <dali-scene3d/public-api/loader/animation-definition.h>
+#include <dali-scene3d/public-api/loader/facial-animation-loader.h>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 int UtcDaliLoadFacialAnimation(void)
 {
 
 #include <dali-test-suite-utils.h>
 #include <string_view>
-#include "dali-scene-loader/public-api/gltf2-loader.h"
-#include "dali-scene-loader/public-api/load-result.h"
-#include "dali-scene-loader/public-api/resource-bundle.h"
-#include "dali-scene-loader/public-api/scene-definition.h"
-#include "dali-scene-loader/public-api/shader-definition-factory.h"
+#include "dali-scene3d/public-api/loader/gltf2-loader.h"
+#include "dali-scene3d/public-api/loader/load-result.h"
+#include "dali-scene3d/public-api/loader/resource-bundle.h"
+#include "dali-scene3d/public-api/loader/scene-definition.h"
+#include "dali-scene3d/public-api/loader/shader-definition-factory.h"
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 #define DALI_TEST_THROW(expression, exception, predicate) \
   {                                                       \
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/ktx-loader.h"
+#include "dali-scene3d/public-api/loader/ktx-loader.h"
 #include <dali-test-suite-utils.h>
 #include <string_view>
 
 #include <fstream>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 int UtcDaliKtxLoaderFailNonexistent(void)
 {
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/matrix-stack.h"
+#include "dali-scene3d/public-api/loader/matrix-stack.h"
 #include <dali-test-suite-utils.h>
 #include <string_view>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 int UtcDaliMatrixStack(void)
 {
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
 
 #include <vector>
 
-#include "dali-scene-loader/public-api/mesh-definition.h"
+#include "dali-scene3d/public-api/loader/mesh-definition.h"
 #include <dali-test-suite-utils.h>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 int UtcDaliMeshDefinitionBlobApplyMinMaxBothMinMaxApplied(void)
 {
@@ -20,7 +20,7 @@
 #include <stdlib.h>
 #include <iostream>
 
-#include <dali-scene-loader/public-api/controls/model-view/model-view.h>
+#include <dali-scene3d/public-api/controls/model-view/model-view.h>
 
 using namespace Dali;
 using namespace Dali::Toolkit;
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/node-definition.h"
-#include "dali-scene-loader/public-api/view-projection.h"
+#include "dali-scene3d/public-api/loader/node-definition.h"
+#include "dali-scene3d/public-api/loader/view-projection.h"
 #include <toolkit-test-application.h>
 #include <dali-test-suite-utils.h>
 #include <string_view>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 namespace
 {
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/renderer-state.h"
-#include "dali-scene-loader/public-api/parse-renderer-state.h"
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/public-api/loader/renderer-state.h"
+#include "dali-scene3d/public-api/loader/parse-renderer-state.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 #include <dali-test-suite-utils.h>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
-namespace sl = SceneLoader;
+namespace sl = Dali::Scene3D::Loader;
 namespace rs = RendererState;
 
 int UtcDaliRendererStateFromBlendFactors(void)
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/resource-bundle.h"
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/public-api/loader/resource-bundle.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 #include <dali-test-suite-utils.h>
 #include <string_view>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 int UtcDaliResourceRefCounts(void)
 {
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/scene-definition.h"
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/public-api/loader/scene-definition.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 #include <dali-test-suite-utils.h>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 int UtcDaliSceneDefinitionAddNode(void)
 {
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/shader-definition.h"
+#include "dali-scene3d/public-api/loader/shader-definition.h"
 #include <dali-test-suite-utils.h>
 #include <string_view>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 int UtcDaliShaderDefinitionFailedToLoad(void)
 {
 #include <dali-test-suite-utils.h>
 #include <set>
 #include <string_view>
-#include "dali-scene-loader/public-api/gltf2-loader.h"
-#include "dali-scene-loader/public-api/node-definition.h"
-#include "dali-scene-loader/public-api/resource-bundle.h"
-#include "dali-scene-loader/public-api/shader-definition-factory.h"
+#include "dali-scene3d/public-api/loader/gltf2-loader.h"
+#include "dali-scene3d/public-api/loader/node-definition.h"
+#include "dali-scene3d/public-api/loader/resource-bundle.h"
+#include "dali-scene3d/public-api/loader/shader-definition-factory.h"
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 namespace
 {
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/string-callback.h"
+#include "dali-scene3d/public-api/loader/string-callback.h"
 #include <dali-test-suite-utils.h>
 #include <string_view>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 namespace
 {
@@ -41,6 +41,6 @@ int UtcDaliUtilsDefaultStringCallback(void)
 {
   InstallLogFunction(TestLogFunction);
   DefaultErrorCallback("Hello world!");
-  DALI_TEST_EQUAL(std::string(sBuffer), "2: string-callback.cpp: DefaultErrorCallback(26) > Hello world!");
+  DALI_TEST_EQUAL(std::string(sBuffer), "2: string-callback.cpp: DefaultErrorCallback(28) > Hello world!");
   END_TEST;
 }
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 #include <dali-test-suite-utils.h>
 #include <string_view>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 namespace
 {
 // Enable debug log for test coverage
 #define DEBUG_ENABLED 1
 
-#include "dali-scene-loader/public-api/view-projection.h"
+#include "dali-scene3d/public-api/loader/view-projection.h"
 #include <dali-test-suite-utils.h>
 
 using namespace Dali;
-using namespace Dali::SceneLoader;
+using namespace Dali::Scene3D::Loader;
 
 namespace
 {
index 2d253c9..f09a06e 100644 (file)
@@ -2,5 +2,5 @@ build
 dali.info
 *.dylib
 dali2-*-config.cmake
-libdali2-scene-loader.so*
+libdali2-scene3d.so*
 dali-shader-generator
index 31cfe9f..6609ae5 100644 (file)
@@ -34,7 +34,7 @@ OPTION(ENABLE_LINK_TEST          "Enable the link test" ON)
 OPTION(INSTALL_DOXYGEN_DOC       "Install doxygen doc" ON)
 OPTION(CONFIGURE_AUTOMATED_TESTS "Configure automated tests" ON)
 OPTION(USE_DEFAULT_RESOURCE_DIR  "Whether to use the default resource folders. Otherwise set environment variables for DALI_IMAGE_DIR, DALI_SOUND_DIR, DALI_STYLE_DIR, DALI_STYLE_IMAGE_DIR and DALI_DATA_READ_ONLY_DIR" ON)
-OPTION(BUILD_SCENE_LOADER        "Whether to build dali-scene-loader." ON)
+OPTION(BUILD_SCENE3D        "Whether to build dali-scene3d." ON)
 
 IF( ENABLE_PKG_CONFIGURE )
   FIND_PACKAGE( PkgConfig REQUIRED )
@@ -511,7 +511,7 @@ IF( ENABLE_COVERAGE )
     ADD_CUSTOM_TARGET( ${DALI_TOOLKIT_PREFIX}rename_cov_data ./rename-cov-data )
 
     ADD_CUSTOM_TARGET( ${DALI_TOOLKIT_PREFIX}cov_data ${LCOV_BIN} ${LCOV_OPTS} --base-directory . --directory . -c -o dali.info
-      COMMAND ${LCOV_BIN} ${LCOV_OPTS} --remove dali.info \"*/dali-env/*\" \"/usr/include/*\" \"*/dali-env/*\" \"*solid-color-actor*\" \"*/dali-toolkit/third-party/*\" \"*/dali-scene-loader/third-party/*\" -o dali.info )
+      COMMAND ${LCOV_BIN} ${LCOV_OPTS} --remove dali.info \"*/dali-env/*\" \"/usr/include/*\" \"*/dali-env/*\" \"*solid-color-actor*\" \"*/dali-toolkit/third-party/*\" \"*/dali-scene3d/third-party/*\" -o dali.info )
 
     ADD_CUSTOM_TARGET( ${DALI_TOOLKIT_PREFIX}coverage genhtml -p ${ROOT_SRC_DIR} ${LCOV_OPTS} -o ${COVERAGE_OUTPUT_DIR} dali.info
       DEPENDS cov_data )
@@ -554,8 +554,8 @@ IF( ENABLE_COVERAGE )
   ENDIF( LCOV_BIN )
 ENDIF()
 
-IF ( BUILD_SCENE_LOADER )
-  ADD_SUBDIRECTORY( ${CMAKE_CURRENT_SOURCE_DIR}/dali-scene-loader )
+IF ( BUILD_SCENE3D )
+  ADD_SUBDIRECTORY( ${CMAKE_CURRENT_SOURCE_DIR}/dali-scene3d )
 ENDIF()
 
 
@@ -572,9 +572,9 @@ IF( DOXYGEN_FOUND )
   CONFIGURE_FILE( ${DOXYGEN_SRC_DIR}/dali.doxy.in ${DOXYGEN_SRC_DIR}/dali.doxy @ONLY )
   CONFIGURE_FILE( ${DOXYGEN_INTERNAL_SRC_DIR}/dali-internal.doxy.in ${DOXYGEN_INTERNAL_SRC_DIR}/dali-internal.doxy @ONLY )
 
-  IF ( BUILD_SCENE_LOADER )
+  IF ( BUILD_SCENE3D )
     ADD_CUSTOM_TARGET( doc_doxygen ALL
-      DEPENDS ${name} dali2-scene-loader
+      DEPENDS ${name} dali2-scene3d
       COMMAND ${DOXYGEN_EXECUTABLE} -u ${DOXYGEN_SRC_DIR}/dali.doxy
       COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_SRC_DIR}/dali.doxy
       COMMAND ${CMAKE_COMMAND} -P ${DOXYGEN_SRC_DIR}/check_for_errors.cmake
@@ -630,7 +630,7 @@ MESSAGE( STATUS "Use pkg configure:             " ${ENABLE_PKG_CONFIGURE} )
 MESSAGE( STATUS "Vector Based Text Rendering:   " ${ENABLE_VECTOR_BASED_TEXT_RENDERING} )
 MESSAGE( STATUS "Enable link test:              " ${ENABLE_LINK_TEST} )
 MESSAGE( STATUS "Configure automated tests:     " ${CONFIGURE_AUTOMATED_TESTS} )
-MESSAGE( STATUS "Build Dali Scene Loader:       " ${BUILD_SCENE_LOADER} )
+MESSAGE( STATUS "Build Dali Scene3D:       " ${BUILD_SCENE3D} )
 MESSAGE( STATUS "CXXFLAGS:                      " ${CMAKE_CXX_FLAGS} )
 MESSAGE( STATUS "LDFLAGS:                       " ${CMAKE_SHARED_LINKER_FLAGS_INIT}${CMAKE_SHARED_LINKER_FLAGS} )
 
similarity index 82%
rename from build/tizen/dali-scene-loader/CMakeLists.txt
rename to build/tizen/dali-scene3d/CMakeLists.txt
index f900b5a..08e646e 100644 (file)
@@ -1,5 +1,5 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 3.8.2)
-set(name "dali2-scene-loader")
+set(name "dali2-scene3d")
 
 project(${name} CXX)
 
@@ -8,13 +8,13 @@ set(${name}_VERSION_MINOR 0)
 set(${name}_VERSION_PATCH 0)
 set(${name}_VERSION ${${name}_VERSION_MAJOR}.${${name}_VERSION_MINOR}.${${name}_VERSION_PATCH} )
 
-SET(DALI_SCENE_LOADER_VERSION ${${name}_VERSION} )
+SET(DALI_SCENE3D_VERSION ${${name}_VERSION} )
 
 if(CMAKE_BUILD_TYPE MATCHES Debug)
        add_definitions("-DDEBUG_ENABLED")
 endif()
 
-ADD_DEFINITIONS( "-DBUILDING_DALI_SCENE_LOADER" )
+ADD_DEFINITIONS( "-DBUILDING_DALI_SCENE3D" )
 
 foreach(flag ${PKGS_CFLAGS})
        set(extra_flags "${extra_flags} ${flag}")
@@ -34,7 +34,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${extra_flags}")
 set(prefix ${CMAKE_INSTALL_PREFIX})
 
 set(repo_root_dir "${CMAKE_CURRENT_LIST_DIR}/../../../")
-set(scene_loader_dir "${repo_root_dir}/dali-scene-loader")
+set(scene3d_dir "${repo_root_dir}/dali-scene3d")
 
 option(ENABLE_PKG_CONFIGURE "Use pkgconfig" ON)
 option(ENABLE_COVERAGE "Coverage" OFF)
@@ -66,13 +66,13 @@ if (ENABLE_PKG_CONFIGURE)
        set(EXEC_PREFIX ${CMAKE_INSTALL_PREFIX})
        set(DEV_INCLUDE_PATH ${INCLUDE_DIR})
 
-       set(core_pkg_cfg_file dali2-scene-loader.pc)
+       set(core_pkg_cfg_file dali2-scene3d.pc)
        configure_file(${CMAKE_CURRENT_LIST_DIR}/${core_pkg_cfg_file}.in ${core_pkg_cfg_file} @ONLY)
 endif()
 
-set(scene_loader_src_files "")
-include("${scene_loader_dir}/internal/file.list")
-include("${scene_loader_dir}/public-api/file.list")
+set(scene3d_src_files "")
+include("${scene3d_dir}/internal/file.list")
+include("${scene3d_dir}/public-api/file.list")
 
 set(prefix_include_dir "${prefix}/include")
 include_directories(${repo_root_dir}
@@ -80,10 +80,10 @@ include_directories(${repo_root_dir}
 )
 
 # Generate source files for shaders
-SET(SHADER_SOURCE_DIR "${scene_loader_dir}/internal/graphics/shaders/")
-SET(SHADER_GENERATED_DIR "${scene_loader_dir}/internal/graphics/generated")
+SET(SHADER_SOURCE_DIR "${scene3d_dir}/internal/graphics/shaders/")
+SET(SHADER_GENERATED_DIR "${scene3d_dir}/internal/graphics/generated")
 
-SET(GENERATED_SHADER_DIR ${scene_loader_dir}/internal/graphics/)
+SET(GENERATED_SHADER_DIR ${scene3d_dir}/internal/graphics/)
 SET_PROPERTY(DIRECTORY PROPERTY ADDITIONAL_MAKE_CLEAN_FILES
              "${GENERATED_SHADER_DIR}/generated/"
              "${GENERATED_SHADER_DIR}/builtin-shader-extern-gen.h")
@@ -104,9 +104,9 @@ ADD_CUSTOM_COMMAND(OUTPUT ${BUILT_IN_SHADER_GEN_CPP}
                    DEPENDS ${SHADER_GENERATOR_BINARY}
                    COMMAND ${SHADER_GENERATOR_BINARY} ${SHADER_SOURCE_DIR} ${SHADER_GENERATED_DIR})
 
-SET( scene_loader_src_files ${scene_loader_src_files} ${BUILT_IN_SHADER_GEN_CPP} )
+SET( scene3d_src_files ${scene3d_src_files} ${BUILT_IN_SHADER_GEN_CPP} )
 
-add_library(${name} SHARED ${scene_loader_src_files})
+add_library(${name} SHARED ${scene3d_src_files})
 
 target_link_libraries(${name} ${DALICORE_LDFLAGS} ${DALIADAPTOR_LDFLAGS}
        dali2-toolkit
@@ -119,7 +119,7 @@ endif()
 IF( INSTALL_CMAKE_MODULES )
        SET_TARGET_PROPERTIES( ${name}
                PROPERTIES
-               VERSION ${DALI_SCENE_LOADER_VERSION}
+               VERSION ${DALI_SCENE3D_VERSION}
                SOVERSION ${${name}_VERSION_MAJOR}
                CLEAN_DIRECT_OUPUT 1
        )
@@ -160,9 +160,9 @@ ELSE()
        INSTALL( TARGETS ${name} DESTINATION ${LIB_DIR} )
 ENDIF()
 
-file(GLOB scene_loader_include_files ${scene_loader_public_api_dir})
-install(DIRECTORY ${scene_loader_include_files}
-       DESTINATION "${prefix_include_dir}/dali-scene-loader"
+file(GLOB scene3d_include_files ${scene3d_public_api_dir})
+install(DIRECTORY ${scene3d_include_files}
+       DESTINATION "${prefix_include_dir}/dali-scene3d"
        FILES_MATCHING PATTERN "*.h"
 )
 
@@ -1,12 +1,12 @@
 prefix=@PREFIX@
 exec_prefix=@EXEC_PREFIX@
-apiversion=@DALI_SCENE_LOADER_VERSION@
+apiversion=@DALI_SCENE3D_VERSION@
 libdir=@LIB_DIR@
 includedir=@DEV_INCLUDE_PATH@
 
-Name: Dali 3D Engine Scene Loader
-Description: Dali Scene Loader library
+Name: Dali 3D Engine Scene3D
+Description: Dali Scene3D library
 Version: ${apiversion}
 Requires: dali2-toolkit
-Libs: -L${libdir} -ldali2-scene-loader
+Libs: -L${libdir} -ldali2-scene3d
 Cflags: -I${includedir}
index 7cf973a..1807df0 100644 (file)
@@ -2293,7 +2293,7 @@ INCLUDE_FILE_PATTERNS  =
 PREDEFINED             = DALI_CORE_API \
                          DALI_ADAPTOR_API \
                          DALI_TOOLKIT_API \
-                         DALI_SCENE_LOADER_API \
+                         DALI_SCENE3D_API \
                          DALI_INTERNAL \
 
 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
index 0fefc0e..f60c723 100644 (file)
@@ -999,7 +999,7 @@ INPUT                  = @DOXYGEN_DOCS_DIR@/content \
                          @prefix@/include/dali/devel-api \
                          ../../../dali-toolkit/public-api \
                          ../../../dali-toolkit/devel-api \
-                         ../../../dali-scene-loader/public-api \
+                         ../../../dali-scene3d/public-api \
                          ../../../automated-tests/README.md
 
 # This tag can be used to specify the character encoding of the source files
@@ -2274,7 +2274,7 @@ INCLUDE_FILE_PATTERNS  =
 PREDEFINED             = DALI_CORE_API \
                          DALI_ADAPTOR_API \
                          DALI_TOOLKIT_API \
-                         DALI_SCENE_LOADER_API \
+                         DALI_SCENE3D_API \
                          DALI_INTERNAL \
 
 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
diff --git a/dali-scene-loader/internal/file.list b/dali-scene-loader/internal/file.list
deleted file mode 100644 (file)
index 7987d79..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-set(scene_loader_internal_dir "${scene_loader_dir}/internal")
-
-set(scene_loader_src_files ${scene_loader_src_files}
-       ${scene_loader_internal_dir}/gltf2-asset.cpp
-       ${scene_loader_internal_dir}/hash.cpp
-       ${scene_loader_internal_dir}/json-reader.cpp
-       ${scene_loader_internal_dir}/json-util.cpp
-       ${scene_loader_internal_dir}/controls/model-view/model-view-impl.cpp
-)
diff --git a/dali-scene-loader/public-api/file.list b/dali-scene-loader/public-api/file.list
deleted file mode 100644 (file)
index 92b1c91..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-set(scene_loader_public_api_dir "${scene_loader_dir}/public-api")
-
-set(scene_loader_src_files ${scene_loader_src_files}
-       ${scene_loader_public_api_dir}/alpha-function-helper.cpp
-       ${scene_loader_public_api_dir}/animated-property.cpp
-       ${scene_loader_public_api_dir}/animation-definition.cpp
-       ${scene_loader_public_api_dir}/blend-shape-details.cpp
-       ${scene_loader_public_api_dir}/camera-parameters.cpp
-       ${scene_loader_public_api_dir}/cube-data.cpp
-       ${scene_loader_public_api_dir}/cube-loader.cpp
-       ${scene_loader_public_api_dir}/cube-map-loader.cpp
-       ${scene_loader_public_api_dir}/customization.cpp
-       ${scene_loader_public_api_dir}/dli-loader.cpp
-       ${scene_loader_public_api_dir}/environment-definition.cpp
-       ${scene_loader_public_api_dir}/facial-animation-loader.cpp
-       ${scene_loader_public_api_dir}/gltf2-loader.cpp
-       ${scene_loader_public_api_dir}/ktx-loader.cpp
-       ${scene_loader_public_api_dir}/material-definition.cpp
-       ${scene_loader_public_api_dir}/matrix-stack.cpp
-       ${scene_loader_public_api_dir}/mesh-definition.cpp
-       ${scene_loader_public_api_dir}/controls/model-view/model-view.cpp
-       ${scene_loader_public_api_dir}/node-definition.cpp
-       ${scene_loader_public_api_dir}/parse-renderer-state.cpp
-       ${scene_loader_public_api_dir}/renderer-state.cpp
-       ${scene_loader_public_api_dir}/resource-bundle.cpp
-       ${scene_loader_public_api_dir}/scene-definition.cpp
-       ${scene_loader_public_api_dir}/shader-definition.cpp
-       ${scene_loader_public_api_dir}/shader-definition-factory.cpp
-       ${scene_loader_public_api_dir}/skinning-details.cpp
-       ${scene_loader_public_api_dir}/string-callback.cpp
-       ${scene_loader_public_api_dir}/utils.cpp
-       ${scene_loader_public_api_dir}/view-projection.cpp
-)
\ No newline at end of file
similarity index 99%
rename from dali-scene-loader/README.md
rename to dali-scene3d/README.md
index b29c463..4174487 100644 (file)
@@ -213,7 +213,7 @@ DLI supports meshes that allow deformation by skeletal animation. These must def
    * `joints0` and `weights0` attributes, as above.
    * A [`skeleton`](#skeletons) ID, to specify which (joint) nodes' transformations affect the mesh.
 
-:warning: The maximum number of bones supported by DALi Scene Loader is `64`.
+:warning: The maximum number of bones supported by DALi Scene3D is `64`.
 
 ## Blend shapes
 Blend shapes provide alternate configurations of vertex `positions`, `normals` and/or `tangents` that may be blended with the same attributes of the base mesh, controlled by an animatable `weight`.
@@ -241,7 +241,7 @@ Blend shapes provide alternate configurations of vertex `positions`, `normals` a
 ```
 A `blendShapesHeader`, if present, must define:
    * the `version` of the blend shapes; supported values are `1.0` and `2.0`. The difference between the versions is that v1.0 requires a per-blend shape definition of an un-normalization factor.
-   * the `byteOffset` and `byteLength` of a buffer in the binary which defines the width (2 bytes) and height (2 bytes) of the texture that dali-scene-loader creates for blend shape data.
+   * the `byteOffset` and `byteLength` of a buffer in the binary which defines the width (2 bytes) and height (2 bytes) of the texture that dali-scene3d creates for blend shape data.
 
 The `blendShapes` array then defines the shapes that are available to blend between, comprising of:
    * An initial `weight` numerical, the default is 0;
 #include <dali-toolkit/devel-api/controls/control-devel.h>
 #include <dali-toolkit/internal/controls/control/control-data-impl.h>
 #include <dali-toolkit/internal/graphics/builtin-shader-extern-gen.h>
+#include <dali/integration-api/debug.h>
 #include <dali/public-api/object/type-registry-helper.h>
 #include <dali/public-api/object/type-registry.h>
-#include <dali/integration-api/debug.h>
 #include <filesystem>
 
 // INTERNAL INCLUDES
-#include <dali-scene-loader/public-api/animation-definition.h>
-#include <dali-scene-loader/public-api/camera-parameters.h>
-#include <dali-scene-loader/public-api/dli-loader.h>
-#include <dali-scene-loader/public-api/gltf2-loader.h>
-#include <dali-scene-loader/public-api/light-parameters.h>
-#include <dali-scene-loader/public-api/load-result.h>
-#include <dali-scene-loader/public-api/node-definition.h>
-#include <dali-scene-loader/public-api/scene-definition.h>
-#include <dali-scene-loader/public-api/shader-definition-factory.h>
-#include <dali-scene-loader/public-api/controls/model-view/model-view.h>
-#include <dali-scene-loader/public-api/cube-map-loader.h>
-#include <dali-scene-loader/public-api/cube-data.h>
+#include <dali-scene3d/public-api/controls/model-view/model-view.h>
+#include <dali-scene3d/public-api/loader/animation-definition.h>
+#include <dali-scene3d/public-api/loader/camera-parameters.h>
+#include <dali-scene3d/public-api/loader/cube-data.h>
+#include <dali-scene3d/public-api/loader/cube-map-loader.h>
+#include <dali-scene3d/public-api/loader/dli-loader.h>
+#include <dali-scene3d/public-api/loader/gltf2-loader.h>
+#include <dali-scene3d/public-api/loader/light-parameters.h>
+#include <dali-scene3d/public-api/loader/load-result.h>
+#include <dali-scene3d/public-api/loader/node-definition.h>
+#include <dali-scene3d/public-api/loader/scene-definition.h>
+#include <dali-scene3d/public-api/loader/shader-definition-factory.h>
 
 using namespace Dali;
 
@@ -115,9 +115,9 @@ struct BoundingVolume
 
 Texture LoadCubeMap(const std::string& cubeMapPath)
 {
-  Texture               cubeTexture;
-  SceneLoader::CubeData cubeData;
-  if(SceneLoader::LoadCubeMapData(cubeMapPath, cubeData))
+  Texture                         cubeTexture;
+  Dali::Scene3D::Loader::CubeData cubeData;
+  if(Dali::Scene3D::Loader::LoadCubeMapData(cubeMapPath, cubeData))
   {
     cubeTexture = cubeData.CreateTexture();
   }
@@ -130,13 +130,13 @@ Texture LoadCubeMap(const std::string& cubeMapPath)
 }
 
 void ConfigureBlendShapeShaders(
-  SceneLoader::ResourceBundle& resources, const SceneLoader::SceneDefinition& scene, Actor root, std::vector<SceneLoader::BlendshapeShaderConfigurationRequest>&& requests)
+  Dali::Scene3D::Loader::ResourceBundle& resources, const Dali::Scene3D::Loader::SceneDefinition& scene, Actor root, std::vector<Dali::Scene3D::Loader::BlendshapeShaderConfigurationRequest>&& requests)
 {
   std::vector<std::string> errors;
   auto                     onError = [&errors](const std::string& msg) { errors.push_back(msg); };
   if(!scene.ConfigureBlendshapeShaders(resources, root, std::move(requests), onError))
   {
-    SceneLoader::ExceptionFlinger flinger(ASSERT_LOCATION);
+    Dali::Scene3D::Loader::ExceptionFlinger flinger(ASSERT_LOCATION);
     for(auto& msg : errors)
     {
       flinger << msg << '\n';
@@ -144,14 +144,14 @@ void ConfigureBlendShapeShaders(
   }
 }
 
-void AddModelTreeToAABB(BoundingVolume& AABB, const SceneLoader::SceneDefinition& scene, const Dali::SceneLoader::Customization::Choices& choices, Dali::SceneLoader::Index iNode, Dali::SceneLoader::NodeDefinition::CreateParams& nodeParams, Matrix parentMatrix)
+void AddModelTreeToAABB(BoundingVolume& AABB, const Dali::Scene3D::Loader::SceneDefinition& scene, const Dali::Scene3D::Loader::Customization::Choices& choices, Dali::Scene3D::Loader::Index iNode, Dali::Scene3D::Loader::NodeDefinition::CreateParams& nodeParams, Matrix parentMatrix)
 {
   static constexpr uint32_t BOX_POINT_COUNT             = 8;
   static uint32_t           BBIndex[BOX_POINT_COUNT][3] = {{0, 0, 0}, {0, 1, 0}, {1, 0, 0}, {1, 1, 0}, {0, 0, 1}, {0, 1, 1}, {1, 0, 1}, {1, 1, 1}};
 
-  Matrix nodeMatrix;
-  const SceneLoader::NodeDefinition* node        = scene.GetNode(iNode);
-  Matrix                             localMatrix = node->GetLocalSpace();
+  Matrix                                       nodeMatrix;
+  const Dali::Scene3D::Loader::NodeDefinition* node        = scene.GetNode(iNode);
+  Matrix                                       localMatrix = node->GetLocalSpace();
   Matrix::Multiply(nodeMatrix, localMatrix, parentMatrix);
 
   Vector3 volume[2];
@@ -171,8 +171,8 @@ void AddModelTreeToAABB(BoundingVolume& AABB, const SceneLoader::SceneDefinition
   {
     if(!node->mChildren.empty())
     {
-      auto                     choice = choices.Get(node->mCustomization->mTag);
-      Dali::SceneLoader::Index i      = std::min(choice != Dali::SceneLoader::Customization::NONE ? choice : 0, static_cast<Dali::SceneLoader::Index>(node->mChildren.size() - 1));
+      auto                         choice = choices.Get(node->mCustomization->mTag);
+      Dali::Scene3D::Loader::Index i      = std::min(choice != Dali::Scene3D::Loader::Customization::NONE ? choice : 0, static_cast<Dali::Scene3D::Loader::Index>(node->mChildren.size() - 1));
 
       AddModelTreeToAABB(AABB, scene, choices, node->mChildren[i], nodeParams, nodeMatrix);
     }
@@ -357,42 +357,42 @@ void ModelView::LoadModel()
   std::string extension = modelPath.extension();
   std::transform(extension.begin(), extension.end(), extension.begin(), ::tolower);
 
-  SceneLoader::ResourceBundle::PathProvider pathProvider = [&](SceneLoader::ResourceType::Value type) {
+  Dali::Scene3D::Loader::ResourceBundle::PathProvider pathProvider = [&](Dali::Scene3D::Loader::ResourceType::Value type) {
     return mResourcePath;
   };
 
-  SceneLoader::ResourceBundle                        resources;
-  SceneLoader::SceneDefinition                       scene;
-  std::vector<SceneLoader::AnimationGroupDefinition> animGroups;
-  std::vector<SceneLoader::CameraParameters>         cameraParameters;
-  std::vector<SceneLoader::LightParameters>          lights;
+  Dali::Scene3D::Loader::ResourceBundle                        resources;
+  Dali::Scene3D::Loader::SceneDefinition                       scene;
+  std::vector<Dali::Scene3D::Loader::AnimationGroupDefinition> animGroups;
+  std::vector<Dali::Scene3D::Loader::CameraParameters>         cameraParameters;
+  std::vector<Dali::Scene3D::Loader::LightParameters>          lights;
 
-  std::vector<Dali::SceneLoader::AnimationDefinition> animations;
+  std::vector<Dali::Scene3D::Loader::AnimationDefinition> animations;
   animations.clear();
 
-  SceneLoader::LoadResult output{resources, scene, animations, animGroups, cameraParameters, lights};
+  Dali::Scene3D::Loader::LoadResult output{resources, scene, animations, animGroups, cameraParameters, lights};
 
   if(extension == DLI_EXTENSION)
   {
-    SceneLoader::DliLoader              loader;
-    SceneLoader::DliLoader::InputParams input{
-      pathProvider(SceneLoader::ResourceType::Mesh),
+    Dali::Scene3D::Loader::DliLoader              loader;
+    Dali::Scene3D::Loader::DliLoader::InputParams input{
+      pathProvider(Dali::Scene3D::Loader::ResourceType::Mesh),
       nullptr,
       {},
       {},
       nullptr,
       {}};
-    SceneLoader::DliLoader::LoadParams loadParams{input, output};
+    Dali::Scene3D::Loader::DliLoader::LoadParams loadParams{input, output};
     if(!loader.LoadScene(mModelPath, loadParams))
     {
-      SceneLoader::ExceptionFlinger(ASSERT_LOCATION) << "Failed to load scene from '" << mModelPath << "': " << loader.GetParseError();
+      Dali::Scene3D::Loader::ExceptionFlinger(ASSERT_LOCATION) << "Failed to load scene from '" << mModelPath << "': " << loader.GetParseError();
     }
   }
   else if(extension == GLTF_EXTENSION)
   {
-    SceneLoader::ShaderDefinitionFactory sdf;
+    Dali::Scene3D::Loader::ShaderDefinitionFactory sdf;
     sdf.SetResources(resources);
-    SceneLoader::LoadGltfScene(mModelPath, sdf, output);
+    Dali::Scene3D::Loader::LoadGltfScene(mModelPath, sdf, output);
 
     resources.mEnvironmentMaps.push_back({});
   }
@@ -401,9 +401,9 @@ void ModelView::LoadModel()
     DALI_LOG_ERROR("Unsupported model type.\n");
   }
 
-  SceneLoader::Transforms                   xforms{SceneLoader::MatrixStack{}, SceneLoader::ViewProjection{}};
-  SceneLoader::NodeDefinition::CreateParams nodeParams{resources, xforms, {}, {}, {}};
-  SceneLoader::Customization::Choices       choices;
+  Dali::Scene3D::Loader::Transforms                   xforms{Dali::Scene3D::Loader::MatrixStack{}, Dali::Scene3D::Loader::ViewProjection{}};
+  Dali::Scene3D::Loader::NodeDefinition::CreateParams nodeParams{resources, xforms, {}, {}, {}};
+  Dali::Scene3D::Loader::Customization::Choices       choices;
 
   mModelRoot = Actor::New();
 
@@ -455,7 +455,7 @@ void ModelView::LoadModel()
   SetImageBasedLight(mModelRoot);
 
   mNaturalSize = AABB.CalculateSize();
-  mModelPivot = AABB.CalculatePivot();
+  mModelPivot  = AABB.CalculatePivot();
   mModelRoot.SetProperty(Dali::Actor::Property::SIZE, mNaturalSize);
 
   FitModelPosition();
@@ -518,7 +518,7 @@ void ModelView::SetImageBasedLight(Actor node)
   uint32_t rendererCount = node.GetRendererCount();
   if(rendererCount)
   {
-    node.RegisterProperty(SceneLoader::NodeDefinition::GetIblScaleFactorUniformName().data(), mIblScaleFactor);
+    node.RegisterProperty(Dali::Scene3D::Loader::NodeDefinition::GetIblScaleFactorUniformName().data(), mIblScaleFactor);
   }
 
   for(uint32_t i = 0; i < rendererCount; ++i)
@@ -1,5 +1,5 @@
-#ifndef DALI_SCENE_LOADER_INTERNAL_MODEL_VIEW_H
-#define DALI_SCENE_LOADER_INTERNAL_MODEL_VIEW_H
+#ifndef DALI_SCENE3D_INTERNAL_MODEL_VIEW_H
+#define DALI_SCENE3D_INTERNAL_MODEL_VIEW_H
 
 /*
  * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  */
 
 // EXTERNAL INCLUDES
+#include <dali-toolkit/public-api/controls/control-impl.h>
 #include <dali/public-api/actors/layer.h>
 #include <dali/public-api/animation/animation.h>
 #include <dali/public-api/rendering/texture.h>
-#include <dali-toolkit/public-api/controls/control-impl.h>
 
 // INTERNAL INCLUDES
-#include <dali-scene-loader/public-api/controls/model-view/model-view.h>
+#include <dali-scene3d/public-api/controls/model-view/model-view.h>
 
 namespace Dali
 {
@@ -148,19 +148,19 @@ private:
   void SetImageBasedLight(Actor node);
 
 private:
-  std::string                  mModelPath;
-  std::string                  mResourcePath;
-  Dali::Layer                  mModelLayer;
-  Dali::Actor                  mModelRoot;
-  std::vector<AnimationData>   mAnimations;
-
-  Dali::Texture    mSpecularTexture;
-  Dali::Texture    mDiffuseTexture;
-  Vector3          mNaturalSize;
-  Vector3          mModelPivot;
-  float            mIblScaleFactor;
-  bool             mFitSize;
-  bool             mFitCenter;
+  std::string                mModelPath;
+  std::string                mResourcePath;
+  Dali::Layer                mModelLayer;
+  Dali::Actor                mModelRoot;
+  std::vector<AnimationData> mAnimations;
+
+  Dali::Texture mSpecularTexture;
+  Dali::Texture mDiffuseTexture;
+  Vector3       mNaturalSize;
+  Vector3       mModelPivot;
+  float         mIblScaleFactor;
+  bool          mFitSize;
+  bool          mFitCenter;
 };
 
 } // namespace Internal
@@ -180,8 +180,8 @@ inline const Dali::Scene3D::Internal::ModelView& GetImpl(const Dali::Scene3D::Mo
   return static_cast<const Dali::Scene3D::Internal::ModelView&>(handle);
 }
 
-} // namespace Toolkit
+} // namespace Scene3D
 
 } // namespace Dali
 
-#endif // DALI_SCENE_LOADER_INTERNAL_MODEL_VIEW_H
+#endif // DALI_SCENE3D_INTERNAL_MODEL_VIEW_H
diff --git a/dali-scene3d/internal/file.list b/dali-scene3d/internal/file.list
new file mode 100644 (file)
index 0000000..b236f3c
--- /dev/null
@@ -0,0 +1,9 @@
+set(scene3d_internal_dir "${scene3d_dir}/internal")
+
+set(scene3d_src_files ${scene3d_src_files}
+       ${scene3d_internal_dir}/loader/gltf2-asset.cpp
+       ${scene3d_internal_dir}/loader/hash.cpp
+       ${scene3d_internal_dir}/loader/json-reader.cpp
+       ${scene3d_internal_dir}/loader/json-util.cpp
+       ${scene3d_internal_dir}/controls/model-view/model-view-impl.cpp
+)
similarity index 97%
rename from dali-scene-loader/internal/gltf2-asset.cpp
rename to dali-scene3d/internal/loader/gltf2-asset.cpp
index d0e183a..8297045 100644 (file)
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2021 Samsung Electronics Co., Ltd.
+* Copyright (c) 2022 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.
@@ -14,7 +14,7 @@
 * limitations under the License.
 *
 */
-#include "dali-scene-loader/internal/gltf2-asset.h"
+#include "dali-scene3d/internal/loader/gltf2-asset.h"
 #include <algorithm>
 #include <map>
 #include "dali/public-api/math/matrix.h"
similarity index 97%
rename from dali-scene-loader/internal/gltf2-asset.h
rename to dali-scene3d/internal/loader/gltf2-asset.h
index e074c28..7769751 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef DALI_SCENE_LOADER_GLTF2_ASSET_H_
-#define DALI_SCENE_LOADER_GLTF2_ASSET_H_
+#ifndef DALI_SCENE3D_LOADER_GLTF2_ASSET_H_
+#define DALI_SCENE3D_LOADER_GLTF2_ASSET_H_
 /*
  * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
@@ -18,8 +18,8 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/internal/json-reader.h"
-#include "dali-scene-loader/public-api/index.h"
+#include "dali-scene3d/internal/loader/json-reader.h"
+#include "dali-scene3d/public-api/loader/index.h"
 
 // EXTERNAL INCLUDES
 #include <cstdint>
@@ -31,7 +31,7 @@
 
 namespace gltf2
 {
-using Index = Dali::SceneLoader::Index;
+using Index = Dali::Scene3D::Loader::Index;
 
 template<typename T>
 class Ref
@@ -88,7 +88,7 @@ public:
 
 private:
   std::vector<T>* mVector = nullptr;
-  Index           mIndex  = Dali::SceneLoader::INVALID_INDEX;
+  Index           mIndex  = Dali::Scene3D::Loader::INVALID_INDEX;
 };
 
 struct Asset
@@ -595,4 +595,4 @@ Dali::Quaternion ReadQuaternion(const json_value_s& j);
 
 } // namespace gltf2
 
-#endif //DALI_SCENE_LOADER_GLTF2_ASSET_H_
+#endif //DALI_SCENE3D_LOADER_GLTF2_ASSET_H_
similarity index 90%
rename from dali-scene-loader/internal/hash.cpp
rename to dali-scene3d/internal/loader/hash.cpp
index 43d410f..d1ea70f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  * limitations under the License.
  *
  */
-#include "dali-scene-loader/internal/hash.h"
+#include "dali-scene3d/internal/loader/hash.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 Hash::Hash(uint64_t initial)
 : mValue(initial)
@@ -91,5 +93,6 @@ uint64_t Hash::Concatenate(uint64_t value)
   return mValue * 31 + value;
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
similarity index 91%
rename from dali-scene-loader/internal/hash.h
rename to dali-scene3d/internal/loader/hash.h
index 22b770e..a5bba8e 100644 (file)
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_HASH_H_
-#define DALI_SCENE_LOADER_HASH_H_
+#ifndef DALI_SCENE3D_LOADER_HASH_H_
+#define DALI_SCENE3D_LOADER_HASH_H_
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -23,7 +23,9 @@
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /**
  * @brief Rudimentary hash generator that follows a builder pattern.
@@ -117,7 +119,8 @@ Hash& Hash::AddObjectBytes(const T& value)
   return *this;
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif // DALI_SCENE_LOADER_HASH_H_
+#endif // DALI_SCENE3D_LOADER_HASH_H_
similarity index 94%
rename from dali-scene-loader/internal/json-reader.cpp
rename to dali-scene3d/internal/loader/json-reader.cpp
index 0353817..ead6269 100644 (file)
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2021 Samsung Electronics Co., Ltd.
+* Copyright (c) 2022 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.
@@ -14,7 +14,7 @@
 * limitations under the License.
 *
 */
-#include "dali-scene-loader/internal/json-reader.h"
+#include "dali-scene3d/internal/loader/json-reader.h"
 #include <algorithm>
 #include <cstring>
 
similarity index 97%
rename from dali-scene-loader/internal/json-reader.h
rename to dali-scene3d/internal/loader/json-reader.h
index 4fb6f7a..c0a8abd 100644 (file)
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_JSON_READER_H_
-#define DALI_SCENE_LOADER_JSON_READER_H_
+#ifndef DALI_SCENE3D_LOADER_JSON_READER_H_
+#define DALI_SCENE3D_LOADER_JSON_READER_H_
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -18,7 +18,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/third-party/json.h"
+#include "dali-scene3d/third-party/json.h"
 
 // EXTERNAL INCLUDES
 #include <algorithm>
@@ -447,4 +447,4 @@ void SetObjectReader(const Reader<T>& r)
 
 } // namespace json
 
-#endif //DALI_SCENE_LOADER_JSON_READER_H_
+#endif //DALI_SCENE3D_LOADER_JSON_READER_H_
similarity index 98%
rename from dali-scene-loader/internal/json-util.cpp
rename to dali-scene3d/internal/loader/json-util.cpp
index 765568d..fcb91ad 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -14,7 +14,7 @@
  * limitations under the License.
  *
  */
-#include "dali-scene-loader/internal/json-util.h"
+#include "dali-scene3d/internal/loader/json-util.h"
 
 // EXTERNAL INCLUDES
 #include <array>
@@ -32,7 +32,9 @@ namespace Dali
 {
 using namespace Toolkit;
 
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace
 {
@@ -525,5 +527,6 @@ Property::Value ReadPropertyValue(const Toolkit::TreeNode& tn)
   return propValue;
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
similarity index 90%
rename from dali-scene-loader/internal/json-util.h
rename to dali-scene3d/internal/loader/json-util.h
index 9121bcd..1d2b983 100644 (file)
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_JSON_UTIL_H_
-#define DALI_SCENE_LOADER_JSON_UTIL_H_
+#ifndef DALI_SCENE3D_LOADER_JSON_UTIL_H_
+#define DALI_SCENE3D_LOADER_JSON_UTIL_H_
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -18,7 +18,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/index.h"
+#include "dali-scene3d/public-api/loader/index.h"
 
 // EXTERNAL INCLUDES
 #include "dali-toolkit/devel-api/builder/tree-node.h"
@@ -29,7 +29,9 @@
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 bool ReadBool(const Toolkit::TreeNode* node, bool& num);
 
@@ -88,7 +90,8 @@ Property::Value ReadPropertyValue(const Property::Type& propType, const Toolkit:
  */
 Property::Value ReadPropertyValue(const Toolkit::TreeNode& tn);
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_JSON_UTIL_H_
+#endif //DALI_SCENE3D_LOADER_JSON_UTIL_H_
similarity index 61%
rename from dali-scene-loader/public-api/api.h
rename to dali-scene3d/public-api/api.h
index 45f4a1c..47ee583 100644 (file)
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_API_H
-#define DALI_SCENE_LOADER_API_H
+#ifndef DALI_SCENE3D_API_H
+#define DALI_SCENE3D_API_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  */
 
 #if __GNUC__ >= 4
-#define DALI_SCENE_LOADER_API __attribute__((visibility("default")))
+#define DALI_SCENE3D_API __attribute__((visibility("default")))
 
 #elif defined(WIN32)
-#ifdef BUILDING_DALI_SCENE_LOADER
-#define DALI_SCENE_LOADER_API __declspec(dllexport)
+#ifdef BUILDING_DALI_SCENE3D
+#define DALI_SCENE3D_API __declspec(dllexport)
 #else
-#define DALI_SCENE_LOADER_API __declspec(dllimport)
-#endif // BUILDING_DALI_SCENE_LOADER
+#define DALI_SCENE3D_API __declspec(dllimport)
+#endif // BUILDING_DALI_SCENE3D
 
 #endif
 
-#endif //DALI_SCENE_LOADER_API_H
+#endif //DALI_SCENE3D_API_H
  */
 
 // CLASS HEADER
-#include <dali-scene-loader/public-api/controls/model-view/model-view.h>
+#include <dali-scene3d/public-api/controls/model-view/model-view.h>
 
 // INTERNAL INCLUDES
-#include <dali-scene-loader/internal/controls/model-view/model-view-impl.h>
+#include <dali-scene3d/internal/controls/model-view/model-view-impl.h>
 
 namespace Dali
 {
@@ -1,5 +1,5 @@
-#ifndef DALI_SCENE_LOADER_MODEL_VIEW_H
-#define DALI_SCENE_LOADER_MODEL_VIEW_H
+#ifndef DALI_SCENE3D_MODEL_VIEW_H
+#define DALI_SCENE3D_MODEL_VIEW_H
 
 /*
  * Copyright (c) 2022 Samsung Electronics Co., Ltd.
@@ -19,7 +19,7 @@
  */
 
 // INTERNAL INCLUDES
-#include <dali-scene-loader/public-api/api.h>
+#include <dali-scene3d/public-api/api.h>
 
 // EXTERNAL INCLUDES
 #include <dali-toolkit/public-api/controls/control.h>
@@ -66,7 +66,7 @@ class ModelView;
  *
  * @endcode
  */
-class DALI_SCENE_LOADER_API ModelView : public Dali::Toolkit::Control
+class DALI_SCENE3D_API ModelView : public Dali::Toolkit::Control
 {
 public:
   /**
@@ -211,4 +211,4 @@ public: // Not intended for application developers
 
 } // namespace Dali
 
-#endif // DALI_SCENE_LOADER_MODEL_VIEW_H
+#endif // DALI_SCENE3D_MODEL_VIEW_H
diff --git a/dali-scene3d/public-api/file.list b/dali-scene3d/public-api/file.list
new file mode 100644 (file)
index 0000000..59ce588
--- /dev/null
@@ -0,0 +1,33 @@
+set(scene3d_public_api_dir "${scene3d_dir}/public-api")
+
+set(scene3d_src_files ${scene3d_src_files}
+       ${scene3d_public_api_dir}/controls/model-view/model-view.cpp
+       ${scene3d_public_api_dir}/loader/alpha-function-helper.cpp
+       ${scene3d_public_api_dir}/loader/animated-property.cpp
+       ${scene3d_public_api_dir}/loader/animation-definition.cpp
+       ${scene3d_public_api_dir}/loader/blend-shape-details.cpp
+       ${scene3d_public_api_dir}/loader/camera-parameters.cpp
+       ${scene3d_public_api_dir}/loader/cube-data.cpp
+       ${scene3d_public_api_dir}/loader/cube-loader.cpp
+       ${scene3d_public_api_dir}/loader/cube-map-loader.cpp
+       ${scene3d_public_api_dir}/loader/customization.cpp
+       ${scene3d_public_api_dir}/loader/dli-loader.cpp
+       ${scene3d_public_api_dir}/loader/environment-definition.cpp
+       ${scene3d_public_api_dir}/loader/facial-animation-loader.cpp
+       ${scene3d_public_api_dir}/loader/gltf2-loader.cpp
+       ${scene3d_public_api_dir}/loader/ktx-loader.cpp
+       ${scene3d_public_api_dir}/loader/material-definition.cpp
+       ${scene3d_public_api_dir}/loader/matrix-stack.cpp
+       ${scene3d_public_api_dir}/loader/mesh-definition.cpp
+       ${scene3d_public_api_dir}/loader/node-definition.cpp
+       ${scene3d_public_api_dir}/loader/parse-renderer-state.cpp
+       ${scene3d_public_api_dir}/loader/renderer-state.cpp
+       ${scene3d_public_api_dir}/loader/resource-bundle.cpp
+       ${scene3d_public_api_dir}/loader/scene-definition.cpp
+       ${scene3d_public_api_dir}/loader/shader-definition.cpp
+       ${scene3d_public_api_dir}/loader/shader-definition-factory.cpp
+       ${scene3d_public_api_dir}/loader/skinning-details.cpp
+       ${scene3d_public_api_dir}/loader/string-callback.cpp
+       ${scene3d_public_api_dir}/loader/utils.cpp
+       ${scene3d_public_api_dir}/loader/view-projection.cpp
+)
\ No newline at end of file
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  * limitations under the License.
  *
  */
-#include "dali-scene-loader/public-api/alpha-function-helper.h"
+#include "dali-scene3d/public-api/loader/alpha-function-helper.h"
 #include <unordered_map>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace
 {
@@ -65,5 +67,6 @@ void RegisterAlphaFunction(const std::string& name, AlphaFunction alphaFn)
                      "Function with given key already exists.");
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_ALPHA_FUNCTION_HELPER_H_
-#define DALI_SCENE_LOADER_ALPHA_FUNCTION_HELPER_H_
+#ifndef DALI_SCENE3D_LOADER_ALPHA_FUNCTION_HELPER_H_
+#define DALI_SCENE3D_LOADER_ALPHA_FUNCTION_HELPER_H_
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  *
  */
 
-#include "dali-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
 
 #include <string>
 #include "dali/public-api/animation/alpha-function.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /**
  * @return Given a name, provide a AlphaFunction; if the name was not
  *  recognised, get the default one.
  */
-AlphaFunction DALI_SCENE_LOADER_API GetAlphaFunction(const std::string& name, bool* found = nullptr);
+AlphaFunction DALI_SCENE3D_API GetAlphaFunction(const std::string& name, bool* found = nullptr);
 
 /**
  * @brief Registers an alpha function only if one with the same @a name has
  *  not yet been registered. Throws Exception the name isn't unique.
  */
-void DALI_SCENE_LOADER_API RegisterAlphaFunction(const std::string& name, AlphaFunction alphaFn) noexcept(false);
+void DALI_SCENE3D_API RegisterAlphaFunction(const std::string& name, AlphaFunction alphaFn) noexcept(false);
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_ALPHA_FUNCTION_HELPER_H_
+#endif //DALI_SCENE3D_LOADER_ALPHA_FUNCTION_HELPER_H_
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  * limitations under the License.
  *
  */
-#include "dali-scene-loader/public-api/animated-property.h"
+#include "dali-scene3d/public-api/loader/animated-property.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 void AnimatedProperty::Animate(Animation& anim, GetActor getActor)
 {
@@ -43,5 +45,6 @@ void AnimatedProperty::Animate(Animation& anim, GetActor getActor)
   }
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_ANIMATED_PROPERTY_H
-#define DALI_SCENE_LOADER_ANIMATED_PROPERTY_H
+#ifndef DALI_SCENE3D_LOADER_ANIMATED_PROPERTY_H
+#define DALI_SCENE3D_LOADER_ANIMATED_PROPERTY_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -18,7 +18,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
 
 // EXTERNAL INCLUDES
 #include <functional>
@@ -29,7 +29,9 @@
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /**
  * @brief Intermediate representation for a property that's given to
@@ -38,7 +40,7 @@ namespace SceneLoader
  *  changing properties (e.g. from the SDK) requires the whole Animation
  *  object to be recreated with all of its properties (incl. modifications).
  */
-struct DALI_SCENE_LOADER_API AnimatedProperty
+struct DALI_SCENE3D_API AnimatedProperty
 {
 public: // METHODS
   /**
@@ -90,7 +92,8 @@ public: // DATA
   TimePeriod    mTimePeriod    = TimePeriod(0.f);
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_ANIMATED_PROPERTY_H
+#endif //DALI_SCENE3D_LOADER_ANIMATED_PROPERTY_H
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  * limitations under the License.
  *
  */
-#include "dali-scene-loader/public-api/animation-definition.h"
+#include "dali-scene3d/public-api/loader/animation-definition.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 const float AnimationDefinition::DEFAULT_DURATION_SECONDS = 1.f;
 const float AnimationDefinition::MIN_DURATION_SECONDS     = 1e-2f;
@@ -83,5 +85,6 @@ AnimationDefinition& AnimationDefinition::operator=(AnimationDefinition&& other)
   return *this;
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_ANIMATION_DEFINITION_H
-#define DALI_SCENE_LOADER_ANIMATION_DEFINITION_H
+#ifndef DALI_SCENE3D_LOADER_ANIMATION_DEFINITION_H
+#define DALI_SCENE3D_LOADER_ANIMATION_DEFINITION_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  *
  */
 
-#include "dali-scene-loader/public-api/animated-property.h"
-#include "dali-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
+#include "dali-scene3d/public-api/loader/animated-property.h"
 #include "dali/public-api/common/vector-wrapper.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /**
  * @brief Animation handle + name + definition of properties.
  */
-class DALI_SCENE_LOADER_API AnimationDefinition
+class DALI_SCENE3D_API AnimationDefinition
 {
 public: // STATIC
   // For Animations created in the SDK.
@@ -81,7 +83,8 @@ struct AnimationGroupDefinition
   std::vector<std::string> mAnimations;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_ANIMATION_DEFINITION_H
+#endif //DALI_SCENE3D_LOADER_ANIMATION_DEFINITION_H
 */
 
 // FILE HEADER
-#include <dali-scene-loader/public-api/blend-shape-details.h>
+#include <dali-scene3d/public-api/loader/blend-shape-details.h>
 
 // EXTERNAL INCLUDES
 #include <dali/public-api/animation/constraints.h>
 #include <dali/public-api/object/property.h>
 
 // INTERNAL INCLUDES
-#include <dali-scene-loader/public-api/resource-bundle.h>
+#include <dali-scene3d/public-api/loader/resource-bundle.h>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 const std::string BlendShapes::NUMBER_OF_BLEND_SHAPES("uNumberOfBlendShapes");
 const std::string BlendShapes::UNNORMALIZE_FACTOR("uBlendShapeUnnormalizeFactor");
@@ -83,5 +85,6 @@ void BlendShapes::ConfigureProperties(const std::pair<MeshDefinition, MeshGeomet
   }
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_BLEND_SHAPE_DETAILS_H
-#define DALI_SCENE_LOADER_BLEND_SHAPE_DETAILS_H
+#ifndef DALI_SCENE3D_LOADER_BLEND_SHAPE_DETAILS_H
+#define DALI_SCENE3D_LOADER_BLEND_SHAPE_DETAILS_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -18,7 +18,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
 
 // EXTERNAL INCLUDES
 #include <string>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 struct MeshDefinition;
 struct MeshGeometry;
 
-struct DALI_SCENE_LOADER_API BlendShapes
+struct DALI_SCENE3D_API BlendShapes
 {
   enum class Version
   {
@@ -71,7 +73,8 @@ struct DALI_SCENE_LOADER_API BlendShapes
   BlendShapes() = delete;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif // DALI_SCENE_LOADER_BLEND_SHAPE_DETAILS_H
+#endif // DALI_SCENE3D_LOADER_BLEND_SHAPE_DETAILS_H
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  * limitations under the License.
  *
  */
-#include "dali-scene-loader/public-api/camera-parameters.h"
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/public-api/loader/camera-parameters.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 #include "dali/integration-api/debug.h"
 #include "dali/public-api/actors/camera-actor.h"
 #include "dali/public-api/math/quaternion.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace
 {
@@ -222,5 +224,6 @@ void CameraParameters::ConfigureCamera(CameraActor& camera) const
   camera.SetProperty(Actor::Property::SCALE, camScale);
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_CAMERA_PARAMETERS_H
-#define DALI_SCENE_LOADER_CAMERA_PARAMETERS_H
+#ifndef DALI_SCENE3D_LOADER_CAMERA_PARAMETERS_H
+#define DALI_SCENE3D_LOADER_CAMERA_PARAMETERS_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -18,8 +18,8 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/api.h"
-#include "dali-scene-loader/public-api/view-projection.h"
+#include "dali-scene3d/public-api/api.h"
+#include "dali-scene3d/public-api/loader/view-projection.h"
 
 // EXTERNAL INCLUDES
 #include "dali/public-api/math/matrix.h"
@@ -29,9 +29,11 @@ namespace Dali
 {
 class CameraActor;
 
-namespace SceneLoader
+namespace Scene3D
 {
-struct DALI_SCENE_LOADER_API CameraParameters
+namespace Loader
+{
+struct DALI_SCENE3D_API CameraParameters
 {
   Matrix  matrix           = Matrix::IDENTITY;
   Vector4 orthographicSize = Vector4{-1.f, 1.f, 1.f, -1.f};
@@ -53,13 +55,14 @@ struct DALI_SCENE_LOADER_API CameraParameters
 
   /**
    * @brief Configures the camera in the way that it is supposed to be used with
-   *        scene-loader scenes. This means inverted Y and a rotation of 180 degrees
+   *        scene3d scenes. This means inverted Y and a rotation of 180 degrees
    *        along the Y axis, plus whatever the parameters define.
    */
   void ConfigureCamera(CameraActor& camera) const;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif // DALI_SCENE_LOADER_CAMERA_PARAMETERS_H
+#endif // DALI_SCENE3D_LOADER_CAMERA_PARAMETERS_H
similarity index 91%
rename from dali-scene-loader/public-api/cube-data.cpp
rename to dali-scene3d/public-api/loader/cube-data.cpp
index b87507e..2714cc8 100644 (file)
  */
 
 // FILE HEADER
-#include "dali-scene-loader/public-api/cube-data.h"
+#include "dali-scene3d/public-api/loader/cube-data.h"
 
 // EXTERNAL INCLUDES
 #include "dali/public-api/rendering/texture.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
-
 Texture CubeData::CreateTexture() const
 {
   Texture texture = Texture::New(TextureType::TEXTURE_CUBE, data[0][0].GetPixelFormat(), data[0][0].GetWidth(), data[0][0].GetHeight());
@@ -48,5 +49,6 @@ Texture CubeData::CreateTexture() const
   return texture;
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
similarity index 80%
rename from dali-scene-loader/public-api/cube-data.h
rename to dali-scene3d/public-api/loader/cube-data.h
index 94c34de..961e0b2 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef DALI_SCENE_LOADER_CUBE_DATA_H
-#define DALI_SCENE_LOADER_CUBE_DATA_H
+#ifndef DALI_SCENE3D_LOADER_CUBE_DATA_H
+#define DALI_SCENE3D_LOADER_CUBE_DATA_H
 /*
  * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
@@ -18,7 +18,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
 
 // EXTERNAL INCLUDES
 #include "dali/public-api/common/vector-wrapper.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /**
  * @brief Stores the pixel data objects for each face of the cube texture and their mipmaps.
  */
-class DALI_SCENE_LOADER_API CubeData
+class DALI_SCENE3D_API CubeData
 {
 public:
   /**
@@ -45,7 +47,8 @@ public:
   std::vector<std::vector<PixelData> > data;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif // DALI_SCENE_LOADER_CUBE_DATA_H
+#endif // DALI_SCENE3D_LOADER_CUBE_DATA_H
@@ -16,7 +16,7 @@
  */
 
 // FILE HEADER
-#include <dali-scene-loader/public-api/cube-loader.h>
+#include <dali-scene3d/public-api/loader/cube-loader.h>
 
 // EXTERNAL INCLUDES
 #include <dali/devel-api/adaptor-framework/image-loading.h>
@@ -87,7 +87,9 @@ PixelData GetCubeFace(Devel::PixelBuffer pixelBuffer, uint32_t faceIndex, CubeTy
 }
 } // namespace
 
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 bool LoadCubeData(const std::string& path, CubeData& cubedata)
 {
@@ -147,5 +149,6 @@ bool LoadCubeData(const std::string& path, CubeData& cubedata)
   return false;
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
similarity index 76%
rename from dali-scene-loader/public-api/cube-loader.h
rename to dali-scene3d/public-api/loader/cube-loader.h
index 535d228..37b30b2 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef DALI_SCENE_LOADER_CUBE_LOADER_H
-#define DALI_SCENE_LOADER_CUBE_LOADER_H
+#ifndef DALI_SCENE3D_LOADER_CUBE_LOADER_H
+#define DALI_SCENE3D_LOADER_CUBE_LOADER_H
 /*
  * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
  */
 
 // INTERNAL INCLUDES
-#include <dali-scene-loader/public-api/api.h>
-#include <dali-scene-loader/public-api/cube-data.h>
+#include <dali-scene3d/public-api/api.h>
+#include <dali-scene3d/public-api/loader/cube-data.h>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
-
 /**
  * @brief Loads cube map data texture from a cube style image file.
  *
@@ -35,7 +36,8 @@ namespace SceneLoader
  */
 bool LoadCubeData(const std::string& path, CubeData& cubedata);
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif // DALI_SCENE_LOADER_CUBE_LOADER_H
+#endif // DALI_SCENE3D_LOADER_CUBE_LOADER_H
  */
 
 // FILE HEADER
-#include <dali-scene-loader/public-api/cube-map-loader.h>
+#include <dali-scene3d/public-api/loader/cube-map-loader.h>
 
 // INTERNAL INCLUDES
-#include <dali-scene-loader/public-api/ktx-loader.h>
-#include <dali-scene-loader/public-api/cube-loader.h>
+#include <dali-scene3d/public-api/loader/cube-loader.h>
+#include <dali-scene3d/public-api/loader/ktx-loader.h>
 
 // EXTERNAL INCLUDES
 #include <filesystem>
@@ -29,22 +29,22 @@ namespace Dali
 {
 namespace
 {
-
 const std::string_view KTX_EXTENSION = ".ktx";
-
 }
 
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
-
 bool LoadCubeMapData(const std::string& path, CubeData& cubedata)
 {
   std::filesystem::path modelPath(path);
   std::string           extension = modelPath.extension();
   std::transform(extension.begin(), extension.end(), extension.begin(), ::tolower);
 
-  return (extension == KTX_EXTENSION) ? SceneLoader::LoadKtxData(path, cubedata) : SceneLoader::LoadCubeData(path, cubedata);
+  return (extension == KTX_EXTENSION) ? Dali::Scene3D::Loader::LoadKtxData(path, cubedata) : Dali::Scene3D::Loader::LoadCubeData(path, cubedata);
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef DALI_SCENE_LOADER_CUBE_MAP_LOADER_H
-#define DALI_SCENE_LOADER_CUBE_MAP_LOADER_H
+#ifndef DALI_SCENE3D_LOADER_CUBE_MAP_LOADER_H
+#define DALI_SCENE3D_LOADER_CUBE_MAP_LOADER_H
 /*
  * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
  */
 
 // INTERNAL INCLUDES
-#include <dali-scene-loader/public-api/api.h>
-#include <dali-scene-loader/public-api/cube-data.h>
+#include <dali-scene3d/public-api/api.h>
+#include <dali-scene3d/public-api/loader/cube-data.h>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
-
 /**
  * @brief Loads cube map data texture from a cube map file.
  *
@@ -35,7 +36,8 @@ namespace SceneLoader
  */
 bool LoadCubeMapData(const std::string& path, CubeData& cubedata);
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif // DALI_SCENE_LOADER_CUBE_MAP_LOADER_H
+#endif // DALI_SCENE3D_LOADER_CUBE_MAP_LOADER_H
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  * limitations under the License.
  *
  */
-#include "dali-scene-loader/public-api/customization.h"
+#include "dali-scene3d/public-api/loader/customization.h"
 #include "dali/devel-api/common/map-wrapper.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 struct Customization::Map::Impl
 {
@@ -109,5 +111,6 @@ void Customization::Choices::Clear()
   mImpl->mOptions.clear();
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_CUSTOMIZATION_STATE_H_
-#define DALI_SCENE_LOADER_CUSTOMIZATION_STATE_H_
+#ifndef DALI_SCENE3D_LOADER_CUSTOMIZATION_STATE_H_
+#define DALI_SCENE3D_LOADER_CUSTOMIZATION_STATE_H_
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -18,7 +18,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
 
 // EXTERNAL INCLUDES
 #include <memory>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /**
  * @brief Offers a description of an aspect of the scene that can be customized:
  *     the number of options, and the name of the nodes that are registered
  *     for the tag, whose children will be shown / hidden based on selection.
  */
-struct DALI_SCENE_LOADER_API Customization
+struct DALI_SCENE3D_API Customization
 {
   using Tag        = std::string;
   using OptionType = uint32_t;
@@ -42,7 +44,7 @@ struct DALI_SCENE_LOADER_API Customization
   /**
    * @brief A mapping of customizations to tags.
    */
-  struct DALI_SCENE_LOADER_API Map
+  struct DALI_SCENE3D_API Map
   {
     Map();
     ~Map();
@@ -81,7 +83,7 @@ struct DALI_SCENE_LOADER_API Customization
   /**
    * @brief A mapping of choices - indices of children of customization nodes to use - to tags.
    */
-  struct DALI_SCENE_LOADER_API Choices
+  struct DALI_SCENE3D_API Choices
   {
     Choices();
     ~Choices();
@@ -117,7 +119,8 @@ struct DALI_SCENE_LOADER_API Customization
   std::vector<std::string> nodes; // to apply option to.
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_CUSTOMIZATION_STATE_H_
+#endif //DALI_SCENE3D_LOADER_CUSTOMIZATION_STATE_H_
similarity index 98%
rename from dali-scene-loader/public-api/dli-loader.cpp
rename to dali-scene3d/public-api/loader/dli-loader.cpp
index 2c8bd97..ca28c83 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 // CLASS HEADER
-#include "dali-scene-loader/public-api/dli-loader.h"
+#include "dali-scene3d/public-api/loader/dli-loader.h"
 
 // EXTERNAL INCLUDES
 #include <algorithm>
 #include "dali/public-api/object/property-array.h"
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/internal/json-util.h"
-#include "dali-scene-loader/public-api/alpha-function-helper.h"
-#include "dali-scene-loader/public-api/animation-definition.h"
-#include "dali-scene-loader/public-api/blend-shape-details.h"
-#include "dali-scene-loader/public-api/camera-parameters.h"
-#include "dali-scene-loader/public-api/ktx-loader.h"
-#include "dali-scene-loader/public-api/light-parameters.h"
-#include "dali-scene-loader/public-api/load-result.h"
-#include "dali-scene-loader/public-api/parse-renderer-state.h"
-#include "dali-scene-loader/public-api/scene-definition.h"
-#include "dali-scene-loader/public-api/skinning-details.h"
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/internal/loader/json-util.h"
+#include "dali-scene3d/public-api/loader/alpha-function-helper.h"
+#include "dali-scene3d/public-api/loader/animation-definition.h"
+#include "dali-scene3d/public-api/loader/blend-shape-details.h"
+#include "dali-scene3d/public-api/loader/camera-parameters.h"
+#include "dali-scene3d/public-api/loader/ktx-loader.h"
+#include "dali-scene3d/public-api/loader/light-parameters.h"
+#include "dali-scene3d/public-api/loader/load-result.h"
+#include "dali-scene3d/public-api/loader/parse-renderer-state.h"
+#include "dali-scene3d/public-api/loader/scene-definition.h"
+#include "dali-scene3d/public-api/loader/skinning-details.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 
 #define DLI_0_1_COMPATIBILITY
 
@@ -49,7 +49,9 @@ namespace Dali
 {
 using namespace Toolkit;
 
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace rs = RendererState;
 
@@ -1806,5 +1808,6 @@ void DliLoader::Impl::GetLightParameters(std::vector<LightParameters>& lights) c
   }
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
similarity index 88%
rename from dali-scene-loader/public-api/dli-loader.h
rename to dali-scene3d/public-api/loader/dli-loader.h
index b46a7bf..c516f9a 100644 (file)
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_DLI_LOADER_H
-#define DALI_SCENE_LOADER_DLI_LOADER_H
+#ifndef DALI_SCENE3D_LOADER_DLI_LOADER_H
+#define DALI_SCENE3D_LOADER_DLI_LOADER_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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-scene-loader/public-api/animation-definition.h"
-#include "dali-scene-loader/public-api/api.h"
-#include "dali-scene-loader/public-api/customization.h"
-#include "dali-scene-loader/public-api/index.h"
-#include "dali-scene-loader/public-api/string-callback.h"
+#include "dali-scene3d/public-api/api.h"
+#include "dali-scene3d/public-api/loader/animation-definition.h"
+#include "dali-scene3d/public-api/loader/customization.h"
+#include "dali-scene3d/public-api/loader/index.h"
+#include "dali-scene3d/public-api/loader/string-callback.h"
 
 // EXTERNAL INCLUDES
 #include "dali/public-api/common/vector-wrapper.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 typedef std::pair<std::string, std::string> Metadata;
 
@@ -43,7 +45,7 @@ class ResourceBundle;
 struct NodeDefinition;
 class SceneDefinition;
 
-class DALI_SCENE_LOADER_API DliLoader
+class DALI_SCENE3D_API DliLoader
 {
 public:
   using ConvertFontCode  = void (*)(const std::string& code, std::string& fontFamily, std::string& slant, std::string& weight, float& size);
@@ -135,7 +137,8 @@ private:
   const std::unique_ptr<Impl> mImpl;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif // DALI_SCENE_LOADER_DLI_LOADER_H
+#endif // DALI_SCENE3D_LOADER_DLI_LOADER_H
@@ -20,9 +20,9 @@
 #include <dali/devel-api/adaptor-framework/image-loading.h>
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/environment-definition.h"
-#include "dali-scene-loader/public-api/utils.h"
-#include "dali-scene-loader/public-api/cube-map-loader.h"
+#include "dali-scene3d/public-api/loader/cube-map-loader.h"
+#include "dali-scene3d/public-api/loader/environment-definition.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 
 namespace
 {
@@ -35,7 +35,9 @@ std::string GetDaliImagePath()
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace
 {
@@ -99,5 +101,6 @@ EnvironmentDefinition::Textures EnvironmentDefinition::Load(RawData&& raw) const
   return textures;
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef DALI_SCENE_LOADER_ENVIRONMENT_DEFINITION_H
-#define DALI_SCENE_LOADER_ENVIRONMENT_DEFINITION_H
+#ifndef DALI_SCENE3D_LOADER_ENVIRONMENT_DEFINITION_H
+#define DALI_SCENE3D_LOADER_ENVIRONMENT_DEFINITION_H
 /*
  * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
@@ -18,8 +18,8 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/api.h"
-#include "dali-scene-loader/public-api/cube-data.h"
+#include "dali-scene3d/public-api/api.h"
+#include "dali-scene3d/public-api/loader/cube-data.h"
 
 // EXTERNAL INCLUDES
 #include "dali/public-api/math/quaternion.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /**
  * @brief Defines an environment map with either or both of radiance
  *  and irradiance maps.
  */
-struct DALI_SCENE_LOADER_API EnvironmentDefinition
+struct DALI_SCENE3D_API EnvironmentDefinition
 {
   struct Textures
   {
@@ -87,7 +89,8 @@ public: // DATA
   bool        mUseBrdfTexture  = false;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_ENVIRONMENT_DEFINITION_H
+#endif //DALI_SCENE3D_LOADER_ENVIRONMENT_DEFINITION_H
  */\r
 \r
 // FILE HEADER\r
-#include <dali-scene-loader/public-api/facial-animation-loader.h>\r
+#include <dali-scene3d/public-api/loader/facial-animation-loader.h>\r
 \r
 // EXTERNAL INCLUDES\r
 #include <sstream>\r
 \r
 // INTERNAL INCLUDES\r
-#include <dali-scene-loader/internal/json-reader.h>\r
-#include <dali-scene-loader/public-api/blend-shape-details.h>\r
-#include <dali-scene-loader/public-api/utils.h>\r
+#include <dali-scene3d/internal/loader/json-reader.h>\r
+#include <dali-scene3d/public-api/loader/blend-shape-details.h>\r
+#include <dali-scene3d/public-api/loader/utils.h>\r
 \r
 namespace js = json;\r
 \r
@@ -89,7 +89,9 @@ const auto FACIAL_ANIMATION_READER = std::move(js::Reader<FacialAnimation>()
 \r
 } // unnamed namespace\r
 \r
-namespace SceneLoader\r
+namespace Scene3D\r
+{\r
+namespace Loader\r
 {\r
 AnimationDefinition LoadFacialAnimation(const std::string& url)\r
 {\r
@@ -175,5 +177,6 @@ AnimationDefinition LoadFacialAnimation(const std::string& url)
   return animationDefinition;\r
 }\r
 \r
-} // namespace SceneLoader\r
+} // namespace Loader\r
+} // namespace Scene3D\r
 } // namespace Dali\r
@@ -1,5 +1,5 @@
-#ifndef DALI_SCENE_LOADER_FACIAL_ANIMATION_LOADER_H\r
-#define DALI_SCENE_LOADER_FACIAL_ANIMATION_LOADER_H\r
+#ifndef DALI_SCENE3D_LOADER_FACIAL_ANIMATION_LOADER_H\r
+#define DALI_SCENE3D_LOADER_FACIAL_ANIMATION_LOADER_H\r
 \r
 /*\r
  * Copyright (c) 2022 Samsung Electronics Co., Ltd.\r
@@ -19,9 +19,9 @@
  */\r
 \r
 // INTERNAL INCLUDES\r
-#include <dali-scene-loader/public-api/animation-definition.h>\r
+#include <dali-scene3d/public-api/loader/animation-definition.h>\r
 \r
-namespace Dali::SceneLoader\r
+namespace Dali::Scene3D::Loader\r
 {\r
 /**\r
  * @brief Loads a facial animation encoded in a json file in the given @p url.\r
@@ -32,7 +32,7 @@ namespace Dali::SceneLoader
  *\r
  * @return An animation definition.\r
  */\r
-DALI_SCENE_LOADER_API AnimationDefinition LoadFacialAnimation(const std::string& url);\r
-} // namespace Dali::SceneLoader\r
+DALI_SCENE3D_API AnimationDefinition LoadFacialAnimation(const std::string& url);\r
+} // namespace Dali::Scene3D::Loader\r
 \r
-#endif // DALI_SCENE_LOADER_FACIAL_ANIMATION_LOADER_H\r
+#endif // DALI_SCENE3D_LOADER_FACIAL_ANIMATION_LOADER_H\r
  * limitations under the License.
  *
  */
-#include "dali-scene-loader/public-api/gltf2-loader.h"
+#include "dali-scene3d/public-api/loader/gltf2-loader.h"
 #include <fstream>
-#include "dali-scene-loader/internal/gltf2-asset.h"
-#include "dali-scene-loader/public-api/load-result.h"
-#include "dali-scene-loader/public-api/resource-bundle.h"
-#include "dali-scene-loader/public-api/scene-definition.h"
-#include "dali-scene-loader/public-api/shader-definition-factory.h"
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/internal/loader/gltf2-asset.h"
+#include "dali-scene3d/public-api/loader/load-result.h"
+#include "dali-scene3d/public-api/loader/resource-bundle.h"
+#include "dali-scene3d/public-api/loader/scene-definition.h"
+#include "dali-scene3d/public-api/loader/shader-definition-factory.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 #include "dali/public-api/math/quaternion.h"
 
 #define ENUM_STRING_MAPPING(t, x) \
@@ -34,7 +34,9 @@ namespace js = json;
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace
 {
@@ -911,7 +913,7 @@ float LoadKeyFrames(const std::string& path, const gt::Animation::Channel& chann
   return duration;
 }
 
-float LoadBlendShapeKeyFrames(const std::string& path, const gt::Animation::Channel& channel, const std::string& nodeName, uint32_t& propertyIndex, std::vector<SceneLoader::AnimatedProperty>& properties)
+float LoadBlendShapeKeyFrames(const std::string& path, const gt::Animation::Channel& channel, const std::string& nodeName, uint32_t& propertyIndex, std::vector<Dali::Scene3D::Loader::AnimatedProperty>& properties)
 {
   const gltf2::Accessor& input  = *channel.mSampler->mInput;
   const gltf2::Accessor& output = *channel.mSampler->mOutput;
@@ -1169,7 +1171,7 @@ void SetDefaultEnvironmentMap(const gt::Document& doc, ConversionContext& cctx)
 {
   EnvironmentDefinition envDef;
   envDef.mUseBrdfTexture = true;
-  envDef.mIblIntensity = DEFAULT_INTENSITY;
+  envDef.mIblIntensity   = DEFAULT_INTENSITY;
   cctx.mOutput.mResources.mEnvironmentMaps.push_back({std::move(envDef), EnvironmentDefinition::Textures()});
 }
 
@@ -1217,7 +1219,6 @@ void LoadGltfScene(const std::string& url, ShaderDefinitionFactory& shaderFactor
     isMRendererModel      = (doc.mAsset.mGenerator.find(MRENDERER_MODEL_IDENTIFICATION) != std::string_view::npos);
   }
 
-
   gt::SetRefReaderObject(doc);
   DOCUMENT_READER.Read(rootObj, doc);
 
@@ -1236,5 +1237,6 @@ void LoadGltfScene(const std::string& url, ShaderDefinitionFactory& shaderFactor
   SetDefaultEnvironmentMap(doc, cctx);
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
similarity index 69%
rename from dali-scene-loader/public-api/gltf2-loader.h
rename to dali-scene3d/public-api/loader/gltf2-loader.h
index 9871ec0..765cd40 100644 (file)
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_GLTF2_LOADER_H
-#define DALI_SCENE_LOADER_GLTF2_LOADER_H
+#ifndef DALI_SCENE3D_LOADER_GLTF2_LOADER_H
+#define DALI_SCENE3D_LOADER_GLTF2_LOADER_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
 
 // EXTERNAL INCLUDES
 #include <string>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 struct CameraParameters;
 struct LoadResult;
@@ -36,9 +38,10 @@ class ShaderDefinitionFactory;
  * @note Will throw std::runtime_error for JSON entities with types mismatching expectations, carrying
  *  invalid values, or I/O errors.
  */
-DALI_SCENE_LOADER_API void LoadGltfScene(const std::string& url, ShaderDefinitionFactory& shaderFactory, LoadResult& params);
+DALI_SCENE3D_API void LoadGltfScene(const std::string& url, ShaderDefinitionFactory& shaderFactory, LoadResult& params);
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_GLTF2_LOADER_H
+#endif //DALI_SCENE3D_LOADER_GLTF2_LOADER_H
similarity index 72%
rename from dali-scene-loader/public-api/index.h
rename to dali-scene3d/public-api/loader/index.h
index 9ad5fc2..3048def 100644 (file)
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_INDEX_H_
-#define DALI_SCENE_LOADER_INDEX_H_
+#ifndef DALI_SCENE3D_LOADER_INDEX_H_
+#define DALI_SCENE3D_LOADER_INDEX_H_
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
 
 // EXTERNAL INCLUDES
 #include <cstdint>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 using Index = uint32_t;
 
 constexpr Index INVALID_INDEX = static_cast<Index>(-1);
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_INDEX_H_
+#endif //DALI_SCENE3D_LOADER_INDEX_H_
similarity index 98%
rename from dali-scene-loader/public-api/ktx-loader.cpp
rename to dali-scene3d/public-api/loader/ktx-loader.cpp
index a74c50c..c2e7159 100644 (file)
  */
 
 // FILE HEADER
-#include <dali-scene-loader/public-api/ktx-loader.h>
+#include <dali-scene3d/public-api/loader/ktx-loader.h>
 
 // EXTERNAL INCLUDES
+#include <dali/public-api/rendering/texture.h>
 #include <fstream>
 #include <memory>
-#include <dali/public-api/rendering/texture.h>
 
 namespace Dali
 {
@@ -44,7 +44,9 @@ void FreeBuffer(uint8_t* buffer)
 }
 } // namespace
 
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 struct KtxFileHeader
 {
@@ -256,5 +258,6 @@ bool LoadKtxData(const std::string& path, CubeData& cubedata)
   return true;
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
similarity index 76%
rename from dali-scene-loader/public-api/ktx-loader.h
rename to dali-scene3d/public-api/loader/ktx-loader.h
index 3a8b0e1..63d27a6 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef DALI_SCENE_LOADER_KTX_LOADER_H
-#define DALI_SCENE_LOADER_KTX_LOADER_H
+#ifndef DALI_SCENE3D_LOADER_KTX_LOADER_H
+#define DALI_SCENE3D_LOADER_KTX_LOADER_H
 /*
  * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
  */
 
 // INTERNAL INCLUDES
-#include <dali-scene-loader/public-api/api.h>
-#include <dali-scene-loader/public-api/cube-data.h>
+#include <dali-scene3d/public-api/api.h>
+#include <dali-scene3d/public-api/loader/cube-data.h>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
-
 /**
  * @brief Loads cube map data texture from a ktx file.
  *
@@ -35,7 +36,8 @@ namespace SceneLoader
  */
 bool LoadKtxData(const std::string& path, CubeData& cubedata);
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif // DALI_SCENE_LOADER_KTX_LOADER_H
+#endif // DALI_SCENE3D_LOADER_KTX_LOADER_H
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_LIGHT_PARAMETERS_H
-#define DALI_SCENE_LOADER_LIGHT_PARAMETERS_H
+#ifndef DALI_SCENE3D_LOADER_LIGHT_PARAMETERS_H
+#define DALI_SCENE3D_LOADER_LIGHT_PARAMETERS_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -18,7 +18,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
 
 // EXTERNAL INCLUDES
 #include <stdint.h>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
 {
-struct DALI_SCENE_LOADER_API LightParameters
+namespace Loader
+{
+struct DALI_SCENE3D_API LightParameters
 {
   Matrix transform;
 
@@ -40,7 +42,8 @@ struct DALI_SCENE_LOADER_API LightParameters
   float    orthographicSize;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif // DALI_SCENE_LOADER_LIGHT_PARAMETERS_H
+#endif // DALI_SCENE3D_LOADER_LIGHT_PARAMETERS_H
similarity index 74%
rename from dali-scene-loader/public-api/load-result.h
rename to dali-scene3d/public-api/loader/load-result.h
index 4ed3ff5..a9428eb 100644 (file)
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_OUTPUT_H
-#define DALI_SCENE_LOADER_OUTPUT_H
+#ifndef DALI_SCENE3D_LOADER_OUTPUT_H
+#define DALI_SCENE3D_LOADER_OUTPUT_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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-scene-loader/public-api/animation-definition.h"
-#include "dali-scene-loader/public-api/api.h"
-#include "dali-scene-loader/public-api/camera-parameters.h"
-#include "dali-scene-loader/public-api/light-parameters.h"
+#include "dali-scene3d/public-api/api.h"
+#include "dali-scene3d/public-api/loader/animation-definition.h"
+#include "dali-scene3d/public-api/loader/camera-parameters.h"
+#include "dali-scene3d/public-api/loader/light-parameters.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 class ResourceBundle;
 class SceneDefinition;
@@ -33,7 +35,7 @@ class SceneDefinition;
 /**
  * @brief The outputs from loading and processing a scene.
  */
-struct DALI_SCENE_LOADER_API LoadResult
+struct DALI_SCENE3D_API LoadResult
 {
   /**
    * @brief The bundle to store resources in.
@@ -66,7 +68,8 @@ struct DALI_SCENE_LOADER_API LoadResult
   std::vector<LightParameters>& mLightParameters;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_OUTPUT_H
+#endif //DALI_SCENE3D_LOADER_OUTPUT_H
@@ -16,7 +16,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/material-definition.h"
+#include "dali-scene3d/public-api/loader/material-definition.h"
 
 // EXTERNAL INCLUDES
 #include "dali-toolkit/public-api/image-loader/sync-image-loader.h"
@@ -25,7 +25,9 @@ namespace Dali
 {
 using namespace Toolkit;
 
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace
 {
@@ -301,5 +303,6 @@ bool MaterialDefinition::CheckTextures(uint32_t flags) const
          }) != mTextureStages.end();
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_MATERIAL_DEFINITION_H
-#define DALI_SCENE_LOADER_MATERIAL_DEFINITION_H
+#ifndef DALI_SCENE3D_LOADER_MATERIAL_DEFINITION_H
+#define DALI_SCENE3D_LOADER_MATERIAL_DEFINITION_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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-scene-loader/public-api/api.h"
-#include "dali-scene-loader/public-api/environment-definition.h"
-#include "dali-scene-loader/public-api/index.h"
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/public-api/api.h"
+#include "dali-scene3d/public-api/loader/environment-definition.h"
+#include "dali-scene3d/public-api/loader/index.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 
 // EXTERNAL INCLUDES
 #include <cmath>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /**
  * @brief Helper enum for encoding and decoding sampler states.
  */
-struct DALI_SCENE_LOADER_API SamplerFlags
+struct DALI_SCENE3D_API SamplerFlags
 {
   using Type = uint8_t;
 
@@ -109,7 +111,7 @@ struct DALI_SCENE_LOADER_API SamplerFlags
 /**
  * @brief Defines a texture from a combination of an image URI and its sampler definition.
  */
-struct DALI_SCENE_LOADER_API TextureDefinition
+struct DALI_SCENE3D_API TextureDefinition
 {
   std::string        mImageUri;
   SamplerFlags::Type mSamplerFlags;
@@ -123,7 +125,7 @@ struct DALI_SCENE_LOADER_API TextureDefinition
  *  scene). Textures from the environment are added last when the DALi TextureSet
  *  is being created.
  */
-struct DALI_SCENE_LOADER_API MaterialDefinition
+struct DALI_SCENE3D_API MaterialDefinition
 {
   enum Flags : uint32_t
   {
@@ -236,7 +238,8 @@ public: // DATA
   std::vector<TextureStage> mTextureStages;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_MATERIAL_DEFINITION_H
+#endif //DALI_SCENE3D_LOADER_MATERIAL_DEFINITION_H
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2021 Samsung Electronics Co., Ltd.
+* Copyright (c) 2022 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.
 * limitations under the License.
 *
 */
-#include "dali-scene-loader/public-api/matrix-stack.h"
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/public-api/loader/matrix-stack.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 MatrixStack::MatrixStack()
 {
@@ -61,5 +63,6 @@ void MatrixStack::PopAll()
   mStack.clear();
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
similarity index 77%
rename from dali-scene-loader/public-api/matrix-stack.h
rename to dali-scene3d/public-api/loader/matrix-stack.h
index 5c5c923..63bbc90 100644 (file)
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_MATRIX_STACK_H_
-#define DALI_SCENE_LOADER_MATRIX_STACK_H_
+#ifndef DALI_SCENE3D_LOADERER_MATRIX_STACK_H_
+#define DALI_SCENE3D_LOADERER_MATRIX_STACK_H_
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -18,7 +18,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
 
 // EXTERNAL INCLUDES
 #include "dali/public-api/common/vector-wrapper.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /**
  * @brief A stack of matrices whereby each newly pushed matrix is stored
  *  after being multiplied by the previous one (if any).
  * @note Current implementation reserves space for 16 matrices.
  */
-class DALI_SCENE_LOADER_API MatrixStack
+class DALI_SCENE3D_API MatrixStack
 {
 public:
   MatrixStack();
@@ -48,7 +50,8 @@ private:
   std::vector<Matrix> mStack;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_MATRIX_STACK_H_
+#endif //DALI_SCENE3D_LOADERER_MATRIX_STACK_H_
@@ -16,7 +16,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/mesh-definition.h"
+#include "dali-scene3d/public-api/loader/mesh-definition.h"
 
 // EXTERNAL INCLUDES
 #include <cstring>
@@ -25,7 +25,9 @@
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace
 {
@@ -730,7 +732,7 @@ MeshDefinition::LoadRaw(const std::string& modelsPath)
 
   if(mColors.IsDefined())
   {
-    uint32_t propertySize = mColors.mBlob.mElementSizeHint;
+    uint32_t       propertySize = mColors.mBlob.mElementSizeHint;
     Property::Type propertyType = (propertySize == sizeof(Vector4)) ? Property::VECTOR4 : ((propertySize == sizeof(Vector3)) ? Property::VECTOR3 : Property::NONE);
     if(propertyType != Property::NONE)
     {
@@ -919,5 +921,6 @@ MeshGeometry MeshDefinition::Load(RawData&& raw) const
   return meshGeometry;
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef DALI_SCENE_LOADER_MESH_DEFINITION_H
-#define DALI_SCENE_LOADER_MESH_DEFINITION_H
+#ifndef DALI_SCENE3D_LOADER_MESH_DEFINITION_H
+#define DALI_SCENE3D_LOADER_MESH_DEFINITION_H
 /*
  * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/api.h"
-#include "dali-scene-loader/public-api/blend-shape-details.h"
-#include "dali-scene-loader/public-api/index.h"
-#include "dali-scene-loader/public-api/mesh-geometry.h"
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/public-api/api.h"
+#include "dali-scene3d/public-api/loader/blend-shape-details.h"
+#include "dali-scene3d/public-api/loader/index.h"
+#include "dali-scene3d/public-api/loader/mesh-geometry.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 
 // EXTERNAL INCLUDES
 #include <memory>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /**
  * @brief Defines a mesh with its attributes, the primitive type to render it as,
  *  and the file to load it from with the offset and length information for the
  *  individual attribute buffers.
  */
-struct DALI_SCENE_LOADER_API MeshDefinition
+struct DALI_SCENE3D_API MeshDefinition
 {
   using Vector = std::vector<std::pair<MeshDefinition, MeshGeometry>>;
 
@@ -271,7 +273,8 @@ public: // DATA
   Index mSkeletonIdx = INVALID_INDEX;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_MESH_DEFINITION_H
+#endif //DALI_SCENE3D_LOADER_MESH_DEFINITION_H
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_MESH_GEOMETRY_H
-#define DALI_SCENE_LOADER_MESH_GEOMETRY_H
+#ifndef DALI_SCENE3D_LOADERER_MESH_GEOMETRY_H
+#define DALI_SCENE3D_LOADERER_MESH_GEOMETRY_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -18,7 +18,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
 
 // EXTERNAL INCLUDES
 #include "dali/public-api/rendering/geometry.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
 {
-struct DALI_SCENE_LOADER_API MeshGeometry
+namespace Loader
+{
+struct DALI_SCENE3D_API MeshGeometry
 {
   Geometry      geometry;                    ///< The array of vertices.
   Texture       blendShapeGeometry;          ///< The array of vertices of the different blend shapes encoded inside a texture with power of two dimensions.
@@ -36,7 +38,8 @@ struct DALI_SCENE_LOADER_API MeshGeometry
   unsigned int  blendShapeBufferOffset{0};   ///< Offset used to calculate the start of each blend shape.
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif // DALI_SCENE_LOADER_MESH_GEOMETRY_H
+#endif // DALI_SCENE3D_LOADERER_MESH_GEOMETRY_H
@@ -16,9 +16,9 @@
  */
 
 // INTERNAL
-#include "dali-scene-loader/public-api/node-definition.h"
-#include "dali-scene-loader/public-api/renderer-state.h"
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/public-api/loader/node-definition.h"
+#include "dali-scene3d/public-api/loader/renderer-state.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 
 namespace Dali
 {
@@ -26,9 +26,11 @@ namespace
 {
 constexpr std::string_view IBL_INTENSITY_STRING("uIblIntensity");
 constexpr std::string_view IBL_Y_DIRECTION("uYDirection");
-}
+} // namespace
 
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 bool NodeDefinition::Renderable::GetExtents(const ResourceBundle& resources, Vector3& min, Vector3& max) const
 {
@@ -127,7 +129,7 @@ bool NodeDefinition::GetExtents(const ResourceBundle& resources, Vector3& min, V
 
 bool ModelNode::GetExtents(const ResourceBundle& resources, Vector3& min, Vector3& max) const
 {
-  auto& mesh = resources.mMeshes[mMeshIdx];
+  auto&    mesh    = resources.mMeshes[mMeshIdx];
   uint32_t minSize = mesh.first.mPositions.mBlob.mMin.size();
   uint32_t maxSize = mesh.first.mPositions.mBlob.mMax.size();
   if(minSize == maxSize && minSize >= 2u && maxSize >= 2u)
@@ -282,5 +284,6 @@ void ArcNode::GetEndVectorWithDiffAngle(float startAngle, float diffAngle, Vecto
   endVector.y = sinf(endAngle * Math::PI_OVER_180);
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef DALI_SCENE_LOADER_NODE_DEFINITION_H_
-#define DALI_SCENE_LOADER_NODE_DEFINITION_H_
+#ifndef DALI_SCENE3D_LOADER_NODE_DEFINITION_H_
+#define DALI_SCENE3D_LOADER_NODE_DEFINITION_H_
 /*
  * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
@@ -18,9 +18,9 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/customization.h"
-#include "dali-scene-loader/public-api/matrix-stack.h"
-#include "dali-scene-loader/public-api/resource-bundle.h"
+#include "dali-scene3d/public-api/loader/customization.h"
+#include "dali-scene3d/public-api/loader/matrix-stack.h"
+#include "dali-scene3d/public-api/loader/resource-bundle.h"
 
 // EXTERNAL INCLUDES
 #include <functional>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 class ViewProjection;
 
 /**
  * @brief Interface to report (const) resource ids to.
  */
-class DALI_SCENE_LOADER_API IResourceReceiver
+class DALI_SCENE3D_API IResourceReceiver
 {
 public:
   virtual ~IResourceReceiver() = default;
@@ -53,7 +55,7 @@ public:
  * @note These are supposed to be transient. Obviously, the references collected
  *  this way must not outlive the objects that they came from.
  */
-class DALI_SCENE_LOADER_API IResourceReflector
+class DALI_SCENE3D_API IResourceReflector
 {
 public:
   virtual ~IResourceReflector() = default;
@@ -66,7 +68,7 @@ public:
  *  set up after the Actors were created. The target of the constraint
  *  is the node definition that carries it.
  */
-struct DALI_SCENE_LOADER_API ConstraintDefinition
+struct DALI_SCENE3D_API ConstraintDefinition
 {
   std::string mProperty;  ///< name of the property to constrain.
   Index       mSourceIdx; ///< index of the node to serve as the source of the constraint.
@@ -87,7 +89,7 @@ struct DALI_SCENE_LOADER_API ConstraintDefinition
   }
 };
 
-struct DALI_SCENE_LOADER_API Transforms
+struct DALI_SCENE3D_API Transforms
 {
   MatrixStack           modelStack;
   const ViewProjection& viewProjection;
@@ -97,7 +99,7 @@ struct DALI_SCENE_LOADER_API Transforms
  * @brief Information about a skeleton and the shader that needs to be configured with it.
  * @note Multiple skeletons shalt not share the same shader.
  */
-struct DALI_SCENE_LOADER_API SkinningShaderConfigurationRequest
+struct DALI_SCENE3D_API SkinningShaderConfigurationRequest
 {
   Index  mSkeletonIdx;
   Shader mShader;
@@ -111,7 +113,7 @@ struct DALI_SCENE_LOADER_API SkinningShaderConfigurationRequest
 /**
  * @brief Needed to configure blend shape properties.
  */
-struct DALI_SCENE_LOADER_API BlendshapeShaderConfigurationRequest
+struct DALI_SCENE3D_API BlendshapeShaderConfigurationRequest
 {
   std::string mNodeName;
   Index       mMeshIdx;
@@ -126,7 +128,7 @@ struct DALI_SCENE_LOADER_API BlendshapeShaderConfigurationRequest
 /**
  * @brief Request for creating a constraint, output from NodeDefinition::OnCreate.
  */
-struct DALI_SCENE_LOADER_API ConstraintRequest
+struct DALI_SCENE3D_API ConstraintRequest
 {
   const ConstraintDefinition* const mConstraint; ///< Definition of the constraint to create.
   Actor                             mTarget;     ///< Target of the constraint.
@@ -137,7 +139,7 @@ struct DALI_SCENE_LOADER_API ConstraintRequest
  *  and slots for customization and rendering logic, which are mutually exclusive in the
  *  current implementation.
  */
-struct DALI_SCENE_LOADER_API NodeDefinition
+struct DALI_SCENE3D_API NodeDefinition
 {
 public: // TYPES
   using Vector = std::vector<NodeDefinition>;
@@ -154,7 +156,7 @@ public: // TYPES
     std::vector<BlendshapeShaderConfigurationRequest> mBlendshapeRequests;
   };
 
-  class DALI_SCENE_LOADER_API Renderable
+  class DALI_SCENE3D_API Renderable
   {
   public: // DATA
     Index mShaderIdx = INVALID_INDEX;
@@ -268,7 +270,7 @@ public: // DATA
   Index              mParentIdx = INVALID_INDEX;
 };
 
-class DALI_SCENE_LOADER_API ModelNode : public NodeDefinition::Renderable
+class DALI_SCENE3D_API ModelNode : public NodeDefinition::Renderable
 {
 public: // DATA
   Vector4 mColor       = Color::WHITE;
@@ -285,7 +287,7 @@ public: // METHODS
 /**
  * @brief Parameters for an Arc node.
  */
-class DALI_SCENE_LOADER_API ArcNode : public ModelNode
+class DALI_SCENE3D_API ArcNode : public ModelNode
 {
 public: // DATA
   bool  mAntiAliasing      = true;
@@ -300,7 +302,8 @@ public: // METHODS
   void OnCreate(const NodeDefinition& node, NodeDefinition::CreateParams& params, Actor& actor) const override;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_NODE_DEFINITION_H_
+#endif //DALI_SCENE3D_LOADER_NODE_DEFINITION_H_
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  *
  */
 
-#include "dali-scene-loader/public-api/parse-renderer-state.h"
+#include "dali-scene3d/public-api/loader/parse-renderer-state.h"
 #include <cstring>
 #include "dali/devel-api/common/map-wrapper.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace RendererState
 {
@@ -52,7 +54,7 @@ Type InterpretComparison(const std::string_view& str)
 }
 
 std::map<std::string_view, Type> BLEND_FACTORS{
-#define DECL_BLEND_FACTOR(x) {#x, SceneLoader::BlendFactor::x}
+#define DECL_BLEND_FACTOR(x) {#x, Dali::Scene3D::Loader::BlendFactor::x}
   DECL_BLEND_FACTOR(ZERO),
   DECL_BLEND_FACTOR(ONE),
   DECL_BLEND_FACTOR(SRC_COLOR),
@@ -166,5 +168,6 @@ Type Parse(const char* string, size_t length, StringCallback onError)
 }
 
 } // namespace RendererState
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_INTERPRET_RENDERER_STATE_H
-#define DALI_SCENE_LOADER_INTERPRET_RENDERER_STATE_H
+#ifndef DALI_SCENE3D_LOADERERER_INTERPRET_RENDERER_STATE_H
+#define DALI_SCENE3D_LOADERERER_INTERPRET_RENDERER_STATE_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  *
  */
 
-#include "dali-scene-loader/public-api/renderer-state.h"
-#include "dali-scene-loader/public-api/string-callback.h"
+#include "dali-scene3d/public-api/loader/renderer-state.h"
+#include "dali-scene3d/public-api/loader/string-callback.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace RendererState
 {
@@ -39,10 +41,11 @@ namespace RendererState
  * @param onError The callback to call when an error occurred.
  * @note No other characters are allowed.
  */
-DALI_SCENE_LOADER_API Type Parse(const char* string, size_t length = 0, StringCallback onError = DefaultErrorCallback);
+DALI_SCENE3D_API Type Parse(const char* string, size_t length = 0, StringCallback onError = DefaultErrorCallback);
 
 } // namespace RendererState
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_INTERPRET_RENDERER_STATE_H
+#endif //DALI_SCENE3D_LOADERERER_INTERPRET_RENDERER_STATE_H
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  * limitations under the License.
  *
  */
-#include "dali-scene-loader/public-api/renderer-state.h"
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/public-api/loader/renderer-state.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace
 {
@@ -96,5 +98,6 @@ void Apply(Type rendererState, Renderer& renderer)
 
 } // namespace RendererState
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_RENDERER_STATE_H
-#define DALI_SCENE_LOADER_RENDERER_STATE_H
+#ifndef DALI_SCENE3D_LOADER_RENDERER_STATE_H
+#define DALI_SCENE3D_LOADER_RENDERER_STATE_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  */
 
 // INTERAL INCLUDES
-#include "dali-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
 
 // EXTERNAL INCLUDES
 #include "dali/public-api/rendering/renderer.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /*
  * @brief Contains values for comparison functions used in depth and stencil testing.
  * @note Relative order of members must match DepthFunction::Type and StencilFunction::Type.
  */
-struct DALI_SCENE_LOADER_API Comparison
+struct DALI_SCENE3D_API Comparison
 {
   enum Type
   {
@@ -53,7 +55,7 @@ struct DALI_SCENE_LOADER_API Comparison
  * @brief Determines the blend factor used.
  * @note Relative order of members must match BlendFactor::Type.
  */
-struct DALI_SCENE_LOADER_API BlendFactor
+struct DALI_SCENE3D_API BlendFactor
 {
   enum Type
   {
@@ -82,7 +84,7 @@ struct DALI_SCENE_LOADER_API BlendFactor
  * @brief Determines which buffers shall the Renderer write into.
  * @note Relative order of members must match RenderMode::Type.
  */
-struct DALI_SCENE_LOADER_API BufferMode
+struct DALI_SCENE3D_API BufferMode
 {
   enum Type
   {
@@ -104,7 +106,7 @@ namespace RendererState
 {
 using Type = uint32_t; // 8 bits reserved for flags, 4 * 4 bit for blend factors, 4 bits for depth function
 
-enum DALI_SCENE_LOADER_API Value : Type
+enum DALI_SCENE3D_API Value : Type
 {
   NONE = 0x0,
 
@@ -139,7 +141,7 @@ enum DALI_SCENE_LOADER_API Value : Type
  * @brief Encodes the given blend factors into a RenderMode value, maskable into other options,
  *  passable into ApplyRenderMode().
  */
-inline DALI_SCENE_LOADER_API constexpr uint32_t FromBlendFactors(BlendFactor::Type srcRgb, BlendFactor::Type destRgb, BlendFactor::Type srcAlpha, BlendFactor::Type destAlpha)
+inline DALI_SCENE3D_API constexpr uint32_t FromBlendFactors(BlendFactor::Type srcRgb, BlendFactor::Type destRgb, BlendFactor::Type srcAlpha, BlendFactor::Type destAlpha)
 {
   return (srcRgb | (destRgb << BLEND_FACTOR_ITEM_BITS) | (srcAlpha << (BLEND_FACTOR_ITEM_BITS * 2)) |
           (destAlpha << (BLEND_FACTOR_ITEM_BITS * 3)))
@@ -152,11 +154,12 @@ inline DALI_SCENE_LOADER_API constexpr uint32_t FromBlendFactors(BlendFactor::Ty
  * @note Blend factors are only set if not BlendFactor::OMIT.
  * @note Buffer mode is only set is not BufferMode::OMIT.
  */
-DALI_SCENE_LOADER_API void Apply(Type rendererState, Renderer& renderer);
+DALI_SCENE3D_API void Apply(Type rendererState, Renderer& renderer);
 
 } // namespace RendererState
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_RENDERER_STATE_H
+#endif //DALI_SCENE3D_LOADER_RENDERER_STATE_H
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -16,7 +16,7 @@
  */
 
 // FILE HEADER
-#include "dali-scene-loader/public-api/resource-bundle.h"
+#include "dali-scene3d/public-api/loader/resource-bundle.h"
 
 // EXTERNAL
 #include <cstring>
@@ -29,7 +29,9 @@ namespace Dali
 {
 using namespace Toolkit;
 
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace
 {
@@ -146,5 +148,6 @@ void ResourceBundle::LoadResources(const ResourceRefCounts& refCounts, PathProvi
   }
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_RESOURCE_BUNDLE_H_
-#define DALI_SCENE_LOADER_RESOURCE_BUNDLE_H_
+#ifndef DALI_SCENE3D_LOADERERERERER_RESOURCE_BUNDLE_H_
+#define DALI_SCENE3D_LOADERERERERER_RESOURCE_BUNDLE_H_
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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
-#include "dali-scene-loader/public-api/environment-definition.h"
-#include "dali-scene-loader/public-api/material-definition.h"
-#include "dali-scene-loader/public-api/mesh-definition.h"
-#include "dali-scene-loader/public-api/shader-definition.h"
-#include "dali-scene-loader/public-api/skeleton-definition.h"
+#include "dali-scene3d/public-api/loader/environment-definition.h"
+#include "dali-scene3d/public-api/loader/material-definition.h"
+#include "dali-scene3d/public-api/loader/mesh-definition.h"
+#include "dali-scene3d/public-api/loader/shader-definition.h"
+#include "dali-scene3d/public-api/loader/skeleton-definition.h"
 
 // EXTERNAL
 #include <functional>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /*
  * @brief The types of resources that .dli may define.
  */
-struct DALI_SCENE_LOADER_API ResourceType
+struct DALI_SCENE3D_API ResourceType
 {
   enum Value
   {
@@ -54,7 +56,7 @@ struct DALI_SCENE_LOADER_API ResourceType
 /*
  * @return The string value corresponding to the given resource @a type.
  */
-DALI_SCENE_LOADER_API const char* GetResourceTypeName(ResourceType::Value type);
+DALI_SCENE3D_API const char* GetResourceTypeName(ResourceType::Value type);
 
 using ResourceRefCounts = std::vector<Vector<uint32_t>>;
 
@@ -63,7 +65,7 @@ using ResourceRefCounts = std::vector<Vector<uint32_t>>;
  *  could be created from them, directly indexible into with values from a dli
  *  document.
  */
-class DALI_SCENE_LOADER_API ResourceBundle
+class DALI_SCENE3D_API ResourceBundle
 {
 public:
   struct Options
@@ -122,7 +124,8 @@ public: // DATA
   SkeletonDefinition::Vector mSkeletons;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_RESOURCE_BUNDLE_H_
+#endif //DALI_SCENE3D_LOADERERERERER_RESOURCE_BUNDLE_H_
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
 #include "dali/public-api/animation/constraints.h"
 
 // INTERNAL
-#include "dali-scene-loader/internal/graphics/builtin-shader-extern-gen.h"
-#include "dali-scene-loader/public-api/blend-shape-details.h"
-#include "dali-scene-loader/public-api/scene-definition.h"
-#include "dali-scene-loader/public-api/skinning-details.h"
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/internal/graphics/builtin-shader-extern-gen.h"
+#include "dali-scene3d/public-api/loader/blend-shape-details.h"
+#include "dali-scene3d/public-api/loader/scene-definition.h"
+#include "dali-scene3d/public-api/loader/skinning-details.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 
 //#define DEBUG_SCENE_DEFINITION
 //#define DEBUG_JOINTS
@@ -39,7 +39,9 @@
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace
 {
@@ -122,7 +124,7 @@ void EnsureJointDebugShaderCreated()
 {
   if(0 == sNumScenes)
   {
-    sJointDebugShader = Shader::New(SHADER_SCENE_LOADER_JOINT_DEBUG_VERT, SHADER_SCENE_LOADER_JOINT_DEBUG_FRAG);
+    sJointDebugShader = Shader::New(SHADER_SCENE3D_JOINT_DEBUG_VERT, SHADER_SCENE3D_JOINT_DEBUG_FRAG);
   }
   ++sNumScenes;
 }
@@ -376,7 +378,7 @@ SceneDefinition::~SceneDefinition()
 #endif
 }
 
-uint32_t SceneLoader::SceneDefinition::AddRootNode(Index iNode)
+uint32_t Dali::Scene3D::Loader::SceneDefinition::AddRootNode(Index iNode)
 {
   if(iNode < mNodes.size())
   {
@@ -1194,5 +1196,6 @@ bool SceneDefinition::FindNode(const std::string& name, std::unique_ptr<NodeDefi
   return success;
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_SCENE_DEFINITION_H_
-#define DALI_SCENE_LOADER_SCENE_DEFINITION_H_
+#ifndef DALI_SCENE3D_LOADERER_SCENE_DEFINITION_H_
+#define DALI_SCENE3D_LOADERER_SCENE_DEFINITION_H_
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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-scene-loader/public-api/customization.h"
-#include "dali-scene-loader/public-api/node-definition.h"
-#include "dali-scene-loader/public-api/string-callback.h"
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/public-api/loader/customization.h"
+#include "dali-scene3d/public-api/loader/node-definition.h"
+#include "dali-scene3d/public-api/loader/string-callback.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 
 // EXTERNAL INCLUDES
 #include <memory>
@@ -33,7 +33,9 @@
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 class MatrixStack;
 
@@ -41,7 +43,7 @@ class MatrixStack;
  * @brief Intermediate representation of a scene with functionality required to
  *  create DALi objects (Actors, Renderers) from it.
  */
-class DALI_SCENE_LOADER_API SceneDefinition
+class DALI_SCENE3D_API SceneDefinition
 {
 public: // TYPES
   using NodePredicate     = std::function<bool(const NodeDefinition&)>;
@@ -272,7 +274,8 @@ private:                                               // DATA
   std::vector<Index>                           mRootNodeIds;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_SCENE_DEFINITION_H_
+#endif //DALI_SCENE3D_LOADERER_SCENE_DEFINITION_H_
  * limitations under the License.
  *
  */
-#include "dali-scene-loader/public-api/shader-definition-factory.h"
+#include "dali-scene3d/public-api/loader/shader-definition-factory.h"
 #include <cstring>
-#include "dali-scene-loader/internal/hash.h"
-#include "dali-scene-loader/public-api/blend-shape-details.h"
-#include "dali-scene-loader/public-api/node-definition.h"
+#include "dali-scene3d/internal/loader/hash.h"
+#include "dali-scene3d/public-api/loader/blend-shape-details.h"
+#include "dali-scene3d/public-api/loader/node-definition.h"
 #include "dali/devel-api/common/map-wrapper.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace
 {
@@ -193,7 +195,7 @@ Index ShaderDefinitionFactory::ProduceShader(const NodeDefinition& nodeDef)
 
   ShaderDefinition shaderDef;
   shaderDef.mUseBuiltInShader = true;
-  shaderDef.mRendererState      = RendererState::DEPTH_TEST | RendererState::DEPTH_WRITE | RendererState::CULL_BACK;
+  shaderDef.mRendererState    = RendererState::DEPTH_TEST | RendererState::DEPTH_WRITE | RendererState::CULL_BACK;
 
   auto&      materialDef     = *receiver.mMaterialDef;
   const bool hasTransparency = MaskMatch(materialDef.mFlags, MaterialDefinition::TRANSPARENCY);
@@ -312,5 +314,6 @@ Index ShaderDefinitionFactory::ProduceShader(const NodeDefinition& nodeDef)
   return result;
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_SHADER_DEFINITION_FACTORY_H_
-#define DALI_SCENE_LOADER_SHADER_DEFINITION_FACTORY_H_
+#ifndef DALI_SCENE3D_LOADER_SHADER_DEFINITION_FACTORY_H_
+#define DALI_SCENE3D_LOADER_SHADER_DEFINITION_FACTORY_H_
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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-scene-loader/public-api/api.h"
-#include "dali-scene-loader/public-api/index.h"
+#include "dali-scene3d/public-api/api.h"
+#include "dali-scene3d/public-api/loader/index.h"
 
 // EXTERNAL INCLUDER
 #include <memory>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 struct NodeDefinition;
 class ResourceBundle;
 
-class DALI_SCENE_LOADER_API ShaderDefinitionFactory
+class DALI_SCENE3D_API ShaderDefinitionFactory
 {
 public:
   ShaderDefinitionFactory();
@@ -56,7 +58,8 @@ private:
   const std::unique_ptr<Impl> mImpl;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_SHADER_DEFINITION_FACTORY_H_
+#endif //DALI_SCENE3D_LOADER_SHADER_DEFINITION_FACTORY_H_
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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-scene-loader/public-api/shader-definition.h"
-#include "dali-scene-loader/public-api/utils.h"
-#include <dali-scene-loader/internal/graphics/builtin-shader-extern-gen.h>
+#include "dali-scene3d/public-api/loader/shader-definition.h"
+#include <dali-scene3d/internal/graphics/builtin-shader-extern-gen.h>
+#include "dali-scene3d/public-api/loader/utils.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace
 {
@@ -143,5 +145,6 @@ Shader ShaderDefinition::Load(RawData&& raw) const
   return shader;
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_SHADER_DEFINITION_H
-#define DALI_SCENE_LOADER_SHADER_DEFINITION_H
+#ifndef DALI_SCENE3D_LOADER_SHADER_DEFINITION_H
+#define DALI_SCENE3D_LOADER_SHADER_DEFINITION_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -18,7 +18,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/renderer-state.h"
+#include "dali-scene3d/public-api/loader/renderer-state.h"
 
 // EXTERNAL INCLUDES
 #include <memory>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /*
  * @brief Defines a shader with paths to the files which define its
  *  vertex and fragment components, and a mapping of uniform names (which are
  *  used to refer to them in GLSL) to data.
  */
-struct DALI_SCENE_LOADER_API ShaderDefinition
+struct DALI_SCENE3D_API ShaderDefinition
 {
   using Vector = std::vector<std::pair<ShaderDefinition, Shader>>;
 
@@ -83,7 +85,8 @@ public: // DATA
   bool                     mUseBuiltInShader{false};
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_SHADER_DEFINITION_H
+#endif //DALI_SCENE3D_LOADER_SHADER_DEFINITION_H
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_SKELETON_H
-#define DALI_SCENE_LOADER_SKELETON_H
+#ifndef DALI_SCENE3D_LOADERER_SKELETON_H
+#define DALI_SCENE3D_LOADERER_SKELETON_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -18,7 +18,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/index.h"
+#include "dali-scene3d/public-api/loader/index.h"
 
 // EXTERNAL INCLUDES
 #include "dali/public-api/common/vector-wrapper.h"
@@ -26,7 +26,9 @@
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /*
  * @brief A set of joints (stored as node indices), and an optional root node index.
@@ -34,7 +36,7 @@ namespace SceneLoader
  * @note Client code should not change the order of joints, as they are indexed by mesh vertex data.
  * @note Client code should make no assumption about the relation of the joint IDs.
  */
-struct DALI_SCENE_LOADER_API SkeletonDefinition
+struct DALI_SCENE3D_API SkeletonDefinition
 {
   struct Joint
   {
@@ -48,7 +50,8 @@ struct DALI_SCENE_LOADER_API SkeletonDefinition
   std::vector<Joint> mJoints;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_SKELETON_H
+#endif //DALI_SCENE3D_LOADERER_SKELETON_H
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  * limitations under the License.
  *
  */
-#include "dali-scene-loader/public-api/skinning-details.h"
+#include "dali-scene3d/public-api/loader/skinning-details.h"
 #include "dali/public-api/animation/constraints.h"
 #include "dali/public-api/object/property.h"
 #include "dali/public-api/rendering/shader.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 const unsigned int Skinning::MAX_JOINTS = 64;
 
 const std::string Skinning::BONE_UNIFORM_NAME = "uBone";
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_SKINNING_DETAILS_H_
-#define DALI_SCENE_LOADER_SKINNING_DETAILS_H_
+#ifndef DALI_SCENE3D_LOADER_SKINNING_DETAILS_H_
+#define DALI_SCENE3D_LOADER_SKINNING_DETAILS_H_
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -18,7 +18,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
 
 // EXTERNAL INCLUDES
 #include <string>
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
 {
-struct DALI_SCENE_LOADER_API Skinning
+namespace Loader
+{
+struct DALI_SCENE3D_API Skinning
 {
   /*
    * @brief Upper limit on the number of joints supported.
@@ -43,7 +45,8 @@ struct DALI_SCENE_LOADER_API Skinning
   Skinning() = delete;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif // DALI_SCENE_LOADER_SKINNING_DETAILS_H_
+#endif // DALI_SCENE3D_LOADER_SKINNING_DETAILS_H_
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  * limitations under the License.
  *
  */
-#include "dali-scene-loader/public-api/string-callback.h"
+#include "dali-scene3d/public-api/loader/string-callback.h"
 #include "dali/integration-api/debug.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 void DefaultErrorCallback(const std::string& message)
 {
   DALI_LOG_ERROR("%s", message.c_str());
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_STRING_CALLBACK_H
-#define DALI_SCENE_LOADER_STRING_CALLBACK_H
+#ifndef DALI_SCENE3D_LOADER_STRING_CALLBACK_H
+#define DALI_SCENE3D_LOADER_STRING_CALLBACK_H
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -18,7 +18,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
 
 // EXTERNAL INCLUDES
 #include <functional>
@@ -26,7 +26,9 @@
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /*
  * @brief A callback to post strings to.
@@ -36,9 +38,10 @@ using StringCallback = std::function<void(const std::string&)>;
 /*
  * @brief Simply passes the formatted message to LOGE().
  */
-DALI_SCENE_LOADER_API void DefaultErrorCallback(const std::string& message);
+DALI_SCENE3D_API void DefaultErrorCallback(const std::string& message);
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_STRING_CALLBACK_H
+#endif //DALI_SCENE3D_LOADER_STRING_CALLBACK_H
similarity index 95%
rename from dali-scene-loader/public-api/utils.cpp
rename to dali-scene3d/public-api/loader/utils.cpp
index 4d4396d..e4f3596 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -16,7 +16,7 @@
  */
 
 // INTERNAL
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 
 // EXTERNAL
 #include <stdarg.h>
@@ -28,7 +28,9 @@
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 namespace
 {
@@ -145,5 +147,6 @@ void ToUnixFileSeparators(std::string& path)
   std::replace(path.begin(), path.end(), '\\', '/');
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
similarity index 76%
rename from dali-scene-loader/public-api/utils.h
rename to dali-scene3d/public-api/loader/utils.h
index f9213e1..05a2063 100644 (file)
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_UTILS_H_
-#define DALI_SCENE_LOADER_UTILS_H_
+#ifndef DALI_SCENE3D_LOADER_UTILS_H_
+#define DALI_SCENE3D_LOADER_UTILS_H_
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -18,7 +18,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "dali-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
 
 // EXTERNAL INCLUDES
 #include <cctype>
@@ -29,7 +29,9 @@
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /*
  * @brief Fixed size backing buffer to use with std::ostreams where control over
@@ -37,7 +39,7 @@ namespace SceneLoader
  * @note All stream insertions that would overflow the buffer that StreamBuffer
  *  was created with, will fail.
  */
-class DALI_SCENE_LOADER_API StreamBuffer : public std::basic_streambuf<char>
+class DALI_SCENE3D_API StreamBuffer : public std::basic_streambuf<char>
 {
 public:
   StreamBuffer(char* buffer, size_t size) noexcept(true);
@@ -48,7 +50,7 @@ public:
  *  which a message can be formatted into. Upon destruction, it throws a
  *  DaliException with the message.
  */
-class DALI_SCENE_LOADER_API ExceptionFlinger
+class DALI_SCENE3D_API ExceptionFlinger
 {
 public:
   enum
@@ -85,12 +87,12 @@ private:
 /*
  * @brief Formats the given printf-style varargs into a std::string.
  */
-DALI_SCENE_LOADER_API std::string FormatString(const char* format, ...);
+DALI_SCENE3D_API std::string FormatString(const char* format, ...);
 
 /*
  * @return The @n th bit in a bitmask.
  */
-DALI_SCENE_LOADER_API constexpr size_t NthBit(size_t n)
+DALI_SCENE3D_API constexpr size_t NthBit(size_t n)
 {
   return 1 << n;
 }
@@ -98,7 +100,7 @@ DALI_SCENE_LOADER_API constexpr size_t NthBit(size_t n)
 /*
  * @return Whether all of @a mask 's bits are set on @a value.
  */
-inline DALI_SCENE_LOADER_API bool MaskMatch(uint32_t value, uint32_t mask)
+inline DALI_SCENE3D_API bool MaskMatch(uint32_t value, uint32_t mask)
 {
   return (value & mask) == mask;
 }
@@ -106,7 +108,7 @@ inline DALI_SCENE_LOADER_API bool MaskMatch(uint32_t value, uint32_t mask)
 /*
  * @brief Convert a four-letter(, null-terminated) string literal into a uint32_t.
  */
-inline DALI_SCENE_LOADER_API constexpr uint32_t FourCC(const char (&fourCC)[5])
+inline DALI_SCENE3D_API constexpr uint32_t FourCC(const char (&fourCC)[5])
 {
   return (fourCC[3] << 24) | (fourCC[2] << 16) | (fourCC[1] << 8) | fourCC[0];
 }
@@ -117,7 +119,7 @@ inline DALI_SCENE_LOADER_API constexpr uint32_t FourCC(const char (&fourCC)[5])
  * @param[in] b, compare string
  * @return true if strings are equal
  */
-inline DALI_SCENE_LOADER_API bool CaseInsensitiveCharacterCompare(unsigned char a, unsigned char b)
+inline DALI_SCENE3D_API bool CaseInsensitiveCharacterCompare(unsigned char a, unsigned char b)
 {
   // Converts to lower case in the current locale.
   return std::tolower(a) == std::tolower(b);
@@ -128,7 +130,7 @@ inline DALI_SCENE_LOADER_API bool CaseInsensitiveCharacterCompare(unsigned char
  * @param[in] a, compare string
  * @param[in] b, compare string
  */
-inline DALI_SCENE_LOADER_API bool CaseInsensitiveStringCompare(const std::string& a, const std::string& b)
+inline DALI_SCENE3D_API bool CaseInsensitiveStringCompare(const std::string& a, const std::string& b)
 {
   bool result = false;
   if(a.length() == b.length())
@@ -144,7 +146,7 @@ inline DALI_SCENE_LOADER_API bool CaseInsensitiveStringCompare(const std::string
  *  to true in case of failure (should only be checked if the returned string
  *  was empty()).
  */
-DALI_SCENE_LOADER_API std::string LoadTextFile(const char* path, bool* fail = nullptr);
+DALI_SCENE3D_API std::string LoadTextFile(const char* path, bool* fail = nullptr);
 
 /*
  * @brief Makes a number of calls to @a fn, passing to each one the given
@@ -154,7 +156,7 @@ DALI_SCENE_LOADER_API std::string LoadTextFile(const char* path, bool* fail = nu
  *  for performance and stability reasons.
  */
 template<typename Func>
-inline DALI_SCENE_LOADER_API void VisitActor(Actor a, Func fn)
+inline DALI_SCENE3D_API void VisitActor(Actor a, Func fn)
 {
   fn(a);
 
@@ -169,7 +171,7 @@ inline DALI_SCENE_LOADER_API void VisitActor(Actor a, Func fn)
  * @brief Convenience function to set the given actor @a 's anchor point
  *  and parent origin to center.
  */
-inline DALI_SCENE_LOADER_API void SetActorCentered(Actor a)
+inline DALI_SCENE3D_API void SetActorCentered(Actor a)
 {
   a.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER);
   a.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER);
@@ -179,7 +181,7 @@ namespace TexturedQuadOptions
 {
 using Type = uint32_t;
 
-enum DALI_SCENE_LOADER_API Values : Type
+enum DALI_SCENE3D_API Values : Type
 {
   NONE          = 0x00,
   FLIP_VERTICAL = 0x01,
@@ -189,15 +191,16 @@ enum DALI_SCENE_LOADER_API Values : Type
 /*
  * @brief Makes... geometry for a textured quad.
  */
-DALI_SCENE_LOADER_API Geometry MakeTexturedQuadGeometry(TexturedQuadOptions::Type options = TexturedQuadOptions::NONE);
+DALI_SCENE3D_API Geometry MakeTexturedQuadGeometry(TexturedQuadOptions::Type options = TexturedQuadOptions::NONE);
 
 /*
  * @brief Fixes the path of a file. Replaces the '\\' separator by the '/' one.
  * @param[in,out] path The path to be fixed.
  */
-DALI_SCENE_LOADER_API void ToUnixFileSeparators(std::string& path);
+DALI_SCENE3D_API void ToUnixFileSeparators(std::string& path);
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif /* DALI_SCENE_LOADER_UTILS_H_ */
+#endif /* DALI_SCENE3D_LOADER_UTILS_H_ */
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
  * limitations under the License.
  *
  */
-#include "dali-scene-loader/public-api/view-projection.h"
-#include "dali-scene-loader/public-api/utils.h"
+#include "dali-scene3d/public-api/loader/view-projection.h"
+#include "dali-scene3d/public-api/loader/utils.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 void ViewProjection::Update()
 {
@@ -32,5 +34,6 @@ void ViewProjection::Update()
   }
 }
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
@@ -1,7 +1,7 @@
-#ifndef DALI_SCENE_LOADER_VIEW_PROJECTION_H_
-#define DALI_SCENE_LOADER_VIEW_PROJECTION_H_
+#ifndef DALI_SCENE3D_LOADER_VIEW_PROJECTION_H_
+#define DALI_SCENE3D_LOADER_VIEW_PROJECTION_H_
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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-scene-loader/public-api/api.h"
+#include "dali-scene3d/public-api/api.h"
 
 // EXTERNAL INCLUDES
 #include "dali/public-api/math/matrix.h"
 
 namespace Dali
 {
-namespace SceneLoader
+namespace Scene3D
+{
+namespace Loader
 {
 /**
  * @brief Contains view and projection matrices, also caching the view-projection
@@ -72,7 +74,8 @@ private:
   Matrix mViewProjection;
 };
 
-} // namespace SceneLoader
+} // namespace Loader
+} // namespace Scene3D
 } // namespace Dali
 
-#endif //DALI_SCENE_LOADER_VIEW_PROJECTION_H_
+#endif //DALI_SCENE3D_LOADER_VIEW_PROJECTION_H_
index 8619802..ba38d68 100644 (file)
@@ -100,25 +100,25 @@ Requires:   %{name} = %{version}-%{release}
 Application development package for Dali 3D engine toolkit - headers and package config
 
 ##############################
-# dali-scene-loader
+# dali-scene3d
 ##############################
-%define dali2_scene_loader dali2-scene-loader
-%package -n %{dali2_scene_loader}
+%define dali2_scene3d dali2-scene3d
+%package -n %{dali2_scene3d}
 Summary:    DLI scene loading library
 Group:      System/Libraries
 License:    Apache-2.0
 Requires:   dali2-toolkit
 
-%description -n %{dali2_scene_loader}
+%description -n %{dali2_scene3d}
 Provides functionality for loading and displaying DLI format scenes. See README.md for more details.
 
-%package -n %{dali2_scene_loader}-devel
-Summary:    Development components for dali-scene-loader
+%package -n %{dali2_scene3d}-devel
+Summary:    Development components for dali-scene3d
 Group:      Development/Building
-Requires:   %{dali2_scene_loader} = %{version}-%{release}
+Requires:   %{dali2_scene3d} = %{version}-%{release}
 
-%description -n %{dali2_scene_loader}-devel
-Development components for dali-scene-loader.
+%description -n %{dali2_scene3d}-devel
+Development components for dali-scene3d.
 
 %define dali_data_rw_dir            %TZ_SYS_SHARE/dali/
 %define dali_data_ro_dir            %TZ_SYS_RO_SHARE/dali/
@@ -480,17 +480,17 @@ esac
 %{dali_toolkit_style_files}/default-feedback-theme.json
 %{_datadir}/locale/*/LC_MESSAGES/*
 
-%files -n %{dali2_scene_loader}
+%files -n %{dali2_scene3d}
 %if 0%{?enable_dali_smack_rules}
-%manifest dali-scene-loader.manifest-smack
+%manifest dali-scene3d.manifest-smack
 %else
-%manifest dali-scene-loader.manifest
+%manifest dali-scene3d.manifest
 %endif
 %defattr(-,root,root,-)
-%{_libdir}/lib%{dali2_scene_loader}.so
+%{_libdir}/lib%{dali2_scene3d}.so
 %license LICENSE
 
-%files -n %{dali2_scene_loader}-devel
+%files -n %{dali2_scene3d}-devel
 %defattr(-,root,root,-)
-%{_includedir}/dali-scene-loader/public-api/*
-%{_libdir}/pkgconfig/dali2-scene-loader.pc
+%{_includedir}/dali-scene3d/public-api/*
+%{_libdir}/pkgconfig/dali2-scene3d.pc