Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Util_Render_Stereo.cpp File Reference
Include dependency graph for Util_Render_Stereo.cpp:

Go to the source code of this file.

Data Structures

struct  OVR::Util::Render::DistortionAndFov
 

Namespaces

 OVR
 
 OVR::Util
 
 OVR::Util::Render
 

Functions

char const * OVR::Util::Render::GetDebugNameEyeCupType (EyeCupType eyeCupType)
 
char const * OVR::Util::Render::GetDebugNameHmdType (HmdTypeEnum hmdType)
 
static DistortionAndFov OVR::Util::Render::CalculateDistortionAndFovInternal (StereoEye eyeType, HmdRenderInfo const &hmd, LensConfig const *pLensOverride=NULL, FovPort const *pTanHalfFovOverride=NULL, float extraEyeRotationInRadians=OVR_DEFAULT_EXTRA_EYE_ROTATION)
 
static Recti OVR::Util::Render::CalculateViewportInternal (StereoEye eyeType, Sizei const actualRendertargetSurfaceSize, Sizei const requestedRenderedPixelSize, bool bRendertargetSharedByBothEyes, bool bMonoRenderingMode=false)
 
static Recti OVR::Util::Render::CalculateViewportDensityInternal (StereoEye eyeType, DistortionRenderDesc const &distortion, FovPort const &fov, Sizei const &actualRendertargetSurfaceSize, bool bRendertargetSharedByBothEyes, float desiredPixelDensity=1.0f, bool bMonoRenderingMode=false)
 
static ViewportScaleAndOffset OVR::Util::Render::CalculateViewportScaleAndOffsetInternal (ScaleAndOffset2D const &eyeToSourceNDC, Recti const &renderedViewport, Sizei const &actualRendertargetSurfaceSize)
 
static StereoEyeParams OVR::Util::Render::CalculateStereoEyeParamsInternal (StereoEye eyeType, HmdRenderInfo const &hmd, DistortionRenderDesc const &distortion, FovPort const &fov, Sizei const &actualRendertargetSurfaceSize, Recti const &renderedViewport, bool bRightHanded=true, float zNear=0.01f, float zFar=10000.0f, bool bMonoRenderingMode=false, float zoomFactor=1.0f)
 
Vector3f OVR::Util::Render::CalculateEyeVirtualCameraOffset (HmdRenderInfo const &hmd, StereoEye eyeType, bool bmonoRenderingMode)
 
Sizei OVR::Util::Render::CalculateRecommendedTextureSize (HmdRenderInfo const &hmd, bool bRendertargetSharedByBothEyes, float pixelDensityInCenter)
 
StereoEyeParams OVR::Util::Render::CalculateStereoEyeParams (HmdRenderInfo const &hmd, StereoEye eyeType, Sizei const &actualRendertargetSurfaceSize, bool bRendertargetSharedByBothEyes, bool bRightHanded, float zNear, float zFar, Sizei const *pOverrideRenderedPixelSize, FovPort const *pOverrideFovport, float zoomFactor)
 
FovPort OVR::Util::Render::CalculateRecommendedFov (HmdRenderInfo const &hmd, StereoEye eyeType, bool bMakeFovSymmetrical)
 
ViewportScaleAndOffset OVR::Util::Render::ModifyRenderViewport (StereoEyeParams const &params, Sizei const &actualRendertargetSurfaceSize, Recti const &renderViewport)
 
ViewportScaleAndOffset OVR::Util::Render::ModifyRenderSize (StereoEyeParams const &params, Sizei const &actualRendertargetSurfaceSize, Sizei const &requestedRenderSize, bool bRendertargetSharedByBothEyes)
 
ViewportScaleAndOffset OVR::Util::Render::ModifyRenderDensity (StereoEyeParams const &params, Sizei const &actualRendertargetSurfaceSize, float pixelDensity, bool bRendertargetSharedByBothEyes)
 
void OVR::Util::Render::DistortionMeshDestroy (DistortionMeshVertexData *pVertices, UInt16 *pTriangleMeshIndices)
 
void OVR::Util::Render::DistortionMeshCreate (DistortionMeshVertexData **ppVertices, UInt16 **ppTriangleListIndices, int *pNumVertices, int *pNumTriangles, const StereoEyeParams &stereoParams, const HmdRenderInfo &hmdRenderInfo)
 
void OVR::Util::Render::DistortionMeshCreate (DistortionMeshVertexData **ppVertices, UInt16 **ppTriangleListIndices, int *pNumVertices, int *pNumTriangles, bool rightEye, const HmdRenderInfo &hmdRenderInfo, const DistortionRenderDesc &distortion, const ScaleAndOffset2D &eyeToSourceNDC)
 
void OVR::Util::Render::HeightmapMeshDestroy (HeightmapMeshVertexData *pVertices, UInt16 *pTriangleMeshIndices)
 
void OVR::Util::Render::HeightmapMeshCreate (HeightmapMeshVertexData **ppVertices, UInt16 **ppTriangleListIndices, int *pNumVertices, int *pNumTriangles, const StereoEyeParams &stereoParams, const HmdRenderInfo &hmdRenderInfo)
 
void OVR::Util::Render::HeightmapMeshCreate (HeightmapMeshVertexData **ppVertices, UInt16 **ppTriangleListIndices, int *pNumVertices, int *pNumTriangles, bool rightEye, const HmdRenderInfo &hmdRenderInfo, const ScaleAndOffset2D &eyeToSourceNDC)
 
PredictionValues OVR::Util::Render::PredictionGetDeviceValues (const HmdRenderInfo &hmdRenderInfo, bool withTimewarp, bool withVsync)
 
Matrix4f OVR::Util::Render::TimewarpComputePoseDelta (Matrix4f const &renderedViewFromWorld, Matrix4f const &predictedViewFromWorld, Matrix4f const &eyeViewAdjust)
 
Matrix4f OVR::Util::Render::TimewarpComputePoseDeltaPosition (Matrix4f const &renderedViewFromWorld, Matrix4f const &predictedViewFromWorld, Matrix4f const &eyeViewAdjust)
 

Variables

static const int OVR::Util::Render::DMA_GridSizeLog2 = 6
 
static const int OVR::Util::Render::DMA_GridSize = 1<<DMA_GridSizeLog2
 
static const int OVR::Util::Render::DMA_NumVertsPerEye = (DMA_GridSize+1)*(DMA_GridSize+1)
 
static const int OVR::Util::Render::DMA_NumTrisPerEye = (DMA_GridSize)*(DMA_GridSize)*2
 
static const int OVR::Util::Render::HMA_GridSizeLog2 = 7
 
static const int OVR::Util::Render::HMA_GridSize = 1<<HMA_GridSizeLog2
 
static const int OVR::Util::Render::HMA_NumVertsPerEye = (HMA_GridSize+1)*(HMA_GridSize+1)
 
static const int OVR::Util::Render::HMA_NumTrisPerEye = (HMA_GridSize)*(HMA_GridSize)*2
 

Data Structure Documentation

struct OVR::Util::Render::DistortionAndFov

Definition at line 80 of file Util_Render_Stereo.cpp.

Collaboration diagram for OVR::Util::Render::DistortionAndFov:
Collaboration graph
Data Fields
DistortionRenderDesc Distortion
FovPort Fov