You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
36 lines
870 B
C++
36 lines
870 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
class USplineComponent;
|
|
class IToolsContextRenderAPI;
|
|
|
|
namespace UE {
|
|
namespace Geometry {
|
|
|
|
namespace SplineUtil {
|
|
|
|
// Used for DrawSpline()
|
|
struct MODELINGCOMPONENTS_API FDrawSplineSettings
|
|
{
|
|
FDrawSplineSettings();
|
|
|
|
// Defaults to FStyleColors::White
|
|
FColor RegularColor;
|
|
// Defaults to FStyleColors::AccentOrange
|
|
FColor SelectedColor;
|
|
// If non-positive, the spline is drawn just as points and curves. If positive, the
|
|
// orientation and scale are visualized with the given base width.
|
|
double ScaleVisualizationWidth = 0;
|
|
|
|
// Keys to use SelectedColor for
|
|
TSet<int32>* SelectedKeys = nullptr;
|
|
};
|
|
|
|
MODELINGCOMPONENTS_API void DrawSpline(const USplineComponent& SplineComp, IToolsContextRenderAPI& RenderAPI, const FDrawSplineSettings& Settings);
|
|
|
|
}
|
|
}
|
|
} |