Top Constructors Methods
org.lwjgl.openvr

public Class VRHeadsetView

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.system.*

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
nVRHeadsetView_GetHeadsetViewBlendRange(long pStartPct, long pEndPct)

Unsafe version of: GetHeadsetViewBlendRange

public static void
nVRHeadsetView_GetHeadsetViewSize(long pnWidth, long pnHeight)

Unsafe version of: GetHeadsetViewSize

public static float
VRHeadsetView_GetHeadsetViewAspectRatio()

Gets the aspect ratio (width:height) of the uncropped headset view (accounting for the current set mode).

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.

public static boolean
VRHeadsetView_GetHeadsetViewCropped()

Gets the current cropping status of the headset view.

public static int
VRHeadsetView_GetHeadsetViewMode()

Gets the current mode used to render the headset view.

public static void
VRHeadsetView_GetHeadsetViewSize(IntBuffer pnWidth, IntBuffer pnHeight)

Gets the current resolution used to render the headset view.

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.

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.

public static void
public static void
VRHeadsetView_SetHeadsetViewSize(int nWidth, int nHeight)

Sets the resolution in pixels to render the headset view.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

VRHeadsetViewback to summary
protected VRHeadsetView()

Method Detail

nVRHeadsetView_GetHeadsetViewBlendRangeback to summary
public static void nVRHeadsetView_GetHeadsetViewBlendRange(long pStartPct, long pEndPct)

Unsafe version of: GetHeadsetViewBlendRange

nVRHeadsetView_GetHeadsetViewSizeback to summary
public static void nVRHeadsetView_GetHeadsetViewSize(long pnWidth, long pnHeight)

Unsafe version of: GetHeadsetViewSize

VRHeadsetView_GetHeadsetViewAspectRatioback to summary
public static float VRHeadsetView_GetHeadsetViewAspectRatio()

Gets the aspect ratio (width:height) of the uncropped headset view (accounting for the current set mode).

VRHeadsetView_GetHeadsetViewBlendRangeback to summary
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.

VRHeadsetView_GetHeadsetViewCroppedback to summary
public static boolean VRHeadsetView_GetHeadsetViewCropped()

Gets the current cropping status of the headset view.

Annotations
@NativeType:bool
VRHeadsetView_GetHeadsetViewModeback to summary
public static int VRHeadsetView_GetHeadsetViewMode()

Gets the current mode used to render the headset view.

Annotations
@NativeType:HeadsetViewMode_t
VRHeadsetView_GetHeadsetViewSizeback to summary
public static void VRHeadsetView_GetHeadsetViewSize(IntBuffer pnWidth, IntBuffer pnHeight)

Gets the current resolution used to render the headset view.

VRHeadsetView_SetHeadsetViewBlendRangeback to summary
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.

VRHeadsetView_SetHeadsetViewCroppedback to summary
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_SetHeadsetViewModeback to summary
public static void VRHeadsetView_SetHeadsetViewMode(int eHeadsetViewMode)

Sets the mode used to render the headset view.

Parameters
eHeadsetViewMode:int

one of:

VR#HeadsetViewMode_t_HeadsetViewMode_LeftVR#HeadsetViewMode_t_HeadsetViewMode_Right
VR#HeadsetViewMode_t_HeadsetViewMode_Both
VRHeadsetView_SetHeadsetViewSizeback to summary
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.