SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
HmdRenderInfo Struct Reference

#include <SLGLOVRWorkaround.h>

Classes

struct  EyeConfig
 
struct  ShutterInfo
 

Public Member Functions

 HmdRenderInfo ()
 
EyeConfig GetEyeCenter () const
 

Public Attributes

HmdTypeEnum HmdType
 
ovrSizei ResolutionInPixels
 
ovrSizef ScreenSizeInMeters
 
float ScreenGapSizeInMeters
 
float CenterFromTopInMeters
 
float LensSeparationInMeters
 
float LensDiameterInMeters
 
float LensSurfaceToMidplateInMeters
 
EyeCupType EyeCups
 
struct HmdRenderInfo::ShutterInfo Shutter
 
struct HmdRenderInfo::EyeConfig EyeLeft
 
struct HmdRenderInfo::EyeConfig EyeRight
 

Detailed Description

Definition at line 472 of file SLGLOVRWorkaround.h.

Constructor & Destructor Documentation

◆ HmdRenderInfo()

HmdRenderInfo::HmdRenderInfo ( )
inline

Definition at line 513 of file SLGLOVRWorkaround.h.

514  {
516  ScreenGapSizeInMeters = 0.0f;
517  CenterFromTopInMeters = 0.0f;
518  LensSeparationInMeters = 0.0f;
519  LensDiameterInMeters = 0.0f;
522  Shutter.VsyncToNextVsync = 0.0f;
525  Shutter.PixelSettleTime = 0.0f;
526  Shutter.PixelPersistence = 0.0f;
528  EyeLeft.ReliefInMeters = 0.0f;
531  EyeRight = EyeLeft;
532  }
@ EyeCup_DK1A
@ HmdType_None
@ HmdShutter_LAST
struct HmdRenderInfo::ShutterInfo Shutter
HmdTypeEnum HmdType
float LensSurfaceToMidplateInMeters
struct HmdRenderInfo::EyeConfig EyeLeft
float LensSeparationInMeters
struct HmdRenderInfo::EyeConfig EyeRight
EyeCupType EyeCups
void SetToIdentity()

Member Function Documentation

◆ GetEyeCenter()

EyeConfig HmdRenderInfo::GetEyeCenter ( ) const
inline

Definition at line 536 of file SLGLOVRWorkaround.h.

537  {
538  EyeConfig result;
539  result.ReliefInMeters = 0.5f * (EyeLeft.ReliefInMeters + EyeRight.ReliefInMeters);
540  result.NoseToPupilInMeters = 0.0f;
541  result.Distortion.SetToIdentity();
542  return result;
543  }

Member Data Documentation

◆ CenterFromTopInMeters

float HmdRenderInfo::CenterFromTopInMeters

Definition at line 485 of file SLGLOVRWorkaround.h.

◆ EyeCups

EyeCupType HmdRenderInfo::EyeCups

Definition at line 489 of file SLGLOVRWorkaround.h.

◆ EyeLeft

struct HmdRenderInfo::EyeConfig HmdRenderInfo::EyeLeft

◆ EyeRight

struct HmdRenderInfo::EyeConfig HmdRenderInfo::EyeRight

◆ HmdType

HmdTypeEnum HmdRenderInfo::HmdType

Definition at line 477 of file SLGLOVRWorkaround.h.

◆ LensDiameterInMeters

float HmdRenderInfo::LensDiameterInMeters

Definition at line 487 of file SLGLOVRWorkaround.h.

◆ LensSeparationInMeters

float HmdRenderInfo::LensSeparationInMeters

Definition at line 486 of file SLGLOVRWorkaround.h.

◆ LensSurfaceToMidplateInMeters

float HmdRenderInfo::LensSurfaceToMidplateInMeters

Definition at line 488 of file SLGLOVRWorkaround.h.

◆ ResolutionInPixels

ovrSizei HmdRenderInfo::ResolutionInPixels

Definition at line 480 of file SLGLOVRWorkaround.h.

◆ ScreenGapSizeInMeters

float HmdRenderInfo::ScreenGapSizeInMeters

Definition at line 482 of file SLGLOVRWorkaround.h.

◆ ScreenSizeInMeters

ovrSizef HmdRenderInfo::ScreenSizeInMeters

Definition at line 481 of file SLGLOVRWorkaround.h.

◆ Shutter

struct HmdRenderInfo::ShutterInfo HmdRenderInfo::Shutter

The documentation for this struct was generated from the following file: