Package org.lwjgl.openvr
Class VRHeadsetView
- java.lang.Object
-
- org.lwjgl.openvr.VRHeadsetView
-
public class VRHeadsetView extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidnVRHeadsetView_GetHeadsetViewBlendRange(long pStartPct, long pEndPct)Unsafe version of:GetHeadsetViewBlendRangestatic voidnVRHeadsetView_GetHeadsetViewSize(long pnWidth, long pnHeight)Unsafe version of:GetHeadsetViewSizestatic floatVRHeadsetView_GetHeadsetViewAspectRatio()Gets the aspect ratio (width:height) of the uncropped headset view (accounting for the current set mode).static voidVRHeadsetView_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.static booleanVRHeadsetView_GetHeadsetViewCropped()Gets the current cropping status of the headset view.static intVRHeadsetView_GetHeadsetViewMode()Gets the current mode used to render the headset view.static voidVRHeadsetView_GetHeadsetViewSize(java.nio.IntBuffer pnWidth, java.nio.IntBuffer pnHeight)Gets the current resolution used to render the headset view.static voidVRHeadsetView_SetHeadsetViewBlendRange(float flStartPct, float flEndPct)Sets the range[0..1]that the headset view blends across the stereo overlapped area in cropped both mode.static voidVRHeadsetView_SetHeadsetViewCropped(boolean bCropped)Sets whether or not the headset view should be rendered cropped to hide the hidden area mesh or not.static voidVRHeadsetView_SetHeadsetViewMode(int eHeadsetViewMode)Sets the mode used to render the headset view.static voidVRHeadsetView_SetHeadsetViewSize(int nWidth, int nHeight)Sets the resolution in pixels to render the headset view.
-
-
-
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_unHeadsetViewMaxWidthandVR.k_unHeadsetViewMaxHeightrespectively. For cropped views, the rendered output will be fit to aspect ratio defined by the the specified dimensions. For uncropped views, the caller should useGetHeadsetViewAspectRatioto 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_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_RightVR.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(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.
-
-