summaryrefslogtreecommitdiffstats
path: root/AssetLoader/interface
diff options
context:
space:
mode:
Diffstat (limited to 'AssetLoader/interface')
-rw-r--r--AssetLoader/interface/GLTFLoader.hpp7
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);