Class VREventChaperone

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VREventChaperone>
org.lwjgl.openvr.VREventChaperone
All Implemented Interfaces:
org.lwjgl.system.Pointer

public class VREventChaperone extends org.lwjgl.system.Struct<VREventChaperone>

Layout


 struct VREvent_Chaperone_t {
     uint64_t m_nPreviousUniverse;
     uint64_t m_nCurrentUniverse;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • M_NPREVIOUSUNIVERSE

      public static final int M_NPREVIOUSUNIVERSE
      The struct member offsets.
    • M_NCURRENTUNIVERSE

      public static final int M_NCURRENTUNIVERSE
      The struct member offsets.
  • Constructor Details

    • VREventChaperone

      public VREventChaperone(ByteBuffer container)
      Creates a VREventChaperone instance at the current position of the specified ByteBuffer 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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VREventChaperone>
    • m_nPreviousUniverse

      public long m_nPreviousUniverse()
      Returns:
      the value of the m_nPreviousUniverse field.
    • m_nCurrentUniverse

      public long m_nCurrentUniverse()
      Returns:
      the value of the m_nCurrentUniverse field.
    • create

      public static VREventChaperone create(long address)
      Returns a new VREventChaperone instance for the specified memory address.
    • createSafe

      public static @Nullable VREventChaperone createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static VREventChaperone.Buffer create(long address, int capacity)
      Create a VREventChaperone.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VREventChaperone.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nm_nPreviousUniverse

      public static long nm_nPreviousUniverse(long struct)
      Unsafe version of m_nPreviousUniverse().
    • nm_nCurrentUniverse

      public static long nm_nCurrentUniverse(long struct)
      Unsafe version of m_nCurrentUniverse().