VR2024_WizardVR/TheProject/VRWizardProject/Plugins/MetaXR/Source/OculusXRHMD/Public/OculusXRPassthroughMesh.h

31 lines
687 B
C
Raw Permalink Normal View History

// Copyright (c) Meta Platforms, Inc. and affiliates.
#pragma once
#include "CoreMinimal.h"
#include "Templates/RefCounting.h"
namespace OculusXRHMD
{
class FOculusPassthroughMesh : public FRefCountedObject
{
public:
FOculusPassthroughMesh(const TArray<FVector>& InVertices, const TArray<int32>& InTriangles)
: Vertices(InVertices)
, Triangles(InTriangles)
{
}
const TArray<FVector>& GetVertices() const { return Vertices; };
const TArray<int32>& GetTriangles() const { return Triangles; };
private:
TArray<FVector> Vertices;
TArray<int32> Triangles;
};
typedef TRefCountPtr<FOculusPassthroughMesh> FOculusPassthroughMeshRef;
} // namespace OculusXRHMD