Files
directx-plane-game/Graphics2/ControlledSplitMeshNode.cpp
iDunnoDev 616f68bf8b Added Comments
Added ability to hold shift and skip the terrain generation when loading
Added ability for the perlin terrain to save a raw image of the terrain to use as a cache
2022-06-13 16:41:25 +01:00

26 lines
640 B
C++

#include "ControlledSplitMeshNode.h"
ControlledSplitMeshNode::ControlledSplitMeshNode(wstring name, wstring modelName) : SplitMeshNode(name, modelName), ObjectNode()
{
}
void ControlledSplitMeshNode::Update(FXMMATRIX& currentWorldTransformation)
{
// Run the update for both parent node classes
ObjectNode::Update(_worldTransformation);
SceneGraph::Update(currentWorldTransformation);
}
bool ControlledSplitMeshNode::Initialise(void)
{
if (!SplitMeshNode::Initialise())
{
return false;
}
return true;
}
XMMATRIX ControlledSplitMeshNode::GetWorldTransformation() const
{
return XMLoadFloat4x4(&_combinedWorldTransformation);
}