33 lines
1.0 KiB
C++
33 lines
1.0 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
//=============================================================================
|
|
// TextureExporterBMP
|
|
//=============================================================================
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "Exporters/Exporter.h"
|
|
#include "TextureExporterBMP.generated.h"
|
|
|
|
UCLASS()
|
|
class UTextureExporterBMP: public UExporter
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
virtual bool SupportsObject(UObject* Object) const override;
|
|
virtual int32 GetFileCount(UObject* Object) const override;
|
|
virtual FString GetUniqueFilename(const TCHAR* Filename, int32 FileIndex, int32 FileCount) override;
|
|
virtual bool ExportBinary(UObject* Object, const TCHAR* Type, FArchive& Ar, FFeedbackContext* Warn, int32 FileIndex = 0, uint32 PortFlags = 0) override;
|
|
|
|
protected:
|
|
class UTexture2D* GetExportTexture(UObject* Object) const;
|
|
};
|
|
|
|
UCLASS()
|
|
class UVirtualTextureBuilderExporterBMP: public UTextureExporterBMP
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
};
|