Files
UnrealEngineUWP/Engine/Source/Editor/VirtualTexturingEditor/Private/RuntimeVirtualTextureThumbnailRenderer.h
jonathan bard 77b0d194c2 Added parameter to thumbnail renderers Draw function so that we can instruct them to clear the render target or not. This is for fixing thumbnails that render multiple sub-thumbnails to the same render target.
#rb bob.tellez


#ROBOMERGE-OWNER: jonathan.bard
#ROBOMERGE-AUTHOR: jonathan.bard
#ROBOMERGE-SOURCE: CL 11159778 via CL 11159790
#ROBOMERGE-BOT: (v640-11091645)

[CL 11160913 by jonathan bard in Main branch]
2020-01-29 10:59:27 -05:00

19 lines
611 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "ThumbnailRendering/ThumbnailRenderer.h"
#include "RuntimeVirtualTextureThumbnailRenderer.generated.h"
UCLASS(MinimalAPI)
class URuntimeVirtualTextureThumbnailRenderer : public UThumbnailRenderer
{
GENERATED_UCLASS_BODY()
//~ Begin UThumbnailRenderer Interface.
virtual bool CanVisualizeAsset(UObject* Object);
virtual void Draw(UObject* Object, int32 X, int32 Y, uint32 Width, uint32 Height, FRenderTarget*, FCanvas* Canvas, bool bAdditionalViewFamily) override;
//~ EndUThumbnailRenderer Interface.
};