Skyscraper 2.0
|
#include <OgreOpenXRViewProjection.h>
Public Member Functions | |
OpenXRViewProjection () | |
void | Initialize (OpenXRState *state) |
void | CalculateViewProjections (std::vector< xr::math::ViewProjection > &viewProjections) |
size_t | getNumberOfViews () const |
uint32_t | getWidth () |
uint32_t | getHeight () |
uint32_t | getRecommendedSampleCount () |
void | UpdateXrViewInfo (XrViewState &ViewState, OpenXRState *state, XrTime displayTime) |
Public Attributes | |
std::vector< XrCompositionLayerProjectionView > | ProjectionLayerViews |
std::vector< XrCompositionLayerDepthInfoKHR > | DepthInfoViews |
Private Attributes | |
std::vector< XrView > | Views |
std::vector< XrViewConfigurationView > | ConfigViews |
Here is where we keep all the stuff relating to the 3d projection of the views.
Definition at line 28 of file OgreOpenXRViewProjection.h.
Ogre::OpenXRViewProjection::OpenXRViewProjection | ( | ) |
Definition at line 23 of file OgreOpenXRViewProjection.cpp.
void Ogre::OpenXRViewProjection::CalculateViewProjections | ( | std::vector< xr::math::ViewProjection > & | viewProjections | ) |
ProjectionLayerViews are used by the endXRFrame layer data.
TODO: We do not presently seem to consume the depth info.
Definition at line 55 of file OgreOpenXRViewProjection.cpp.
uint32_t Ogre::OpenXRViewProjection::getHeight | ( | ) |
Definition at line 84 of file OgreOpenXRViewProjection.cpp.
Referenced by Ogre::OpenXRSwapchain::Initialize().
size_t Ogre::OpenXRViewProjection::getNumberOfViews | ( | ) | const |
Definition at line 79 of file OgreOpenXRViewProjection.cpp.
uint32_t Ogre::OpenXRViewProjection::getRecommendedSampleCount | ( | ) |
Definition at line 94 of file OgreOpenXRViewProjection.cpp.
Referenced by Ogre::OpenXRSwapchain::Initialize().
uint32_t Ogre::OpenXRViewProjection::getWidth | ( | ) |
Definition at line 89 of file OgreOpenXRViewProjection.cpp.
Referenced by Ogre::OpenXRSwapchain::Initialize().
void Ogre::OpenXRViewProjection::Initialize | ( | OpenXRState * | state | ) |
Definition at line 27 of file OgreOpenXRViewProjection.cpp.
References CHECK, CHECK_XRCMD, xr::UniqueXrHandle< HandleType >::Get(), Ogre::OpenXRState::GetInstanceHandle(), Ogre::OpenXRState::GetSystemId(), and Ogre::OpenXRState::primaryViewConfigType.
void Ogre::OpenXRViewProjection::UpdateXrViewInfo | ( | XrViewState & | ViewState, |
OpenXRState * | state, | ||
XrTime | displayTime ) |
Definition at line 99 of file OgreOpenXRViewProjection.cpp.
References CHECK, CHECK_XRCMD, xr::UniqueXrHandle< HandleType >::Get(), Ogre::OpenXRState::getAppSpace(), Ogre::OpenXRState::GetSession(), and Ogre::OpenXRState::primaryViewConfigType.
|
private |
Definition at line 49 of file OgreOpenXRViewProjection.h.
std::vector<XrCompositionLayerDepthInfoKHR> Ogre::OpenXRViewProjection::DepthInfoViews |
Definition at line 45 of file OgreOpenXRViewProjection.h.
std::vector<XrCompositionLayerProjectionView> Ogre::OpenXRViewProjection::ProjectionLayerViews |
Definition at line 44 of file OgreOpenXRViewProjection.h.
|
private |
Definition at line 48 of file OgreOpenXRViewProjection.h.