Skyscraper 2.0
Ogre::OpenXRViewProjection Class Reference

#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
 

Detailed Description

Here is where we keep all the stuff relating to the 3d projection of the views.

Definition at line 28 of file OgreOpenXRViewProjection.h.

Constructor & Destructor Documentation

◆ OpenXRViewProjection()

Ogre::OpenXRViewProjection::OpenXRViewProjection ( )

Definition at line 23 of file OgreOpenXRViewProjection.cpp.

Member Function Documentation

◆ CalculateViewProjections()

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.

◆ getHeight()

uint32_t Ogre::OpenXRViewProjection::getHeight ( )

Definition at line 84 of file OgreOpenXRViewProjection.cpp.

Referenced by Ogre::OpenXRSwapchain::Initialize().

◆ getNumberOfViews()

size_t Ogre::OpenXRViewProjection::getNumberOfViews ( ) const

Definition at line 79 of file OgreOpenXRViewProjection.cpp.

◆ getRecommendedSampleCount()

uint32_t Ogre::OpenXRViewProjection::getRecommendedSampleCount ( )

Definition at line 94 of file OgreOpenXRViewProjection.cpp.

Referenced by Ogre::OpenXRSwapchain::Initialize().

◆ getWidth()

uint32_t Ogre::OpenXRViewProjection::getWidth ( )

Definition at line 89 of file OgreOpenXRViewProjection.cpp.

Referenced by Ogre::OpenXRSwapchain::Initialize().

◆ Initialize()

void Ogre::OpenXRViewProjection::Initialize ( OpenXRState * state)

◆ UpdateXrViewInfo()

void Ogre::OpenXRViewProjection::UpdateXrViewInfo ( XrViewState & ViewState,
OpenXRState * state,
XrTime displayTime )

Member Data Documentation

◆ ConfigViews

std::vector<XrViewConfigurationView> Ogre::OpenXRViewProjection::ConfigViews
private

Definition at line 49 of file OgreOpenXRViewProjection.h.

◆ DepthInfoViews

std::vector<XrCompositionLayerDepthInfoKHR> Ogre::OpenXRViewProjection::DepthInfoViews

Definition at line 45 of file OgreOpenXRViewProjection.h.

◆ ProjectionLayerViews

std::vector<XrCompositionLayerProjectionView> Ogre::OpenXRViewProjection::ProjectionLayerViews

Definition at line 44 of file OgreOpenXRViewProjection.h.

◆ Views

std::vector<XrView> Ogre::OpenXRViewProjection::Views
private

Definition at line 48 of file OgreOpenXRViewProjection.h.


The documentation for this class was generated from the following files: