9template <
typename EntryContainerType>
22 Canvas.
DrawTile(
X/DPIScale,
Y/DPIScale, Width/DPIScale, Height/DPIScale, 0, 0, 0, 0,
Color);
30 const float YStride = 20.0f * DPIScale;
35 DrawColorTile(LegendPosition.
X + 7.0f * DPIScale, LegendPosition.
Y + 5.0f * DPIScale, 10.0f * DPIScale, 10.0f * DPIScale,
Color);
36 DrawShadowedString(LegendPosition.
X +
YStride, LegendPosition.
Y + 2.0f * DPIScale, Label);
53 for (
const auto& Entry : LegendEntries)
61 DrawShadowedString(LegendPosition.
X + 5.0f * DPIScale, LegendPosition.
Y + 5.0f * DPIScale,
HeaderLabel);
64 for (
const auto& Entry : LegendEntries)
ENGINE_API void StringSize(const UFont *Font, int32 &XL, int32 &YL, FStringView Text)
Definition Canvas.cpp:1181
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE::Math::TMatrix< double > FMatrix
Definition MathFwd.h:51
#define RDG_EVENT_NAME(...)
Definition RenderGraphEvent.h:529
void AddLegendCanvasPass(FRDGBuilder &GraphBuilder, const FViewInfo &View, FScreenPassRenderTarget OutputTarget, const FString &HeaderLabel, FVector2f LegendAnchorPositionLowerLeft, FVector2f LegendMinSize, const EntryContainerType &LegendEntries)
Definition RenderingVisualizationUtils.h:10
void AddDrawCanvasPass(FRDGBuilder &GraphBuilder, FRDGEventName &&PassName, const FSceneView &View, FScreenPassRenderTarget Output, TFunction Function)
Definition ScreenPass.h:726
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
UFont * GetStatsFont()
Definition UnrealEngine.cpp:13672
Definition CanvasTypes.h:211
float GetDPIScale() const
Definition CanvasTypes.h:605
static ENGINE_API FMatrix CalcBaseTransform2D(uint32 ViewSizeX, uint32 ViewSizeY)
Definition Canvas.cpp:391
const FIntRect & GetViewRect() const
Definition CanvasTypes.h:567
ENGINE_API int32 DrawShadowedString(double StartX, double StartY, FStringView Text, const UFont *Font, const FLinearColor &Color, const FLinearColor &ShadowColor=FLinearColor::Black)
Definition Canvas.cpp:1130
ENGINE_API void DrawTile(double X, double Y, double SizeX, double SizeY, float U, float V, float SizeU, float SizeV, const FLinearColor &Color, const FTexture *Texture=NULL, bool AlphaBlend=true)
Definition Canvas.cpp:1102
ENGINE_API void SetBaseTransform(const FMatrix &Transform)
Definition Canvas.cpp:378
Definition RenderGraphBuilder.h:49
Definition SceneRendering.h:1132
static CORE_API const FLinearColor White
Definition Color.h:456
Definition ScreenPass.h:83
IntType Width() const
Definition IntRect.h:469
IntType Height() const
Definition IntRect.h:372
T Y
Definition Vector2D.h:52
T X
Definition Vector2D.h:49