2022-10-19 18:37:27 +08:00
|
|
|
/******************************************************************************
|
2022-11-11 13:18:28 +08:00
|
|
|
* \file AssetMacros.h
|
2022-10-19 18:37:27 +08:00
|
|
|
* \author Loh Xiao Qi
|
|
|
|
* \brief Macros and typedefs for assets
|
|
|
|
*
|
|
|
|
* \copyright Copyright (c) 2022 Digipen Institute of Technology. Reproduction
|
|
|
|
* or disclosure of this file or its contents without the prior
|
|
|
|
* written consent of Digipen Institute of Technology is prohibited
|
|
|
|
******************************************************************************/
|
2022-11-11 13:18:28 +08:00
|
|
|
#pragma once
|
2022-10-19 18:37:27 +08:00
|
|
|
|
|
|
|
#include <filesystem>
|
|
|
|
|
|
|
|
// Typedefs
|
|
|
|
typedef std::filesystem::path AssetPath;
|
|
|
|
|
|
|
|
//Directory
|
|
|
|
#ifdef _PUBLISH
|
2022-10-31 14:16:35 +08:00
|
|
|
constexpr std::string_view ASSET_ROOT{ "Assets" };
|
|
|
|
constexpr std::string_view BUILT_IN_ASSET_ROOT{ "Built_In" };
|
2022-10-19 18:37:27 +08:00
|
|
|
#else
|
2022-10-31 14:16:35 +08:00
|
|
|
constexpr std::string_view ASSET_ROOT{ "../../Assets" };
|
|
|
|
constexpr std::string_view BUILT_IN_ASSET_ROOT{ "../../Built_In" };
|
2022-10-19 18:37:27 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// ASSET EXTENSIONS
|
2022-11-04 14:57:24 +08:00
|
|
|
constexpr std::string_view MODEL_EXTENSION {".shmodel"};
|
2022-10-31 14:16:35 +08:00
|
|
|
|
|
|
|
// EXTERNAL EXTENSIONS
|
|
|
|
constexpr std::string_view FBX_EXTENSION{ ".fbx" };
|
|
|
|
constexpr std::string_view GLTF_EXTENSION{ ".gltf" };
|
2022-10-19 18:37:27 +08:00
|
|
|
|
2022-10-31 14:16:35 +08:00
|
|
|
constexpr std::string_view EXTERNALS[] = {
|
2022-10-19 18:37:27 +08:00
|
|
|
FBX_EXTENSION,
|
|
|
|
GLTF_EXTENSION
|
|
|
|
};
|