diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-12-10 22:52:07 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-12-10 22:52:07 +0000 |
| commit | 8cc4d58920cd6bdab0b7fb328d7d3922176d1f40 (patch) | |
| tree | 708766855cd54b0fb99e38e4c2098c7b1efda0ea /AssetLoader/interface | |
| parent | GLTFLoader: updated model initialization API; few minor improvements to loading (diff) | |
| download | DiligentTools-8cc4d58920cd6bdab0b7fb328d7d3922176d1f40.tar.gz DiligentTools-8cc4d58920cd6bdab0b7fb328d7d3922176d1f40.zip | |
GLTF Loader: added
Diffstat (limited to 'AssetLoader/interface')
| -rw-r--r-- | AssetLoader/interface/GLTFLoader.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/AssetLoader/interface/GLTFLoader.hpp b/AssetLoader/interface/GLTFLoader.hpp index 604c838..81c7a96 100644 --- a/AssetLoader/interface/GLTFLoader.hpp +++ b/AssetLoader/interface/GLTFLoader.hpp @@ -348,9 +348,6 @@ struct Model /// Optional resource cache usage info. ResourceCacheUseInfo* pCacheInfo = nullptr; - - /// Optional transform to apply to the model - const float4x4* pTransform = nullptr; }; Model(IRenderDevice* pDevice, IDeviceContext* pContext, @@ -362,6 +359,8 @@ struct Model void PrepareGPUResources(IRenderDevice* pDevice, IDeviceContext* pCtx); + void Transform(const float4x4& Matrix); + IBuffer* GetBuffer(BUFFER_ID BuffId) { return Buffers[BuffId].pBuffer; @@ -415,7 +414,7 @@ private: void LoadMaterials(const tinygltf::Model& gltf_model); void LoadAnimations(const tinygltf::Model& gltf_model); void CalculateBoundingBox(Node* node, const Node* parent); - void GetSceneDimensions(); + void CalculateSceneDimensions(); Node* FindNode(Node* parent, Uint32 index); Node* NodeFromIndex(uint32_t index); |
