42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
|
|
#pragma once
|
|
#include "IOculusXRPassthroughModule.h"
|
|
|
|
#include "OculusXRPassthroughXR.h"
|
|
|
|
#define LOCTEXT_NAMESPACE "OculusXRPassthrough"
|
|
|
|
DECLARE_LOG_CATEGORY_EXTERN(LogOculusXRPassthrough, Log, All);
|
|
|
|
//-------------------------------------------------------------------------------------------------
|
|
// FOculusXRPassthroughModule
|
|
//-------------------------------------------------------------------------------------------------
|
|
|
|
class FOculusXRPassthroughModule : public IOculusXRPassthroughModule
|
|
{
|
|
public:
|
|
FOculusXRPassthroughModule();
|
|
|
|
static inline FOculusXRPassthroughModule& Get()
|
|
{
|
|
return FModuleManager::LoadModuleChecked<FOculusXRPassthroughModule>("OculusXRPassthrough");
|
|
}
|
|
|
|
virtual void StartupModule() override;
|
|
virtual void ShutdownModule() override;
|
|
|
|
void OnPostEngineInit();
|
|
|
|
TWeakPtr<XRPassthrough::FPassthroughXR, ESPMode::ThreadSafe> GetPassthroughExtensionPlugin()
|
|
{
|
|
return PassthroughXR;
|
|
}
|
|
|
|
private:
|
|
typedef TSharedPtr<XRPassthrough::FPassthroughXR, ESPMode::ThreadSafe> FPassthroughXRPtr;
|
|
FPassthroughXRPtr PassthroughXR;
|
|
};
|
|
|
|
#undef LOCTEXT_NAMESPACE
|