October3d55/M/PICOXRPlugin/Source/PICOXRHMD/Private/PXR_GameFrame.h

43 lines
1.1 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 "ShowFlags.h"
class FPXRGameFrame : public TSharedFromThis<FPXRGameFrame, ESPMode::ThreadSafe>
{
public:
uint32 FrameNumber;
int32 ViewNumber;
double predictedDisplayTimeMs;
float WorldToMetersScale;
FTransform TrackingToWorld;
#ifdef PICO_CUSTOM_ENGINE
FTransform LastTrackingToWorld;
#endif
FVector Position;
FQuat Orientation;
FVector AngularVelocity;
FVector Acceleration;
FVector AngularAcceleration;
FVector Velocity;
FEngineShowFlags ShowFlags;
union
{
struct
{
uint64 bSplashIsShown : 1;
uint64 bSeeThroughIsShown : 1;
uint64 bLateUpdateOK : 1;
uint64 bHasWaited : 1;
};
uint64 Raw;
} Flags;
public:
FPXRGameFrame();
TSharedPtr<FPXRGameFrame, ESPMode::ThreadSafe> CloneMyself() const;
};
typedef TSharedPtr<FPXRGameFrame, ESPMode::ThreadSafe> FPXRGameFramePtr;