Removed unnecessary stuff from macros
This commit is contained in:
parent
83037a7bc8
commit
418dcaebfd
|
@ -1,5 +1,5 @@
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* \file SHAssetMacros.h
|
* \file AssetMacros.h
|
||||||
* \author Loh Xiao Qi
|
* \author Loh Xiao Qi
|
||||||
* \brief Macros and typedefs for assets
|
* \brief Macros and typedefs for assets
|
||||||
*
|
*
|
||||||
|
@ -7,21 +7,12 @@
|
||||||
* or disclosure of this file or its contents without the prior
|
* or disclosure of this file or its contents without the prior
|
||||||
* written consent of Digipen Institute of Technology is prohibited
|
* written consent of Digipen Institute of Technology is prohibited
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
#ifndef SH_ASSET_MACROS_H
|
#pragma once
|
||||||
#define SH_ASSET_MACROS_H
|
|
||||||
|
|
||||||
#include <cstdint>
|
|
||||||
#include <string>
|
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
|
|
||||||
// Typedefs
|
// Typedefs
|
||||||
typedef uint32_t AssetID;
|
|
||||||
typedef std::string AssetName;
|
|
||||||
typedef std::filesystem::path AssetPath;
|
typedef std::filesystem::path AssetPath;
|
||||||
typedef unsigned char* AssetData;
|
|
||||||
typedef std::string AssetMetaVersion;
|
|
||||||
typedef std::string AssetExtension;
|
|
||||||
typedef size_t AssetTypeMeta;
|
|
||||||
|
|
||||||
//Directory
|
//Directory
|
||||||
#ifdef _PUBLISH
|
#ifdef _PUBLISH
|
||||||
|
@ -33,7 +24,6 @@ constexpr std::string_view BUILT_IN_ASSET_ROOT{ "../../Built_In" };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ASSET EXTENSIONS
|
// ASSET EXTENSIONS
|
||||||
constexpr std::string_view TEXTURE_EXTENSION {".shtex"};
|
|
||||||
constexpr std::string_view MODEL_EXTENSION {".shmodel"};
|
constexpr std::string_view MODEL_EXTENSION {".shmodel"};
|
||||||
|
|
||||||
// EXTERNAL EXTENSIONS
|
// EXTERNAL EXTENSIONS
|
||||||
|
@ -44,11 +34,3 @@ constexpr std::string_view EXTERNALS[] = {
|
||||||
FBX_EXTENSION,
|
FBX_EXTENSION,
|
||||||
GLTF_EXTENSION
|
GLTF_EXTENSION
|
||||||
};
|
};
|
||||||
|
|
||||||
// Error flags
|
|
||||||
constexpr std::string_view FILE_NOT_FOUND_ERR {"FILE NOT FOUND"};
|
|
||||||
constexpr std::string_view META_NOT_FOUND_ERR {"META NOT FOUND"};
|
|
||||||
constexpr std::string_view ASSET_NOT_FOUND_ERR {"ASSET NOT FOUND"};
|
|
||||||
constexpr std::string_view EXT_DOES_NOT_EXIST {"TYPE DOES NOT HAVE EXTENSION DEFINED"};
|
|
||||||
|
|
||||||
#endif // !SH_ASSET_MACROS_H
|
|
||||||
|
|
Loading…
Reference in New Issue