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.Layout
struct VREvent_Overlay_t { uint64_toverlayHandle(); uint64_t devicePath; uint64_t memoryBlockId; }
-
-
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
MEMORYBLOCKID
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()longmemoryBlockId()static longndevicePath(long struct)Unsafe version ofdevicePath().static longnmemoryBlockId(long struct)Unsafe version ofmemoryBlockId().static longnoverlayHandle(long struct)Unsafe version ofoverlayHandle().longoverlayHandle()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()
-
devicePath
public long devicePath()
- Returns:
- the value of the
devicePathfield.
-
memoryBlockId
public long memoryBlockId()
- Returns:
- the value of the
memoryBlockIdfield.
-
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().
-
nmemoryBlockId
public static long nmemoryBlockId(long struct)
Unsafe version ofmemoryBlockId().
-
-