1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 05:49:56 +00:00
openmw-tes3mp/apps/openmw/mwvr/openxrswapchain.cpp

64 lines
1.3 KiB
C++
Raw Normal View History

#include "openxrswapchain.hpp"
#include "openxrswapchainimpl.hpp"
#include "openxrmanager.hpp"
#include "openxrmanagerimpl.hpp"
#include "vrenvironment.hpp"
#include <components/debug/debuglog.hpp>
namespace MWVR {
2020-06-24 19:26:11 +00:00
OpenXRSwapchain::OpenXRSwapchain(osg::ref_ptr<osg::State> state, SwapchainConfig config)
: mPrivate(new OpenXRSwapchainImpl(state, config))
{
}
OpenXRSwapchain::~OpenXRSwapchain()
{
}
void OpenXRSwapchain::beginFrame(osg::GraphicsContext* gc)
{
2020-06-02 20:16:42 +00:00
return impl().beginFrame(gc);
}
2020-06-02 20:16:42 +00:00
void OpenXRSwapchain::endFrame(osg::GraphicsContext* gc)
{
return impl().endFrame(gc);
}
2020-06-28 09:33:01 +00:00
uint32_t OpenXRSwapchain::acquiredColorTexture() const
2020-06-02 20:16:42 +00:00
{
2020-06-28 09:33:01 +00:00
return impl().acquiredColorTexture();
2020-06-02 20:16:42 +00:00
}
2020-06-28 09:33:01 +00:00
uint32_t OpenXRSwapchain::acquiredDepthTexture() const
2020-06-02 20:16:42 +00:00
{
2020-06-28 09:33:01 +00:00
return impl().acquiredDepthTexture();
2020-06-02 20:16:42 +00:00
}
int OpenXRSwapchain::width() const
{
return impl().width();
}
2020-06-02 20:16:42 +00:00
int OpenXRSwapchain::height() const
{
return impl().height();
}
2020-06-02 20:16:42 +00:00
int OpenXRSwapchain::samples() const
{
return impl().samples();
}
2020-06-02 20:16:42 +00:00
bool OpenXRSwapchain::isAcquired() const
{
return impl().isAcquired();
}
2020-06-28 09:33:01 +00:00
VRFramebuffer* OpenXRSwapchain::renderBuffer() const
{
2020-06-02 20:16:42 +00:00
return impl().renderBuffer();
}
}