Supports cube map images in scene-loader
[platform/core/uifw/dali-toolkit.git] / dali-scene-loader / public-api / ktx-loader.h
index d94f4ca..3a8b0e1 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef DALI_SCENE_LOADER_KTX_LOADER_H
 #define DALI_SCENE_LOADER_KTX_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"
-
-// EXTERNAL INCLUDES
-#include "dali/public-api/common/vector-wrapper.h"
-#include "dali/public-api/images/pixel-data.h"
-#include "dali/public-api/rendering/texture.h"
+#include <dali-scene-loader/public-api/api.h>
+#include <dali-scene-loader/public-api/cube-data.h>
 
 namespace Dali
 {
 namespace SceneLoader
 {
-/**
- * @brief Stores the pixel data objects for each face of the cube texture and their mipmaps.
- */
-struct DALI_SCENE_LOADER_API CubeData
-{
-  std::vector<std::vector<PixelData> > data;
-
-  Texture CreateTexture() const;
-};
 
 /**
  * @brief Loads cube map data texture from a ktx file.
  *
  * @param[in] path The file path.
  * @param[out] cubedata The data structure with all pixel data objects.
+ * @return bool True if the loading is succeded.
  */
-DALI_SCENE_LOADER_API bool LoadCubeMapData(const std::string& path, CubeData& cubedata);
+bool LoadKtxData(const std::string& path, CubeData& cubedata);
 
 } // namespace SceneLoader
 } // namespace Dali