mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:49:56 +00:00
16 lines
360 B
C++
16 lines
360 B
C++
#include "engine.hpp"
|
|
#include "mwvr/openxrmanager.hpp"
|
|
|
|
#ifndef USE_OPENXR
|
|
#error "USE_OPENXR not defined"
|
|
#endif
|
|
|
|
void OMW::Engine::initVr()
|
|
{
|
|
if (!mViewer)
|
|
throw std::logic_error("mViewer must be initialized before calling initVr()");
|
|
|
|
mXR = new MWVR::OpenXRManager();
|
|
mXRViewer = new MWVR::OpenXRViewer(mXR, mViewer, 64.f * 0.9144);
|
|
|
|
}
|