mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 07:49:56 +00:00
26 lines
564 B
C++
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;
|
|
}
|
|
}
|