Package org.lwjgl.openxr
Class XrApplicationInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct XrApplicationInfo {
char applicationName[XR_MAX_APPLICATION_NAME_SIZE];
uint32_t applicationVersion;
char engineName[XR_MAX_ENGINE_NAME_SIZE];
uint32_t engineVersion;
XrVersion apiVersion;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionXrApplicationInfo
(ByteBuffer container) Creates aXrApplicationInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
apiVersion
(long value) Sets the specified value to theapiVersion
field.applicationName
(ByteBuffer value) Copies the specified encoded string to theapplicationName
field.int
applicationVersion
(int value) Sets the specified value to theapplicationVersion
field.static XrApplicationInfo
calloc()
Returns a newXrApplicationInfo
instance allocated withmemCalloc
.static XrApplicationInfo.Buffer
calloc
(int capacity) Returns a newXrApplicationInfo.Buffer
instance allocated withmemCalloc
.static XrApplicationInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newXrApplicationInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrApplicationInfo
calloc
(MemoryStack stack) Returns a newXrApplicationInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrApplicationInfo
create()
Returns a newXrApplicationInfo
instance allocated withBufferUtils
.static XrApplicationInfo.Buffer
create
(int capacity) Returns a newXrApplicationInfo.Buffer
instance allocated withBufferUtils
.static XrApplicationInfo
create
(long address) Returns a newXrApplicationInfo
instance for the specified memory address.static XrApplicationInfo.Buffer
create
(long address, int capacity) Create aXrApplicationInfo.Buffer
instance at the specified memory.static @Nullable XrApplicationInfo
createSafe
(long address) static @Nullable XrApplicationInfo.Buffer
createSafe
(long address, int capacity) engineName
(ByteBuffer value) Copies the specified encoded string to theengineName
field.int
engineVersion
(int value) Sets the specified value to theengineVersion
field.static XrApplicationInfo
malloc()
Returns a newXrApplicationInfo
instance allocated withmemAlloc
.static XrApplicationInfo.Buffer
malloc
(int capacity) Returns a newXrApplicationInfo.Buffer
instance allocated withmemAlloc
.static XrApplicationInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newXrApplicationInfo.Buffer
instance allocated on the specifiedMemoryStack
.static XrApplicationInfo
malloc
(MemoryStack stack) Returns a newXrApplicationInfo
instance allocated on the specifiedMemoryStack
.static long
napiVersion
(long struct) Unsafe version ofapiVersion()
.static void
napiVersion
(long struct, long value) Unsafe version ofapiVersion
.static ByteBuffer
napplicationName
(long struct) Unsafe version ofapplicationName()
.static void
napplicationName
(long struct, ByteBuffer value) Unsafe version ofapplicationName
.static String
napplicationNameString
(long struct) Unsafe version ofapplicationNameString()
.static int
napplicationVersion
(long struct) Unsafe version ofapplicationVersion()
.static void
napplicationVersion
(long struct, int value) Unsafe version ofapplicationVersion
.static ByteBuffer
nengineName
(long struct) Unsafe version ofengineName()
.static void
nengineName
(long struct, ByteBuffer value) Unsafe version ofengineName
.static String
nengineNameString
(long struct) Unsafe version ofengineNameString()
.static int
nengineVersion
(long struct) Unsafe version ofengineVersion()
.static void
nengineVersion
(long struct, int value) Unsafe version ofengineVersion
.set
(ByteBuffer applicationName, int applicationVersion, ByteBuffer engineName, int engineVersion, long apiVersion) Initializes this struct with the specified values.set
(XrApplicationInfo src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
APPLICATIONNAME
public static final int APPLICATIONNAMEThe struct member offsets. -
APPLICATIONVERSION
public static final int APPLICATIONVERSIONThe struct member offsets. -
ENGINENAME
public static final int ENGINENAMEThe struct member offsets. -
ENGINEVERSION
public static final int ENGINEVERSIONThe struct member offsets. -
APIVERSION
public static final int APIVERSIONThe struct member offsets.
-
-
Constructor Details
-
XrApplicationInfo
Creates aXrApplicationInfo
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<XrApplicationInfo>
-
applicationName
- Returns:
- a
ByteBuffer
view of theapplicationName
field.
-
applicationNameString
- Returns:
- the null-terminated string stored in the
applicationName
field.
-
applicationVersion
public int applicationVersion()- Returns:
- the value of the
applicationVersion
field.
-
engineName
- Returns:
- a
ByteBuffer
view of theengineName
field.
-
engineNameString
- Returns:
- the null-terminated string stored in the
engineName
field.
-
engineVersion
public int engineVersion()- Returns:
- the value of the
engineVersion
field.
-
apiVersion
public long apiVersion()- Returns:
- the value of the
apiVersion
field.
-
applicationName
Copies the specified encoded string to theapplicationName
field. -
applicationVersion
Sets the specified value to theapplicationVersion
field. -
engineName
Copies the specified encoded string to theengineName
field. -
engineVersion
Sets the specified value to theengineVersion
field. -
apiVersion
Sets the specified value to theapiVersion
field. -
set
public XrApplicationInfo set(ByteBuffer applicationName, int applicationVersion, ByteBuffer engineName, int engineVersion, long apiVersion) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newXrApplicationInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrApplicationInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrApplicationInfo
instance allocated withBufferUtils
. -
create
Returns a newXrApplicationInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrApplicationInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrApplicationInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrApplicationInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrApplicationInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newXrApplicationInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrApplicationInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrApplicationInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrApplicationInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
napplicationName
Unsafe version ofapplicationName()
. -
napplicationNameString
Unsafe version ofapplicationNameString()
. -
napplicationVersion
public static int napplicationVersion(long struct) Unsafe version ofapplicationVersion()
. -
nengineName
Unsafe version ofengineName()
. -
nengineNameString
Unsafe version ofengineNameString()
. -
nengineVersion
public static int nengineVersion(long struct) Unsafe version ofengineVersion()
. -
napiVersion
public static long napiVersion(long struct) Unsafe version ofapiVersion()
. -
napplicationName
Unsafe version ofapplicationName
. -
napplicationVersion
public static void napplicationVersion(long struct, int value) Unsafe version ofapplicationVersion
. -
nengineName
Unsafe version ofengineName
. -
nengineVersion
public static void nengineVersion(long struct, int value) Unsafe version ofengineVersion
. -
napiVersion
public static void napiVersion(long struct, long value) Unsafe version ofapiVersion
.
-