Files
alexei lebedev 2815323fbc [mutable] Moved the Mutable plugin out of Experimental status into Beta.
#jira UE-223488
#rb jordi.rovira
#tests Editor
#rnx

#virtualized

[CL 36035608 by alexei lebedev in ue5-main branch]
2024-09-05 07:16:19 -04:00

65 lines
1.5 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "MuT/NodeMeshFormat.h"
#include "Misc/AssertionMacros.h"
#include "MuT/NodeLayout.h"
#include "MuT/NodeMeshFormatPrivate.h"
#include "MuT/NodeMeshPrivate.h"
#include "MuT/NodePrivate.h"
namespace mu
{
class FMeshBufferSet;
//---------------------------------------------------------------------------------------------
// Static initialisation
//---------------------------------------------------------------------------------------------
FNodeType NodeMeshFormat::Private::s_type = FNodeType(Node::EType::MeshFormat, NodeMesh::GetStaticType() );
//---------------------------------------------------------------------------------------------
//!
//---------------------------------------------------------------------------------------------
MUTABLE_IMPLEMENT_NODE( NodeMeshFormat )
//---------------------------------------------------------------------------------------------
// Own Interface
//---------------------------------------------------------------------------------------------
NodeMeshPtr NodeMeshFormat::GetSource() const
{
return m_pD->Source;
}
void NodeMeshFormat::SetSource( NodeMesh* pValue )
{
m_pD->Source = pValue;
}
FMeshBufferSet& NodeMeshFormat::GetVertexBuffers()
{
return m_pD->VertexBuffers;
}
FMeshBufferSet& NodeMeshFormat::GetIndexBuffers()
{
return m_pD->IndexBuffers;
}
void NodeMeshFormat::SetOptimizeBuffers(bool bEnable)
{
m_pD->bOptimizeBuffers = bEnable;
}
}