Change dali-scene-loader to dali-scene3d
[platform/core/uifw/dali-toolkit.git] / dali-scene3d / public-api / loader / renderer-state.h
@@ -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