git.s-ol.nu ~forks/DiligentTools / 967f2dc
GLTFLoader: added convenience constructor for Model::CreateInfo assiduous 11 months ago
1 changed file(s) with 15 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
351351 /// Whether to load animation and initialize skin attributes
352352 /// buffer.
353353 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 }
354369 };
355370 Model(IRenderDevice* pDevice,
356371 IDeviceContext* pContext,