
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
26 lines
599 B
C++
26 lines
599 B
C++
#include "ControlledMeshNode.h"
|
|
|
|
ControlledMeshNode::ControlledMeshNode(wstring name, wstring modelName) : MeshNode(name, modelName), ObjectNode()
|
|
{
|
|
}
|
|
|
|
void ControlledMeshNode::Update(FXMMATRIX& currentWorldTransformation)
|
|
{
|
|
// Run the update for both parent node classes
|
|
MeshNode::Update(currentWorldTransformation);
|
|
ObjectNode::Update(_worldTransformation);
|
|
}
|
|
|
|
bool ControlledMeshNode::Initialise(void)
|
|
{
|
|
if (!MeshNode::Initialise())
|
|
{
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
XMMATRIX ControlledMeshNode::GetWorldTransformation() const
|
|
{
|
|
return XMLoadFloat4x4(&_combinedWorldTransformation);
|
|
} |