Files
2025-05-18 13:04:45 +08:00

51 lines
983 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "MuR/Ptr.h"
#include "MuR/RefCounted.h"
#include "MuT/Node.h"
#include "MuT/NodeMesh.h"
#include "MuR/Mesh.h"
namespace mu
{
// Forward definitions
class FMeshBufferSet;
/** This node can change the buffer formats of a mesh vertices, indices and faces. */
class MUTABLETOOLS_API NodeMeshFormat : public NodeMesh
{
public:
/** Source mesh to transform. */
Ptr<NodeMesh> Source;
/** New mesh format.The buffers in the sets have no elements, but they define the formats. */
FMeshBufferSet VertexBuffers;
FMeshBufferSet IndexBuffers;
/** */
bool bOptimizeBuffers = false;
public:
// Node Interface
virtual const FNodeType* GetType() const override { return &StaticType; }
static const FNodeType* GetStaticType() { return &StaticType; }
protected:
/** Forbidden. Manage with the Ptr<> template. */
~NodeMeshFormat() {}
private:
static FNodeType StaticType;
};
}