mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 06:19:55 +00:00
c3a312f80d
commit d8564b8e501c98fa2e3cde582b8d06d7c78ba6ce Author: Mads Buvik Sandvei <madssandvei@protonmail.com> Date: Fri Oct 16 23:43:39 2020 +0200 bad assignment commit 84f66e4bf1050ce8a316a27f8b10dc2243e35406 Author: Mads Buvik Sandvei <madssandvei@protonmail.com> Date: Fri Oct 16 21:08:27 2020 +0200 Removed the approach of abstracting xr paths with enums. It is not turning out to be useful. Use the explicit paths instead. Added some default bindings for most currently available controllers, except the xbox controller. commit ae525d0a239c087a7344528634a078e0812af66d Author: Mads Buvik Sandvei <madssandvei@protonmail.com> Date: Fri Oct 16 21:05:37 2020 +0200 Cleaned up openxr extensions code. Upgraded openxr to version 1.0.12 to enable support for certain controllers. commit 2d71a5ecbf699c59f1fcdbebcad867fd28552929 Author: Mads Buvik Sandvei <madssandvei@protonmail.com> Date: Thu Sep 24 22:18:25 2020 +0200 simple_controller
63 lines
1.3 KiB
C++
63 lines
1.3 KiB
C++
#include "openxrswapchain.hpp"
|
|
#include "openxrswapchainimpl.hpp"
|
|
#include "openxrmanager.hpp"
|
|
#include "openxrmanagerimpl.hpp"
|
|
#include "vrenvironment.hpp"
|
|
|
|
#include <components/debug/debuglog.hpp>
|
|
|
|
namespace MWVR {
|
|
OpenXRSwapchain::OpenXRSwapchain(osg::ref_ptr<osg::State> state, SwapchainConfig config)
|
|
: mPrivate(new OpenXRSwapchainImpl(state, config))
|
|
{
|
|
}
|
|
|
|
OpenXRSwapchain::~OpenXRSwapchain()
|
|
{
|
|
}
|
|
|
|
void OpenXRSwapchain::beginFrame(osg::GraphicsContext* gc)
|
|
{
|
|
return impl().beginFrame(gc);
|
|
}
|
|
|
|
void OpenXRSwapchain::endFrame(osg::GraphicsContext* gc)
|
|
{
|
|
return impl().endFrame(gc);
|
|
}
|
|
|
|
uint32_t OpenXRSwapchain::acquiredColorTexture() const
|
|
{
|
|
return impl().acquiredColorTexture();
|
|
}
|
|
|
|
uint32_t OpenXRSwapchain::acquiredDepthTexture() const
|
|
{
|
|
return impl().acquiredDepthTexture();
|
|
}
|
|
|
|
int OpenXRSwapchain::width() const
|
|
{
|
|
return impl().width();
|
|
}
|
|
|
|
int OpenXRSwapchain::height() const
|
|
{
|
|
return impl().height();
|
|
}
|
|
|
|
int OpenXRSwapchain::samples() const
|
|
{
|
|
return impl().samples();
|
|
}
|
|
|
|
bool OpenXRSwapchain::isAcquired() const
|
|
{
|
|
return impl().isAcquired();
|
|
}
|
|
|
|
VRFramebuffer* OpenXRSwapchain::renderBuffer() const
|
|
{
|
|
return impl().renderBuffer();
|
|
}
|
|
}
|