Revert "[Tizen] Add log if destroyed visual get some signal"
[platform/core/uifw/dali-toolkit.git] / dali-scene3d / public-api / loader / navigation-mesh-factory.h
1 #ifndef DALI_SCENE3D_LOADER_NAVIGATION_MESH_FACTORY_H
2 #define DALI_SCENE3D_LOADER_NAVIGATION_MESH_FACTORY_H
3
4 /*
5 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
6
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19
20 // EXTERNAL INCLUDES
21 #include <dali/public-api/rendering/geometry.h>
22 #include <dali/public-api/rendering/texture.h>
23
24 // INTERNAL INCLUDES
25 #include <dali-scene3d/public-api/algorithm/navigation-mesh.h>
26 #include <dali-scene3d/public-api/api.h>
27
28 namespace Dali::Scene3D::Loader
29 {
30 struct DALI_SCENE3D_API NavigationMeshFactory
31 {
32 public:
33   /**
34    * @brief Creates NavigationMesh object from file
35    *
36    * @param[in] filename file to load
37    * @return Valid NavigationMesh or nullptr
38    */
39   static std::unique_ptr<Algorithm::NavigationMesh> CreateFromFile(std::string filename);
40
41   /**
42    * @brief Creates NavigationMesh object from binary buffer
43    *
44    * @param[in] buffer buffer with data
45    * @return Valid NavigationMesh or nullptr
46    */
47   static std::unique_ptr<Algorithm::NavigationMesh> CreateFromBuffer(const std::vector<uint8_t>& buffer);
48 };
49 } // namespace Dali::Scene3D::Loader
50
51 #endif // DALI_SCENE3D_INTERNAL_LOADER_NAVIGATION_MESH_FACTORY_H