Package org.lwjgl.openvr
Class VREventOverlay
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VREventOverlay
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VREventOverlay extends org.lwjgl.system.StructUsed for a few events about overlays.Member documentation
overlayHandle– one of:
Layout
struct VREvent_Overlay_t { uint64_t overlayHandle; uint64_t devicePath; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVREventOverlay.BufferAn array ofVREventOverlaystructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDEVICEPATH
OVERLAYHANDLEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VREventOverlay(java.nio.ByteBuffer container)Creates aVREventOverlayinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VREventOverlaycreate(long address)Returns a newVREventOverlayinstance for the specified memory address.static VREventOverlay.Buffercreate(long address, int capacity)Create aVREventOverlay.Bufferinstance at the specified memory.static VREventOverlaycreateSafe(long address)static VREventOverlay.BuffercreateSafe(long address, int capacity)longdevicePath()Returns the value of thedevicePathfield.static longndevicePath(long struct)Unsafe version ofdevicePath().static longnoverlayHandle(long struct)Unsafe version ofoverlayHandle().longoverlayHandle()Returns the value of theoverlayHandlefield.intsizeof()
-
-
-
Constructor Detail
-
VREventOverlay
public VREventOverlay(java.nio.ByteBuffer container)
Creates aVREventOverlayinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
overlayHandle
public long overlayHandle()
Returns the value of theoverlayHandlefield.
-
devicePath
public long devicePath()
Returns the value of thedevicePathfield.
-
create
public static VREventOverlay create(long address)
Returns a newVREventOverlayinstance for the specified memory address.
-
createSafe
@Nullable public static VREventOverlay createSafe(long address)
-
create
public static VREventOverlay.Buffer create(long address, int capacity)
Create aVREventOverlay.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VREventOverlay.Buffer createSafe(long address, int capacity)
-
noverlayHandle
public static long noverlayHandle(long struct)
Unsafe version ofoverlayHandle().
-
ndevicePath
public static long ndevicePath(long struct)
Unsafe version ofdevicePath().
-
-