UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GlobalMergeLegacySupportUtil.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
Math/MathFwd.h
"
// FTransform, FIntPoint
6
#include "
Misc/CoreMiscDefines.h
"
// PURE_VIRTUAL
7
#include "
UObject/Interface.h
"
8
9
#include "GlobalMergeLegacySupportUtil.generated.h"
10
11
// Note: this file is likely to be removed once global merge is fully phased out.
12
13
class
UTextureRenderTarget2D
;
14
struct
FLandscapeBrushParameters
;
15
16
class
UE_DEPRECATED
(5.7,
"Global merge has been deprecated so this is no longer used. There's no good way of deprecating UInterfaces ATM, hence this forward-declaration"
)
ULandscapeBrushRenderCallAdapter_GlobalMergeLegacySupport
{};
17
class
UE_DEPRECATED
(5.7,
"Global merge has been deprecated so this is no longer used. There's no good way of deprecating UInterfaces ATM, hence this forward-declaration"
)
ILandscapeBrushRenderCallAdapter_GlobalMergeLegacySupport
{};
18
19
// UObject for the UInterface
20
UINTERFACE
(MinimalAPI)
21
class
ULandscapeBrushRenderCallAdapter_GlobalMergeLegacySupport_DEPRECATED
:
public
UInterface
22
{
23
GENERATED_BODY
()
24
};
25
34
class
ILandscapeBrushRenderCallAdapter_GlobalMergeLegacySupport_DEPRECATED
35
{
36
GENERATED_BODY
()
37
38
#if WITH_EDITOR
39
public
:
45
UTextureRenderTarget2D
*
RenderAsBlueprintBrush
(
const
FLandscapeBrushParameters
&
InParameters
,
const
FTransform
&
LandscapeTransform
) {
return
nullptr
; }
46
47
// Called in the same places as the equivalent methods on FLandscapeLayerBrush.
48
virtual
bool
AffectsHeightmapAsBlueprintBrush
()
const
{
return
false
; }
49
virtual
bool
AffectsWeightmapLayerAsBlueprintBrush
(
const
FName
&
InLayerName
)
const
{
return
false
; }
50
virtual
bool
AffectsVisibilityLayerAsBlueprintBrush
()
const
{
return
false
; }
51
52
protected
:
53
54
// Overridable, equivalent to Initialize_Native on a blueprint brush actor
55
virtual
void
InitializeAsBlueprintBrush
(
const
FTransform
&
InLandscapeTransform
,
56
const
FIntPoint
&
InLandscapeSize
,
57
const
FIntPoint
&
InLandscapeRenderTargetSize
) {}
58
59
// Overridable, equivalent to RenderLayer_Native on a blueprint brush actor.
60
virtual
UTextureRenderTarget2D
*
RenderLayerAsBlueprintBrush
(
const
FLandscapeBrushParameters
&
InParameters
)
61
PURE_VIRTUAL
(ILandscapeBrushRenderCallAdapter_GlobalMergeLegacySupport_DEPRECATED::InitializeAsBlueprintBrush,
return
nullptr
; );
62
63
// Used in RenderAsBlueprintBrush to cache things the same way that blueprint brushes do
64
FTransform
CurrentRenderAreaWorldTransform
;
65
FIntPoint
CurrentRenderAreaSize
=
FIntPoint
(
ForceInitToZero
);
66
FIntPoint
CurrentRenderTargetSize
=
FIntPoint
(
ForceInitToZero
);
67
#endif
68
};
CoreMiscDefines.h
PURE_VIRTUAL
#define PURE_VIRTUAL(func,...)
Definition
CoreMiscDefines.h:103
ForceInitToZero
@ ForceInitToZero
Definition
CoreMiscDefines.h:156
UE_DEPRECATED
#define UE_DEPRECATED(Version, Message)
Definition
CoreMiscDefines.h:302
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
Interface.h
MathFwd.h
FIntPoint
FInt32Point FIntPoint
Definition
MathFwd.h:124
GENERATED_BODY
#define GENERATED_BODY(...)
Definition
ObjectMacros.h:765
UINTERFACE
#define UINTERFACE(...)
Definition
ObjectMacros.h:780
FName
Definition
NameTypes.h:617
ILandscapeBrushRenderCallAdapter_GlobalMergeLegacySupport_DEPRECATED
Definition
GlobalMergeLegacySupportUtil.h:35
UInterface
Definition
Interface.h:19
ULandscapeBrushRenderCallAdapter_GlobalMergeLegacySupport_DEPRECATED
Definition
GlobalMergeLegacySupportUtil.h:22
UTextureRenderTarget2D
Definition
TextureRenderTarget2D.h:104
FLandscapeBrushParameters
Definition
LandscapeBlueprintBrushBase.h:17
UE::Math::TIntPoint
Definition
IntPoint.h:25
UE::Math::TTransform< double >
Engine
Source
Runtime
Landscape
Public
GlobalMergeLegacySupportUtil.h
Generated by
1.9.8