Class VRHeadsetView

java.lang.Object
org.lwjgl.openvr.VRHeadsetView

public class VRHeadsetView extends Object
  • Method Details

    • VRHeadsetView_SetHeadsetViewSize

      public static void VRHeadsetView_SetHeadsetViewSize(int nWidth, int nHeight)
      Sets the resolution in pixels to render the headset view.

      These values are clamped to VR.k_unHeadsetViewMaxWidth and VR.k_unHeadsetViewMaxHeight respectively. For cropped views, the rendered output will be fit to aspect ratio defined by the the specified dimensions. For uncropped views, the caller should use GetHeadsetViewAspectRatio to adjust the requested render size to avoid squashing or stretching, and then apply letterboxing to compensate when displaying the results.

    • nVRHeadsetView_GetHeadsetViewSize

      public static void nVRHeadsetView_GetHeadsetViewSize(long pnWidth, long pnHeight)
      Unsafe version of: GetHeadsetViewSize
    • VRHeadsetView_GetHeadsetViewSize

      public static void VRHeadsetView_GetHeadsetViewSize(IntBuffer pnWidth, IntBuffer pnHeight)
      Gets the current resolution used to render the headset view.
    • VRHeadsetView_SetHeadsetViewMode

      public static void VRHeadsetView_SetHeadsetViewMode(int eHeadsetViewMode)
      Sets the mode used to render the headset view.
      Parameters:
      eHeadsetViewMode - one of:
      VR.HeadsetViewMode_t_HeadsetViewMode_LeftVR.HeadsetViewMode_t_HeadsetViewMode_Right
      VR.HeadsetViewMode_t_HeadsetViewMode_Both
    • VRHeadsetView_GetHeadsetViewMode

      public static int VRHeadsetView_GetHeadsetViewMode()
      Gets the current mode used to render the headset view.
    • VRHeadsetView_SetHeadsetViewCropped

      public static void VRHeadsetView_SetHeadsetViewCropped(boolean bCropped)
      Sets whether or not the headset view should be rendered cropped to hide the hidden area mesh or not.
    • VRHeadsetView_GetHeadsetViewCropped

      public static boolean VRHeadsetView_GetHeadsetViewCropped()
      Gets the current cropping status of the headset view.
    • VRHeadsetView_GetHeadsetViewAspectRatio

      public static float VRHeadsetView_GetHeadsetViewAspectRatio()
      Gets the aspect ratio (width:height) of the uncropped headset view (accounting for the current set mode).
    • VRHeadsetView_SetHeadsetViewBlendRange

      public static void VRHeadsetView_SetHeadsetViewBlendRange(float flStartPct, float flEndPct)
      Sets the range [0..1] that the headset view blends across the stereo overlapped area in cropped both mode.
    • nVRHeadsetView_GetHeadsetViewBlendRange

      public static void nVRHeadsetView_GetHeadsetViewBlendRange(long pStartPct, long pEndPct)
      Unsafe version of: GetHeadsetViewBlendRange
    • VRHeadsetView_GetHeadsetViewBlendRange

      public static void VRHeadsetView_GetHeadsetViewBlendRange(FloatBuffer pStartPct, FloatBuffer pEndPct)
      Gets the current range [0..1] that the headset view blends across the stereo overlapped area in cropped both mode.