summaryrefslogtreecommitdiffstats
path: root/AssetLoader/interface/GLTFLoader.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'AssetLoader/interface/GLTFLoader.hpp')
-rw-r--r--AssetLoader/interface/GLTFLoader.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/AssetLoader/interface/GLTFLoader.hpp b/AssetLoader/interface/GLTFLoader.hpp
index 91f4aef..05c9c12 100644
--- a/AssetLoader/interface/GLTFLoader.hpp
+++ b/AssetLoader/interface/GLTFLoader.hpp
@@ -352,6 +352,21 @@ struct Model
/// Whether to load animation and initialize skin attributes
/// buffer.
bool LoadAnimationAndSkin = true;
+
+ CreateInfo() = default;
+
+ explicit CreateInfo(const char* _FileName,
+ TextureCacheType* _pTextureCache = nullptr,
+ ResourceCacheUseInfo* _pCacheInfo = nullptr,
+ bool _LoadAnimationAndSkin = true) :
+ // clang-format off
+ FileName {_FileName},
+ pTextureCache {_pTextureCache},
+ pCacheInfo {_pCacheInfo},
+ LoadAnimationAndSkin{_LoadAnimationAndSkin}
+ // clang-format on
+ {
+ }
};
Model(IRenderDevice* pDevice,
IDeviceContext* pContext,