Package org.lwjgl.openvr
Class VREventChaperone
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VREventChaperone
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VREventChaperone extends org.lwjgl.system.Struct
Layout
struct VREvent_Chaperone_t { uint64_t m_nPreviousUniverse; uint64_t m_nCurrentUniverse; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VREventChaperone.Buffer
An array ofVREventChaperone
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
M_NCURRENTUNIVERSE
M_NPREVIOUSUNIVERSEThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VREventChaperone(java.nio.ByteBuffer container)
Creates aVREventChaperone
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 VREventChaperone
create(long address)
Returns a newVREventChaperone
instance for the specified memory address.static VREventChaperone.Buffer
create(long address, int capacity)
Create aVREventChaperone.Buffer
instance at the specified memory.static VREventChaperone
createSafe(long address)
static VREventChaperone.Buffer
createSafe(long address, int capacity)
long
m_nCurrentUniverse()
Returns the value of them_nCurrentUniverse
field.long
m_nPreviousUniverse()
Returns the value of them_nPreviousUniverse
field.static long
nm_nCurrentUniverse(long struct)
Unsafe version ofm_nCurrentUniverse()
.static long
nm_nPreviousUniverse(long struct)
Unsafe version ofm_nPreviousUniverse()
.int
sizeof()
-
-
-
Constructor Detail
-
VREventChaperone
public VREventChaperone(java.nio.ByteBuffer container)
Creates aVREventChaperone
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
-
m_nPreviousUniverse
public long m_nPreviousUniverse()
Returns the value of them_nPreviousUniverse
field.
-
m_nCurrentUniverse
public long m_nCurrentUniverse()
Returns the value of them_nCurrentUniverse
field.
-
create
public static VREventChaperone create(long address)
Returns a newVREventChaperone
instance for the specified memory address.
-
createSafe
@Nullable public static VREventChaperone createSafe(long address)
-
create
public static VREventChaperone.Buffer create(long address, int capacity)
Create aVREventChaperone.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VREventChaperone.Buffer createSafe(long address, int capacity)
-
nm_nPreviousUniverse
public static long nm_nPreviousUniverse(long struct)
Unsafe version ofm_nPreviousUniverse()
.
-
nm_nCurrentUniverse
public static long nm_nCurrentUniverse(long struct)
Unsafe version ofm_nCurrentUniverse()
.
-
-