Package org.lwjgl.ovr
Class OVRInitParams
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRInitParams
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRInitParams extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceParameters forInitialize.Layout
struct ovrInitParams { uint32_tFlags(); uint32_tRequestedMinorVersion();ovrLogCallbackLogCallback(); uintptr_tUserData(); uint32_tConnectionTimeoutMS(); }
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCONNECTIONTIMEOUTMS
FLAGS
LOGCALLBACK
REQUESTEDMINORVERSIONThe struct member offsets.static intSIZEOFThe struct size in bytes.static intUSERDATAThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description OVRInitParams(java.nio.ByteBuffer container)Creates aOVRInitParamsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OVRInitParamscalloc()Returns a newOVRInitParamsinstance allocated withmemCalloc.static OVRInitParamscalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRInitParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRInitParamscallocStack()Deprecated.static OVRInitParamscallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intConnectionTimeoutMS()relative number of milliseconds to wait for a connection to the server before failing.OVRInitParamsConnectionTimeoutMS(int value)Sets the specified value to theConnectionTimeoutMS()field.static OVRInitParamscreate()Returns a newOVRInitParamsinstance allocated withBufferUtils.static OVRInitParamscreate(long address)Returns a newOVRInitParamsinstance for the specified memory address.static OVRInitParamscreateSafe(long address)intFlags()flags fromovrInitFlagsto override default behavior.OVRInitParamsFlags(int value)Sets the specified value to theFlags()field.OVRLogCallbackLogCallback()user-supplied log callback function, which may be called at any time asynchronously from multiple threads untilShutdowncompletes.OVRInitParamsLogCallback(OVRLogCallbackI value)Sets the specified value to theLogCallback()field.static OVRInitParamsmalloc()Returns a newOVRInitParamsinstance allocated withmemAlloc.static OVRInitParamsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRInitParamsinstance allocated on the specifiedMemoryStack.static OVRInitParamsmallocStack()Deprecated.static OVRInitParamsmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnConnectionTimeoutMS(long struct)Unsafe version ofConnectionTimeoutMS().static voidnConnectionTimeoutMS(long struct, int value)Unsafe version ofConnectionTimeoutMS.static intnFlags(long struct)Unsafe version ofFlags().static voidnFlags(long struct, int value)Unsafe version ofFlags.static OVRLogCallbacknLogCallback(long struct)Unsafe version ofLogCallback().static voidnLogCallback(long struct, OVRLogCallbackI value)Unsafe version ofLogCallback.static intnRequestedMinorVersion(long struct)Unsafe version ofRequestedMinorVersion().static voidnRequestedMinorVersion(long struct, int value)Unsafe version ofRequestedMinorVersion.static longnUserData(long struct)Unsafe version ofUserData().static voidnUserData(long struct, long value)Unsafe version ofUserData.intRequestedMinorVersion()requests a specific minor version of the LibOVR runtime.OVRInitParamsRequestedMinorVersion(int value)Sets the specified value to theRequestedMinorVersion()field.OVRInitParamsset(int Flags, int RequestedMinorVersion, OVRLogCallbackI LogCallback, long UserData, int ConnectionTimeoutMS)Initializes this struct with the specified values.OVRInitParamsset(OVRInitParams src)Copies the specified struct data to this struct.intsizeof()longUserData()user-supplied data which is passed as-is toLogCallback.OVRInitParamsUserData(long value)Sets the specified value to theUserData()field.
-
-
-
Constructor Detail
-
OVRInitParams
public OVRInitParams(java.nio.ByteBuffer container)
Creates aOVRInitParamsinstance 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
-
Flags
public int Flags()
flags fromovrInitFlagsto override default behavior. Use 0 for the defaults.
-
RequestedMinorVersion
public int RequestedMinorVersion()
requests a specific minor version of the LibOVR runtime. Flags must includeInit_RequestVersionor this will be ignored andMINOR_VERSIONwill be used. If you are directly calling the LibOVRRT version ofInitializein the LibOVRRT DLL then this must be valid and includeInit_RequestVersion.
-
LogCallback
@Nullable public OVRLogCallback LogCallback()
user-supplied log callback function, which may be called at any time asynchronously from multiple threads untilShutdowncompletes. UseNULLto specify no log callback.
-
UserData
public long UserData()
user-supplied data which is passed as-is toLogCallback. 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.
-
Flags
public OVRInitParams Flags(int value)
Sets the specified value to theFlags()field.
-
RequestedMinorVersion
public OVRInitParams RequestedMinorVersion(int value)
Sets the specified value to theRequestedMinorVersion()field.
-
LogCallback
public OVRInitParams LogCallback(@Nullable OVRLogCallbackI value)
Sets the specified value to theLogCallback()field.
-
UserData
public OVRInitParams UserData(long value)
Sets the specified value to theUserData()field.
-
ConnectionTimeoutMS
public OVRInitParams ConnectionTimeoutMS(int value)
Sets the specified value to theConnectionTimeoutMS()field.
-
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 newOVRInitParamsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRInitParams calloc()
Returns a newOVRInitParamsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRInitParams create()
Returns a newOVRInitParamsinstance allocated withBufferUtils.
-
create
public static OVRInitParams create(long address)
Returns a newOVRInitParamsinstance for the specified memory address.
-
createSafe
@Nullable public static OVRInitParams createSafe(long address)
-
mallocStack
@Deprecated public static OVRInitParams mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRInitParams callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRInitParams mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRInitParams callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
malloc
public static OVRInitParams malloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRInitParamsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static OVRInitParams calloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRInitParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
nFlags
public static int nFlags(long struct)
Unsafe version ofFlags().
-
nRequestedMinorVersion
public static int nRequestedMinorVersion(long struct)
Unsafe version ofRequestedMinorVersion().
-
nLogCallback
@Nullable public static OVRLogCallback nLogCallback(long struct)
Unsafe version ofLogCallback().
-
nUserData
public static long nUserData(long struct)
Unsafe version ofUserData().
-
nConnectionTimeoutMS
public static int nConnectionTimeoutMS(long struct)
Unsafe version ofConnectionTimeoutMS().
-
nFlags
public static void nFlags(long struct, int value)Unsafe version ofFlags.
-
nRequestedMinorVersion
public static void nRequestedMinorVersion(long struct, int value)Unsafe version ofRequestedMinorVersion.
-
nLogCallback
public static void nLogCallback(long struct, @Nullable OVRLogCallbackI value)Unsafe version ofLogCallback.
-
nUserData
public static void nUserData(long struct, long value)Unsafe version ofUserData.
-
nConnectionTimeoutMS
public static void nConnectionTimeoutMS(long struct, int value)Unsafe version ofConnectionTimeoutMS.
-
-