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

58 lines
1.7 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "MuT/NodeImageFormat.h"
#include "Misc/AssertionMacros.h"
#include "MuT/NodeImageFormatPrivate.h"
#include "MuT/NodePrivate.h"
namespace mu
{
//---------------------------------------------------------------------------------------------
// Static initialisation
//---------------------------------------------------------------------------------------------
FNodeType NodeImageFormat::Private::s_type = FNodeType(Node::EType::ImageFormat, NodeImage::GetStaticType() );
//---------------------------------------------------------------------------------------------
//!
//---------------------------------------------------------------------------------------------
MUTABLE_IMPLEMENT_NODE( NodeImageFormat )
//---------------------------------------------------------------------------------------------
// Own Interface
//---------------------------------------------------------------------------------------------
EImageFormat NodeImageFormat::GetFormat() const
{
return m_pD->m_format;
}
//---------------------------------------------------------------------------------------------
void NodeImageFormat::SetFormat(EImageFormat format, EImageFormat formatIfAlpha )
{
m_pD->m_format = format;
m_pD->m_formatIfAlpha = formatIfAlpha;
}
//---------------------------------------------------------------------------------------------
NodeImagePtr NodeImageFormat::GetSource() const
{
return m_pD->m_source.get();
}
//---------------------------------------------------------------------------------------------
void NodeImageFormat::SetSource(NodeImagePtr pNode )
{
m_pD->m_source = pNode;
}
}