Package org.lwjgl.openxr
Class XrSystemProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSystemProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSystemProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceProperties of a particular system.Valid Usage (Implicit)
typemust beTYPE_SYSTEM_PROPERTIESnextmust beNULLor a valid pointer to the next structure in a structure chain. See also:XrSystemColorSpacePropertiesFB,XrSystemEyeGazeInteractionPropertiesEXT,XrSystemFacialTrackingPropertiesHTC,XrSystemFoveatedRenderingPropertiesVARJO,XrSystemHandTrackingMeshPropertiesMSFT,XrSystemHandTrackingPropertiesEXT,XrSystemKeyboardTrackingPropertiesFB,XrSystemMarkerTrackingPropertiesVARJO,XrSystemPassthroughPropertiesFB,XrSystemRenderModelPropertiesFB,XrSystemSpaceWarpPropertiesFB
See Also
XrSystemGraphicsProperties,XrSystemTrackingProperties,GetSystem,GetSystemPropertiesLayout
struct XrSystemProperties { XrStructureTypetype(); void *next(); XrSystemIdsystemId(); uint32_tvendorId(); charsystemName()[XR_MAX_SYSTEM_NAME_SIZE];XrSystemGraphicsPropertiesgraphicsProperties();XrSystemTrackingPropertiestrackingProperties(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSystemProperties.BufferAn array ofXrSystemPropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intGRAPHICSPROPERTIES
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSYSTEMID
SYSTEMNAME
TRACKINGPROPERTIES
TYPE
VENDORIDThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSystemProperties(java.nio.ByteBuffer container)Creates aXrSystemPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSystemPropertiescalloc()Returns a newXrSystemPropertiesinstance allocated withmemCalloc.static XrSystemProperties.Buffercalloc(int capacity)Returns a newXrSystemProperties.Bufferinstance allocated withmemCalloc.static XrSystemProperties.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemPropertiescalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemPropertiescreate()Returns a newXrSystemPropertiesinstance allocated withBufferUtils.static XrSystemProperties.Buffercreate(int capacity)Returns a newXrSystemProperties.Bufferinstance allocated withBufferUtils.static XrSystemPropertiescreate(long address)Returns a newXrSystemPropertiesinstance for the specified memory address.static XrSystemProperties.Buffercreate(long address, int capacity)Create aXrSystemProperties.Bufferinstance at the specified memory.static XrSystemPropertiescreateSafe(long address)static XrSystemProperties.BuffercreateSafe(long address, int capacity)XrSystemGraphicsPropertiesgraphicsProperties()anXrSystemGraphicsPropertiesstructure specifying the system graphics properties.static XrSystemPropertiesmalloc()Returns a newXrSystemPropertiesinstance allocated withmemAlloc.static XrSystemProperties.Buffermalloc(int capacity)Returns a newXrSystemProperties.Bufferinstance allocated withmemAlloc.static XrSystemProperties.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemProperties.Bufferinstance allocated on the specifiedMemoryStack.static XrSystemPropertiesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemPropertiesinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSystemPropertiesnext(long value)Sets the specified value to thenext()field.XrSystemPropertiesnext(XrSystemColorSpacePropertiesFB value)Prepends the specifiedXrSystemColorSpacePropertiesFBvalue to thenextchain.XrSystemPropertiesnext(XrSystemEyeGazeInteractionPropertiesEXT value)Prepends the specifiedXrSystemEyeGazeInteractionPropertiesEXTvalue to thenextchain.XrSystemPropertiesnext(XrSystemFacialTrackingPropertiesHTC value)Prepends the specifiedXrSystemFacialTrackingPropertiesHTCvalue to thenextchain.XrSystemPropertiesnext(XrSystemFoveatedRenderingPropertiesVARJO value)Prepends the specifiedXrSystemFoveatedRenderingPropertiesVARJOvalue to thenextchain.XrSystemPropertiesnext(XrSystemHandTrackingMeshPropertiesMSFT value)Prepends the specifiedXrSystemHandTrackingMeshPropertiesMSFTvalue to thenextchain.XrSystemPropertiesnext(XrSystemHandTrackingPropertiesEXT value)Prepends the specifiedXrSystemHandTrackingPropertiesEXTvalue to thenextchain.XrSystemPropertiesnext(XrSystemKeyboardTrackingPropertiesFB value)Prepends the specifiedXrSystemKeyboardTrackingPropertiesFBvalue to thenextchain.XrSystemPropertiesnext(XrSystemMarkerTrackingPropertiesVARJO value)Prepends the specifiedXrSystemMarkerTrackingPropertiesVARJOvalue to thenextchain.XrSystemPropertiesnext(XrSystemPassthroughPropertiesFB value)Prepends the specifiedXrSystemPassthroughPropertiesFBvalue to thenextchain.XrSystemPropertiesnext(XrSystemRenderModelPropertiesFB value)Prepends the specifiedXrSystemRenderModelPropertiesFBvalue to thenextchain.XrSystemPropertiesnext(XrSystemSpaceWarpPropertiesFB value)Prepends the specifiedXrSystemSpaceWarpPropertiesFBvalue to thenextchain.static XrSystemGraphicsPropertiesngraphicsProperties(long struct)Unsafe version ofgraphicsProperties().static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static longnsystemId(long struct)Unsafe version ofsystemId().static java.nio.ByteBuffernsystemName(long struct)Unsafe version ofsystemName().static java.lang.StringnsystemNameString(long struct)Unsafe version ofsystemNameString().static XrSystemTrackingPropertiesntrackingProperties(long struct)Unsafe version oftrackingProperties().static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.static intnvendorId(long struct)Unsafe version ofvendorId().XrSystemPropertiesset(int type, long next)Initializes this struct with the specified values.XrSystemPropertiesset(XrSystemProperties src)Copies the specified struct data to this struct.intsizeof()longsystemId()theXrSystemIdidentifying the system.java.nio.ByteBuffersystemName()a string containing the name of the system.java.lang.StringsystemNameString()a string containing the name of the system.XrSystemTrackingPropertiestrackingProperties()anXrSystemTrackingPropertiesstructure specifying system tracking properties.inttype()theXrStructureTypeof this structure.XrSystemPropertiestype(int value)Sets the specified value to thetype()field.XrSystemPropertiestype$Default()Sets theTYPE_SYSTEM_PROPERTIESvalue to thetype()field.intvendorId()a unique identifier for the vendor of the system.
-
-
-
Constructor Detail
-
XrSystemProperties
public XrSystemProperties(java.nio.ByteBuffer container)
Creates aXrSystemPropertiesinstance 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
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.
-
systemId
public long systemId()
theXrSystemIdidentifying the system.
-
vendorId
public int vendorId()
a unique identifier for the vendor of the system.
-
systemName, systemNameString
public java.nio.ByteBuffer systemName() public java.lang.String systemNameString()
a string containing the name of the system.
-
graphicsProperties
public XrSystemGraphicsProperties graphicsProperties()
anXrSystemGraphicsPropertiesstructure specifying the system graphics properties.
-
trackingProperties
public XrSystemTrackingProperties trackingProperties()
anXrSystemTrackingPropertiesstructure specifying system tracking properties.
-
type
public XrSystemProperties type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSystemProperties type$Default()
Sets theTYPE_SYSTEM_PROPERTIESvalue to thetype()field.
-
next
public XrSystemProperties next(long value)
Sets the specified value to thenext()field.
-
next
public XrSystemProperties next(XrSystemColorSpacePropertiesFB value)
Prepends the specifiedXrSystemColorSpacePropertiesFBvalue to thenextchain.
-
next
public XrSystemProperties next(XrSystemEyeGazeInteractionPropertiesEXT value)
Prepends the specifiedXrSystemEyeGazeInteractionPropertiesEXTvalue to thenextchain.
-
next
public XrSystemProperties next(XrSystemFacialTrackingPropertiesHTC value)
Prepends the specifiedXrSystemFacialTrackingPropertiesHTCvalue to thenextchain.
-
next
public XrSystemProperties next(XrSystemFoveatedRenderingPropertiesVARJO value)
Prepends the specifiedXrSystemFoveatedRenderingPropertiesVARJOvalue to thenextchain.
-
next
public XrSystemProperties next(XrSystemHandTrackingMeshPropertiesMSFT value)
Prepends the specifiedXrSystemHandTrackingMeshPropertiesMSFTvalue to thenextchain.
-
next
public XrSystemProperties next(XrSystemHandTrackingPropertiesEXT value)
Prepends the specifiedXrSystemHandTrackingPropertiesEXTvalue to thenextchain.
-
next
public XrSystemProperties next(XrSystemKeyboardTrackingPropertiesFB value)
Prepends the specifiedXrSystemKeyboardTrackingPropertiesFBvalue to thenextchain.
-
next
public XrSystemProperties next(XrSystemMarkerTrackingPropertiesVARJO value)
Prepends the specifiedXrSystemMarkerTrackingPropertiesVARJOvalue to thenextchain.
-
next
public XrSystemProperties next(XrSystemPassthroughPropertiesFB value)
Prepends the specifiedXrSystemPassthroughPropertiesFBvalue to thenextchain.
-
next
public XrSystemProperties next(XrSystemRenderModelPropertiesFB value)
Prepends the specifiedXrSystemRenderModelPropertiesFBvalue to thenextchain.
-
next
public XrSystemProperties next(XrSystemSpaceWarpPropertiesFB value)
Prepends the specifiedXrSystemSpaceWarpPropertiesFBvalue to thenextchain.
-
set
public XrSystemProperties set(int type, long next)
Initializes this struct with the specified values.
-
set
public XrSystemProperties set(XrSystemProperties src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSystemProperties malloc()
Returns a newXrSystemPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSystemProperties calloc()
Returns a newXrSystemPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSystemProperties create()
Returns a newXrSystemPropertiesinstance allocated withBufferUtils.
-
create
public static XrSystemProperties create(long address)
Returns a newXrSystemPropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static XrSystemProperties createSafe(long address)
-
malloc
public static XrSystemProperties.Buffer malloc(int capacity)
Returns a newXrSystemProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSystemProperties.Buffer calloc(int capacity)
Returns a newXrSystemProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemProperties.Buffer create(int capacity)
Returns a newXrSystemProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemProperties.Buffer create(long address, int capacity)
Create aXrSystemProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSystemProperties.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSystemProperties malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSystemProperties calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSystemProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSystemProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nsystemId
public static long nsystemId(long struct)
Unsafe version ofsystemId().
-
nvendorId
public static int nvendorId(long struct)
Unsafe version ofvendorId().
-
nsystemName
public static java.nio.ByteBuffer nsystemName(long struct)
Unsafe version ofsystemName().
-
nsystemNameString
public static java.lang.String nsystemNameString(long struct)
Unsafe version ofsystemNameString().
-
ngraphicsProperties
public static XrSystemGraphicsProperties ngraphicsProperties(long struct)
Unsafe version ofgraphicsProperties().
-
ntrackingProperties
public static XrSystemTrackingProperties ntrackingProperties(long struct)
Unsafe version oftrackingProperties().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
-