You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-223488 #rb jordi.rovira #tests Editor #rnx #virtualized [CL 36035608 by alexei lebedev in ue5-main branch]
65 lines
1.5 KiB
C++
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;
|
|
}
|
|
|
|
}
|
|
|
|
|