Class VRHeadsetView


  • public class VRHeadsetView
    extends java.lang.Object
    • Method Detail

      • 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​(java.nio.IntBuffer pnWidth,
                                                            java.nio.IntBuffer pnHeight)
        Gets the current resolution used to render the headset view.
      • 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​(java.nio.FloatBuffer pStartPct,
                                                                  java.nio.FloatBuffer pEndPct)
        Gets the current range [0..1] that the headset view blends across the stereo overlapped area in cropped both mode.