UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SubUVAnimation.cpp File Reference
#include "Particles/SubUVAnimation.h"
#include "Containers/ClosableMpscQueue.h"
#include "Engine/Texture2D.h"
#include "Experimental/Containers/HazardPointer.h"
#include "Math/RandomStream.h"
#include "Math/ConvexHull2d.h"
#include "ParticleHelper.h"
#include "Particles/ParticleSystemComponent.h"
#include "DerivedDataCacheInterface.h"
#include "DerivedDataCacheKey.h"
#include "ComponentReregisterContext.h"
#include "RHI.h"
#include "RHIResourceUtils.h"

Classes

struct  FLine2D
 
struct  FSubUVFrameData
 

Macros

#define LOCTEXT_NAMESPACE   "FSubUVDerivedData"
 

Functions

float CrossProduct2D (FVector2D Direction0, FVector2D Direction1)
 
bool ComputePointIntersectionBetweenLines2D (const FLine2D &Line0, const FLine2D &Line1, FVector2D &OutIntersectPoint)
 
bool IsValidUV (FVector2D InUV)
 
int32 GetRandomLineIndex (int32 StartIndex, int32 NumLines, FRandomStream &RandomStream)
 
void FindOptimalPolygon (int32 TargetVertexCount, const TArray< int32 > &ConvexHullIndices, const TArray< FVector2D > &PotentialHullVertices, TArray< FVector2D > &OutBoundingVertices)
 
bool IsSupportedFormat (ETextureSourceFormat SrcFormat)
 
uint32 GetByteSizePerPixel (ETextureSourceFormat SrcFormat)
 
bool ComputeOpacityValue (const uint8 *BGRA, int32 x, int32 y, int32 TextureSizeX, EOpacitySourceMode OpacitySourceMode, ETextureSourceFormat SrcFormat, float AlphaThresholdF, uint8 AlphaThreshold8, uint16 AlphaThreshold16)
 
int32 ComputeNeighborCount (int32 X, int32 Y, int32 GlobalX, int32 GlobalY, int32 SubImageSizeX, int32 SubImageSizeY, int32 TextureSizeX, const TArray64< uint8 > &MipData, EOpacitySourceMode OpacitySourceMode, ETextureSourceFormat SourceFormat, float AlphaThresholdF, uint8 AlphaThreshold8, uint16 AlphaThreshold16)
 

Variables

FIntPoint GNeighbors []
 

Macro Definition Documentation

◆ LOCTEXT_NAMESPACE

#define LOCTEXT_NAMESPACE   "FSubUVDerivedData"

Function Documentation

◆ ComputeNeighborCount()

int32 ComputeNeighborCount ( int32  X,
int32  Y,
int32  GlobalX,
int32  GlobalY,
int32  SubImageSizeX,
int32  SubImageSizeY,
int32  TextureSizeX,
const TArray64< uint8 > &  MipData,
EOpacitySourceMode  OpacitySourceMode,
ETextureSourceFormat  SourceFormat,
float  AlphaThresholdF,
uint8  AlphaThreshold8,
uint16  AlphaThreshold16 
)

Counts how many neighbors have non-zero alpha.

◆ ComputeOpacityValue()

bool ComputeOpacityValue ( const uint8 BGRA,
int32  x,
int32  y,
int32  TextureSizeX,
EOpacitySourceMode  OpacitySourceMode,
ETextureSourceFormat  SrcFormat,
float  AlphaThresholdF,
uint8  AlphaThreshold8,
uint16  AlphaThreshold16 
)

◆ ComputePointIntersectionBetweenLines2D()

bool ComputePointIntersectionBetweenLines2D ( const FLine2D Line0,
const FLine2D Line1,
FVector2D OutIntersectPoint 
)

◆ CrossProduct2D()

KISMET_MATH_INLINE double UKismetMathLibrary::CrossProduct2D ( FVector2D  Direction0,
FVector2D  Direction1 
)
inline

◆ FindOptimalPolygon()

void FindOptimalPolygon ( int32  TargetVertexCount,
const TArray< int32 > &  ConvexHullIndices,
const TArray< FVector2D > &  PotentialHullVertices,
TArray< FVector2D > &  OutBoundingVertices 
)

◆ GetByteSizePerPixel()

uint32 GetByteSizePerPixel ( ETextureSourceFormat  SrcFormat)

◆ GetRandomLineIndex()

int32 GetRandomLineIndex ( int32  StartIndex,
int32  NumLines,
FRandomStream RandomStream 
)

◆ IsSupportedFormat()

bool IsSupportedFormat ( ETextureSourceFormat  SrcFormat)

◆ IsValidUV()

bool IsValidUV ( FVector2D  InUV)

Variable Documentation

◆ GNeighbors

FIntPoint GNeighbors[]
Initial value:
=
{
FIntPoint(-1, -1),
FIntPoint(0, -1),
FIntPoint(1, -1),
FIntPoint(1, 0),
FIntPoint(1, 1),
FIntPoint(0, 1),
FIntPoint(-1, 1),
FIntPoint(-1, 0)
}
FInt32Point FIntPoint
Definition MathFwd.h:124