Class VROverlayView
- java.lang.Object
-
- org.lwjgl.openvr.VROverlayView
-
public class VROverlayView extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnVROverlayView_AcquireOverlayView(long ulOverlayHandle, long pNativeDevice, long pOverlayView, int unOverlayViewSize)Unsafe version of:AcquireOverlayViewstatic voidnVROverlayView_PostOverlayEvent(long ulOverlayHandle, long pvrEvent)Unsafe version of:PostOverlayEventstatic intnVROverlayView_ReleaseOverlayView(long pOverlayView)Unsafe version of:ReleaseOverlayViewstatic intVROverlayView_AcquireOverlayView(long ulOverlayHandle, VRNativeDevice pNativeDevice, VROverlayView_t pOverlayView, int unOverlayViewSize)Acquires anOverlayView_tfrom an overlay handlestatic booleanVROverlayView_IsViewingPermitted(long ulOverlayHandle)Determines whether this process is permitted to view an overlay's content.static voidVROverlayView_PostOverlayEvent(long ulOverlayHandle, VREvent pvrEvent)Posts an overlay event.static intVROverlayView_ReleaseOverlayView(VROverlayView_t pOverlayView)Releases an acquiredOverlayView_t.
-
-
-
Method Detail
-
nVROverlayView_AcquireOverlayView
public static int nVROverlayView_AcquireOverlayView(long ulOverlayHandle, long pNativeDevice, long pOverlayView, int unOverlayViewSize)Unsafe version of:AcquireOverlayView
-
VROverlayView_AcquireOverlayView
public static int VROverlayView_AcquireOverlayView(long ulOverlayHandle, VRNativeDevice pNativeDevice, VROverlayView_t pOverlayView, int unOverlayViewSize)Acquires anOverlayView_tfrom an overlay handleThe overlay view can be used to sample the contents directly by a native API. The contents of the
OverlayView_twill remain unchanged through the lifetime of theOverlayView_t.The caller acquires read privileges over the
OverlayView_t, but should not write to it.AcquireOverlayView()may be called on the sameulOverlayHandlemultiple times to refresh the image contents. In this case the caller is strongly encouraged to re-use the samepOverlayViewfor all re-acquisition calls.If the producer has not yet queued an image,
AcquireOverlayViewwill return success, and theTexture_twill have the expectedETextureType. However, theTexture_t->handlewill benullptr. Once the producer generates the first overlay frame,Texture_t->handlewill become a valid handle.
-
nVROverlayView_ReleaseOverlayView
public static int nVROverlayView_ReleaseOverlayView(long pOverlayView)
Unsafe version of:ReleaseOverlayView
-
VROverlayView_ReleaseOverlayView
public static int VROverlayView_ReleaseOverlayView(VROverlayView_t pOverlayView)
Releases an acquiredOverlayView_t.Denotes that
pOverlayViewwill no longer require access to the resources it acquired in all previous calls toAcquireOverlayView().All
OverlayView_t*'s provided toAcquireOverlayView()aspOverlayViewsmust be passed intoReleaseOverlayView()in order for the underlying GPU resources to be freed.
-
nVROverlayView_PostOverlayEvent
public static void nVROverlayView_PostOverlayEvent(long ulOverlayHandle, long pvrEvent)Unsafe version of:PostOverlayEvent
-
VROverlayView_PostOverlayEvent
public static void VROverlayView_PostOverlayEvent(long ulOverlayHandle, VREvent pvrEvent)Posts an overlay event.
-
VROverlayView_IsViewingPermitted
public static boolean VROverlayView_IsViewingPermitted(long ulOverlayHandle)
Determines whether this process is permitted to view an overlay's content.
-
-