
Added "Controlled" mesh classes Added Global Lighting Class Added Gamepad controls Split terrain nodes into Height and Perlin classes Fixed Splitmesh node stuff
24 lines
502 B
C++
24 lines
502 B
C++
#include "ControlledMeshNode.h"
|
|
|
|
ControlledMeshNode::ControlledMeshNode(wstring name, wstring modelName) : MeshNode(name, modelName), ObjectNode()
|
|
{
|
|
}
|
|
|
|
void ControlledMeshNode::Update(FXMMATRIX& currentWorldTransformation)
|
|
{
|
|
ObjectNode::Update(_worldTransformation);
|
|
}
|
|
|
|
bool ControlledMeshNode::Initialise(void)
|
|
{
|
|
if (!MeshNode::Initialise())
|
|
{
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
XMMATRIX ControlledMeshNode::GetWorldTransformation() const
|
|
{
|
|
return XMLoadFloat4x4(&_combinedWorldTransformation);
|
|
} |