VRTowerDef/Plugins/MetaXR/Source/OculusXRHMD/Private/OculusXRAssetManager.h

31 lines
849 B
C
Raw Permalink Normal View History

2024-05-29 08:53:41 +00:00
// @lint-ignore-every LICENSELINT
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "IXRSystemAssets.h"
#include "OculusXRResourceHolder.h"
#include "UObject/SoftObjectPtr.h"
/**
*
*/
class FOculusAssetManager : public IXRSystemAssets
{
public:
FOculusAssetManager();
virtual ~FOculusAssetManager();
public:
UOculusXRResourceHolder* GetResourceHolder() { return ResourceHolder; }
//~ IXRSystemAssets interface
virtual bool EnumerateRenderableDevices(TArray<int32>& DeviceListOut) override;
virtual int32 GetDeviceId(EControllerHand ControllerHand) override;
virtual UPrimitiveComponent* CreateRenderComponent(const int32 DeviceId, AActor* Owner, EObjectFlags Flags, const bool bForceSynchronous, const FXRComponentLoadComplete& OnLoadComplete) override;
protected:
UOculusXRResourceHolder* ResourceHolder;
};