GLTFLoader: added convenience constructor for Model::CreateInfo
assiduous
2 years ago
351 | 351 | /// Whether to load animation and initialize skin attributes |
352 | 352 | /// buffer. |
353 | 353 | bool LoadAnimationAndSkin = true; |
354 | ||
355 | CreateInfo() = default; | |
356 | ||
357 | explicit CreateInfo(const char* _FileName, | |
358 | TextureCacheType* _pTextureCache = nullptr, | |
359 | ResourceCacheUseInfo* _pCacheInfo = nullptr, | |
360 | bool _LoadAnimationAndSkin = true) : | |
361 | // clang-format off | |
362 | FileName {_FileName}, | |
363 | pTextureCache {_pTextureCache}, | |
364 | pCacheInfo {_pCacheInfo}, | |
365 | LoadAnimationAndSkin{_LoadAnimationAndSkin} | |
366 | // clang-format on | |
367 | { | |
368 | } | |
354 | 369 | }; |
355 | 370 | Model(IRenderDevice* pDevice, |
356 | 371 | IDeviceContext* pContext, |