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.StructLayout
struct VREvent_Chaperone_t { uint64_t m_nPreviousUniverse; uint64_t m_nCurrentUniverse; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVREventChaperone.BufferAn array ofVREventChaperonestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intM_NCURRENTUNIVERSE
M_NPREVIOUSUNIVERSEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VREventChaperone(java.nio.ByteBuffer container)Creates aVREventChaperoneinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VREventChaperonecreate(long address)Returns a newVREventChaperoneinstance for the specified memory address.static VREventChaperone.Buffercreate(long address, int capacity)Create aVREventChaperone.Bufferinstance at the specified memory.static VREventChaperonecreateSafe(long address)static VREventChaperone.BuffercreateSafe(long address, int capacity)longm_nCurrentUniverse()Returns the value of them_nCurrentUniversefield.longm_nPreviousUniverse()Returns the value of them_nPreviousUniversefield.static longnm_nCurrentUniverse(long struct)Unsafe version ofm_nCurrentUniverse().static longnm_nPreviousUniverse(long struct)Unsafe version ofm_nPreviousUniverse().intsizeof()
-
-
-
Constructor Detail
-
VREventChaperone
public VREventChaperone(java.nio.ByteBuffer container)
Creates aVREventChaperoneinstance 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
-
m_nPreviousUniverse
public long m_nPreviousUniverse()
Returns the value of them_nPreviousUniversefield.
-
m_nCurrentUniverse
public long m_nCurrentUniverse()
Returns the value of them_nCurrentUniversefield.
-
create
public static VREventChaperone create(long address)
Returns a newVREventChaperoneinstance 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.Bufferinstance 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().
-
-