1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 07:49:56 +00:00
openmw-tes3mp/apps/openmw/mwvr/openxrlayer.cpp
2020-02-29 14:13:56 +01:00

26 lines
564 B
C++

#include "openxrlayer.hpp"
namespace MWVR {
void OpenXRLayerStack::setLayer(Layer layer, OpenXRLayer* layerObj)
{
mLayerObjects[layer] = layerObj;
}
OpenXRLayerStack::LayerHeaders OpenXRLayerStack::layerHeaders()
{
LayerHeaders headers{};
for (auto* layerObject: mLayerObjects)
{
if (layerObject)
{
auto* header = layerObject->layer();
if (header)
headers.push_back(header);
}
}
return headers;
}
}