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.Struct
Used 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 class
VREventOverlay.Buffer
An array ofVREventOverlay
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
DEVICEPATH
OVERLAYHANDLEThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VREventOverlay(java.nio.ByteBuffer container)
Creates aVREventOverlay
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VREventOverlay
create(long address)
Returns a newVREventOverlay
instance for the specified memory address.static VREventOverlay.Buffer
create(long address, int capacity)
Create aVREventOverlay.Buffer
instance at the specified memory.static VREventOverlay
createSafe(long address)
static VREventOverlay.Buffer
createSafe(long address, int capacity)
long
devicePath()
Returns the value of thedevicePath
field.static long
ndevicePath(long struct)
Unsafe version ofdevicePath()
.static long
noverlayHandle(long struct)
Unsafe version ofoverlayHandle()
.long
overlayHandle()
Returns the value of theoverlayHandle
field.int
sizeof()
-
-
-
Constructor Detail
-
VREventOverlay
public VREventOverlay(java.nio.ByteBuffer container)
Creates aVREventOverlay
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
overlayHandle
public long overlayHandle()
Returns the value of theoverlayHandle
field.
-
devicePath
public long devicePath()
Returns the value of thedevicePath
field.
-
create
public static VREventOverlay create(long address)
Returns a newVREventOverlay
instance 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.Buffer
instance 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()
.
-
-