Package org.lwjgl.ovr

Class OVRInitParams

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • FLAGS, REQUESTEDMINORVERSION, LOGCALLBACK, USERDATA, CONNECTIONTIMEOUTMS

        The struct member offsets.
    • Constructor Detail

      • OVRInitParams

        public OVRInitParams​(java.nio.ByteBuffer container)
        Creates a OVRInitParams 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • Flags

        public int Flags()
        flags from ovrInitFlags to override default behavior. Use 0 for the defaults.
      • RequestedMinorVersion

        public int RequestedMinorVersion()
        requests a specific minor version of the LibOVR runtime. Flags must include Init_RequestVersion or this will be ignored and MINOR_VERSION will be used. If you are directly calling the LibOVRRT version of Initialize in the LibOVRRT DLL then this must be valid and include Init_RequestVersion.
      • LogCallback

        @Nullable
        public OVRLogCallback LogCallback()
        user-supplied log callback function, which may be called at any time asynchronously from multiple threads until Shutdown completes. Use NULL to specify no log callback.
      • UserData

        public long UserData()
        user-supplied data which is passed as-is to LogCallback. Typically this is used to store an application-specific pointer which is read in the callback function.
      • ConnectionTimeoutMS

        public int ConnectionTimeoutMS()
        relative number of milliseconds to wait for a connection to the server before failing. Use 0 for the default timeout.
      • set

        public OVRInitParams set​(int Flags,
                                 int RequestedMinorVersion,
                                 OVRLogCallbackI LogCallback,
                                 long UserData,
                                 int ConnectionTimeoutMS)
        Initializes this struct with the specified values.
      • set

        public OVRInitParams set​(OVRInitParams src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

        public static OVRInitParams malloc()
        Returns a new OVRInitParams instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static OVRInitParams calloc()
        Returns a new OVRInitParams instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static OVRInitParams create()
        Returns a new OVRInitParams instance allocated with BufferUtils.
      • create

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

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

        @Deprecated
        public static OVRInitParams mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static OVRInitParams callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

        public static OVRInitParams malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new OVRInitParams instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static OVRInitParams calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new OVRInitParams instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • nFlags

        public static int nFlags​(long struct)
        Unsafe version of Flags().
      • nRequestedMinorVersion

        public static int nRequestedMinorVersion​(long struct)
        Unsafe version of RequestedMinorVersion().
      • nUserData

        public static long nUserData​(long struct)
        Unsafe version of UserData().
      • nConnectionTimeoutMS

        public static int nConnectionTimeoutMS​(long struct)
        Unsafe version of ConnectionTimeoutMS().
      • nFlags

        public static void nFlags​(long struct,
                                  int value)
        Unsafe version of Flags.
      • nRequestedMinorVersion

        public static void nRequestedMinorVersion​(long struct,
                                                  int value)
        Unsafe version of RequestedMinorVersion.
      • nLogCallback

        public static void nLogCallback​(long struct,
                                        @Nullable
                                        OVRLogCallbackI value)
        Unsafe version of LogCallback.
      • nUserData

        public static void nUserData​(long struct,
                                     long value)
        Unsafe version of UserData.
      • nConnectionTimeoutMS

        public static void nConnectionTimeoutMS​(long struct,
                                                int value)
        Unsafe version of ConnectionTimeoutMS.