Files
UnrealEngine/Engine/Plugins/Mutable/Source/MutableTools/Internal/MuT/NodeColourArithmeticOperation.h
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

55 lines
906 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "MuR/Ptr.h"
#include "MuR/RefCounted.h"
#include "MuT/NodeColour.h"
#define UE_API MUTABLETOOLS_API
namespace UE::Mutable::Private
{
/** Perform a per - component arithmetic operation between two colours.
*/
class NodeColourArithmeticOperation : public NodeColour
{
public:
/** Possible arithmetic operations. */
enum class EOperation
{
Add,
Subtract,
Multiply,
Divide
};
EOperation Operation;
Ptr<NodeColour> A;
Ptr<NodeColour> B;
public:
/** Node type hierarchy data. */
virtual const FNodeType* GetType() const { return &StaticType; }
static const FNodeType* GetStaticType() { return &StaticType; }
protected:
/** Forbidden. Manage with the Ptr<> template. */
~NodeColourArithmeticOperation() {}
private:
static UE_API FNodeType StaticType;
};
}
#undef UE_API