Tilt Five™ Unity API  1.4.1
TiltFive.DisplaySettings Class Reference

Display settings constants. More...

Static Public Attributes

const int depthBuffer = 24
 The depth buffer's precision. More...
 
const RenderTextureFormat nativeTextureFormat = RenderTextureFormat.ARGB32
 

Properties

static DisplaySettings Instance [get, set]
 
static int monoWidth [get]
 The display width for a single eye. More...
 
static int stereoWidth [get]
 The display width for two eyes. More...
 
static int height [get]
 The display height. More...
 
static float monoWidthToHeightRatio [get]
 The display aspect ratio. More...
 
static float stereoWidthToHeightRatio [get]
 The double-width display aspect ratio. More...
 

Private Member Functions

 DisplaySettings ()
 

Private Attributes

readonly Vector2Int defaultDimensions = new Vector2Int(2432, 768)
 

Static Private Attributes

static DisplaySettings instance
 

Detailed Description

Display settings constants.

Definition at line 35 of file SplitStereoCamera.cs.

Constructor & Destructor Documentation

◆ DisplaySettings()

TiltFive.DisplaySettings.DisplaySettings ( )
private

Definition at line 51 of file SplitStereoCamera.cs.

52  {
53  if(!Display.GetDisplayDimensions(ref defaultDimensions))
54  {
55  Log.Warn("Could not retrieve display settings from the plugin.");
56  }
57  }
readonly Vector2Int defaultDimensions
The Logger.
Definition: Log.cs:42
static void Warn(string m, params object[] list)
WARN logging function call.
Definition: Log.cs:166

References TiltFive.DisplaySettings.defaultDimensions, TiltFive.Display.GetDisplayDimensions(), and TiltFive.Logging.Log.Warn().

Member Data Documentation

◆ defaultDimensions

readonly Vector2Int TiltFive.DisplaySettings.defaultDimensions = new Vector2Int(2432, 768)
private

Definition at line 76 of file SplitStereoCamera.cs.

Referenced by TiltFive.DisplaySettings.DisplaySettings().

◆ depthBuffer

const int TiltFive.DisplaySettings.depthBuffer = 24
static

The depth buffer's precision.

Definition at line 70 of file SplitStereoCamera.cs.

Referenced by TiltFive.SplitStereoTextures.Initialize().

◆ instance

DisplaySettings TiltFive.DisplaySettings.instance
staticprivate

Definition at line 37 of file SplitStereoCamera.cs.

◆ nativeTextureFormat

const RenderTextureFormat TiltFive.DisplaySettings.nativeTextureFormat = RenderTextureFormat.ARGB32
static

Definition at line 73 of file SplitStereoCamera.cs.

Referenced by TiltFive.SplitStereoTextures.Initialize().

Property Documentation

◆ height

int TiltFive.DisplaySettings.height
staticget

The display height.

Definition at line 64 of file SplitStereoCamera.cs.

Referenced by TiltFive.SplitStereoTextures.Initialize().

◆ Instance

DisplaySettings TiltFive.DisplaySettings.Instance
staticgetsetprivate

Definition at line 38 of file SplitStereoCamera.cs.

39  {
40  get
41  {
42  if(instance == null)
43  {
44  instance = new DisplaySettings();
45  }
46  return instance;
47  }
48  set => instance = value;
49  }
static DisplaySettings instance

◆ monoWidth

int TiltFive.DisplaySettings.monoWidth
staticget

The display width for a single eye.

Definition at line 60 of file SplitStereoCamera.cs.

Referenced by TiltFive.SplitStereoTextures.Initialize().

◆ monoWidthToHeightRatio

float TiltFive.DisplaySettings.monoWidthToHeightRatio
staticget

◆ stereoWidth

int TiltFive.DisplaySettings.stereoWidth
staticget

The display width for two eyes.

Definition at line 62 of file SplitStereoCamera.cs.

Referenced by TiltFive.SplitStereoTextures.Initialize().

◆ stereoWidthToHeightRatio

float TiltFive.DisplaySettings.stereoWidthToHeightRatio
staticget

The double-width display aspect ratio.

Definition at line 68 of file SplitStereoCamera.cs.

Referenced by TiltFive.SplitStereoCamera.OnPreRender().


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