47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
// Copyright PICO Technology Co., Ltd. All rights reserved.
|
|
// This plugin incorporates portions of the Unreal® Engine. Unreal® is a trademark or registered trademark of Epic Games, Inc. in the United States of America and elsewhere.
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "GameFramework/Actor.h"
|
|
#include "PixelFormat.h"
|
|
#include "PXR_Cubemap.generated.h"
|
|
|
|
class USceneCaptureComponent2D;
|
|
UCLASS()
|
|
class PICOXRHMD_API APXR_Cubemap : public AActor
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
// Sets default values for this actor's properties
|
|
APXR_Cubemap();
|
|
|
|
protected:
|
|
// Called when the game starts or when spawned
|
|
virtual void BeginPlay() override;
|
|
|
|
public:
|
|
// Called every frame
|
|
virtual void Tick(float DeltaTime) override;
|
|
|
|
bool isCatchImageWP = false;
|
|
FString OutputDir;
|
|
uint32 CaptureBoxSideRes = 1024;
|
|
FQuat Orientation = FQuat::Identity;
|
|
FVector Location = FVector::ZeroVector;
|
|
EPixelFormat CaptureFormat = PF_A16B16G16R16;
|
|
|
|
bool SaveCubeMap_PICO();
|
|
|
|
private:
|
|
UPROPERTY()
|
|
TArray<USceneCaptureComponent2D*> CaptureComponents;
|
|
|
|
UFUNCTION(BlueprintCallable, CallInEditor, Category = "PXR|PXRHMD")
|
|
void PXR_CubemapHandler();
|
|
|
|
};
|